| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template used to display a message on the email verification endpoint |
| 4 |
* when the email was not verified. |
| 5 |
* |
| 6 |
* Override this template by copying it to yourtheme/charitable/account/email-not-verified.php |
| 7 |
* |
| 8 |
* @author David Bisset |
| 9 |
* @package Charitable/Templates/Account |
| 10 |
* @since 1.5.0 |
| 11 |
* @version 1.6.57 |
| 12 |
*/ |
| 13 |
|
| 14 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
$redirect = array_key_exists( 'redirect_url', $_GET ) ? esc_html( $_GET['redirect_url'] ) : false; // phpcs:ignore |
| 20 |
$user = get_user_by( 'login', esc_html( $_GET['login'] ) ); // phpcs:ignore |
| 21 |
|
| 22 |
if ( ! empty( $user ) ) { |
| 23 |
$link = charitable_get_email_verification_link( $user, $redirect, true ); // phpcs:ignore |
| 24 |
} |
| 25 |
|
| 26 |
?> |
| 27 |
<p><?php esc_html_e( 'We were unable to verify your email address.', 'charitable' ); ?></p> |
| 28 |
<?php if ( ! empty( $user ) ) : ?> |
| 29 |
<p><a href="<?php echo esc_url_raw( $link ); ?>"><?php esc_html_e( 'Resend verification email', 'charitable' ); ?></a></p> |
| 30 |
<?php endif ?> |
| 31 |
|