PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.6
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.6
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / email / template / header.php

header.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.6, at includes/email/template/header.php

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