Skip to content

Commit

Permalink
Merge pull request #21 from jwade1327/sample-template
Browse files Browse the repository at this point in the history
Update footer logo for 'Sample' template
  • Loading branch information
Shinsina authored Jun 15, 2023
2 parents 642986d + 9138783 commit 82fb0c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/common/components/blocks/footer.marko
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ $ const tagline = get(newsletterConfig, "tagline");
$ const subscribeLink = get(newsletterConfig, "subscribeLink");
$ const publicationName = website.get("name");
$ const footerWidth = defaultValue(get(newsletterConfig, "logo.footerWidth"), 130);
$ const url = buildLinkUrl(website.get("origin"));
$ const logoFooterSrc = newsletterConfig.logo.footerSrc;
$ const alt = defaultValue(input.alt, newsletter.name);

$ const preferenceCenterUrl = buildLinkUrl(
get(newsletterConfig, "preferenceCenter"),
Expand Down Expand Up @@ -78,7 +81,19 @@ $ const stealthLinkStyle = {
<common-table-spacer-element height="18" />
<tr>
<td align="center" valign="top">
<common-logo-element newsletter=newsletter alt=publicationName width=footerWidth />
<if(logoFooterSrc)>
<marko-newsletter-imgix
src=logoFooterSrc
alt=alt
options={ w: 200 }
attrs={ width: 200 }
>
<@link href=url target="_blank" />
</marko-newsletter-imgix>
</if>
<else>
<common-logo-element newsletter=newsletter alt=publicationName width=footerWidth />
</else>
</td>
</tr>
<if(tagline)>
Expand Down
1 change: 1 addition & 0 deletions tenants/all/config/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const config = {
name: 'Sample',
logo: {
src: '/files/base/smg/all/image/static/drb/DrB_EmailHeader_Sample_v3.jpg',
footerSrc: '/files/base/smg/all/image/static/drb/DrBLogo_WhiteText.png',
footerWidth: 200,
},
preferenceCenter: 'https://www.drbicuspid.com/user/subscribe',
Expand Down

0 comments on commit 82fb0c3

Please sign in to comment.