Skip to content

Commit

Permalink
Merge pull request #369 from Shinsina/custom-meter-text
Browse files Browse the repository at this point in the history
Utilize function to set content meter `callToAction`
  • Loading branch information
Shinsina authored Nov 12, 2024
2 parents 7357a9e + af4854d commit 89061c7
Show file tree
Hide file tree
Showing 8 changed files with 385 additions and 373 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"test": "lerna run test"
},
"devDependencies": {
"@parameter1/base-cms-eslint": "^4.5.12",
"@parameter1/base-cms-marko-compiler": "^4.40.3",
"@parameter1/browserslist-config-base-cms": "^4.5.12",
"@parameter1/base-cms-eslint": "^4.74.0",
"@parameter1/base-cms-marko-compiler": "^4.74.0",
"@parameter1/browserslist-config-base-cms": "^4.74.0",
"lerna": "^6.5.1"
},
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions packages/global/components/document.marko
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import createOmedaIdentityBuilder from "@parameter1/base-cms-marko-web-p1-events
import { getAsObject } from "@parameter1/base-cms-object-path";

$ const {
config,
site,
req,
nativeX,
Expand Down Expand Up @@ -81,12 +82,17 @@ $ const omedaConfig = site.get('omeda');
<global-site-header-2 has-user=hasUser reg-enabled=isEnabled />
<global-site-menu has-user=hasUser reg-enabled=isEnabled />
</marko-web-identity-x-context>
$ const customSetTextVariablesFunction = () => {
const callToAction = `Create a free <span class="content-meter__call-to-action--site-name">${config.siteName()}</span> account to continue reading. Already have an account? Enter your email to access the article.`;
return { callToAction };
};
<if(contentMeterState && !contentMeterState.isLoggedIn)>
<theme-content-meter-block
views=contentMeterState.views
view-limit=contentMeterState.viewLimit
display-overlay=contentMeterState.displayOverlay
display-gate=contentMeterState.displayGate
custom-set-text-variables-function=customSetTextVariablesFunction
/>
</if>
<!-- <global-site-newsletter-menu /> -->
Expand Down
50 changes: 25 additions & 25 deletions packages/global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@
"test": "yarn lint && yarn compile --no-clean"
},
"dependencies": {
"@parameter1/base-cms-dayjs": "^4.5.12",
"@parameter1/base-cms-image": "^4.47.1",
"@parameter1/base-cms-inflector": "^4.5.12",
"@parameter1/base-cms-marko-core": "^4.48.1",
"@parameter1/base-cms-marko-web": "^4.48.1",
"@parameter1/base-cms-marko-web-contact-us": "^4.40.3",
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.40.3",
"@parameter1/base-cms-marko-web-gam": "^4.40.3",
"@parameter1/base-cms-marko-web-gcse": "^4.40.3",
"@parameter1/base-cms-marko-web-gtm": "^4.40.3",
"@parameter1/base-cms-marko-web-html-sitemap": "^4.40.3",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.51.2",
"@parameter1/base-cms-marko-web-native-x": "^4.54.0",
"@parameter1/base-cms-marko-web-omeda": "^4.51.0",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.51.2",
"@parameter1/base-cms-marko-web-p1-events": "^4.52.1",
"@parameter1/base-cms-marko-web-search": "^4.48.1",
"@parameter1/base-cms-marko-web-social-sharing": "^4.40.3",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.54.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.48.1",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.40.3",
"@parameter1/base-cms-web-common": "^4.48.1",
"@parameter1/base-cms-dayjs": "^4.74.0",
"@parameter1/base-cms-image": "^4.74.0",
"@parameter1/base-cms-inflector": "^4.74.0",
"@parameter1/base-cms-marko-core": "^4.74.0",
"@parameter1/base-cms-marko-web": "^4.76.0",
"@parameter1/base-cms-marko-web-contact-us": "^4.74.0",
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.74.0",
"@parameter1/base-cms-marko-web-gam": "^4.74.0",
"@parameter1/base-cms-marko-web-gcse": "^4.74.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-html-sitemap": "^4.74.0",
"@parameter1/base-cms-marko-web-icons": "^4.74.0",
"@parameter1/base-cms-marko-web-identity-x": "^4.74.0",
"@parameter1/base-cms-marko-web-native-x": "^4.74.0",
"@parameter1/base-cms-marko-web-omeda": "^4.74.0",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.74.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.74.0",
"@parameter1/base-cms-marko-web-search": "^4.74.0",
"@parameter1/base-cms-marko-web-social-sharing": "^4.74.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.78.1",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.74.0",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"@parameter1/base-cms-web-common": "^4.74.0",
"@parameter1/omeda-graphql-client-express": "^0.2.3",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1",
Expand Down
30 changes: 15 additions & 15 deletions sites/ccnewsnow.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
],
"dependencies": {
"@cox-matthews-associates/package-global": "^2.30.27",
"@parameter1/base-cms-marko-core": "^4.48.1",
"@parameter1/base-cms-marko-web": "^4.48.1",
"@parameter1/base-cms-marko-web-gam": "^4.40.3",
"@parameter1/base-cms-marko-web-gcse": "^4.40.3",
"@parameter1/base-cms-marko-web-gtm": "^4.40.3",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.43.2",
"@parameter1/base-cms-marko-web-native-x": "^4.54.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.52.1",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.40.3",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.54.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.48.1",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.40.3",
"@parameter1/base-cms-marko-core": "^4.74.0",
"@parameter1/base-cms-marko-web": "^4.76.0",
"@parameter1/base-cms-marko-web-gam": "^4.74.0",
"@parameter1/base-cms-marko-web-gcse": "^4.74.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-icons": "^4.74.0",
"@parameter1/base-cms-marko-web-leaders": "^4.74.0",
"@parameter1/base-cms-marko-web-native-x": "^4.74.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.74.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.74.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.78.1",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.74.0",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
30 changes: 15 additions & 15 deletions sites/diverseeducation.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
],
"dependencies": {
"@cox-matthews-associates/package-global": "^2.30.27",
"@parameter1/base-cms-marko-core": "^4.48.1",
"@parameter1/base-cms-marko-web": "^4.48.1",
"@parameter1/base-cms-marko-web-gam": "^4.40.3",
"@parameter1/base-cms-marko-web-gcse": "^4.40.3",
"@parameter1/base-cms-marko-web-gtm": "^4.40.3",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.43.2",
"@parameter1/base-cms-marko-web-native-x": "^4.54.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.52.1",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.40.3",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.54.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.48.1",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.40.3",
"@parameter1/base-cms-marko-core": "^4.74.0",
"@parameter1/base-cms-marko-web": "^4.76.0",
"@parameter1/base-cms-marko-web-gam": "^4.74.0",
"@parameter1/base-cms-marko-web-gcse": "^4.74.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-icons": "^4.74.0",
"@parameter1/base-cms-marko-web-leaders": "^4.74.0",
"@parameter1/base-cms-marko-web-native-x": "^4.74.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.74.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.74.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.78.1",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.74.0",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1",
"vue-chart-js": "^1.4.1"
Expand Down
30 changes: 15 additions & 15 deletions sites/diversemilitary.net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
],
"dependencies": {
"@cox-matthews-associates/package-global": "^2.30.27",
"@parameter1/base-cms-marko-core": "^4.48.1",
"@parameter1/base-cms-marko-web": "^4.48.1",
"@parameter1/base-cms-marko-web-gam": "^4.40.3",
"@parameter1/base-cms-marko-web-gcse": "^4.40.3",
"@parameter1/base-cms-marko-web-gtm": "^4.40.3",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.43.2",
"@parameter1/base-cms-marko-web-native-x": "^4.54.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.52.1",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.40.3",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.54.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.48.1",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.40.3",
"@parameter1/base-cms-marko-core": "^4.74.0",
"@parameter1/base-cms-marko-web": "^4.76.0",
"@parameter1/base-cms-marko-web-gam": "^4.74.0",
"@parameter1/base-cms-marko-web-gcse": "^4.74.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-icons": "^4.74.0",
"@parameter1/base-cms-marko-web-leaders": "^4.74.0",
"@parameter1/base-cms-marko-web-native-x": "^4.74.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.74.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.74.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.78.1",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.74.0",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
30 changes: 15 additions & 15 deletions sites/divhealth.net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
],
"dependencies": {
"@cox-matthews-associates/package-global": "^2.30.27",
"@parameter1/base-cms-marko-core": "^4.48.1",
"@parameter1/base-cms-marko-web": "^4.48.1",
"@parameter1/base-cms-marko-web-gam": "^4.40.3",
"@parameter1/base-cms-marko-web-gcse": "^4.40.3",
"@parameter1/base-cms-marko-web-gtm": "^4.40.3",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.43.2",
"@parameter1/base-cms-marko-web-native-x": "^4.54.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.52.1",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.40.3",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.54.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.48.1",
"@parameter1/base-cms-object-path": "^4.40.3",
"@parameter1/base-cms-utils": "^4.40.3",
"@parameter1/base-cms-web-cli": "^4.40.3",
"@parameter1/base-cms-marko-core": "^4.74.0",
"@parameter1/base-cms-marko-web": "^4.76.0",
"@parameter1/base-cms-marko-web-gam": "^4.74.0",
"@parameter1/base-cms-marko-web-gcse": "^4.74.0",
"@parameter1/base-cms-marko-web-gtm": "^4.74.0",
"@parameter1/base-cms-marko-web-icons": "^4.74.0",
"@parameter1/base-cms-marko-web-leaders": "^4.74.0",
"@parameter1/base-cms-marko-web-native-x": "^4.74.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.74.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.74.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.78.1",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.74.0",
"@parameter1/base-cms-object-path": "^4.74.0",
"@parameter1/base-cms-utils": "^4.74.0",
"@parameter1/base-cms-web-cli": "^4.74.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
Loading

0 comments on commit 89061c7

Please sign in to comment.