mod-build 3.4.26-beta.3 → 3.4.26-beta.4

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.
@@ -48,8 +48,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
48
48
  // local dev files
49
49
  const remoteFilesForLocalDev = {
50
50
  '/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
51
- '/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
52
- '/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js']
51
+ '/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js']
53
52
  };
54
53
 
55
54
  if (!nodeEnv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.4.26-beta.3",
3
+ "version": "3.4.26-beta.4",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -14,8 +14,8 @@ var qsFooterData = function() {
14
14
  },
15
15
  {
16
16
  name: 'Affiliates',
17
- url: '/publisher/',
18
- modal: true
17
+ url: 'https://modernize.com/contact?publisher',
18
+ modal: false
19
19
  },
20
20
  {
21
21
  name: 'Terms of Use',
@@ -33,7 +33,12 @@ var qsFooterData = function() {
33
33
  modal: false
34
34
  }
35
35
  ],
36
- copyright: 'QuinStreet, Inc. All Rights Reserved.'
36
+ copyright: 'QuinStreet, Inc. All Rights Reserved.',
37
+ contractor: {
38
+ text: 'Are you a contractor?',
39
+ linkText: 'Join Our Contractor Network',
40
+ link: 'https://modernize.com/pro/register/leads/?trade=bathrooms&utm_campaign=quinstreet-referral'
41
+ }
37
42
  }
38
43
  };
39
44
 
@@ -2,6 +2,11 @@ var quoteFooterData = function() {
2
2
  var data = {
3
3
  quoteFooterData: {
4
4
  copyright: 'All Rights Reserved.',
5
+ contractor: {
6
+ text: 'Are you a contractor?',
7
+ linkText: 'Join Our Contractor Network',
8
+ link: 'https://modernize.com/pro/register/leads/?trade=bathrooms&utm_campaign=quinstreet-referral'
9
+ },
5
10
  capchaDisclosure: {
6
11
  text: 'This site is protected by reCAPTCHA and the Google',
7
12
  privacy: {
@@ -29,20 +34,25 @@ var quoteFooterData = function() {
29
34
  ],
30
35
  links: [
31
36
  {
32
- type: 'about',
33
- text: 'About Us'
37
+ url: 'about',
38
+ text: 'About Us',
39
+ modal: true
34
40
  },
35
41
  {
36
- type: 'terms',
37
- text: 'Terms of Use'
42
+ url: 'terms',
43
+ text: 'Terms of Use',
44
+ modal: true
38
45
  },
39
46
  {
40
- type: 'privacy',
41
- text: 'Privacy Policy'
47
+ url: 'privacy',
48
+ text: 'Privacy Policy',
49
+ modal: true
42
50
  },
43
51
  {
44
- type: 'publisher',
45
- text: 'I\'m a publisher'
52
+ url: 'https://modernize.com/contact?publisher',
53
+ text: 'I\'m a publisher',
54
+ modal: false,
55
+ target: '_blank'
46
56
  }
47
57
  ]
48
58
  }
@@ -1,13 +1,11 @@
1
1
  <footer class="footer">
2
2
  <div class="container">
3
- {{#xif 'this.contractorLink === "y"'}}
4
- <div class="footer__head-link">
5
- Are you a contractor?
6
- <a target="_blank" href="https://modernize.com/pro/register/leads/?trade=bathrooms&utm_campaign=quinstreet-referral">
7
- Join Our Contractor Network
8
- </a>
9
- </div>
10
- {{/xif}}
3
+ <div class="footer__head-link">
4
+ {{qsFooterData.contractor.text}}
5
+ <a target="_blank" href="{{qsFooterData.contractor.link}}" rel="noopener noreferrer">
6
+ {{qsFooterData.contractor.linkText}}
7
+ </a>
8
+ </div>
11
9
  <ul class="footer__links">
12
10
  {{#each qsFooterData.links}}
13
11
  <li>
@@ -1,6 +1,12 @@
1
1
  <div class="footer">
2
2
  <div class="container">
3
- <img src="{{assetsPath}}/images/logos/misc/bbb.svg" alt="BBB Accredited Logo" class="footer__bbb-logo">
3
+ <img src="{{assetsPath}}/images/logos/misc/bbb.svg" alt="BBB Accredited Logo" class="footer__bbb-logo footer__bbb">
4
+ <div class="footer__links">
5
+ {{quoteFooterData.contractor.text}}
6
+ <a target="_blank" href="{{quoteFooterData.contractor.link}}" rel="noopener noreferrer">
7
+ {{quoteFooterData.contractor.linkText}}
8
+ </a>
9
+ </div>
4
10
  <div class="footer__content">
5
11
  {{#xif 'this.copyright === "top"'}}
6
12
  <div class="footer__copyright">
@@ -43,15 +49,17 @@
43
49
 
44
50
  <div class="footer__links">
45
51
  {{#each quoteFooterData.links}}
46
- <a href="/{{this.type}}" data-load="./modals/{{this.type}}/index.html" data-bind="modal-link">{{this.text}}</a>
52
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}} {{/if}}>
53
+ {{this.text}}
54
+ </a>
47
55
  {{/each}}
48
56
  <!--
49
57
  - Define the customFooterLinks array of objects in template.js / siteconfig.js
50
- - e.g customFooterLinks: [{type: 'test', text: 'Test Link'}]
58
+ - e.g customFooterLinks: [{url: '/test', text: 'Test Link'}]
51
59
  -->
52
60
  {{#if this.customFooterLinks}}
53
61
  {{#each this.customFooterLinks}}
54
- <a href="/{{this.type}}" data-load="./modals/{{this.type}}/index.html" data-bind="modal-link">{{this.text}}</a>
62
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
55
63
  {{/each}}
56
64
  {{/if}}
57
65
  </div>
@@ -1,5 +1,11 @@
1
1
  <div class="footer container">
2
- <img src="{{assetsPath}}/images/logos/misc/bbb.svg" alt="BBB Accredited Logo" class="footer__bbb-logo">
2
+ <img src="{{assetsPath}}/images/logos/misc/bbb.svg" alt="BBB Accredited Logo" class="footer__bbb-logo footer__bbb">
3
+ <div class="footer__links">
4
+ {{quoteFooterData.contractor.text}}
5
+ <a target="_blank" href="{{quoteFooterData.contractor.link}}" rel="noopener noreferrer">
6
+ {{quoteFooterData.contractor.linkText}}
7
+ </a>
8
+ </div>
3
9
  {{#xif 'this.copyright === "top"'}}
4
10
  <div class="footer__row">
5
11
  <div class="footer__copyright">
@@ -42,17 +48,17 @@
42
48
  <ul class="footer__links">
43
49
  {{#each quoteFooterData.links}}
44
50
  <li>
45
- <a href="{{this.type}}" data-load="./modals/{{this.type}}/index.html" data-bind="modal-link">{{this.text}}</a>
51
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
46
52
  </li>
47
53
  {{/each}}
48
54
  <!--
49
55
  - Define the customFooterLinks array of objects in template.js / siteconfig.js
50
- - e.g customFooterLinks: [{type: 'test', text: 'Test Link'}]
56
+ - e.g customFooterLinks: [{url: 'test', text: 'Test Link'}]
51
57
  -->
52
58
  {{#if this.customFooterLinks}}
53
59
  {{#each this.customFooterLinks}}
54
60
  <li>
55
- <a href="{{this.type}}" data-load="./modals/{{this.type}}/index.html" data-bind="modal-link">{{this.text}}</a>
61
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
56
62
  </li>
57
63
  {{/each}}
58
64
  {{/if}}