PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.6.0
Defender Security – Malware Scanner, Login Security & Firewall v5.6.0
6.3.0 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 All 141 releases
defender-security / src / view / email / scan-issue-list.php

scan-issue-list.php in Defender Security – Malware Scanner, Login Security & Firewall 5.6.0, at src/view/email/scan-issue-list.php

143 lines 6.4 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 list of scan issues in email.
4 *
5 * @package WP_Defender
6 */
7
8 $abandoned_plugins_html = '';
9 $other_issues_html = '';
10 $abandoned_types = \WP_Defender\Model\Scan::get_abandoned_types();
11 $abs_path = untrailingslashit( ABSPATH );
12
13 foreach ( $issues as $item ) {
14 $detail = $item->to_array();
15 $full_path = '';
16 if ( ! empty( $detail['full_path'] ) ) {
17 $full_path = esc_html( $detail['full_path'] );
18 if ( 0 === strpos( $full_path, $abs_path ) ) {
19 $full_path = $abs_path . '<span>' . substr( $full_path, strlen( $abs_path ) ) . '</span>';
20 }
21 }
22
23 if ( in_array( $item->type, $abandoned_types, true ) ) {
24 $file_name = esc_html( $detail['file_name'] );
25 $short_desc = esc_html( $detail['short_desc'] );
26 $abandoned_plugins_html .= '<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top">
27 <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.23px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top">
28 <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-left: 20px;">
29 ' . esc_html( $file_name ) . '
30 </span>
31 </td>
32 <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.25px;margin: 0;padding: 18px 0;vertical-align: top">
33 <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;">
34 ' . esc_html( $short_desc ) . '
35 </span>
36 </td>
37 </tr>';
38 } else {
39 $other_issues_html .= '<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top">
40 <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.23px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top">
41 <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-left: 20px;">
42 ' . esc_html( $detail['file_name'] ) . '
43 <span class="report-list-item-path" style="display: inline-block; width: 100%;">' . wp_kses( $full_path, array( 'span' => array() ) ) . '</span>
44 </span>
45 </td>
46 <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.25px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top">
47 <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;">' . esc_html( $detail['short_desc'] ) . '</span>
48 </td>
49 </tr>';
50 }
51 }
52
53 if ( ! empty( $other_issues_html ) ) : ?>
54 <table class="reports-list" align="center"
55 style="border-collapse: collapse;border-spacing: 0;margin: 0 0 30px;padding: 0;text-align: left;vertical-align: top;width: 100%">
56 <thead>
57 <tr>
58 <th style="padding-left: 20px;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: left; background-color: #F2F2F2; border-radius: 4px 0 0 0; overflow:hidden;">
59 <?php esc_html_e( 'File', 'defender-security' ); ?>
60 </th>
61 <th style="padding-right: 20px;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: right; width:180px; background-color: #F2F2F2; border-radius: 0 4px 0 0; overflow:hidden;">
62 <?php esc_html_e( 'Issue', 'defender-security' ); ?>
63 </th>
64 </tr>
65 </thead>
66 <tbody>
67 <?php
68 echo wp_kses(
69 $other_issues_html,
70 array(
71 'tr' => array(
72 'class' => array(),
73 'style' => array(),
74 ),
75 'td' => array(
76 'class' => array(),
77 'style' => array(),
78 ),
79 'span' => array(
80 'class' => array(),
81 'style' => array(),
82 ),
83 )
84 );
85 ?>
86 </tbody>
87 </table>
88 <?php endif; if ( ! empty( $abandoned_plugins_html ) ) : ?>
89 <div style="margin-top: 30px;">
90 <table class="abandoned-plugins-list" align="center"
91 style="border-collapse: collapse;border-spacing: 0;margin: 0 0 20px;padding: 0;text-align: left;vertical-align: top;width: 100%">
92 <thead>
93 <tr>
94 <th style="padding-left: 20px;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: left; background-color: #F2F2F2; border-radius: 4px 0 0 0; overflow:hidden;">
95 <?php esc_html_e( 'Plugin', 'defender-security' ); ?>
96 </th>
97 <th style="padding-right: 20px;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: right; width:180px; background-color: #F2F2F2; border-radius: 0 4px 0 0; overflow:hidden;">
98 <?php esc_html_e( 'Issue', 'defender-security' ); ?>
99 </th>
100 </tr>
101 </thead>
102 <tbody>
103 <?php
104 echo wp_kses(
105 $abandoned_plugins_html,
106 array(
107 'tr' => array(
108 'class' => array(),
109 'style' => array(),
110 ),
111 'td' => array(
112 'class' => array(),
113 'style' => array(),
114 ),
115 'span' => array(
116 'class' => array(),
117 'style' => array(),
118 ),
119 )
120 );
121 ?>
122 </tbody>
123 </table>
124 </div>
125 <?php endif; ?>
126 <p style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 10px;margin: 0;padding: 0;text-align: center">
127 <a href="
128 <?php
129 echo esc_url(
130 apply_filters(
131 'report_email_logs_link',
132 network_admin_url( 'admin.php?page=wdf-scan' ),
133 $email
134 )
135 );
136 ?>
137 "
138 class="button view-full"
139 style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 20px;text-align: center; margin-bottom:0;">
140 <?php esc_html_e( 'View Full Report', 'defender-security' ); ?>
141 </a>
142 </p>
143