| @@ -16,10 +16,10 @@ | ||
| 16 | 16 | ?> |
| 17 | 17 | <!DOCTYPE html> |
| 18 | 18 | <html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 19 | 19 | <head> |
| 20 | - <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" /> | |
| 21 | - <title><?php echo get_bloginfo( 'name', 'display' ); ?></title> | |
| 20 | + <meta http-equiv="Content-Type" content="text/html; charset=<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>" /> | |
| 21 | + <title><?php echo esc_html( get_bloginfo( 'name', 'display' ) ); ?></title> | |
| 22 | 22 | </head> |
| 23 | 23 | <body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
| 24 | 24 | <div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 25 | 25 | <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> |
| @@ -29,11 +29,11 @@ | ||
| 29 | 29 | <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container"> |
| 30 | 30 | <tr> |
| 31 | 31 | <td align="center" valign="top"> |
| 32 | 32 | |
| 33 | - <?php if ( $img = get_option( 'propertyhive_email_header_image' ) ) { ?> | |
| 33 | + <?php if ( $propertyhive_header_image = get_option( 'propertyhive_email_header_image' ) ) { ?> | |
| 34 | 34 | <div id="template_header_image"> |
| 35 | - <?php echo '<a href="' . site_url() . '" target="_blank"><img src="' . esc_url( $img ) . '" alt="' . get_bloginfo( 'name', 'display' ) . '" /></a>'; | |
| 35 | + <?php echo '<a href="' . esc_url( site_url() ) . '" target="_blank"><img src="' . esc_url( $propertyhive_header_image ) . '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" /></a>'; | |
| 36 | 36 | ?> |
| 37 | 37 | </div> |
| 38 | 38 | <?php } ?> |
| 39 | 39 | |