| @@ -1,62 +1,63 @@ | ||
| 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"> | |
| 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"> | |