From 16cd0ec856ad5adccbe084e77417549398183151 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 6 May 2022 01:02:54 +0200 Subject: [PATCH] unsubscribe-url in simplenews template --- .../email--simplenews-newsletter.html.twig | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/web/themes/custom/materiotheme/templates/email--simplenews-newsletter.html.twig b/web/themes/custom/materiotheme/templates/email--simplenews-newsletter.html.twig index b6a894ff..ce853977 100644 --- a/web/themes/custom/materiotheme/templates/email--simplenews-newsletter.html.twig +++ b/web/themes/custom/materiotheme/templates/email--simplenews-newsletter.html.twig @@ -82,20 +82,28 @@ -{% if not opt_out_hidden %} - {% if format == 'html' %} - - {% else %} - -- {{ unsubscribe_text }} : [simplenews-subscriber:unsubscribe-url] + + {# + {% if not opt_out_hidden %} + {% if format == 'html' %} + + {% else %} + -- {{ unsubscribe_text }} : [simplenews-subscriber:unsubscribe-url] + {% endif %} {% endif %} -{% endif %} - -{% if key == 'test' %} - - - - {{ test_message }} - - - -{% endif %} + + {% if key == 'test' %} + - - - {{ test_message }} - - - + {% endif %} + #} + {% if test %} + - - - this is a test message - - - + {% endif %}