mod-build 3.7.21-beta.1 → 3.7.21
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/CHANGELOG.md +1 -1
- package/gulp-tasks/templates.js +7 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/gulp-tasks/templates.js
CHANGED
|
@@ -94,6 +94,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
94
94
|
return result;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
var tradesWithTcpaAboveCta = ['SOLAR', 'HOME_SECURITY', 'GUTTERS', 'GUTTER_COVERS'];
|
|
98
|
+
|
|
97
99
|
// Support helper functions
|
|
98
100
|
var handlebarsHelpers = [
|
|
99
101
|
// Run any js line
|
|
@@ -229,21 +231,16 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
229
231
|
{
|
|
230
232
|
name: 'addTcpaAboveCta',
|
|
231
233
|
fn: function(page) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
const trade = page.primary_trade.toUpperCase();
|
|
236
|
-
return trade === 'SOLAR' || trade === 'HOME_SECURITY' || page.isBranded;
|
|
234
|
+
const trade = page.primary_trade.replace(/\s+/g, '_').toUpperCase();
|
|
235
|
+
return tradesWithTcpaAboveCta.includes(trade) || page.isBranded;
|
|
237
236
|
}
|
|
238
237
|
},
|
|
239
238
|
{
|
|
240
239
|
name: 'addTcpaBelowCta',
|
|
241
240
|
fn: function(page) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const trade = page.primary_trade.toUpperCase();
|
|
246
|
-
return trade !== 'SOLAR' && trade !== 'HOME_SECURITY' && !page.isBranded;
|
|
241
|
+
const trade = page.primary_trade.replace(/\s+/g, '_').toUpperCase();
|
|
242
|
+
|
|
243
|
+
return !tradesWithTcpaAboveCta.includes(trade) && !page.isBranded;
|
|
247
244
|
}
|
|
248
245
|
}
|
|
249
246
|
];
|