Header Footer Elementor - Version 1.6.1

Version Description

  • Fix: Footer misplaced in the header or content area due to a bug introduced in v1.6.0.
Download this release

Release Info

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

Code changes from version 1.6.0 to 1.6.1

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.0
11
  * Elementor tested up to: 3.2.5
12
  * Elementor Pro tested up to: 3.3.1
13
  *
14
  * @package header-footer-elementor
15
  */
16
 
17
- define( 'HFE_VER', '1.6.0' );
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.1
11
  * Elementor tested up to: 3.2.5
12
  * Elementor Pro tested up to: 3.3.1
13
  *
14
  * @package header-footer-elementor
15
  */
16
 
17
+ define( 'HFE_VER', '1.6.1' );
18
  define( 'HFE_FILE', __FILE__ );
19
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
20
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
inc/class-header-footer-elementor.php CHANGED
@@ -86,6 +86,7 @@ class Header_Footer_Elementor {
86
  require HFE_DIR . 'themes/hello-elementor/class-hfe-hello-elementor-compat.php';
87
  } else {
88
  add_filter( 'hfe_settings_tabs', [ $this, 'setup_unsupported_theme' ] );
 
89
  }
90
 
91
  if ( 'yes' === get_option( 'hfe_plugin_is_activated' ) ) {
@@ -481,6 +482,26 @@ class Header_Footer_Elementor {
481
  return $hfe_settings_tabs;
482
  }
483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
  /**
485
  * Prints the Header content.
486
  */
86
  require HFE_DIR . 'themes/hello-elementor/class-hfe-hello-elementor-compat.php';
87
  } else {
88
  add_filter( 'hfe_settings_tabs', [ $this, 'setup_unsupported_theme' ] );
89
+ add_action( 'init', [ $this, 'setup_fallback_support' ] );
90
  }
91
 
92
  if ( 'yes' === get_option( 'hfe_plugin_is_activated' ) ) {
482
  return $hfe_settings_tabs;
483
  }
484
 
485
+ /**
486
+ * Add support for theme if the current theme does add support for 'header-footer-elementor'
487
+ *
488
+ * @since 1.6.1
489
+ */
490
+ public function setup_fallback_support() {
491
+
492
+ if ( ! current_theme_supports( 'header-footer-elementor' ) ) {
493
+ $hfe_compatibility_option = get_option( 'hfe_compatibility_option', '1' );
494
+
495
+ if ( '1' === $hfe_compatibility_option ) {
496
+ if ( ! class_exists( 'HFE_Default_Compat' ) ) {
497
+ require_once HFE_DIR . 'themes/default/class-hfe-default-compat.php';
498
+ }
499
+ } elseif ( '2' === $hfe_compatibility_option ) {
500
+ require HFE_DIR . 'themes/default/class-global-theme-compatibility.php';
501
+ }
502
+ }
503
+ }
504
+
505
  /**
506
  * Prints the Header content.
507
  */
inc/class-hfe-settings-page.php CHANGED
@@ -23,7 +23,6 @@ class HFE_Settings_Page {
23
  * @since 1.6.0
24
  */
25
  public function __construct() {
26
- $this->setup_fallback_support();
27
  add_action( 'admin_head', [ $this, 'hfe_global_css' ] );
28
  add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
29
  add_action( 'admin_init', [ $this, 'hfe_admin_init' ] );
@@ -209,24 +208,6 @@ class HFE_Settings_Page {
209
  );
210
  }
211
 
212
- /**
213
- * Setup Theme Support.
214
- *
215
- * @since 1.2.0
216
- * @return void
217
- */
218
- public function setup_fallback_support() {
219
- $hfe_compatibility_option = get_option( 'hfe_compatibility_option', '1' );
220
-
221
- if ( '1' === $hfe_compatibility_option ) {
222
- if ( ! class_exists( 'HFE_Default_Compat' ) ) {
223
- require_once HFE_DIR . 'themes/default/class-hfe-default-compat.php';
224
- }
225
- } elseif ( '2' === $hfe_compatibility_option ) {
226
- require HFE_DIR . 'themes/default/class-global-theme-compatibility.php';
227
- }
228
- }
229
-
230
  /**
231
  * Settings page.
232
  *
23
  * @since 1.6.0
24
  */
25
  public function __construct() {
 
26
  add_action( 'admin_head', [ $this, 'hfe_global_css' ] );
27
  add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
28
  add_action( 'admin_init', [ $this, 'hfe_admin_init' ] );
208
  );
209
  }
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  /**
212
  * Settings page.
213
  *
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: elementor, header footer builder, header template, footer template, elemen
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
- Tested up to: 5.7
8
- Stable tag: 1.6.0
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.0 =
141
  - New: Added Email Subscription and About Us section on the settings page.
142
  - New: Renamed the plugin to Elementor Header & Footer Builder.
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
+ Tested up to: 5.7.2
8
+ Stable tag: 1.6.1
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.1 =
141
+ - Fix: Footer misplaced in the header or content area due to a bug introduced in v1.6.0.
142
+
143
  = 1.6.0 =
144
  - New: Added Email Subscription and About Us section on the settings page.
145
  - New: Renamed the plugin to Elementor Header & Footer Builder.