| 1 |
<table class="reports-list" align="center" style="border-collapse: collapse;border-spacing: 0;margin: 0 0 30px;padding: 0;text-align: left;vertical-align: top;width: 100%"> |
| 2 |
<thead> |
| 3 |
<tr> |
| 4 |
<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;"> |
| 5 |
<?php esc_html_e( "File",'wpdef' ); ?> |
| 6 |
</th> |
| 7 |
<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;"> |
| 8 |
<?php esc_html_e( "Issue", 'wpdef' ); ?> |
| 9 |
</th> |
| 10 |
</tr> |
| 11 |
</thead> |
| 12 |
<tbody> |
| 13 |
<?php |
| 14 |
$abs_path = untrailingslashit( ABSPATH ); |
| 15 |
foreach ( $issues as $k => $item ) { |
| 16 |
$detail = $item->to_array(); |
| 17 |
$full_path = ''; |
| 18 |
if ( ! empty( $detail['full_path'] ) ) { |
| 19 |
$full_path = $detail['full_path']; |
| 20 |
if ( 0 === strpos( $full_path, $abs_path ) ) { |
| 21 |
$full_path = $abs_path . '<span style="color:#17A8E3;">' . substr( $full_path, strlen( $abs_path ) ) . '</span>'; |
| 22 |
} |
| 23 |
} |
| 24 |
?> |
| 25 |
<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 26 |
<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"> |
| 27 |
<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;"> |
| 28 |
<?php echo $detail['file_name']; ?> |
| 29 |
<span |
| 30 |
style="display: inline-block; width: 100%;"><?php echo $full_path; ?></span> |
| 31 |
</span> |
| 32 |
</td> |
| 33 |
<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"> |
| 34 |
<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;"><?php echo $detail['short_desc']; ?></span> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<?php } ?> |
| 38 |
</tbody> |
| 39 |
</table> |
| 40 |
<p style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 10px;margin: 0;padding: 0;text-align: center"> |
| 41 |
<a href="<?php echo apply_filters( 'report_email_logs_link', network_admin_url( 'admin.php?page=wdf-scan' ), $email ); ?>" class="button" style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 20px;text-align: center; margin-bottom:0;"> |
| 42 |
<?php esc_html_e( 'View Full Report', 'wpdef' ); ?> |
| 43 |
</a> |
| 44 |
</p> |
| 45 |
|