Skip to content

Commit

Permalink
Merge pull request #86 from jwade1327/new-ad-slot
Browse files Browse the repository at this point in the history
Create new ad slot for DrB - LFTE
  • Loading branch information
Shinsina authored Sep 9, 2024
2 parents f3c8eb2 + dc61346 commit 1231650
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 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 @@ -42,6 +42,12 @@ config
width: 300,
height: 250,
},
{
name: 'ad-slot-2',
id: '66db2afc676b8ccccc086870',
width: 300,
height: 250,
},
{
name: 'case-sponsor',
id: '669949c5a9b3ee2103a0eca4',
Expand Down
1 change: 1 addition & 0 deletions tenants/all/config/native-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
},
'drb-lfte': {
'slot-1': '638619dad6ced5000110a551',
'slot-2': '66daff52feb239558f0e8f61',
'case-sponsor': '643d7f61b91bf50001eff980',
},
'drb-community-insider': {
Expand Down
22 changes: 15 additions & 7 deletions tenants/all/templates/drb-lfte.marko
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,32 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({
skip=1
/>

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

<common-content-list-block
date=date
section-name="Main"
newsletter=newsletter
with-image=true
image-position="right"
with-section=true
limit=1
limit=2
skip=2
/>

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

<!-- Content list block -->
Expand All @@ -96,8 +104,8 @@ $ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({
newsletter=newsletter
with-image=false
with-section=true
skip=3
limit=6
skip=4
limit=5
/>

<if(caseBlock === true)>
Expand Down

0 comments on commit 1231650

Please sign in to comment.