diff --git a/packages/common/components/blocks/ad/promotion-advertisement.marko b/packages/common/components/blocks/ad/promotion-advertisement.marko index 1115741..aaea569 100644 --- a/packages/common/components/blocks/ad/promotion-advertisement.marko +++ b/packages/common/components/blocks/ad/promotion-advertisement.marko @@ -4,15 +4,12 @@ import buildLinkUrl from '@science-medicine-group/package-common/utils/build-lin $ const { req } = out.global; $ const nativeAdLayout = get(req, "query.native-ad-layout"); $ const newsletter = getAsObject(input, "newsletter"); -$ const { sectionName, date, content, linkLabelProps } = input; -$ const { adLocation, platformDesignator } = linkLabelProps; +$ const { sectionName, date, content } = input; $ const url = buildLinkUrl(get(content, "siteContext.path")); $ const company = getAsObject(content, "company"); $ const label = input.label || "Paid Advertisement"; -$ const linkLabel = `ad|${adLocation}|${platformDesignator}|${company.name}|${content.name}`; - $ const imgStyles = { "font-size": "14px", "line-height": 0, @@ -55,7 +52,7 @@ $ const imgLinkStyles = { @@ -67,7 +64,7 @@ $ const imgLinkStyles = {
- ${content.name} + ${content.name}
@@ -157,7 +154,7 @@ $ const imgLinkStyles = { diff --git a/packages/common/components/blocks/ad/promotion-native.marko b/packages/common/components/blocks/ad/promotion-native.marko index da153f2..6121d38 100644 --- a/packages/common/components/blocks/ad/promotion-native.marko +++ b/packages/common/components/blocks/ad/promotion-native.marko @@ -1,10 +1,8 @@ import { get, getAsObject } from "@parameter1/base-cms-object-path"; $ const newsletter = getAsObject(input, "newsletter"); -$ const { sectionName, date, content, linkLabelProps } = input; -$ const { adLocation, platformDesignator } = linkLabelProps; -$ const linkLabel = `ad|${adLocation}|${platformDesignator}|${content.company.name}|${content.name}`; +$ const { sectionName, date, content } = input; $ content.labels = ["Sponsored"]; - + diff --git a/packages/common/components/blocks/ad/promotion-sponsored.marko b/packages/common/components/blocks/ad/promotion-sponsored.marko index fc1afb7..d9d6ff0 100644 --- a/packages/common/components/blocks/ad/promotion-sponsored.marko +++ b/packages/common/components/blocks/ad/promotion-sponsored.marko @@ -2,7 +2,7 @@ import { get, getAsObject } from "@parameter1/base-cms-object-path"; import buildLinkUrl from '@science-medicine-group/package-common/utils/build-link-url'; $ const newsletter = getAsObject(input, "newsletter"); -$ const { sectionName, date, content, linkLabelProps } = input; +$ const { sectionName, date, content } = input; $ const url = buildLinkUrl(get(content, "siteContext.url")); $ const company = getAsObject(content, "company"); diff --git a/packages/common/components/blocks/ad/wrapper.marko b/packages/common/components/blocks/ad/wrapper.marko index f593c75..77f9bed 100644 --- a/packages/common/components/blocks/ad/wrapper.marko +++ b/packages/common/components/blocks/ad/wrapper.marko @@ -29,7 +29,6 @@ $ const PromotionComponent = promotionComponents[defaultValue(input.promotionCom newsletter=newsletter section-name=sectionName content=convertAdToContent(data, { sectionName }) - link-label-props=input.linkLabelProps /> @@ -38,7 +37,6 @@ $ const PromotionComponent = promotionComponents[defaultValue(input.promotionCom ad-unit=adUnit date=date dpm=input.dpm - link-label-props=input.linkLabelProps /> @@ -49,6 +47,5 @@ $ const PromotionComponent = promotionComponents[defaultValue(input.promotionCom ad-unit=adUnit date=date dpm=input.dpm - link-label-props=input.linkLabelProps />
- + Presented by
- +
@@ -229,7 +226,7 @@ $ const imgLinkStyles = {
- ${content.name} + ${content.name}
@@ -289,7 +286,7 @@ $ const imgLinkStyles = {
- ${content.name} + ${content.name}