-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jwade1327/sab-drb
Create new SAB, Dr B & LabPulse templates & ad slots
- Loading branch information
Showing
15 changed files
with
248 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { get } from "@parameter1/base-cms-object-path"; | ||
import { parseBooleanHeader } from "@parameter1/base-cms-utils"; | ||
import queryFragment from "@science-medicine-group/package-common/graphql/fragments/content-list"; | ||
|
||
$ const { website, config, req } = out.global; | ||
$ const { newsletter, date } = input.data; | ||
|
||
$ const emailX = config.get("emailX"); | ||
$ const nativeX = config.getAsObject("nativeX"); | ||
|
||
<marko-newsletter-root | ||
title=newsletter.name | ||
description=newsletter.description | ||
date=date | ||
> | ||
<@head> | ||
<common-head-block /> | ||
</@head> | ||
<@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> | ||
<common-body-wrapper-block newsletter=newsletter date=date> | ||
<@body> | ||
|
||
<!-- Content list block --> | ||
<common-content-list-block | ||
date=date | ||
section-name="Main" | ||
newsletter=newsletter | ||
with-image=true | ||
image-position="right" | ||
with-section=true | ||
limit=1 | ||
skip=0 | ||
/> | ||
|
||
<!-- 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 | ||
/> | ||
|
||
</@body> | ||
</common-body-wrapper-block> | ||
</@body> | ||
</marko-newsletter-root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { get } from "@parameter1/base-cms-object-path"; | ||
import { parseBooleanHeader } from "@parameter1/base-cms-utils"; | ||
import queryFragment from "@science-medicine-group/package-common/graphql/fragments/content-list"; | ||
|
||
$ const { website, config, req } = out.global; | ||
$ const { newsletter, date } = input.data; | ||
|
||
$ const emailX = config.get("emailX"); | ||
$ const nativeX = config.getAsObject("nativeX"); | ||
|
||
<marko-newsletter-root | ||
title=newsletter.name | ||
description=newsletter.description | ||
date=date | ||
> | ||
<@head> | ||
<common-head-block /> | ||
</@head> | ||
<@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> | ||
<common-body-wrapper-block newsletter=newsletter date=date> | ||
<@body> | ||
|
||
<!-- Community Logo --> | ||
<common-ad-wrapper-block | ||
date=date | ||
newsletter=newsletter | ||
promotion-component="sponsored-block" | ||
placement-id=get(nativeX, `placements.${newsletter.alias}.community`) | ||
/> | ||
|
||
<!-- Content list block --> | ||
<common-content-list-block | ||
date=date | ||
section-name="Insider" | ||
newsletter=newsletter | ||
with-image=true | ||
image-position="right" | ||
with-header=true | ||
continue-reading=true | ||
limit=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 | ||
/> | ||
|
||
<!-- Content list block --> | ||
<common-content-list-block | ||
date=date | ||
section-name="Main" | ||
newsletter=newsletter | ||
with-image=true | ||
image-position="right" | ||
with-section=true | ||
limit=10 | ||
skip=0 | ||
/> | ||
|
||
</@body> | ||
</common-body-wrapper-block> | ||
</@body> | ||
</marko-newsletter-root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
{ | ||
"<common-standard-layout>": { | ||
"template": "./standard.marko" | ||
}, | ||
"<common-breaking-news-layout>": { | ||
"template": "./breaking-news.marko" | ||
}, | ||
"<common-insider-layout>": { | ||
"template": "./insider.marko" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-breaking-news-layout data=data /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-insider-layout data=data /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-standard-layout data=data /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-breaking-news-layout data=data /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-insider-layout data=data /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<common-standard-layout data=data /> |