Forráskód Böngészése

unsubscribe-url in simplenews template

bach 2 éve
szülő
commit
16cd0ec856

+ 20 - 12
web/themes/custom/materiotheme/templates/email--simplenews-newsletter.html.twig

@@ -82,20 +82,28 @@
         </tbody>
     </table>
 
-{% if not opt_out_hidden %}
-    {% if format == 'html' %}
-        <p class="newsletter-footer"><a
-                    href="[simplenews-subscriber:unsubscribe-url]">{{ unsubscribe_text }}</a>
-        </p>
-    {% else %}
-        -- {{ unsubscribe_text }} : [simplenews-subscriber:unsubscribe-url]
+    <p class="newsletter-footer">
+      <a href="[simplenews-subscriber:unsubscribe-url]">{{ unsubscribe_text }}</a>
+    </p>
+    {#
+    {% if not opt_out_hidden %}
+        {% if format == 'html' %}
+            <p class="newsletter-footer"><a
+                        href="[simplenews-subscriber:unsubscribe-url]">{{ unsubscribe_text }}</a>
+            </p>
+        {% 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 %}
         <p id="footer_address" style="color:#444444; text-align: center; margin: 20px 20px 0; line-height:1; font-size:10px; ">
           matériO SAS<br>8, rue Chaptal<br>75009 Paris<br><a href="https://materio.com" style="color:#444444">materio.com</a>
         </p>