From d28c445e65f6bd067da05bb62e0fe5822986aea1 Mon Sep 17 00:00:00 2001 From: Pat Date: Mon, 2 Dec 2024 11:45:19 -0700 Subject: [PATCH 1/7] Newsletter: Fixes accidental hardcoded url --- templates/content/node--newsletter--email-html.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/content/node--newsletter--email-html.html.twig b/templates/content/node--newsletter--email-html.html.twig index d67aeb40..1cbb101c 100644 --- a/templates/content/node--newsletter--email-html.html.twig +++ b/templates/content/node--newsletter--email-html.html.twig @@ -483,7 +483,7 @@ {{ node.created.value|date("M. j, Y") }} - View on website + View on website From 088375106fb57e9877370cec9bd40434e16cc0cf Mon Sep 17 00:00:00 2001 From: Pat Date: Mon, 2 Dec 2024 15:47:58 -0700 Subject: [PATCH 2/7] Newsletter: Force footer link colors, remove empty elements for missing fields --- .../node--newsletter--email-html.html.twig | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/templates/content/node--newsletter--email-html.html.twig b/templates/content/node--newsletter--email-html.html.twig index 1cbb101c..9f23c018 100644 --- a/templates/content/node--newsletter--email-html.html.twig +++ b/templates/content/node--newsletter--email-html.html.twig @@ -86,7 +86,7 @@ {% set divStyles = 'background-color: black; color: #fff;margin:auto;' %} {% set aStyles = 'color: #cfb87b;;' %} {% set pStyles = 'color:#222330;' %} - {% set headerStyles = 'width:100%; color:white;margin-bottom:50px;' %} + {% set headerStyles = 'width:100%; color:white;' %} {# padding: 15px 25px; #} {% set footerStyles = 'color:white;border-top: solid 1px #cccccc;' %} {% set cuLogoSrc = cuLogoLight %} @@ -148,6 +148,10 @@ .ucb-email-footer-darkbox a { color: #cfb87b; } + .ucb-email-footer-lightbox a, + .ucb-email-footer-minimal { + color: #0277BD; + } .ucb-email-header-classic a:hover, .ucb-email-footer-classic a:hover, .ucb-email-header-simple a:hover, @@ -501,11 +505,12 @@ + {% if content.field_newsletter_intro_image|render or content.field_newsletter_intro_body|render%} + {% if content.field_newsletter_intro_image|render %} + + {% endif %} + {% if content.field_newsletter_intro_body|render %} + + {% endif %}
- {% if content.field_newsletter_intro_image|render %}
@@ -518,18 +523,19 @@
- {% endif %} -
- {% if content.field_newsletter_intro_body|render %}
{{ content.field_newsletter_intro_body }}
- {% endif %} -
+ {% endif %} {% if content.field_newsletter_section_block|render %} @@ -716,7 +722,7 @@ - From a4cf40d4e081830951dd467521bf713d322159ef Mon Sep 17 00:00:00 2001 From: Pat Date: Mon, 2 Dec 2024 16:21:45 -0700 Subject: [PATCH 3/7] Newsletter: adds additional image css to force iOS to do what we want --- .../content/node--newsletter--email-html.html.twig | 3 +++ ...ragraph--newsletter-section--email-html.html.twig | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/content/node--newsletter--email-html.html.twig b/templates/content/node--newsletter--email-html.html.twig index 9f23c018..848dc721 100644 --- a/templates/content/node--newsletter--email-html.html.twig +++ b/templates/content/node--newsletter--email-html.html.twig @@ -130,6 +130,9 @@ + {# This should override image issues on IOS #} + + {# This should override Outlook on Mac #}
+