Header Footer Elementor - Version 1.6.7

Version Description

  • Improvement: Added GDPR support to Subscription form.
Download this release

Release Info

Developer Nikschavan
Plugin Icon Header Footer Elementor
Version 1.6.7
Comparing to
See all releases

Code changes from version 1.6.6 to 1.6.7

.eslintrc.js ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+
5
+ module.exports = {
6
+ root: true,
7
+ extends: [
8
+ 'plugin:@wordpress/eslint-plugin/recommended-with-formatting',
9
+ 'plugin:import/recommended',
10
+ 'plugin:eslint-comments/recommended',
11
+ ],
12
+ env: {
13
+ browser: true,
14
+ },
15
+ parserOptions: {
16
+ requireConfigFile: false,
17
+ babelOptions: {
18
+ presets: [ require.resolve( '@wordpress/babel-preset-default' ) ],
19
+ },
20
+ },
21
+ overrides: [
22
+ {
23
+ files: [
24
+ 'tests/e2e/**/*.js',
25
+ ],
26
+ extends: [
27
+ 'plugin:@wordpress/eslint-plugin/test-e2e',
28
+ 'plugin:jest/all',
29
+ ],
30
+ settings: {
31
+ jest: {
32
+ version: 26,
33
+ },
34
+ },
35
+ rules: {
36
+ 'jest/lowercase-name': [
37
+ 'error',
38
+ {
39
+ ignore: [
40
+ 'describe',
41
+ ],
42
+ },
43
+ ],
44
+ 'jest/no-hooks': 'off',
45
+ 'jest/prefer-expect-assertions': 'off',
46
+ 'jest/prefer-inline-snapshots': 'off',
47
+ },
48
+ },
49
+ ],
50
+ };
admin/assets/css/ehf-admin.css CHANGED
@@ -167,6 +167,17 @@ li#toplevel_page_Settings-page,
167
  transition: all 0.25s ease;
168
  pointer-events: none;
169
  }
 
 
 
 
 
 
 
 
 
 
 
170
  .hfe-subscription-row .hfe-input-container:not(.subscription-success, .subscription-error) .hfe-subscribe-field:hover {
171
  border-color: #2271b1;
172
  }
167
  transition: all 0.25s ease;
168
  pointer-events: none;
169
  }
170
+
171
+ .hfe-subscription-row input#hfe_subscribe_accept {
172
+ border: 1px solid #585F66;
173
+ border-radius: 3px;
174
+ margin: 0 4px 0 0;
175
+ }
176
+
177
+ .hfe-guide-modal-popup .hfe-guide-modal-popup-wrapper .hfe-subscription-row .hfe-input-container:nth-of-type(3) {
178
+ margin-bottom: 16px;
179
+ }
180
+
181
  .hfe-subscription-row .hfe-input-container:not(.subscription-success, .subscription-error) .hfe-subscribe-field:hover {
182
  border-color: #2271b1;
183
  }
admin/assets/js/ehf-admin.js CHANGED
@@ -140,12 +140,14 @@
140
  var email_field = $('.hfe-subscribe-field[name="hfe_subscribe_email"]');
141
  var user_type_field = $('.hfe-subscribe-field[name="wp_user_type"]');
142
  var build_for_field = $('.hfe-subscribe-field[name="build_website_for"]');
 
143
 
144
  var subscription_first_name = first_name_field.val() || '';
145
  var subscription_email = email_field.val() || '';
146
  var subscription_user_type = user_type_field.val() || '';
147
  var subscription_build_for = build_for_field.val() || '';
148
  var button_text = submit_button.find( '.hfe-submit-button-text' );
 
149
 
150
  HFEAdmin._validate_field( first_name_field );
151
  HFEAdmin._validate_field( email_field );
@@ -172,6 +174,7 @@
172
  PAGE_BUILDER: "1",
173
  WP_USER_TYPE: subscription_user_type,
174
  BUILD_WEBSITE_FOR: subscription_build_for,
 
175
  SOURCE: hfe_admin_data.data_source
176
  };
177
 
140
  var email_field = $('.hfe-subscribe-field[name="hfe_subscribe_email"]');
141
  var user_type_field = $('.hfe-subscribe-field[name="wp_user_type"]');
142
  var build_for_field = $('.hfe-subscribe-field[name="build_website_for"]');
143
+ var accept_field = $('.hfe_subscribe_accept[name="hfe_subscribe_accept"]');
144
 
145
  var subscription_first_name = first_name_field.val() || '';
146
  var subscription_email = email_field.val() || '';
147
  var subscription_user_type = user_type_field.val() || '';
148
  var subscription_build_for = build_for_field.val() || '';
149
  var button_text = submit_button.find( '.hfe-submit-button-text' );
150
+ var subscription_accept = accept_field.is( ':checked' ) ? '1' : '0';
151
 
152
  HFEAdmin._validate_field( first_name_field );
153
  HFEAdmin._validate_field( email_field );
174
  PAGE_BUILDER: "1",
175
  WP_USER_TYPE: subscription_user_type,
176
  BUILD_WEBSITE_FOR: subscription_build_for,
177
+ OPT_IN: subscription_accept,
178
  SOURCE: hfe_admin_data.data_source
179
  };
180
 
header-footer-elementor.php CHANGED
@@ -7,14 +7,14 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.6.6
11
- * Elementor tested up to: 3.5.0
12
  * Elementor Pro tested up to: 3.5.2
13
  *
14
  * @package header-footer-elementor
15
  */
16
 
17
- define( 'HFE_VER', '1.6.6' );
18
  define( 'HFE_FILE', __FILE__ );
19
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
20
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.6.7
11
+ * Elementor tested up to: 3.5.3
12
  * Elementor Pro tested up to: 3.5.2
13
  *
14
  * @package header-footer-elementor
15
  */
16
 
17
+ define( 'HFE_VER', '1.6.7' );
18
  define( 'HFE_FILE', __FILE__ );
19
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
20
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
inc/class-hfe-settings-page.php CHANGED
@@ -454,6 +454,10 @@ class HFE_Settings_Page {
454
  <small class="subscription-desc"><?php esc_html_e( 'Email address is required', 'header-footer-elementor' ); ?></small>
455
  <label class="subscription-label"><?php esc_html_e( 'Your Work Email', 'header-footer-elementor' ); ?></label>
456
  </div>
 
 
 
 
457
  </div>
458
  <p class="submit">
459
  <button type="submit" id="submit-2" class="button submit-2 button-primary">
454
  <small class="subscription-desc"><?php esc_html_e( 'Email address is required', 'header-footer-elementor' ); ?></small>
455
  <label class="subscription-label"><?php esc_html_e( 'Your Work Email', 'header-footer-elementor' ); ?></label>
456
  </div>
457
+ <div class="hfe-input-container">
458
+ <input type="checkbox" name="hfe_subscribe_accept" id="hfe_subscribe_accept" class="hfe_subscribe_accept" value="check">
459
+ <label for="hfe_subscribe_accept" class="hfe-subscribe-accept-label"><?php esc_html_e( 'I agree to receive your newsletters and accept the data privacy statement.', 'header-footer-elementor' ); ?></label>
460
+ </div>
461
  </div>
462
  <p class="submit">
463
  <button type="submit" id="submit-2" class="button submit-2 button-primary">
languages/header-footer-elementor.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Elementor Header & Footer Builder package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Elementor Header & Footer Builder 1.6.6\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2021-12-20 07:48:07+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -304,15 +304,15 @@ msgstr ""
304
  msgid "Theme Support"
305
  msgstr ""
306
 
307
- #: inc/class-hfe-settings-page.php:61 inc/class-hfe-settings-page.php:665
308
  msgid "Activate"
309
  msgstr ""
310
 
311
- #: inc/class-hfe-settings-page.php:62 inc/class-hfe-settings-page.php:657
312
  msgid "Activated"
313
  msgstr ""
314
 
315
- #: inc/class-hfe-settings-page.php:63 inc/class-hfe-settings-page.php:654
316
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1054
317
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1236
318
  msgid "Active"
@@ -322,11 +322,11 @@ msgstr ""
322
  msgid "Deactivate"
323
  msgstr ""
324
 
325
- #: inc/class-hfe-settings-page.php:65 inc/class-hfe-settings-page.php:662
326
  msgid "Inactive"
327
  msgstr ""
328
 
329
- #: inc/class-hfe-settings-page.php:66 inc/class-hfe-settings-page.php:678
330
  msgid "Install"
331
  msgstr ""
332
 
@@ -346,7 +346,7 @@ msgstr ""
346
  msgid "Already Exists."
347
  msgstr ""
348
 
349
- #: inc/class-hfe-settings-page.php:71 inc/class-hfe-settings-page.php:683
350
  msgid "Visit Website"
351
  msgstr ""
352
 
@@ -398,7 +398,7 @@ msgid ""
398
  msgstr ""
399
 
400
  #: inc/class-hfe-settings-page.php:185 inc/class-hfe-settings-page.php:186
401
- #: inc/class-hfe-settings-page.php:801
402
  msgid "Settings"
403
  msgstr ""
404
 
@@ -487,21 +487,25 @@ msgstr ""
487
  msgid "Your Work Email"
488
  msgstr ""
489
 
490
- #: inc/class-hfe-settings-page.php:460
 
 
 
 
491
  msgid "Submit"
492
  msgstr ""
493
 
494
- #: inc/class-hfe-settings-page.php:514
495
  msgid "Welcome to Elementor Header & Footer Builder!"
496
  msgstr ""
497
 
498
- #: inc/class-hfe-settings-page.php:516
499
  msgid ""
500
  "With this awesome plugin, experience the easiest way to create a customized "
501
  "header and footer for your website with Elementor. That too 100% FREE!"
502
  msgstr ""
503
 
504
- #: inc/class-hfe-settings-page.php:518
505
  msgid ""
506
  "Design beautiful layouts with simple drag & drop and display them at "
507
  "desired location with powerful target controls. The plugin comes with "
@@ -510,78 +514,78 @@ msgid ""
510
  "backed up by 24/7 support."
511
  msgstr ""
512
 
513
- #: inc/class-hfe-settings-page.php:520
514
  msgid ""
515
  "Trusted by more than 1+ Million users, Elementor Header & Footer Builder is "
516
  "a modern way to build advanced navigation for your website."
517
  msgstr ""
518
 
519
- #: inc/class-hfe-settings-page.php:522
520
  msgid ""
521
  "This plugin is brought to you by the same team behind the popular WordPress "
522
  "theme Astra and a series of Ultimate Addons plugins."
523
  msgstr ""
524
 
525
- #: inc/class-hfe-settings-page.php:528
526
  msgid "Team photo"
527
  msgstr ""
528
 
529
- #: inc/class-hfe-settings-page.php:530
530
  msgid "Brainstorm Force Team"
531
  msgstr ""
532
 
533
- #: inc/class-hfe-settings-page.php:574
534
  #. translators: %s - addon status label.
535
  msgid "%1$s %3$s %2$s"
536
  msgstr ""
537
 
538
- #: inc/class-hfe-settings-page.php:591
539
  #. translators: %s - addon status label.
540
  msgid "Status: %s"
541
  msgstr ""
542
 
543
- #: inc/class-hfe-settings-page.php:610
544
  msgid "WordPress.org"
545
  msgstr ""
546
 
547
- #: inc/class-hfe-settings-page.php:675
548
  msgid "Not Installed"
549
  msgstr ""
550
 
551
- #: inc/class-hfe-settings-page.php:708
552
  msgid "Astra Theme"
553
  msgstr ""
554
 
555
- #: inc/class-hfe-settings-page.php:709
556
  msgid ""
557
  "Powering over 1+ Million websites, Astra is loved for the fast performance "
558
  "and ease of use it offers. It is suitable for all kinds of websites like "
559
  "blogs, portfolios, business, and WooCommerce stores."
560
  msgstr ""
561
 
562
- #: inc/class-hfe-settings-page.php:720
563
  msgid "Starter Templates"
564
  msgstr ""
565
 
566
- #: inc/class-hfe-settings-page.php:721
567
  msgid ""
568
  "A popular templates plugin that provides an extensive library of "
569
  "professional and fully customizable 600+ ready website and templates. More "
570
  "than 1+ Million websites have built with this plugin."
571
  msgstr ""
572
 
573
- #: inc/class-hfe-settings-page.php:732
574
  msgid "Ultimate Addons for Elementor"
575
  msgstr ""
576
 
577
- #: inc/class-hfe-settings-page.php:733
578
  msgid ""
579
  "It’s a collection of 40+ unique, creative, and optimized Elementor widgets "
580
  "with 100+ readymade templates. Trusted by more than 600+ K web "
581
  "professionals. It’s a #1 toolkit for Elementor Page Builder."
582
  msgstr ""
583
 
584
- #: inc/class-hfe-settings-page.php:800
585
  msgid "Go to HFE Settings page"
586
  msgstr ""
587
 
2
  # This file is distributed under the same license as the Elementor Header & Footer Builder package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Elementor Header & Footer Builder 1.6.7\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2021-12-29 13:31:24+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
304
  msgid "Theme Support"
305
  msgstr ""
306
 
307
+ #: inc/class-hfe-settings-page.php:61 inc/class-hfe-settings-page.php:667
308
  msgid "Activate"
309
  msgstr ""
310
 
311
+ #: inc/class-hfe-settings-page.php:62 inc/class-hfe-settings-page.php:659
312
  msgid "Activated"
313
  msgstr ""
314
 
315
+ #: inc/class-hfe-settings-page.php:63 inc/class-hfe-settings-page.php:656
316
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1054
317
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1236
318
  msgid "Active"
322
  msgid "Deactivate"
323
  msgstr ""
324
 
325
+ #: inc/class-hfe-settings-page.php:65 inc/class-hfe-settings-page.php:664
326
  msgid "Inactive"
327
  msgstr ""
328
 
329
+ #: inc/class-hfe-settings-page.php:66 inc/class-hfe-settings-page.php:680
330
  msgid "Install"
331
  msgstr ""
332
 
346
  msgid "Already Exists."
347
  msgstr ""
348
 
349
+ #: inc/class-hfe-settings-page.php:71 inc/class-hfe-settings-page.php:685
350
  msgid "Visit Website"
351
  msgstr ""
352
 
398
  msgstr ""
399
 
400
  #: inc/class-hfe-settings-page.php:185 inc/class-hfe-settings-page.php:186
401
+ #: inc/class-hfe-settings-page.php:803
402
  msgid "Settings"
403
  msgstr ""
404
 
487
  msgid "Your Work Email"
488
  msgstr ""
489
 
490
+ #: inc/class-hfe-settings-page.php:457
491
+ msgid "I agree to receive your newsletters and accept the data privacy statement."
492
+ msgstr ""
493
+
494
+ #: inc/class-hfe-settings-page.php:462
495
  msgid "Submit"
496
  msgstr ""
497
 
498
+ #: inc/class-hfe-settings-page.php:516
499
  msgid "Welcome to Elementor Header & Footer Builder!"
500
  msgstr ""
501
 
502
+ #: inc/class-hfe-settings-page.php:518
503
  msgid ""
504
  "With this awesome plugin, experience the easiest way to create a customized "
505
  "header and footer for your website with Elementor. That too 100% FREE!"
506
  msgstr ""
507
 
508
+ #: inc/class-hfe-settings-page.php:520
509
  msgid ""
510
  "Design beautiful layouts with simple drag & drop and display them at "
511
  "desired location with powerful target controls. The plugin comes with "
514
  "backed up by 24/7 support."
515
  msgstr ""
516
 
517
+ #: inc/class-hfe-settings-page.php:522
518
  msgid ""
519
  "Trusted by more than 1+ Million users, Elementor Header & Footer Builder is "
520
  "a modern way to build advanced navigation for your website."
521
  msgstr ""
522
 
523
+ #: inc/class-hfe-settings-page.php:524
524
  msgid ""
525
  "This plugin is brought to you by the same team behind the popular WordPress "
526
  "theme Astra and a series of Ultimate Addons plugins."
527
  msgstr ""
528
 
529
+ #: inc/class-hfe-settings-page.php:530
530
  msgid "Team photo"
531
  msgstr ""
532
 
533
+ #: inc/class-hfe-settings-page.php:532
534
  msgid "Brainstorm Force Team"
535
  msgstr ""
536
 
537
+ #: inc/class-hfe-settings-page.php:576
538
  #. translators: %s - addon status label.
539
  msgid "%1$s %3$s %2$s"
540
  msgstr ""
541
 
542
+ #: inc/class-hfe-settings-page.php:593
543
  #. translators: %s - addon status label.
544
  msgid "Status: %s"
545
  msgstr ""
546
 
547
+ #: inc/class-hfe-settings-page.php:612
548
  msgid "WordPress.org"
549
  msgstr ""
550
 
551
+ #: inc/class-hfe-settings-page.php:677
552
  msgid "Not Installed"
553
  msgstr ""
554
 
555
+ #: inc/class-hfe-settings-page.php:710
556
  msgid "Astra Theme"
557
  msgstr ""
558
 
559
+ #: inc/class-hfe-settings-page.php:711
560
  msgid ""
561
  "Powering over 1+ Million websites, Astra is loved for the fast performance "
562
  "and ease of use it offers. It is suitable for all kinds of websites like "
563
  "blogs, portfolios, business, and WooCommerce stores."
564
  msgstr ""
565
 
566
+ #: inc/class-hfe-settings-page.php:722
567
  msgid "Starter Templates"
568
  msgstr ""
569
 
570
+ #: inc/class-hfe-settings-page.php:723
571
  msgid ""
572
  "A popular templates plugin that provides an extensive library of "
573
  "professional and fully customizable 600+ ready website and templates. More "
574
  "than 1+ Million websites have built with this plugin."
575
  msgstr ""
576
 
577
+ #: inc/class-hfe-settings-page.php:734
578
  msgid "Ultimate Addons for Elementor"
579
  msgstr ""
580
 
581
+ #: inc/class-hfe-settings-page.php:735
582
  msgid ""
583
  "It’s a collection of 40+ unique, creative, and optimized Elementor widgets "
584
  "with 100+ readymade templates. Trusted by more than 600+ K web "
585
  "professionals. It’s a #1 toolkit for Elementor Page Builder."
586
  msgstr ""
587
 
588
+ #: inc/class-hfe-settings-page.php:802
589
  msgid "Go to HFE Settings page"
590
  msgstr ""
591
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.8.2
8
- Stable tag: 1.6.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -137,6 +137,9 @@ This same applies when you are creating your Header/Footer using this plugin.
137
  5. Default widgets available with Elementor Header & Footer Builder.
138
 
139
  == Changelog ==
 
 
 
140
  = 1.6.6 =
141
  - Improvement: Added compatibility to Elementor core version 3.5.0. Now to work with EHF, Elementor minimum version 3.1.0 or higher will be required.
142
  - Fix: PHP warning of undefined array key on responsive controls in all widgets.
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.8.2
8
+ Stable tag: 1.6.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
137
  5. Default widgets available with Elementor Header & Footer Builder.
138
 
139
  == Changelog ==
140
+ = 1.6.7 =
141
+ - Improvement: Added GDPR support to Subscription form.
142
+
143
  = 1.6.6 =
144
  - Improvement: Added compatibility to Elementor core version 3.5.0. Now to work with EHF, Elementor minimum version 3.1.0 or higher will be required.
145
  - Fix: PHP warning of undefined array key on responsive controls in all widgets.