block
10 months ago
plain
4 months ago
index.php
10 months ago
marketing-confirmation.php
4 months ago
marketing-confirmation.php
67 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | |
| 5 | |
| 6 | /** |
| 7 | * Marketing Confirmation Email Template |
| 8 | * |
| 9 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/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 | // @phpcs:disable Generic.Files.InlineHTML.Found |
| 26 | |
| 27 | /* |
| 28 | * @hooked WC_Emails::email_header() Output the email header |
| 29 | */ |
| 30 | do_action('woocommerce_email_header', $email_heading, $email); ?> |
| 31 | |
| 32 | <p> |
| 33 | <?php |
| 34 | if ($subscriber_firstname) { |
| 35 | /* translators: %s: Subscriber first name */ |
| 36 | echo esc_html(sprintf(__('Hello %s,', 'mailpoet'), $subscriber_firstname)); |
| 37 | } else { |
| 38 | echo esc_html(__('Hello there,', 'mailpoet')); |
| 39 | } |
| 40 | ?> |
| 41 | </p> |
| 42 | |
| 43 | <p> |
| 44 | <?php |
| 45 | /* translators: %s: Site name */ |
| 46 | 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'))); |
| 47 | ?> |
| 48 | </p> |
| 49 | |
| 50 | <p><a href="<?php echo esc_url($activation_link); ?>"><?php esc_html_e('Click here to confirm your subscription', 'mailpoet'); ?></a></p> |
| 51 | |
| 52 | <p><?php esc_html_e('Thank you,', 'mailpoet'); ?><br> |
| 53 | <a href="<?php echo esc_url(home_url()); ?>"><?php echo esc_html(get_bloginfo('name')); ?></a> |
| 54 | </p> |
| 55 | |
| 56 | <?php if ($additional_content) : ?> |
| 57 | <p><?php echo wp_kses_post($additional_content); ?></p> |
| 58 | <?php endif; ?> |
| 59 | |
| 60 | <p><?php echo 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'); ?></p> |
| 61 | |
| 62 | <?php |
| 63 | /* |
| 64 | * @hooked WC_Emails::email_footer() Output the email footer |
| 65 | */ |
| 66 | do_action('woocommerce_email_footer', $email); |
| 67 |