| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
\ABlocks\Helper::get_template( 'email/template-header.php' ); |
| 7 |
?> |
| 8 |
<div class="ablocks-container"> |
| 9 |
<div class="ablocks-content"> |
| 10 |
<div class="ablocks-wrapper"> |
| 11 |
<h5 class="ablocks-main-heading"><?php esc_html_e( 'You have a new subscriber', 'ablocks' ); ?></h5> |
| 12 |
<div class="ablocks-entry-content"> |
| 13 |
<p><strong><?php esc_html_e( 'You have a new subscriber from form submission!', 'ablocks' ); ?></strong></p> |
| 14 |
<p><strong><?php esc_html_e( 'Email', 'ablocks' ); ?>:</strong> <?php echo esc_html( $email ); ?></p> |
| 15 |
<p><?php esc_html_e( 'To manage your subscribers or contacts, log in to your WordPress admin dashboard.', 'ablocks' ); ?></p> |
| 16 |
</div> |
| 17 |
<div class="ablocks-footer"> |
| 18 |
© <?php |
| 19 |
$url = wp_parse_url( get_bloginfo( 'url' ) ); |
| 20 |
|
| 21 |
// Ensure 'host' exists and set default for 'port' if missing |
| 22 |
$host = isset( $url['host'] ) ? sanitize_text_field( $url['host'] ) : ''; |
| 23 |
$port = isset( $url['port'] ) ? sanitize_text_field( (string) $url['port'] ) : '80'; |
| 24 |
|
| 25 |
// Output the sanitized host and port |
| 26 |
echo esc_html( $host . ':' . $port ); |
| 27 |
?> |
| 28 |
|
| 29 |
<?php // here is the footer ?> |
| 30 |
</div> |
| 31 |
</td> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<?php |
| 35 |
\ABlocks\Helper::get_template( 'email/template-footer.php' ); |
| 36 |
|