PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.7
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.7
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Views / email / template / header.php

header.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.7, at app/Views/email/template/header.php

68 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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