| 1 |
<?php |
| 2 |
/** |
| 3 |
* Mail template for Subscription status changed (Admin). |
| 4 |
* |
| 5 |
* @var string $email_heading Email Heading. |
| 6 |
* @var string $old_status Readable Old Status of Subscription. |
| 7 |
* @var string $new_status Readable New Status of Subscription. |
| 8 |
* @var int $id Subscription id. |
| 9 |
* @var string $product_name Product name. |
| 10 |
* @var int $qty Subscription Quantity. |
| 11 |
* @var string $amount Subscription Amount with price format. |
| 12 |
* @var string $next_date Next payment date. |
| 13 |
*/ |
| 14 |
|
| 15 |
echo esc_html( '= ' . $email_heading . " =\n\n" ); |
| 16 |
|
| 17 |
// translators: first is older status and last is newly updated status. |
| 18 |
$opening_paragraph = __( 'Subscription status changed from %1$s to %2$s', 'sdevs_subscrpt' ); |
| 19 |
|
| 20 |
echo esc_html( sprintf( $opening_paragraph, $old_status, $new_status ) . "\n\n" ); |
| 21 |
|
| 22 |
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 23 |
|
| 24 |
// translators: Subscription id. |
| 25 |
echo esc_html( sprintf( __( 'Subscription Id: %s', 'sdevs_subscrpt' ), $id ) . "\n" ); |
| 26 |
|
| 27 |
// translators: Product name. |
| 28 |
echo esc_html( sprintf( __( 'Product: %s', 'sdevs_subscrpt' ), $product_name ) . "\n" ); |
| 29 |
|
| 30 |
// translators: Subscription quantity. |
| 31 |
echo esc_html( sprintf( __( 'Qty: %s', 'sdevs_subscrpt' ), $qty ) . "\n" ); |
| 32 |
|
| 33 |
// translators: Subscription amount. |
| 34 |
echo wp_kses_post( sprintf( __( 'Amount: %s', 'sdevs_subscrpt' ), $amount ) . "\n" ); |
| 35 |
|
| 36 |
|
| 37 |
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 38 |
|
| 39 |
echo wp_kses_post( |
| 40 |
make_clickable( |
| 41 |
sprintf( |
| 42 |
// translators: subscription id. |
| 43 |
__( 'You can view and edit this subscription in the dashboard here: %s', 'sdevs_subscrpt' ), |
| 44 |
admin_url( 'post.php?post=' . $id . '&action=edit' ) |
| 45 |
) |
| 46 |
) |
| 47 |
); |
| 48 |
echo esc_html( "\n\n" ); |
| 49 |
|
| 50 |
echo esc_html( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 51 |
|