| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
if ( ! isset( $email_heading ) ) { |
| 7 |
return; |
| 8 |
} |
| 9 |
?> |
| 10 |
<!DOCTYPE html> |
| 11 |
<html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> |
| 12 |
<head> |
| 13 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 14 |
<title><?php echo get_bloginfo( 'name', 'display' ); ?></title> |
| 15 |
</head> |
| 16 |
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset=" |
| 17 |
0"> |
| 18 |
<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> |
| 19 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> |
| 20 |
<tr> |
| 21 |
<td align="center" valign="top"> |
| 22 |
<?php if ( isset( $image_header ) ) { ?> |
| 23 |
<div id="template_header_image"> |
| 24 |
<p style="margin-top:0;"> |
| 25 |
<img src="<?php echo esc_url_raw( $image_header ); ?>" |
| 26 |
alt="<?php echo get_bloginfo( 'name', 'display' ); ?>"/> |
| 27 |
</p> |
| 28 |
</div> |
| 29 |
<?php } ?> |
| 30 |
<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container"> |
| 31 |
<thead id="email-header"> |
| 32 |
<tr> |
| 33 |
<td align="center" valign="top"> |
| 34 |
<h2 class="order-heading"> |
| 35 |
<?php echo wp_kses_post( $email_heading ); ?> |
| 36 |
</h2> |
| 37 |
</td> |
| 38 |
</tr> |
| 39 |
</thead> |
| 40 |
<tbody id="email-body"> |
| 41 |
<tr> |
| 42 |
<td align="center" valign="top"> |
| 43 |
|