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