| 1 |
<?php |
| 2 |
/** |
| 3 |
* Email Header |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
$email_heading = false; |
| 11 |
|
| 12 |
?> |
| 13 |
<!DOCTYPE html> |
| 14 |
<html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 15 |
<head> |
| 16 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 17 |
<title><?php echo get_bloginfo( 'name', 'display' ); ?></title> |
| 18 |
</head> |
| 19 |
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
| 20 |
<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 21 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> |
| 22 |
<tr> |
| 23 |
<td align="center" valign="top"> |
| 24 |
<div id="template_header_image"> |
| 25 |
<?php |
| 26 |
$settings = weforms_get_settings( 'email_settings', array( |
| 27 |
'header_image' => '' |
| 28 |
) ); |
| 29 |
|
| 30 |
if ( isset( $settings['header_image'] ) && !empty( $settings['header_image'] ) ) { |
| 31 |
echo '<p style="margin-top:0;"><img src="' . esc_url( $settings['header_image'] ) . '" alt="' . get_bloginfo( 'name', 'display' ) . '" /></p>'; |
| 32 |
} |
| 33 |
?> |
| 34 |
</div> |
| 35 |
<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container"> |
| 36 |
|
| 37 |
<?php if ( $email_heading ) { ?> |
| 38 |
<tr> |
| 39 |
<td align="center" valign="top"> |
| 40 |
<!-- Header --> |
| 41 |
<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_header"> |
| 42 |
<tr> |
| 43 |
<td id="header_wrapper"> |
| 44 |
<h1><?php echo $email_heading; ?></h1> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
</table> |
| 48 |
<!-- End Header --> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<?php } ?> |
| 52 |
|
| 53 |
<tr> |
| 54 |
<td align="center" valign="top"> |
| 55 |
<!-- Body --> |
| 56 |
<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body"> |
| 57 |
<tr> |
| 58 |
<td valign="top" id="body_content"> |
| 59 |
<!-- Content --> |
| 60 |
<table border="0" cellpadding="20" cellspacing="0" width="100%"> |
| 61 |
<tr> |
| 62 |
<td valign="top"> |
| 63 |
<div id="body_content_inner"> |
| 64 |
|