<?php

/**
 * Login URL changed notification email body.
 *
 * Variables via $data array:
 * - $data['site_name'], $data['site_url'], $data['label']
 * - $data['new_login_url'] (string)
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$sitefort_new_login_url = isset( $data['new_login_url'] ) && is_scalar( $data['new_login_url'] )
	? (string) $data['new_login_url']
	: '';
$sitefort_site_name = isset( $data['site_name'] ) && is_scalar( $data['site_name'] )
	? sanitize_text_field( (string) $data['site_name'] )
	: 'your site';
?>
<h1>Login URL Changed</h1>

<p class="intro-copy">
	Anyone signing in to <?php echo esc_html( $sitefort_site_name ); ?> now needs the address below. The old address no longer works.
</p>

<table class="meta-table" role="presentation">
	<tr>
		<td class="meta-label">Site</td>
		<td class="meta-value"><a href="<?php echo esc_url( $data['site_url'] ?? '' ); ?>"><?php echo esc_html( $data['site_url'] ?? '' ); ?></a></td>
	</tr>
	<tr>
		<td class="meta-label">New Login URL</td>
		<td class="meta-value"><a href="<?php echo esc_url( $sitefort_new_login_url ); ?>"><?php echo esc_html( $sitefort_new_login_url ); ?></a></td>
	</tr>
</table>

<div class="alert-warn">
	Save this URL. You will need it to access your WordPress admin area.
</div>

<p>
	If you did not make this change, review administrator accounts and recent activity immediately.
</p>
