PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.2.3
Defender Security – Malware Scanner, Login Security & Firewall v6.2.3
6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 3.1.1 All 140 releases
defender-security / src / view / email / index.php

index.php in Defender Security – Malware Scanner, Login Security & Firewall 6.2.3, at src/view/email/index.php

464 lines 17.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This template is used to display emails.
4 *
5 * @package WP_Defender
6 */
7
8 /**
9 * WPCS errors in this page are,
10 * 1) Stylesheets must be registered/enqueued via wp_enqueue_style()
11 * @codingStandardsIgnoreFile
12 */
13 use WP_Defender\Integrations\Dashboard_Whitelabel;
14
15 $dashboard_whitelabel = wd_di()->get( Dashboard_Whitelabel::class );
16 $can_whitelabel = $dashboard_whitelabel->can_whitelabel();
17 ?>
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
19 <html xmlns="http://www.w3.org/1999/xhtml">
20 <head>
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
22 <meta name="viewport" content="width=device-width">
23 <title><?php echo esc_html( $title ); ?></title>
24 <!--[if lte mso 11]>
25 <style type="text/css">
26 .mj-outlook-group-fix {
27 width: 100% !important;
28 }
29 </style>
30 <![endif]-->
31 <!--[if !mso]><!-->
32 <link href="https://fonts.bunny.net/css?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" type="text/css">
33 <style type="text/css">
34 @import url(https://fonts.bunny.net/css?family=Roboto:wght@400;500;700&display=swap);
35 </style>
36 <!--<![endif]-->
37 <style type="text/css">
38 @media only screen {
39 html {
40 min-height: 100%;
41 }
42 }
43
44 a {
45 text-decoration: none !important;
46 font-weight: 600 !important;
47 color: #0059FF !important;
48 }
49
50 .report-list-item-path span {
51 color: #0059FF;
52 }
53
54 .button a,
55 a.view-full,
56 a.button-cta {
57 font-family: Roboto, arial, sans-serif;
58 font-size: 13px !important;
59 line-height: 24px;
60 font-weight: bold;
61 background: #0059FF;
62 text-decoration: none !important;
63 padding: 10px 15px;
64 color: #ffffff !important;
65 border-radius: 6px;
66 display: inline-block;
67 margin: 20px auto;
68 text-transform: unset !important;
69 min-width: unset !important;
70 }
71
72 /* OTP style */
73 span.defender-otp {
74 background: #F2F2F2;
75 padding: 20px;
76 border-radius: 10px;
77 display: block;
78 text-align: center;
79 font-weight: 500;
80 font-size: 16px;
81 line-height: 22px;
82 }
83
84 /* Hover-cases: */
85 /* 1.All links. */
86 .main-content a:hover {
87 color: #0C33A9 !important;
88 }
89
90 /* 2.Link for full view. */
91 .main-content a.view-full:hover {
92 background: #0C33A9 !important;
93 color: #ffffff !important;
94 }
95
96 /* 3.Text. */
97 .report-list-item-path span:hover {
98 color: #0C33A9 !important;
99 }
100
101 @media only screen and (min-width: 480px) {
102 .mj-column-per-100 {
103 width: 100% !important;
104 max-width: 100%;
105 }
106 }
107 </style>
108 </head>
109
110 <body
111 style="-moz-box-sizing: border-box; -ms-text-size-adjust: 100%; -webkit-box-sizing: border-box; -webkit-text-size-adjust: 100%; background-color: #F2F2F2; box-sizing: border-box; color: #1A1A1A; font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: normal; line-height: 26px; margin: 0; min-width: 100%; padding: 0; text-align: left; width: 100% !important;<?php echo $can_whitelabel ? 'padding-top:45px;' : ''; ?>">
112 <!-- Header image -->
113 <?php if ( ! $can_whitelabel ) : ?>
114 <!--[if mso | IE]>
115 <table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600">
116 <tr>
117 <td style="line-height:0;font-size:0;mso-line-height-rule:exactly;"><![endif]-->
118 <div style="margin:0 auto;max-width:600px;">
119 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
120 <tbody>
121 <tr>
122 <td style="direction:ltr;font-size:0;padding:25px 0 0;text-align:center;">
123 <!--[if mso | IE]>
124 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
125 <tr>
126 <td class="" style="vertical-align:top;width:600px;"><![endif]-->
127 <div class="mj-column-per-100 mj-outlook-group-fix"
128 style="font-size:0;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
129 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
130 <tbody>
131 <tr>
132 <td style="background-color:#282A2C;border-radius:15px 15px 0 0;vertical-align:top;padding:35px 0;">
133 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style=""
134 width="100%">
135 <tbody>
136 <tr>
137 <td align="center" style="font-size:0;padding:0;word-break:break-word;">
138 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
139 style="border-collapse:collapse;border-spacing:0;">
140 <tbody>
141 <tr>
142 <td>
143 <img height="30" width="27"
144 src="<?php echo esc_url( $dashboard_whitelabel->get_branding_logo() ); ?>"
145 style="border:0;outline:none;text-decoration:none;height:30px;width:27px;vertical-align:middle;"
146 alt="<?php echo esc_attr( $title ); ?>">
147 <span style="color: #FFFFFF;font-family: Roboto, Arial, sans-serif;font-size: 20px;font-weight: 700;text-align: left;margin-left: 10px;line-height:25px; vertical-align:middle;">
148 <?php echo esc_html( $title ); ?>
149 </span>
150 </td>
151 </tr>
152 </tbody>
153 </table>
154 </td>
155 </tr>
156 </tbody>
157 </table>
158 </td>
159 </tr>
160 </tbody>
161 </table>
162 </div>
163 <!--[if mso | IE]></td></tr></table><![endif]-->
164 </td>
165 </tr>
166 </tbody>
167 </table>
168 </div>
169 <!--[if mso | IE]></td></tr></table><![endif]-->
170 <?php endif; ?>
171 <!-- END Header image -->
172
173 <!-- Main content -->
174 <!--[if mso | IE]>
175 <table align="center" border="0" cellpadding="0" cellspacing="0" class="main-content-outlook" style="width:600px;"
176 width="600">
177 <tr>
178 <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
179 <div class="main-content"
180 style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;<?php echo $can_whitelabel ? 'border-radius:20px;overflow:hidden;' : ''; ?>">
181 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
182 style="background:#ffffff;background-color:#ffffff;width:100%;">
183 <tbody>
184 <tr>
185 <td style="direction:ltr;font-size:0px;padding:30px 25px 45px;text-align:center;">
186 <!--[if mso | IE]>
187 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
188 <tr>
189 <td class="" style="vertical-align:top;width:550px;"><![endif]-->
190 <div class="mj-column-per-100 mj-outlook-group-fix"
191 style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
192 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;"
193 width="100%">
194 <tbody>
195 <tr>
196 <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
197 <div style="font-family:Roboto, Arial, sans-serif;font-size:18px;letter-spacing:-.25px;line-height:30px;text-align:left;color:#1A1A1A;">
198 <?php echo wp_kses_post( $content_body ); ?>
199 <!--Cheers block-->
200 <?php
201 if (
202 ! $can_whitelabel ||
203 ( $dashboard_whitelabel->is_change_footer() && $dashboard_whitelabel->is_set_footer_text() )
204 ) :
205 ?>
206 <p style="color:#1A1A1A;font-family:Roboto,Arial,sans-serif;font-size:16px;font-weight:normal;line-height:30px;margin:30px 0 0;padding:0;text-align:left;">
207 <?php esc_html_e( 'Cheers,', 'defender-security' ); ?>
208 <br/>
209 <?php echo esc_html( $dashboard_whitelabel->get_footer_text() ); ?>
210 </p>
211 <?php endif; ?>
212 <!--End Cheers block-->
213 </div>
214 </td>
215 </tr>
216 </tbody>
217 </table>
218 </div>
219 <!--[if mso | IE]></td></tr></table><![endif]-->
220 </td>
221 </tr>
222 </tbody>
223 </table>
224 </div>
225 <!--[if mso | IE]></td></tr></table><![endif]-->
226 <!-- END Main content -->
227
228 <!-- Footer -->
229 <?php if ( ! $can_whitelabel ) : ?>
230 <!--[if mso | IE]>
231 <table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600">
232 <tr>
233 <td style="line-height:0;font-size:0;mso-line-height-rule:exactly;"><![endif]-->
234 <div style="background:#E7F1FB;background-color:#E7F1FB;margin:0 auto;border-radius:0 0 15px 15px;max-width:600px;">
235 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
236 style="background:#E7F1FB;background-color:#E7F1FB;width:100%;border-radius:0 0 15px 15px;">
237 <tbody>
238 <tr>
239 <td style="direction:ltr;font-size:0;padding:20px 0;text-align:center;">
240 <!--[if mso | IE]>
241 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
242 <tr>
243 <td class="" style="vertical-align:top;width:600px;"><![endif]-->
244 <div class="mj-column-per-100 mj-outlook-group-fix"
245 style="font-size:0;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
246 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
247 style="vertical-align:top;" width="100%">
248 <tbody>
249 <tr>
250 <td align="center" style="font-size:0;padding:10px 25px;word-break:break-word;">
251 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
252 style="border-collapse:collapse;border-spacing:0;">
253 <tbody>
254 <tr>
255 <td style="width:168px;">
256 <img height="30" width="170"
257 src="<?php echo esc_url( defender_asset_url( '/assets/email-images/wpmudev-logo@2x.png' ) ); ?>"
258 style="border:0;display:block;outline:none;text-decoration:none;height:30px;width:170px;font-size:13px;"/>
259 </td>
260 </tr>
261 </tbody>
262 </table>
263 </td>
264 </tr>
265 </tbody>
266 </table>
267 </div>
268 <!--[if mso | IE]></td></tr></table><![endif]-->
269 </td>
270 </tr>
271 </tbody>
272 </table>
273 </div>
274 <!--[if mso | IE]></td></tr></table>
275 <table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600">
276 <tr>
277 <td style="line-height:0;font-size:0;mso-line-height-rule:exactly;"><![endif]-->
278 <div style="margin:0 auto;max-width:600px;">
279 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
280 <tbody>
281 <tr>
282 <td style="direction:ltr;font-size:0;padding:25px 20px 15px;text-align:center;">
283 <!--[if mso | IE]>
284 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
285 <tr>
286 <td class="" style="vertical-align:top;width:560px;"><![endif]-->
287 <div class="mj-column-per-100 mj-outlook-group-fix"
288 style="font-size:0;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
289 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
290 style="vertical-align:top; line-height:normal;" width="100%">
291 <tbody>
292 <tr>
293 <td align="center" style="font-size:0;padding:0;word-break:break-word;">
294 <!--[if mso | IE]>
295 <table align="center" border="0" cellpadding="0" cellspacing="0"
296 role="presentation">
297 <tr>
298 <td><![endif]-->
299 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
300 style="float:none;display:inline-table;">
301 <tr class="hidden-img">
302 <td style="padding:1px;vertical-align:middle;">
303 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
304 style="background:transparent;border-radius:3px;width:0;">
305 <tr>
306 <td style="font-size:0;height:0;vertical-align:middle;width:0;">
307 <img height="0" style="border-radius:3px;display:block;"
308 width="0"/>
309 </td>
310 </tr>
311 </table>
312 </td>
313 <td style="vertical-align:middle;">
314 <span style="color:#333333;font-size:13px;font-weight:700;font-family:Roboto, Arial, sans-serif;line-height:25px;text-decoration:none;">
315 <?php
316 esc_html_e(
317 'Follow us',
318 'defender-security'
319 );
320 ?>
321 </span>
322 </td>
323 </tr>
324 </table>
325 <!--[if mso | IE]></td>
326 <td><![endif]-->
327 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
328 style="float:none;display:inline-table;">
329 <tr>
330 <td style="padding:1px;vertical-align:middle;">
331 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
332 style="background:transparent;border-radius:3px;width:25px;">
333 <tr>
334 <td style="font-size:0;height:25px;vertical-align:middle;text-align:center;width:25px;">
335 <a href="https://www.facebook.com/wpmudev" target="_blank"
336 style="display:inline-block;">
337 <img height="14" width="7"
338 src="<?php echo esc_url( defender_asset_url( '/assets/email-images/icon-fb.png' ) ); ?>"
339 style="width:7px;height:14px;border-radius:3px;display:block;"/>
340 </a>
341 </td>
342 </tr>
343 </table>
344 </td>
345 </tr>
346 </table>
347 <!--[if mso | IE]></td>
348 <td><![endif]-->
349 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
350 style="float:none;display:inline-table;">
351 <tr>
352 <td style="padding:1px;vertical-align:middle;">
353 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
354 style="background:transparent;border-radius:3px;width:25px;">
355 <tr>
356 <td style="font-size:0;height:25px;vertical-align:middle;text-align:center;width:25px;">
357 <a href="https://www.instagram.com/wpmu_dev/"
358 target="_blank" style="display:inline-block;">
359 <img height="14" width="14"
360 src="<?php echo esc_url( defender_asset_url( '/assets/email-images/icon-instagram.png' ) ); ?>"
361 style="width:14px;height:14px;border-radius:3px;display:block;"/>
362 </a>
363 </td>
364 </tr>
365 </table>
366 </td>
367 </tr>
368 </table>
369 <!--[if mso | IE]></td>
370 <td><![endif]-->
371 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
372 style="float:none;display:inline-table;">
373 <tr>
374 <td style="padding:1px;vertical-align:middle;">
375 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
376 style="background:transparent;border-radius:3px;width:25px;">
377 <tr>
378 <td style="font-size:0;height:25px;vertical-align:middle;text-align:center;width:25px;">
379 <a href="https://twitter.com/wpmudev" target="_blank"
380 style="display:inline-block;">
381 <img height="12" width="13"
382 src="<?php echo esc_url( defender_asset_url( '/assets/email-images/icon-twitter.png' ) ); ?>"
383 style="width:13px;height:12px;border-radius:3px;display:block;"/>
384 </a>
385 </td>
386 </tr>
387 </table>
388 </td>
389 </tr>
390 </table>
391 <!--[if mso | IE]></td></tr></table><![endif]-->
392 </td>
393 </tr>
394 </tbody>
395 </table>
396 </div>
397 <!--[if mso | IE]></td></tr></table><![endif]-->
398 </td>
399 </tr>
400 </tbody>
401 </table>
402 </div>
403 <?php endif; ?>
404 <!--[if mso | IE]></td></tr></table>
405 <table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600">
406 <tr>
407 <td style="line-height:0;font-size:0;mso-line-height-rule:exactly;"><![endif]-->
408 <div style="margin:0 auto;max-width:600px;">
409 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
410 <tbody>
411 <tr>
412 <td style="direction:ltr;font-size:0;padding:0;text-align:center;">
413 <!--[if mso | IE]>
414 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
415 <tr>
416 <td class="" style="vertical-align:top;width:600px;"><![endif]-->
417 <div class="mj-column-per-100 mj-outlook-group-fix"
418 style="font-size:0;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
419 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;"
420 width="100%">
421 <tbody>
422 <tr>
423 <td align="center" style="font-size:0;padding:0 0 15px;word-break:break-word;">
424 <?php if ( ! $can_whitelabel ) : ?>
425 <div style="font-family:Roboto, Arial, sans-serif;font-size:10px;letter-spacing:-.25px;line-height:30px;text-align:center;color:#505050;">
426 INCSUB PO BOX 163, ALBERT PARK, VICTORIA.3206 AUSTRALIA
427 </div>
428 <?php endif; ?>
429 <!-- Unsubscribe section -->
430 <?php if ( is_string( $unsubscribe_link ) && '' !== trim( $unsubscribe_link ) ) : ?>
431 <div style="font-family:Roboto, Arial, sans-serif;font-size:10px;letter-spacing:-.25px;line-height:30px;text-align:center;color:#505050;">
432 <a href="<?php echo esc_url( $unsubscribe_link ); ?>"
433 style="color: #000!important;text-decoration-line:underline!important;font-weight: 400!important;">
434 <?php
435 esc_html_e(
436 'Unsubscribe',
437 'defender-security'
438 );
439 ?>
440 </a>
441 </div>
442 <?php endif; ?>
443 <!-- End Unsubscribe -->
444 </td>
445 </tr>
446 <tr>
447 <td align="center" style="font-size:0;padding:0 0 25px;word-break:break-word;">
448 <div style="font-family:Roboto, Arial, sans-serif;font-size:10px;letter-spacing:-.25px;line-height:30px;text-align:center;color:#1A1A1A;"></div>
449 </td>
450 </tr>
451 </tbody>
452 </table>
453 </div>
454 <!--[if mso | IE]></td></tr></table><![endif]-->
455 </td>
456 </tr>
457 </tbody>
458 </table>
459 </div>
460 <!--[if mso | IE]></td></tr></table><![endif]-->
461 <!-- END footer -->
462 </body>
463 </html>
464