marketing-confirmation.php
57 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | |
| 5 | |
| 6 | /** |
| 7 | * Marketing Confirmation Email Template (Plain) |
| 8 | * |
| 9 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/marketing-confirmation.php. |
| 10 | * |
| 11 | * @var WC_Email $email |
| 12 | * @var string $email_heading |
| 13 | * @var string $subscriber_firstname |
| 14 | * @var string $activation_link |
| 15 | * @var string $additional_content |
| 16 | * |
| 17 | * @package MailPoet |
| 18 | * @version 1.0.0 |
| 19 | */ |
| 20 | |
| 21 | if (!defined('ABSPATH')) { |
| 22 | exit; |
| 23 | } |
| 24 | |
| 25 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 26 | echo esc_html($email_heading); |
| 27 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 28 | |
| 29 | if ($subscriber_firstname) { |
| 30 | /* translators: %s: Subscriber first name */ |
| 31 | echo esc_html(sprintf(__('Hello %s,', 'mailpoet'), $subscriber_firstname)); |
| 32 | } else { |
| 33 | echo esc_html(__('Hello there,', 'mailpoet')); |
| 34 | } |
| 35 | echo "\n\n"; |
| 36 | |
| 37 | /* translators: %s: Site name */ |
| 38 | echo esc_html(sprintf(__('You\'ve received this message because you subscribed to %s. Please confirm your subscription to receive emails from us:', 'mailpoet'), get_bloginfo('name'))); |
| 39 | echo "\n\n"; |
| 40 | |
| 41 | esc_html_e('Click here to confirm your subscription:', 'mailpoet'); |
| 42 | echo "\n"; |
| 43 | echo esc_url($activation_link); |
| 44 | echo "\n\n"; |
| 45 | |
| 46 | esc_html_e('Thank you,', 'mailpoet'); |
| 47 | echo "\n"; |
| 48 | echo esc_html(get_bloginfo('name')); |
| 49 | echo "\n"; |
| 50 | echo esc_url(home_url()); |
| 51 | |
| 52 | if ($additional_content) { |
| 53 | echo "\n\n" . esc_html(wp_strip_all_tags($additional_content)); |
| 54 | } |
| 55 | |
| 56 | echo "\n\n" . esc_html__('If you received this email by mistake, simply delete it. You won\'t receive any more emails from us unless you confirm your subscription using the link above.', 'mailpoet'); |
| 57 |