Header Footer Elementor - Version 1.0.15

Version Description

  • Fix: Default Header being displayed for Generatepress and Gensis theme after v1.0.14.
Download this release

Release Info

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

Code changes from version 1.0.14 to 1.0.15

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.14
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.0.14' );
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.15
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.0.15' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
languages/header-footer-elementor.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Header Footer Elementor package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Header Footer Elementor 1.0.12\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2018-05-22 06:47:41+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Header Footer Elementor package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Header Footer Elementor 1.0.15\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2018-05-25 06:32: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"
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: 4.9.6
8
- Stable tag: 1.0.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -17,25 +17,29 @@ Create header and footer of your site easily using [Elementor](https://goo.gl/qh
17
 
18
  All you need to do is -
19
 
20
- 1. Design a Header or Footer Template.
21
- 2. Select the template type to be used for header or footer.
22
- 3. The template will be used throughout the site as header / footer.
 
 
23
 
24
  = Features of Header Footer Elementor =
25
 
26
  - Create attractive pages and templates that can be displayed as a Header or Footer.
27
  - Lets you use a fully customized header or footer across the website.
28
 
29
- The plugin only works with limited number of themes as of now, here is the list of supported themes -
30
 
31
  1. <a href="https://wpastra.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description&bsf=162">Astra</a> - The Fastest, Most Lightweight &amp; Customizable WordPress Theme.
32
- 2. GeneratePress Theme.
33
- 3. OceanWP Theme.
34
- 4. Genesis Theme.
35
  5. Phlox Theme.
36
 
37
- 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.
38
 
 
 
39
 
40
  = Supported & Actively Developed =
41
  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.
@@ -82,7 +86,6 @@ If you are a theme developer <a href="https://github.com/Nikschavan/header-foote
82
  If you are using a pre-made theme, The best approach would be to contact yoru theme developer and provide them link to the <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">Wiki article</a> on how they can add support for the plugin.
83
  If the above is nnot possible, You can also add support for the plugin from your child theme. Just follow <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Add-support-to-Header-Footer-Elementor-from-the-Child-Theme">this article</a>
84
 
85
-
86
  == Screenshots ==
87
 
88
  1. Go to Appearane -> Header Footer Builder to create a new template.
@@ -90,6 +93,9 @@ If the above is nnot possible, You can also add support for the plugin from your
90
 
91
  == Changelog ==
92
 
 
 
 
93
  = 1.0.14 =
94
  - Fix: Fixes possible PHP notices/Errors due to WP_Query being called early for all the supported themes.
95
 
@@ -143,4 +149,4 @@ If the above is nnot possible, You can also add support for the plugin from your
143
  * Use Elemenntor's canvas template when designing header and footer layout to have full width experience.
144
 
145
  = 1.0.0 =
146
- * Initial Release.
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 4.9.6
8
+ Stable tag: 1.0.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
17
 
18
  All you need to do is -
19
 
20
+ 1. Design a layout using Elementor.
21
+ 2. Select whether it should be applied as the header or footer.
22
+ 3. The template will be automatically applied as the header/footer. Easy peasy!
23
+
24
+ [Here is the step by step article](https://uaelementor.com/header-footer-with-elementor/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description "UAElementor") with screenshots.
25
 
26
  = Features of Header Footer Elementor =
27
 
28
  - Create attractive pages and templates that can be displayed as a Header or Footer.
29
  - Lets you use a fully customized header or footer across the website.
30
 
31
+ The plugin works best with these themes -
32
 
33
  1. <a href="https://wpastra.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description&bsf=162">Astra</a> - The Fastest, Most Lightweight &amp; Customizable WordPress Theme.
34
+ 2. GeneratePress.
35
+ 3. OceanWP.
36
+ 4. Genesis.
37
  5. Phlox Theme.
38
 
39
+ If you are a theme developer you can add support for the Header Footer Elementor from your theme easily. <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">Read instructions here</a>.
40
 
41
+ = Looking for premium Elementor Addons and Widgets? =
42
+ Check <a href="https://uaelementor.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">Ultimate Addons for Elementor</a>. It is a library of unique Elementor addons and widgets to add more functionality and flexibility to your favorite page builder.
43
 
44
  = Supported & Actively Developed =
45
  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.
86
  If you are using a pre-made theme, The best approach would be to contact yoru theme developer and provide them link to the <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">Wiki article</a> on how they can add support for the plugin.
87
  If the above is nnot possible, You can also add support for the plugin from your child theme. Just follow <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Add-support-to-Header-Footer-Elementor-from-the-Child-Theme">this article</a>
88
 
 
89
  == Screenshots ==
90
 
91
  1. Go to Appearane -> Header Footer Builder to create a new template.
93
 
94
  == Changelog ==
95
 
96
+ = 1.0.15 =
97
+ - Fix: Default Header being displayed for Generatepress and Gensis theme after v1.0.14.
98
+
99
  = 1.0.14 =
100
  - Fix: Fixes possible PHP notices/Errors due to WP_Query being called early for all the supported themes.
101
 
149
  * Use Elemenntor's canvas template when designing header and footer layout to have full width experience.
150
 
151
  = 1.0.0 =
152
+ * Initial Release.
themes/generatepress/class-hfe-generatepress-compat.php CHANGED
@@ -39,12 +39,12 @@ class HFE_GeneratePress_Compat {
39
  public function hooks() {
40
 
41
  if ( hfe_header_enabled() ) {
42
- add_action( 'init', array( $this, 'generatepress_setup_header' ), 10 );
43
  add_action( 'generate_header', 'hfe_render_header' );
44
  }
45
 
46
  if ( hfe_footer_enabled() ) {
47
- add_action( 'init', array( $this, 'generatepress_setup_footer' ), 10 );
48
  add_action( 'generate_footer', 'hfe_render_footer' );
49
  }
50
 
39
  public function hooks() {
40
 
41
  if ( hfe_header_enabled() ) {
42
+ add_action( 'template_redirect', array( $this, 'generatepress_setup_header' ) );
43
  add_action( 'generate_header', 'hfe_render_header' );
44
  }
45
 
46
  if ( hfe_footer_enabled() ) {
47
+ add_action( 'template_redirect', array( $this, 'generatepress_setup_footer' ) );
48
  add_action( 'generate_footer', 'hfe_render_footer' );
49
  }
50
 
themes/genesis/class-hfe-genesis-compat.php CHANGED
@@ -37,14 +37,14 @@ class HFE_Genesis_Compat {
37
  public function hooks() {
38
 
39
  if ( hfe_header_enabled() ) {
40
- add_action( 'init', array( $this, 'genesis_setup_header' ), 10 );
41
  add_action( 'genesis_header', array( $this, 'genesis_header_markup_open' ), 16 );
42
  add_action( 'genesis_header', array( $this, 'genesis_header_markup_close' ), 25 );
43
  add_action( 'genesis_header', array( 'Header_Footer_Elementor', 'get_header_content' ), 16 );
44
  }
45
 
46
  if ( hfe_footer_enabled() ) {
47
- add_action( 'init', array( $this, 'genesis_setup_footer' ), 10 );
48
  add_action( 'genesis_footer', array( $this, 'genesis_footer_markup_open' ), 16 );
49
  add_action( 'genesis_footer', array( $this, 'genesis_footer_markup_close' ), 25 );
50
  add_action( 'genesis_footer', array( 'Header_Footer_Elementor', 'get_footer_content' ), 16 );
37
  public function hooks() {
38
 
39
  if ( hfe_header_enabled() ) {
40
+ add_action( 'template_redirect', array( $this, 'genesis_setup_header' ) );
41
  add_action( 'genesis_header', array( $this, 'genesis_header_markup_open' ), 16 );
42
  add_action( 'genesis_header', array( $this, 'genesis_header_markup_close' ), 25 );
43
  add_action( 'genesis_header', array( 'Header_Footer_Elementor', 'get_header_content' ), 16 );
44
  }
45
 
46
  if ( hfe_footer_enabled() ) {
47
+ add_action( 'template_redirect', array( $this, 'genesis_setup_footer' ) );
48
  add_action( 'genesis_footer', array( $this, 'genesis_footer_markup_open' ), 16 );
49
  add_action( 'genesis_footer', array( $this, 'genesis_footer_markup_close' ), 25 );
50
  add_action( 'genesis_footer', array( 'Header_Footer_Elementor', 'get_footer_content' ), 16 );