<?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']
	: '';
?>
<h1>Login URL Changed</h1>

<div class="alert-info">
	The login URL for <?php echo esc_html( $data['site_name'] ?? 'your site' ); ?> has been changed.
</div>

<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 activity and contact your site administrator immediately.
</p>
