mod-build 3.7.19 → 3.7.20-beta.2
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 +4 -0
- package/gulp-tasks/templates.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.7.20
|
|
4
|
+
|
|
5
|
+
- Added `addTcpaAboveCta` and `addTcpaBelowCta` helper functions to determine where tcpa should be placed based on trade/branded conditions.
|
|
6
|
+
|
|
3
7
|
## 3.7.19
|
|
4
8
|
|
|
5
9
|
- Added missed attributes in global questions config of siding and tree services.
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -225,6 +225,20 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
225
225
|
fn: function(obj, key) {
|
|
226
226
|
return obj && obj[key] ? obj[key] : '';
|
|
227
227
|
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'addTcpaAboveCta',
|
|
231
|
+
fn: function(page) {
|
|
232
|
+
const trade = page.primary_trade.toUpperCase();
|
|
233
|
+
return trade === 'SOLAR' || trade === 'HOME_SECURITY' || page.isBranded;
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'addTcpaBelowCta',
|
|
238
|
+
fn: function(page) {
|
|
239
|
+
const trade = page.primary_trade.toUpperCase();
|
|
240
|
+
return trade !== 'SOLAR' && trade !== 'HOME_SECURITY' && !page.isBranded;
|
|
241
|
+
}
|
|
228
242
|
}
|
|
229
243
|
];
|
|
230
244
|
|