diff --git a/src/views/emails/confirmation.php b/src/views/emails/confirmation.php index fe02c03ec9..99b9ff8d42 100644 --- a/src/views/emails/confirmation.php +++ b/src/views/emails/confirmation.php @@ -35,4 +35,6 @@ $this->template( 'template-parts/body/additional-content' ); +$this->template( 'template-parts/body/unsubscribe' ); + $this->template( 'template-parts/footer' ); diff --git a/src/views/emails/spot-available.php b/src/views/emails/spot-available.php index 1d81455978..5fedfc0b6d 100644 --- a/src/views/emails/spot-available.php +++ b/src/views/emails/spot-available.php @@ -35,4 +35,6 @@ $this->template( 'template-parts/body/additional-content' ); +$this->template( 'template-parts/body/unsubscribe' ); + $this->template( 'template-parts/footer' ); diff --git a/src/views/emails/template-parts/body/unsubscribe.php b/src/views/emails/template-parts/body/unsubscribe.php new file mode 100644 index 0000000000..a221d96f11 --- /dev/null +++ b/src/views/emails/template-parts/body/unsubscribe.php @@ -0,0 +1,43 @@ + Body > Unsubscribe. + * + * Override this template in your own theme by creating a file at: + * [your-theme]/tribe/tickets/emails/template-parts/body/unsubscribe.php + * + * See more documentation about our views templating system. + * + * @link https://evnt.is/tickets-emails-tpl Help article for Tickets Emails template files. + * + * @version TBD + * + * @since TBD + * + * @var Subscriber $subscriber The post object with properties. + */ + +use TEC\Tickets_Plus\Waitlist\Subscriber; + +if ( empty( $subscriber ) ) { + return; +} + +if ( ! $subscriber instanceof Subscriber ) { + return; +} + +?> +
+ get_unsubscribe_url() ) . '" target="_blank" rel="noopener noreferrer">', + '' + ); + ?> +
+