Skip to content

Commit

Permalink
Merge pull request #66 from jwade1327/am-section
Browse files Browse the repository at this point in the history
Create RADCast section and ad in AM-LFTE
  • Loading branch information
Shinsina authored May 7, 2024
2 parents a435f32 + 19603d8 commit fae146d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
6 changes: 6 additions & 0 deletions tenants/all/config/email-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ config
.setAdUnits('am-lfte', [
{
name: 'ad-slot-1',
id: '663a7caddf81cf4fba80f612',
width: 300,
height: 250,
},
{
name: 'ad-slot-2',
id: '647e1b53f89e58ac004ca4f7',
width: 300,
height: 250,
Expand Down
33 changes: 31 additions & 2 deletions tenants/all/templates/am-lfte.marko
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,35 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({
<common-body-wrapper-block newsletter=newsletter date=date footer=input.footer>
<@body>

<!-- RADCast section -->
<common-content-list-block
date=date
section-name="RADCast"
newsletter=newsletter
with-image=false
with-header=true
with-section=true
limit=3
/>

<!-- Ad Slot 1 -->
<common-ad-wrapper-block
newsletter=newsletter
ad-unit=emailX.getAdUnit({ name: 'ad-slot-1', alias: newsletter.alias })
date=date
/>

<!-- RADCast section -->
<common-content-list-block
date=date
section-name="RADCast"
newsletter=newsletter
with-image=false
with-section=true
skip=3
limit=7
/>

<!-- Content list block -->
<common-content-list-block
date=date
Expand Down Expand Up @@ -80,11 +109,11 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({
skip=2
/>

<!-- Ad Slot 1 -->
<!-- Ad Slot 2 -->
<common-ad-wrapper-block
newsletter=newsletter
promotion-component="advertisement-block"
ad-unit=emailX.getAdUnit({ name: 'ad-slot-1', alias: newsletter.alias })
ad-unit=emailX.getAdUnit({ name: 'ad-slot-2', alias: newsletter.alias })
placement-id=get(nativeX, `placements.${newsletter.alias}.slot-1`)
date=date
/>
Expand Down

0 comments on commit fae146d

Please sign in to comment.