Skip to content

Commit

Permalink
update logo handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Jun 30, 2022
1 parent d6e4325 commit 024d900
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 4 deletions.
5 changes: 5 additions & 0 deletions templates/NSWDPC/StructuredEmail/Includes/ContentLogo.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% with $Top.EmailDecorator %>
<% if $ContentLogo %>
<div class="email-contentlogo"><img src="{$ContentLogo}" border="0" height="76"></div>
<% end_if %>
<% end_with %>
4 changes: 4 additions & 0 deletions templates/NSWDPC/StructuredEmail/Includes/Header.ss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@
<td class="content-cell">

<div class="f-fallback">

<!-- contentlogo -->
<% include NSWDPC/StructuredEmail/ContentLogo %>
<!-- end contentlogo -->
4 changes: 2 additions & 2 deletions templates/NSWDPC/StructuredEmail/Includes/Masthead.ss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<div class="f-fallback email-masthead_name">
<% if $MastheadLink %>
<% if $MastheadLogo %>
<img class="email-masthead_logo" src="{$MastheadLogo}" border="0" height="73">
<img class="email-masthead_logo" src="{$MastheadLogo}" border="0" height="48">
<% end_if %>
<p><a href="{$MastheadLink.XML}"><span>{$Masthead.XML}<% if $Top.EmailReason %> - {$Top.EmailReason.XML}<% end_if %></span></a></p>
<% else %>
<% if $MastheadLogo %>
<img class="email-masthead_logo" src="{$MastheadLogo}" border="0" height="73">
<img class="email-masthead_logo" src="{$MastheadLogo}" border="0" height="48">
<% end_if %>
<p><span>{$Masthead.XML}<% if $Top.EmailReason %> - {$Top.EmailReason.XML}<% end_if %></span></p>
<% end_if %>
Expand Down
1 change: 1 addition & 0 deletions templates/NSWDPC/StructuredEmail/Includes/Style_basic.ss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}

<% include NSWDPC/StructuredEmail/Styles_masthead %>
<% include NSWDPC/StructuredEmail/Styles_contentlogo %>

/* Body ------------------------------ */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}

<% include NSWDPC/StructuredEmail/Styles_masthead %>
<% include NSWDPC/StructuredEmail/Styles_contentlogo %>

/* Body ------------------------------ */

Expand Down
1 change: 1 addition & 0 deletions templates/NSWDPC/StructuredEmail/Includes/Style_plain.ss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

<% include NSWDPC/StructuredEmail/Styles_masthead %>
<% include NSWDPC/StructuredEmail/Styles_contentlogo %>

/* Body ------------------------------ */

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Content Logo ----------------------- */
.email-contentlogo {
padding: 0 0 25px 0;
text-align: center;
}
4 changes: 2 additions & 2 deletions templates/NSWDPC/StructuredEmail/Includes/Styles_masthead.ss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* Masthead ----------------------- */

.email-masthead {
padding: 25px 0;
padding: 12px 0;
text-align: center;
background-color : {$PrimaryColor};
color: {$PrimaryTextColor};
}

.email-masthead .email-masthead_name p {
margin : 0;
padding : 25px 0 0 0;
padding : 0;
}

.email-masthead .email-masthead_name a {
Expand Down

0 comments on commit 024d900

Please sign in to comment.