PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.3.2
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.3.2
1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 1.8.0 All 210 releases
charitable / templates / emails / header.php

header.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.3.2, at templates/emails/header.php

110 lines 4.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 * @author Studio 164a
6 * @package Charitable/Templates/Emails
7 * @version 1.0.0
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
12 if ( ! isset( $view_args[ 'email' ] ) ) {
13 return;
14 }
15
16 $email = $view_args[ 'email' ];
17
18 // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
19 $body = "
20 background-color: #f6f6f6;
21 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
22 ";
23 $wrapper = "
24 width:100%;
25 -webkit-text-size-adjust:none !important;
26 margin:0;
27 padding: 70px 0 70px 0;
28 ";
29 $template_container = "
30 box-shadow:0 0 0 1px #f3f3f3 !important;
31 border-radius:3px !important;
32 background-color: #ffffff;
33 border: 1px solid #e9e9e9;
34 border-radius:3px !important;
35 padding: 20px;
36 ";
37 $template_header = "
38 color: #00000;
39 border-top-left-radius:3px !important;
40 border-top-right-radius:3px !important;
41 border-bottom: 0;
42 font-weight:bold;
43 line-height:100%;
44 text-align: center;
45 vertical-align:middle;
46 ";
47 $body_content = "
48 border-radius:3px !important;
49 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
50 ";
51 $body_content_inner = "
52 color: #000000;
53 font-size:14px;
54 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
55 line-height:150%;
56 text-align:left;
57 ";
58 $header_content_h1 = "
59 color: #000000;
60 margin:0;
61 padding: 28px 24px;
62 display:block;
63 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
64 font-size:32px;
65 font-weight: 500;
66 line-height: 1.2;
67 ";
68 $header_img = false;
69 ?>
70 <!DOCTYPE html>
71 <html>
72 <head>
73 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
74 <title><?php echo get_bloginfo( 'name' ); ?></title>
75 </head>
76 <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="<?php echo $body; ?>">
77 <div style="<?php echo $wrapper; ?>">
78 <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
79 <tr>
80 <td align="center" valign="top">
81 <?php if( ! empty( $header_img ) ) : ?>
82 <div id="template_header_image">
83 <?php echo '<p style="margin-top:0;"><img src="' . esc_url( $header_img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; ?>
84 </div>
85 <?php endif; ?>
86 <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_container" style="<?php echo $template_container; ?>">
87 <tr>
88 <td align="center" valign="top">
89 <!-- Header -->
90 <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_header" style="<?php echo $template_header; ?>" bgcolor="#ffffff">
91 <tr>
92 <td>
93 <h1 style="<?php echo $header_content_h1; ?>"><?php echo $email->get_headline() ?></h1>
94 </td>
95 </tr>
96 </table>
97 <!-- End Header -->
98 </td>
99 </tr>
100 <tr>
101 <td align="center" valign="top">
102 <!-- Body -->
103 <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_body">
104 <tr>
105 <td valign="top" style="<?php echo $body_content; ?>">
106 <!-- Content -->
107 <table border="0" cellpadding="20" cellspacing="0" width="100%">
108 <tr>
109 <td valign="top">
110 <div style="<?php echo $body_content_inner; ?>">