Header Footer Elementor - Version 1.0.3

Version Description

  • Fix: Adding theme support for the plugin does not remove the "no supported" notice.
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

header-footer-elementor.php CHANGED
@@ -7,12 +7,12 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.0.2
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.0.2' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.0.3
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.0.3' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/class-header-footer-elementor.php CHANGED
@@ -53,10 +53,8 @@ class Header_Footer_Elementor {
53
  } elseif ( 'oceanwp' == $this->template ) {
54
 
55
  require HFE_DIR . 'themes/oceanwp/class-hfe-oceanwp-compat.php';
56
- } elseif ( ! current_theme_supports( 'header-footer-elementor' ) ) {
57
-
58
- add_action( 'admin_notices', array( $this, 'unsupported_theme' ) );
59
- add_action( 'network_admin_notices', array( $this, 'unsupported_theme' ) );
60
  }
61
 
62
  // Scripts and styles.
@@ -141,6 +139,20 @@ class Header_Footer_Elementor {
141
  return $classes;
142
  }
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  /**
145
  * Prints an admin notics oif the currently installed theme is not supported by header-footer-elementor.
146
  */
53
  } elseif ( 'oceanwp' == $this->template ) {
54
 
55
  require HFE_DIR . 'themes/oceanwp/class-hfe-oceanwp-compat.php';
56
+ } else {
57
+ add_action( 'init', array( $this, 'setup_unsupported_theme_notice' ) );
 
 
58
  }
59
 
60
  // Scripts and styles.
139
  return $classes;
140
  }
141
 
142
+ /**
143
+ * Display Unsupported theme notice if the current theme does add support for 'header-footer-elementor'
144
+ *
145
+ * @since 1.0.3
146
+ */
147
+ public function setup_unsupported_theme_notice() {
148
+
149
+ if ( ! current_theme_supports( 'header-footer-elementor' ) ) {
150
+ add_action( 'admin_notices', array( $this, 'unsupported_theme' ) );
151
+ add_action( 'network_admin_notices', array( $this, 'unsupported_theme' ) );
152
+ }
153
+
154
+ }
155
+
156
  /**
157
  * Prints an admin notics oif the currently installed theme is not supported by header-footer-elementor.
158
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, header footer builder, header, footer, page builder, template b
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 3.6
6
  Tested up to: 4.8.2
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -33,6 +33,9 @@ The plugin only works with limited number of themes as of now, here is the list
33
  4. OceanWP Theme.
34
  5. Beaver Builder theme.
35
 
 
 
 
36
  = Supported & Actively Developed =
37
  Need help with something? Have an issue to report? [Get in touch](https://github.com/Nikschavan/header-footer-elementor "Header Footer elementor on GitHub"). with us on GitHub.
38
 
@@ -69,6 +72,9 @@ If you are a theme developer <a href="https://github.com/Nikschavan/header-foote
69
 
70
  == Changelog ==
71
 
 
 
 
72
  = 1.0.2 =
73
  - New: Added support for the OceanWP Theme.
74
  - Fix: Load the elementor header assets corectly in header. This fixes header looking different just when loading the page as previously Elementor would load it's CSS in the footer.
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 3.6
6
  Tested up to: 4.8.2
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
33
  4. OceanWP Theme.
34
  5. Beaver Builder theme.
35
 
36
+ If you are a theme developer <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">here</a> is a quick tutorial on how you can add support for the Header Footer Elementor from your theme.
37
+
38
+
39
  = Supported & Actively Developed =
40
  Need help with something? Have an issue to report? [Get in touch](https://github.com/Nikschavan/header-footer-elementor "Header Footer elementor on GitHub"). with us on GitHub.
41
 
72
 
73
  == Changelog ==
74
 
75
+ = 1.0.3 =
76
+ - Fix: Adding theme support for the plugin does not remove the "no supported" notice.
77
+
78
  = 1.0.2 =
79
  - New: Added support for the OceanWP Theme.
80
  - Fix: Load the elementor header assets corectly in header. This fixes header looking different just when loading the page as previously Elementor would load it's CSS in the footer.