| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
if ( empty( $keywords ) || ! is_array( $keywords ) ) { |
| 8 |
return; |
| 9 |
} |
| 10 |
?> |
| 11 |
|
| 12 |
<tr> |
| 13 |
<td style="text-align: left; font-size: 20px; padding-top: 40px;"> |
| 14 |
<?php esc_html_e( 'Most Searched Keywords', 'betterdocs' ); ?> |
| 15 |
</td> |
| 16 |
</tr> |
| 17 |
<tr> |
| 18 |
<td> |
| 19 |
<table style="width: 100%; border-collapse: separate; border-spacing: 2px; padding-top: 20px;"> |
| 20 |
<tr style="background: #fff;"> |
| 21 |
<th style="text-align: left; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px; width: 50%;"> |
| 22 |
<?php esc_html_e( 'Search Keyword', 'betterdocs' ); ?> |
| 23 |
</th> |
| 24 |
<th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px"> |
| 25 |
<?php esc_html_e( 'Total Search', 'betterdocs' ); ?> |
| 26 |
</th> |
| 27 |
<th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px"> |
| 28 |
<?php esc_html_e( 'Result Found', 'betterdocs' ); ?> |
| 29 |
</th> |
| 30 |
</tr> |
| 31 |
<?php |
| 32 |
foreach ( $keywords as $keyword ) { |
| 33 |
betterdocs()->views->get( |
| 34 |
'admin/email/analytics/parts/single-keyword', |
| 35 |
[ |
| 36 |
'keyword' => $keyword |
| 37 |
] |
| 38 |
); |
| 39 |
} |
| 40 |
?> |
| 41 |
</table> |
| 42 |
</td> |
| 43 |
</tr> |
| 44 |
|