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

120 lines 4.5 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 Studio 164a
8 * @package Charitable/Templates/Emails
9 * @version 1.0.0
10 */
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) { exit; }
14
15 $email = $view_args['email'];
16
17 if ( is_object( $email ) && is_a( $email, 'Charitable_Email' ) ) {
18
19 $headline = $email->get_headline();
20
21 } elseif ( array_key_exists( 'headline', $view_args ) ) {
22
23 $headline = $view_args['headline'];
24
25 }
26
27 // 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 ";
32 $wrapper = "
33 width:100%;
34 -webkit-text-size-adjust:none !important;
35 margin:0;
36 padding: 70px 0 70px 0;
37 ";
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;
45 ";
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;
55 ";
56 $body_content = "
57 border-radius:3px !important;
58 font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
59 ";
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;
66 ";
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;
76 ";
77 $header_img = false;
78 ?>
79 <!DOCTYPE html>
80 <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; ?>">
120