PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.12
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.12
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.8.12, at templates/emails/header.php

123 lines 4.0 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 * Override this template by copying it to yourtheme/charitable/emails/header.php
6 *
7 * @author WP Charitable LLC
8 * @package Charitable/Templates/Emails
9 * @version 1.0.0
10 * @version 1.8.8.6
11 */
12
13 // Exit if accessed directly.
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 $charitable_email = $view_args['email'];
19
20 if ( is_object( $charitable_email ) && is_a( $charitable_email, 'Charitable_Email' ) ) {
21
22 $charitable_headline = $charitable_email->get_headline();
23
24 } elseif ( array_key_exists( 'headline', $view_args ) ) {
25
26 $charitable_headline = $view_args['headline'];
27
28 }
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.
31 $charitable_body = "
32 background-color: #f6f6f6;
33 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
34 ";
35 $charitable_wrapper = "
36 width:100%;
37 -webkit-text-size-adjust:none !important;
38 margin:0;
39 padding: 70px 0 70px 0;
40 ";
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;
48 ";
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;
58 ";
59 $charitable_body_content = "
60 border-radius:3px !important;
61 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
62 ";
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;
69 ";
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;
79 ";
80 $charitable_header_img = false;
81 ?>
82 <!DOCTYPE html>
83 <html>
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 ); ?>">
123