| 1 |
<?php |
| 2 |
/** |
| 3 |
* Email Header |
| 4 |
*/ |
| 5 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; |
| 9 |
} |
| 10 |
$status = apply_filters_deprecated( |
| 11 |
'fluentform_email_template_email_heading', |
| 12 |
[ |
| 13 |
false, |
| 14 |
$form, |
| 15 |
$notification |
| 16 |
], |
| 17 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 18 |
'fluentform/email_template_email_heading', |
| 19 |
'Use fluentform/email_template_email_heading instead of fluentform_email_template_email_heading.' |
| 20 |
); |
| 21 |
$email_heading = apply_filters('fluentform/email_template_email_heading', $status, $form, $notification); |
| 22 |
$hasHeaderImage = apply_filters_deprecated( |
| 23 |
'fluentform_email_template_header_image', |
| 24 |
[ |
| 25 |
false, |
| 26 |
$form, |
| 27 |
$notification |
| 28 |
], |
| 29 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 30 |
'fluentform/email_template_header_image', |
| 31 |
'Use fluentform/email_template_header_image instead of fluentform_email_template_header_image.' |
| 32 |
); |
| 33 |
$headerImage = apply_filters('fluentform/email_template_header_image', $hasHeaderImage, $form, $notification); |
| 34 |
$contentType = apply_filters_deprecated( |
| 35 |
'fluentform_email_content_type_header', |
| 36 |
[ |
| 37 |
'text/html; charset=UTF-8' |
| 38 |
], |
| 39 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 40 |
'fluentform/email_content_type_header', |
| 41 |
'Use fluentform/email_content_type_header instead of fluentform_email_content_type_header.' |
| 42 |
); |
| 43 |
$contentType = apply_filters('fluentform/email_content_type_header', $contentType); |
| 44 |
?> |
| 45 |
<!DOCTYPE html> |
| 46 |
<html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 47 |
<head> |
| 48 |
<meta http-equiv="Content-Type" content="<?php echo esc_attr($contentType); ?>" /> |
| 49 |
<meta name="x-apple-disable-message-reformatting" /> |
| 50 |
<title><?php echo esc_html(get_bloginfo( 'name', 'display' )); ?></title> |
| 51 |
</head> |
| 52 |
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> |
| 53 |
<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 54 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> |
| 55 |
<tr><td align="center" valign="top"> |
| 56 |
<div id="template_header_image"> |
| 57 |
<?php |
| 58 |
if ( $headerImage ) { |
| 59 |
echo '<p style="margin-top:0;"><img src="' . esc_url( $headerImage ) . '" alt="' . esc_attr(get_bloginfo( 'name', 'display' )) . '" /></p>'; |
| 60 |
} |
| 61 |
?> |
| 62 |
</div> |
| 63 |
<table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container"> |
| 64 |
<?php if ( $email_heading ) { ?> |
| 65 |
<tr><td align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="600" id="template_header"><tr><td id="header_wrapper"><h1><?php echo esc_attr($email_heading); ?></h1></td></tr></table></td></tr> |
| 66 |
<?php } ?> |
| 67 |
<tr><td align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body"><tr><td valign="top" id="body_content"><table border="0" cellpadding="20" cellspacing="0" width="100%"><tr><td valign="top"><div id="body_content_inner"> |
| 68 |
|