marketing-confirmation.php
64 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | |
| 5 | |
| 6 | /** |
| 7 | * Marketing Confirmation Email Template (Blocks) |
| 8 | * |
| 9 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/block/marketing-confirmation.php. |
| 10 | * |
| 11 | * @package MailPoet |
| 12 | * @version 1.0.0 |
| 13 | */ |
| 14 | |
| 15 | defined('ABSPATH') || exit; |
| 16 | |
| 17 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen -- removed to prevent empty new lines. |
| 18 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentAfterEnd -- removed to prevent empty new lines. |
| 19 | // phpcs:disable Generic.Files.InlineHTML.Found |
| 20 | ?> |
| 21 | |
| 22 | <!-- wp:heading {"level":1,"textAlign":"center"} --> |
| 23 | <h1 class="wp-block-heading has-text-align-center"><?php |
| 24 | /* translators: %s: Site title */ |
| 25 | printf(esc_html__('Confirm your subscription to %s', 'mailpoet'), '<!--[woocommerce/site-title]-->'); |
| 26 | ?></h1> |
| 27 | <!-- /wp:heading --> |
| 28 | |
| 29 | <!-- wp:paragraph --> |
| 30 | <p> |
| 31 | <?php |
| 32 | echo sprintf( |
| 33 | /* translators: %s: Subscriber first name */ |
| 34 | esc_html__('Hello %s,', 'mailpoet'), |
| 35 | sprintf( |
| 36 | '<!--[mailpoet/subscriber-firstname default="%s"]-->', |
| 37 | /* translators: %s: Default placeholder used when no subscriber name is available, e.g. "Hello there" */ |
| 38 | esc_html(_x('there', 'subscriber name placeholder', 'mailpoet')) |
| 39 | ) |
| 40 | ); |
| 41 | ?> |
| 42 | <br> |
| 43 | <?php |
| 44 | /* translators: %s: Site title */ |
| 45 | printf(esc_html__('You\'ve received this message because you subscribed to %s. Please confirm your subscription to receive emails from us:', 'mailpoet'), '<!--[woocommerce/site-title]-->'); |
| 46 | ?></p> |
| 47 | <!-- /wp:paragraph --> |
| 48 | |
| 49 | <!-- wp:buttons --> |
| 50 | <div class="wp-block-buttons"><!-- wp:button --> |
| 51 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="[mailpoet/subscriber-activation-link]"><?php echo esc_html__('Click here to confirm your subscription', 'mailpoet'); ?></a></div> |
| 52 | <!-- /wp:button --></div> |
| 53 | <!-- /wp:buttons --> |
| 54 | |
| 55 | <!-- wp:paragraph --> |
| 56 | <p><?php echo esc_html__('Thank you,', 'mailpoet'); ?><br> |
| 57 | <a href="[woocommerce/site-homepage-url]"><!--[woocommerce/site-title]--></a></p> |
| 58 | <!-- /wp:paragraph --> |
| 59 | |
| 60 | <!-- wp:paragraph {"fontSize":"small"} --> |
| 61 | <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> |
| 62 | <!-- /wp:paragraph --> |
| 63 | |
| 64 |