woocommerce-subscriptions/templates/emails/plain/customer-notification-manua...

78 lines
2.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Customer Notification: Manual renewal needed. Plain text version.
*
* @package WooCommerce_Subscriptions/Templates/Emails/Plain
* @version 7.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
echo esc_html( $email_heading . "\n" );
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
echo esc_html(
sprintf(
/* translators: %s: Customer first name */
__( 'Hi %s.', 'woocommerce-subscriptions' ),
$subscription->get_billing_first_name()
)
);
echo "\n\n";
echo esc_html(
sprintf(
// translators: %1$s: human readable time difference (eg 3 days, 1 day), %2$s: date in local format.
__(
'Your subscription is up for renewal in %1$s — thats %2$s.',
'woocommerce-subscriptions'
),
$subscription_time_til_event,
$subscription_event_date
)
);
echo "\n\n";
esc_html_e( 'This subscription will not renew automatically.', 'woocommerce-subscriptions' );
echo "\n";
if ( $can_renew_early ) {
esc_html_e(
'You can renew it manually in a few short steps via the Subscriptions tab in your account dashboard.',
'woocommerce-subscriptions'
);
}
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
if ( $can_renew_early ) {
esc_html_e( 'Renew my subscription: ', 'woocommerce-subscriptions' );
echo esc_url( $url_for_renewal );
} else {
esc_html_e( 'Manage my subscription: ', 'woocommerce-subscriptions' );
echo esc_url( $url_for_renewal );
}
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
// Show subscription details.
\WC_Subscriptions_Email::subscription_details( $subscription, $order, $sent_to_admin, $plain_text );
/** This action is documented in templates/emails/customer-notification-auto-renewal.php */
do_action( 'woocommerce_subscriptions_email_order_details', $subscription, $sent_to_admin, $plain_text, $email );
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
/**
* Show user-defined additional content - this is set in each email's settings.
*/
if ( $additional_content ) {
echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
}
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );