From e85495743c38ffdd905fa623bc5dec9c58ac838c Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:31:41 -0500 Subject: [PATCH 1/6] Create SENL layout and add to marko.json --- packages/common/components/layouts/marko.json | 3 + packages/common/components/layouts/senl.marko | 78 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 packages/common/components/layouts/senl.marko diff --git a/packages/common/components/layouts/marko.json b/packages/common/components/layouts/marko.json index c035d63..dc51985 100644 --- a/packages/common/components/layouts/marko.json +++ b/packages/common/components/layouts/marko.json @@ -13,5 +13,8 @@ }, "": { "template": "./radcast.marko" + }, + "": { + "template": "./senl.marko" } } diff --git a/packages/common/components/layouts/senl.marko b/packages/common/components/layouts/senl.marko new file mode 100644 index 0000000..b4c0d83 --- /dev/null +++ b/packages/common/components/layouts/senl.marko @@ -0,0 +1,78 @@ +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"; +import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; + +$ const { website, config, req } = out.global; +$ const { newsletter, date } = input.data; + +$ const emailX = config.get("emailX"); +$ const nativeX = config.getAsObject("nativeX"); +$ const { id, alias, name, pageNode } = input; + + + <@head> + + + <@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> + + <@body> + + + + + + + + + + + + + + + + + + + + From 052cb3aec7dd454ff11c2ca28a69578685a07d17 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:32:04 -0500 Subject: [PATCH 2/6] Create SENL template for Lab, DrB, AM, AME --- tenants/all/templates/am-senl.marko | 1 + tenants/all/templates/ame-senl.marko | 1 + tenants/all/templates/drb-senl.marko | 1 + tenants/all/templates/labpulse-senl.marko | 1 + 4 files changed, 4 insertions(+) create mode 100644 tenants/all/templates/am-senl.marko create mode 100644 tenants/all/templates/ame-senl.marko create mode 100644 tenants/all/templates/drb-senl.marko create mode 100644 tenants/all/templates/labpulse-senl.marko diff --git a/tenants/all/templates/am-senl.marko b/tenants/all/templates/am-senl.marko new file mode 100644 index 0000000..2ada9b4 --- /dev/null +++ b/tenants/all/templates/am-senl.marko @@ -0,0 +1 @@ + diff --git a/tenants/all/templates/ame-senl.marko b/tenants/all/templates/ame-senl.marko new file mode 100644 index 0000000..2ada9b4 --- /dev/null +++ b/tenants/all/templates/ame-senl.marko @@ -0,0 +1 @@ + diff --git a/tenants/all/templates/drb-senl.marko b/tenants/all/templates/drb-senl.marko new file mode 100644 index 0000000..2ada9b4 --- /dev/null +++ b/tenants/all/templates/drb-senl.marko @@ -0,0 +1 @@ + diff --git a/tenants/all/templates/labpulse-senl.marko b/tenants/all/templates/labpulse-senl.marko new file mode 100644 index 0000000..2ada9b4 --- /dev/null +++ b/tenants/all/templates/labpulse-senl.marko @@ -0,0 +1 @@ + From 21a8cf3eedcd9c3b2d9a272c7b77dd94c6469446 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:32:38 -0500 Subject: [PATCH 3/6] Create native ad slot for senl-all brands --- tenants/all/config/native-x.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tenants/all/config/native-x.js b/tenants/all/config/native-x.js index eef64bb..b91b7d6 100644 --- a/tenants/all/config/native-x.js +++ b/tenants/all/config/native-x.js @@ -11,6 +11,9 @@ module.exports = { 'labpulse-breaking-news': { 'slot-1': '6406aca393fb8e0001c3ac2a', }, + 'labpulse-senl': { + 'slot-1': '652352981449000001cb3e63', + }, 'drb-lfte': { 'slot-1': '638619dad6ced5000110a551', 'case-sponsor': '643d7f61b91bf50001eff980', @@ -22,12 +25,12 @@ module.exports = { 'drb-breaking-news': { 'slot-1': '6406ad19e78b060001976ca1', }, - sab: { - 'slot-1': '63861a1cadecb1000112fe8b', - }, 'drb-case-of-the-week': { 'case-sponsor': '642310db713241000128c421', }, + 'drb-senl': { + 'slot-1': '6523526e1449000001cb3e32', + }, 'am-lfte': { 'slot-1': '647e1c415150cb0001181028', 'case-sponsor': '647e1c36989f4f0001733285', @@ -45,5 +48,14 @@ module.exports = { 'am-radcast': { 'slot-1': '64ff595396af9a00016aa6d4', }, + 'am-senl': { + 'slot-1': '652352441449000001cb3e0b', + }, + sab: { + 'slot-1': '63861a1cadecb1000112fe8b', + }, + 'ame-senl': { + 'slot-1': '652352cd1449000001cb3ea4', + }, }, }; From 36c95f1b228e180f7b7bfc738d5e84486eb8d459 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:32:45 -0500 Subject: [PATCH 4/6] Create emailx ad slot for senl-all brands --- tenants/all/config/email-x.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tenants/all/config/email-x.js b/tenants/all/config/email-x.js index b22e5ec..10610f1 100644 --- a/tenants/all/config/email-x.js +++ b/tenants/all/config/email-x.js @@ -27,6 +27,14 @@ config height: 250, }, ]) + .setAdUnits('labpulse-senl', [ + { + name: 'ad-slot-1', + id: '6523478bd423c99fb0f1701a', + width: 300, + height: 250, + }, + ]) .setAdUnits('drb-lfte', [ { name: 'ad-slot-1', @@ -97,6 +105,14 @@ config height: 250, }, ]) + .setAdUnits('drb-senl', [ + { + name: 'ad-slot-1', + id: '652347b9d423c9192ef17048', + width: 300, + height: 250, + }, + ]) .setAdUnits('am-lfte', [ { name: 'ad-slot-1', @@ -137,6 +153,14 @@ config height: 250, }, ]) + .setAdUnits('am-senl', [ + { + name: 'ad-slot-1', + id: '652347e6c6835c370c56d52f', + width: 300, + height: 250, + }, + ]) .setAdUnits('sab', [ { name: 'ad-slot-1', @@ -144,6 +168,14 @@ config width: 300, height: 250, }, + ]) + .setAdUnits('ame-senl', [ + { + name: 'ad-slot-1', + id: '6523481fc6835ca12556d55d', + width: 300, + height: 250, + }, ]); module.exports = config; From f9f10d3ae971e754910e0fb654ea9b6e4c3a271f Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:32:59 -0500 Subject: [PATCH 5/6] Add SENL to core.js file for all brands --- tenants/all/config/core.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tenants/all/config/core.js b/tenants/all/config/core.js index c0d5ff1..3fa313d 100644 --- a/tenants/all/config/core.js +++ b/tenants/all/config/core.js @@ -37,6 +37,15 @@ const config = { }, preferenceCenter: 'https://www.labpulse.com/user/subscribe', }, + 'labpulse-senl': { + ...brands.labPulse, + name: 'labpulse-SENL', + logo: { + src: '/files/base/smg/all/image/static/lab/Labpulse-SpecialEditionNewsletter.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.labpulse.com/user/subscribe', + }, 'drb-lfte': { ...brands.drb, name: 'Dr. Bicuspid-Letter From The Editor', @@ -84,6 +93,15 @@ const config = { }, preferenceCenter: 'https://www.drbicuspid.com/user/subscribe', }, + 'drb-senl': { + ...brands.drb, + name: 'DrBicuspid-SENL', + logo: { + src: '/files/base/smg/all/image/static/drb/DrBiscuspid-SpecialEditionNewsletter.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.drbicuspid.com/user/subscribe', + }, 'am-lfte': { ...brands.am, name: 'AuntMinnie-Letter From The Editor', @@ -130,6 +148,24 @@ const config = { }, preferenceCenter: 'https://www.auntminnie.com/user/subscribe', }, + 'am-senl': { + ...brands.am, + name: 'AuntMinnie-SENL', + logo: { + src: '/files/base/smg/all/image/static/am/auntminnie-SpecialEditionNewsletter.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.auntminnie.com/user/subscribe', + }, + 'ame-senl': { + ...brands.ame, + name: 'AuntMinnieEurope-SENL', + logo: { + src: '/files/base/smg/all/image/static/ame/AME-SpecialEditionNewsletter.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.auntminnieeurope.com/user/subscribe', + }, }; module.exports = config; From 844e28bcd835b4c215f2b484bf63f31bbfb80485 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Sun, 8 Oct 2023 20:33:11 -0500 Subject: [PATCH 6/6] Add AME to brands.js config --- tenants/all/config/brands.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tenants/all/config/brands.js b/tenants/all/config/brands.js index cce35f6..304f7de 100644 --- a/tenants/all/config/brands.js +++ b/tenants/all/config/brands.js @@ -32,6 +32,16 @@ module.exports = { ], }, }, + ame: { + publicationName: 'https://AuntMinnieEurope.com', + socialMedia: { + imagePath: '/files/base/smg/all/image/static/newsletter', + links: [ + { provider: 'facebook', href: 'https://www.facebook.com/auntminnie.radiology', target: '_blank' }, + { provider: 'twitter', href: 'https://twitter.com/AuntMinnie', target: '_blank' }, + ], + }, + }, sab: { logo: { src: '/files/base/smg/all/image/static/sab/sab-logo.svg',