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