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

/**
 * Plain Text Template: Account Reactivated Email
 *
 * Sent to the user when their account is reactivated by an admin.
 *
 * @var string   $email_heading
 * @var string   $user_name
 * @var string   $user_email
 * @var string   $site_title
 * @var bool     $sent_to_admin
 * @var bool     $plain_text
 * @var WC_Email $email
 */

echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
echo esc_html( wp_strip_all_tags( $email_heading ) );
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";

/* Greeting */
printf(
	// translators: %s: User name.
	esc_html__( 'Hello %s,', 'gigneo' ),
	esc_html( $user_name )
);
echo "\n\n";

/* Introduction */
printf(
	// translators: %s: Site title.
	esc_html__( 'We are pleased to inform you that your account has been successfully reactivated on %s.', 'gigneo' ),
	esc_html( $site_title )
);
echo "\n\n";

/* Section heading */
echo esc_html__( 'Account details', 'gigneo' );
echo "\n----------\n\n";

/* Username */
echo esc_html__( 'Username:', 'gigneo' ) . ' ' . esc_html( $user_name );
echo "\n";

/* Email address */
echo esc_html__( 'Email address:', 'gigneo' ) . ' ' . esc_html( $user_email );
echo "\n\n";

/* Access note */
echo esc_html__( 'You can now access your account using your existing credentials and resume utilizing all the features available on the platform.', 'gigneo' );
echo "\n\n";

/* CTA link */
echo esc_html__( 'Visit your account:', 'gigneo' ) . ' ' . esc_url( gigneo_dashboard_url( 'account', 'overview' ) );
echo "\n\n";

/* Closing note */
echo esc_html__( 'We value your continued trust and are delighted to have you back as part of our community.', 'gigneo' );
echo "\n\n";


// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_footer', $email );
