| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files |
| 6 |
?> |
| 7 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 8 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 9 |
<html xmlns="http://www.w3.org/1999/xhtml" |
| 10 |
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 11 |
<head> |
| 12 |
<meta name="viewport" content="width=device-width"/> |
| 13 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 14 |
<title><?php esc_html_e('Email Summary', 'fluentform'); ?></title> |
| 15 |
<style type="text/css"> |
| 16 |
.summary_table { |
| 17 |
width: 100%; |
| 18 |
text-align: left; |
| 19 |
border-collapse: collapse; |
| 20 |
} |
| 21 |
|
| 22 |
.summary_table tr td { |
| 23 |
border: 1px solid #e0e0e0; |
| 24 |
padding: 4px 10px; |
| 25 |
} |
| 26 |
|
| 27 |
.summary_table tr th { |
| 28 |
border: 1px solid #e0e0e0; |
| 29 |
padding: 8px 10px; |
| 30 |
} |
| 31 |
|
| 32 |
thead { |
| 33 |
background: #f6f6f6; |
| 34 |
} |
| 35 |
|
| 36 |
img { |
| 37 |
max-width: 100%; |
| 38 |
} |
| 39 |
|
| 40 |
body { |
| 41 |
-webkit-font-smoothing: antialiased; |
| 42 |
-webkit-text-size-adjust: none; |
| 43 |
width: 100% !important; |
| 44 |
height: 100%; |
| 45 |
line-height: 1.6em; |
| 46 |
} |
| 47 |
|
| 48 |
body { |
| 49 |
background-color: #f6f6f6; |
| 50 |
} |
| 51 |
|
| 52 |
@media only screen and (max-width: 640px) { |
| 53 |
body { |
| 54 |
padding: 0 !important; |
| 55 |
} |
| 56 |
|
| 57 |
h1 { |
| 58 |
font-weight: 800 !important; |
| 59 |
margin: 20px 0 5px !important; |
| 60 |
} |
| 61 |
|
| 62 |
h2 { |
| 63 |
font-weight: 800 !important; |
| 64 |
margin: 20px 0 5px !important; |
| 65 |
} |
| 66 |
|
| 67 |
h3 { |
| 68 |
font-weight: 800 !important; |
| 69 |
margin: 20px 0 5px !important; |
| 70 |
} |
| 71 |
|
| 72 |
h4 { |
| 73 |
font-weight: 800 !important; |
| 74 |
margin: 20px 0 5px !important; |
| 75 |
} |
| 76 |
|
| 77 |
h1 { |
| 78 |
font-size: 22px !important; |
| 79 |
} |
| 80 |
|
| 81 |
h2 { |
| 82 |
font-size: 18px !important; |
| 83 |
} |
| 84 |
|
| 85 |
h3 { |
| 86 |
font-size: 16px !important; |
| 87 |
} |
| 88 |
|
| 89 |
.container { |
| 90 |
padding: 0 !important; |
| 91 |
width: 100% !important; |
| 92 |
} |
| 93 |
|
| 94 |
.content { |
| 95 |
padding: 0 !important; |
| 96 |
} |
| 97 |
|
| 98 |
.content-wrap { |
| 99 |
padding: 10px !important; |
| 100 |
} |
| 101 |
|
| 102 |
.invoice { |
| 103 |
width: 100% !important; |
| 104 |
} |
| 105 |
} |
| 106 |
</style> |
| 107 |
</head> |
| 108 |
<body itemscope itemtype="http://schema.org/EmailMessage" |
| 109 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" |
| 110 |
bgcolor="#f6f6f6"> |
| 111 |
<table class="body-wrap" |
| 112 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" |
| 113 |
bgcolor="#f6f6f6"> |
| 114 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 115 |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" |
| 116 |
valign="top"></td> |
| 117 |
<td class="container" width="600" |
| 118 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" |
| 119 |
valign="top"> |
| 120 |
<div class="content" |
| 121 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;"> |
| 122 |
<table class="main" width="100%" cellpadding="0" cellspacing="0" |
| 123 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" |
| 124 |
bgcolor="#fff"> |
| 125 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 126 |
<td class="alert alert-warning" |
| 127 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #673ab7; margin: 0; padding: 20px;" |
| 128 |
align="center" bgcolor="#FF9F00" valign="top"> |
| 129 |
<?php esc_html_e('Weekly Email Summary of Your Forms', 'fluentform'); ?> |
| 130 |
</td> |
| 131 |
</tr> |
| 132 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 133 |
<td class="content-wrap" |
| 134 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" |
| 135 |
valign="top"> |
| 136 |
<table width="100%" cellpadding="0" cellspacing="0" |
| 137 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 138 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 139 |
<td class="content-block" |
| 140 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 141 |
valign="top"> |
| 142 |
<b><?php esc_html_e('Hello There,', 'fluentform'); ?></b><br/> |
| 143 |
<?php printf( |
| 144 |
/* translators: %d is the Number Email Summary Days */ |
| 145 |
esc_html__('Let\'s see how your forms performed in the last %d days.', 'fluentform'), intval($days));; ?> |
| 146 |
</td> |
| 147 |
</tr> |
| 148 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 149 |
<td class="content-block" |
| 150 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 151 |
valign="top"> |
| 152 |
<table class="summary_table"> |
| 153 |
<thead> |
| 154 |
<tr> |
| 155 |
<th><?php esc_html_e('Form', 'fluentform'); ?></th> |
| 156 |
<th><?php esc_html_e('Entries', 'fluentform'); ?></th> |
| 157 |
</tr> |
| 158 |
</thead> |
| 159 |
<tbody> |
| 160 |
<?php foreach ($submissions as $submission): ?> |
| 161 |
<tr> |
| 162 |
<td><?php echo esc_html($submission->title); ?></td> |
| 163 |
<td><?php echo esc_attr($submission->total); ?></td> |
| 164 |
</tr> |
| 165 |
<?php endforeach; ?> |
| 166 |
</tbody> |
| 167 |
</table> |
| 168 |
</td> |
| 169 |
</tr> |
| 170 |
|
| 171 |
<?php if ($payments): ?> |
| 172 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 173 |
<td class="content-block" |
| 174 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 175 |
valign="top"> |
| 176 |
<h3><?php esc_html_e('Payments', 'fluentform'); ?></h3> |
| 177 |
<table class="summary_table"> |
| 178 |
<thead> |
| 179 |
<tr> |
| 180 |
<th><?php esc_html_e('Form', 'fluentform'); ?></th> |
| 181 |
<th><?php esc_html_e('Payment Total', 'fluentform'); ?></th> |
| 182 |
</tr> |
| 183 |
</thead> |
| 184 |
<tbody> |
| 185 |
<?php foreach ($payments as $payment): ?> |
| 186 |
<tr> |
| 187 |
<td><?php echo esc_html($payment->title); ?></td> |
| 188 |
<td><?php echo esc_attr($payment->readable_amount); ?></td> |
| 189 |
</tr> |
| 190 |
<?php endforeach; ?> |
| 191 |
</tbody> |
| 192 |
</table> |
| 193 |
</td> |
| 194 |
</tr> |
| 195 |
<?php endif; ?> |
| 196 |
|
| 197 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 198 |
<td class="content-block" |
| 199 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 200 |
valign="top"> |
| 201 |
<?php |
| 202 |
$generateText = sprintf( |
| 203 |
/* translators: 1: opening anchor tag, 2: site name, 3: closing anchor tag */ |
| 204 |
__('This email has been generated from Fluent Forms at %1$s%2$s%3$s.', 'fluentform'), |
| 205 |
'<a href="' . site_url() . '">', |
| 206 |
get_bloginfo('name'), |
| 207 |
'</a>' |
| 208 |
); |
| 209 |
$generateText = apply_filters_deprecated( |
| 210 |
'fluentform_email_summary_body_text', |
| 211 |
[ |
| 212 |
$generateText, |
| 213 |
$submissions |
| 214 |
], |
| 215 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 216 |
'fluentform/email_summary_body_text', |
| 217 |
'Use fluentform/email_summary_body_text instead of fluentform_email_summary_body_text.' |
| 218 |
); |
| 219 |
$generateText = apply_filters('fluentform/email_summary_body_text', $generateText, $submissions); |
| 220 |
?> |
| 221 |
<?php echo wp_kses_post($generateText); ?> . |
| 222 |
</td> |
| 223 |
</tr> |
| 224 |
</table> |
| 225 |
</td> |
| 226 |
</tr> |
| 227 |
</table> |
| 228 |
<div class="footer" |
| 229 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;"> |
| 230 |
<table width="100%" |
| 231 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 232 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 233 |
<td class="aligncenter content-block" |
| 234 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;" |
| 235 |
align="center" valign="top"> |
| 236 |
<?php |
| 237 |
$footerText = sprintf( |
| 238 |
/* translators: 1: opening anchor tag to site, 2: closing anchor tag, 3: opening anchor tag to settings, 4: closing anchor tag */ |
| 239 |
__('This email has been sent from %1$syour website%2$s via Fluent Forms. You can disable this email %3$syour website%4$s', 'fluentform'), |
| 240 |
'<a href="' . site_url() . '">', |
| 241 |
'</a>', |
| 242 |
'<a href="' . admin_url('admin.php?page=fluent_forms_settings') . '">', |
| 243 |
'</a>' |
| 244 |
); |
| 245 |
$footerText = apply_filters_deprecated( |
| 246 |
'fluentform_email_summary_footer_text', |
| 247 |
[ |
| 248 |
$footerText |
| 249 |
], |
| 250 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 251 |
'fluentform/email_summary_footer_text', |
| 252 |
'Use fluentform/email_summary_footer_text instead of fluentform_email_summary_footer_text.' |
| 253 |
); |
| 254 |
$footerText = apply_filters('fluentform/email_summary_footer_text', $footerText); |
| 255 |
?> |
| 256 |
<p> |
| 257 |
<?php echo wp_kses_post($footerText); ?> |
| 258 |
</p> |
| 259 |
</td> |
| 260 |
</tr> |
| 261 |
</table> |
| 262 |
</div> |
| 263 |
</div> |
| 264 |
</td> |
| 265 |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" |
| 266 |
valign="top"></td> |
| 267 |
</tr> |
| 268 |
</table> |
| 269 |
</body> |
| 270 |
</html> |
| 271 |
|