PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 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 All 212 releases
← All changes | templates/emails/header.php +24 -23 1.6.60 → 1.8.13 View file →
@@ -3,11 +3,12 @@
3 3 * Email Header
4 4 *
5 5 * Override this template by copying it to yourtheme/charitable/emails/header.php
6 6 *
7 - * @author Studio 164a
7 + * @author WP Charitable LLC
8 8 * @package Charitable/Templates/Emails
9 9 * @version 1.0.0
10 + * @version 1.8.8.6
10 11 */
11 12
12 13 // Exit if accessed directly.
13 14 if ( ! defined( 'ABSPATH' ) ) {
@@ -13,32 +14,32 @@
13 14 if ( ! defined( 'ABSPATH' ) ) {
14 15 exit;
15 16 }
16 17
17 -$email = $view_args['email'];
18 +$charitable_email = $view_args['email'];
18 19
19 -if ( is_object( $email ) && is_a( $email, 'Charitable_Email' ) ) {
20 +if ( is_object( $charitable_email ) && is_a( $charitable_email, 'Charitable_Email' ) ) {
20 21
21 - $headline = $email->get_headline();
22 + $charitable_headline = $charitable_email->get_headline();
22 23
23 24 } elseif ( array_key_exists( 'headline', $view_args ) ) {
24 25
25 - $headline = $view_args['headline'];
26 + $charitable_headline = $view_args['headline'];
26 27
27 28 }
28 29
29 30 // 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.
30 -$body = "
31 +$charitable_body = "
31 32 background-color: #f6f6f6;
32 33 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
33 34 ";
34 -$wrapper = "
35 +$charitable_wrapper = "
35 36 width:100%;
36 37 -webkit-text-size-adjust:none !important;
37 38 margin:0;
38 39 padding: 70px 0 70px 0;
39 40 ";
40 -$template_container = "
41 +$charitable_template_container = "
41 42 box-shadow:0 0 0 1px #f3f3f3 !important;
42 43 border-radius:3px !important;
43 44 background-color: #ffffff;
44 45 border: 1px solid #e9e9e9;
@@ -44,9 +45,9 @@
44 45 border: 1px solid #e9e9e9;
45 46 border-radius:3px !important;
46 47 padding: 20px;
47 48 ";
48 -$template_header = "
49 +$charitable_template_header = "
49 50 color: #00000;
50 51 border-top-left-radius:3px !important;
51 52 border-top-right-radius:3px !important;
52 53 border-bottom: 0;
@@ -54,13 +55,13 @@
54 55 line-height:100%;
55 56 text-align: center;
56 57 vertical-align:middle;
57 58 ";
58 -$body_content = "
59 +$charitable_body_content = "
59 60 border-radius:3px !important;
60 61 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
61 62 ";
62 -$body_content_inner = "
63 +$charitable_body_content_inner = "
63 64 color: #000000;
64 65 font-size:14px;
65 66 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
66 67 line-height:150%;
@@ -65,9 +66,9 @@
65 66 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
66 67 line-height:150%;
67 68 text-align:left;
68 69 ";
69 -$header_content_h1 = "
70 +$charitable_header_content_h1 = "
70 71 color: #000000;
71 72 margin:0;
72 73 padding: 28px 24px;
73 74 display:block;
@@ -75,34 +76,34 @@
75 76 font-size:32px;
76 77 font-weight: 500;
77 78 line-height: 1.2;
78 79 ";
79 -$header_img = false;
80 +$charitable_header_img = false;
80 81 ?>
81 82 <!DOCTYPE html>
82 83 <html>
83 84 <head>
84 85 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
85 - <title><?php echo get_bloginfo( 'name' ); ?></title>
86 + <title><?php echo esc_html( get_bloginfo( 'name' ) ); ?></title>
86 87 </head>
87 - <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="<?php echo $body; ?>">
88 - <div style="<?php echo $wrapper; ?>">
88 + <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="<?php echo esc_attr( $charitable_body ); ?>">
89 + <div style="<?php echo esc_attr( $charitable_wrapper ); ?>">
89 90 <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
90 91 <tr>
91 92 <td align="center" valign="top">
92 - <?php if( ! empty( $header_img ) ) : ?>
93 + <?php if( ! empty( $charitable_header_img ) ) : ?>
93 94 <div id="template_header_image">
94 - <?php echo '<p style="margin-top:0;"><img src="' . esc_url( $header_img ) . '" alt="' . get_bloginfo( 'name' ) . '" /></p>'; ?>
95 + <?php echo '<p style="margin-top:0;"><img src="' . esc_url( $charitable_header_img ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" /></p>'; ?>
95 96 </div>
96 97 <?php endif; ?>
97 - <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_container" style="<?php echo $template_container; ?>">
98 + <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_container" style="<?php echo esc_attr( $charitable_template_container ); ?>">
98 99 <tr>
99 100 <td align="center" valign="top">
100 101 <!-- Header -->
101 - <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_header" style="<?php echo $template_header; ?>" bgcolor="#ffffff">
102 + <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_header" style="<?php echo esc_attr( $charitable_template_header ); ?>" bgcolor="#ffffff">
102 103 <tr>
103 104 <td>
104 - <h1 style="<?php echo $header_content_h1; ?>"><?php echo $headline ?></h1>
105 + <h1 style="<?php echo esc_attr( $charitable_header_content_h1 ); ?>"><?php echo esc_html( $charitable_headline ); ?></h1>
105 106 </td>
106 107 </tr>
107 108 </table>
108 109 <!-- End Header -->
@@ -112,10 +113,10 @@
112 113 <td align="center" valign="top">
113 114 <!-- Body -->
114 115 <table border="0" cellpadding="0" cellspacing="0" width="520" id="template_body">
115 116 <tr>
116 - <td valign="top" style="<?php echo $body_content; ?>">
117 + <td valign="top" style="<?php echo esc_attr( $charitable_body_content ); ?>">
117 118 <!-- Content -->
118 119 <table border="0" cellpadding="20" cellspacing="0" width="100%">
119 120 <tr>
120 121 <td valign="top">
121 - <div style="<?php echo $body_content_inner; ?>">
122 + <div style="<?php echo esc_attr( $charitable_body_content_inner ); ?>">