mod-build 4.0.32 → 4.0.33-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gulp-tasks/templates.js +8 -1
- package/package.json +1 -1
package/gulp-tasks/templates.js
CHANGED
|
@@ -247,8 +247,15 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
247
247
|
let finalTCPA = await (company === 'Modernize' || templatesData.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
|
|
248
248
|
const removeInlineStyleRegex = / style="[^"]*"/g;
|
|
249
249
|
finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
|
|
250
|
-
templatesData.tcpaText = await finalTCPA;
|
|
251
250
|
|
|
251
|
+
// Adjustments for Modernize Consent Capture (will be adjusted with O&O Consent Implementation)
|
|
252
|
+
if (finalTCPA.includes('Modernize and up to ')) {
|
|
253
|
+
finalTCPA = finalTCPA.replace('Modernize', '<label><input class="consent-capture" type="checkbox" data-name="Modernize" data-key="33940610" checked /> Modernize</label>');
|
|
254
|
+
const tcpaPrivacyAndTerms = ` Please see our <a id="tcpaPrivacy" href="/?modal=tcpaPrivacy" data-load="${pathSubdirectory ? pathSubdirectory : '/'}resources/templates/modals/privacy/" data-bind="modal-page">Privacy Notice</a> and our <a id="tcpaTerms" href="/?modal=tcpaTerms" data-load="${pathSubdirectory ? pathSubdirectory : '/'}resources/templates/modals/terms/" data-bind="modal-page">Terms of Use</a>.`;
|
|
255
|
+
finalTCPA += tcpaPrivacyAndTerms;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
templatesData.tcpaText = await finalTCPA;
|
|
252
259
|
resolve();
|
|
253
260
|
});
|
|
254
261
|
});
|