# ablocks/2.14.0/templates/email/new-subscriber.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.14.0. 36 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.14.0/code/templates/email/new-subscriber.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.14.0/raw/templates/email/new-subscriber.php
- Modified: 2025-03-06T07:54:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.14.0/code/templates/email/new-subscriber.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

	\ABlocks\Helper::get_template( 'email/template-header.php' );
?>
<div class="ablocks-container">
	<div class="ablocks-content"> 
		<div class="ablocks-wrapper">
			<h5 class="ablocks-main-heading"><?php esc_html_e( 'You have a new subscriber', 'ablocks' ); ?></h5>
			<div class="ablocks-entry-content">
				<p><strong><?php esc_html_e( 'You have a new subscriber from form submission!', 'ablocks' ); ?></strong></p>
				<p><strong><?php esc_html_e( 'Email', 'ablocks' ); ?>:</strong> <?php echo esc_html( $email ); ?></p>
				<p><?php esc_html_e( 'To manage your subscribers or contacts, log in to your WordPress admin dashboard.', 'ablocks' ); ?></p>	
			</div>
			<div class="ablocks-footer">
				&copy; <?php
						$url = wp_parse_url( get_bloginfo( 'url' ) );

						// Ensure 'host' exists and set default for 'port' if missing
						$host = isset( $url['host'] ) ? sanitize_text_field( $url['host'] ) : '';
						$port = isset( $url['port'] ) ? sanitize_text_field( (string) $url['port'] ) : '80';

						// Output the sanitized host and port
						echo esc_html( $host . ':' . $port );
				?>

				<?php // here is the footer	?>
			</div>
		</td>
	</div>
</div>
<?php
	\ABlocks\Helper::get_template( 'email/template-footer.php' );

```
