Header Footer Elementor - Version 1.0.11

Version Description

  • Load the CSS footer early in the page to avoid slow rendering of CSS.
  • Change the schema.org links to be https.
  • Fix: Added correct schema markup for the footer.
Download this release

Release Info

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

Code changes from version 1.0.10 to 1.0.11

header-footer-elementor.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /**
3
- * Plugin Name: Header Footer Elementor
4
  * Plugin URI: https://github.com/Nikschavan/header-footer-elementor
5
  * Description: Create Header and Footer for your site using Elementor Page Builder.
6
  * Author: Brainstorm Force, Nikhil Chavan
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.0.10
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.0.10' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
1
  <?php
2
  /**
3
+ * Plugin Name: Create Header / Footer with Elementor
4
  * Plugin URI: https://github.com/Nikschavan/header-footer-elementor
5
  * Description: Create Header and Footer for your site using Elementor Page Builder.
6
  * Author: Brainstorm Force, Nikhil Chavan
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.0.11
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.0.11' );
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
@@ -135,6 +135,11 @@ class Header_Footer_Elementor {
135
  $css_file = new \Elementor\Post_CSS_File( get_hfe_header_id() );
136
  $css_file->enqueue();
137
  }
 
 
 
 
 
138
  }
139
  }
140
 
135
  $css_file = new \Elementor\Post_CSS_File( get_hfe_header_id() );
136
  $css_file->enqueue();
137
  }
138
+
139
+ if ( hfe_footer_enabled() ) {
140
+ $css_file = new \Elementor\Post_CSS_File( get_hfe_footer_id() );
141
+ $css_file->enqueue();
142
+ }
143
  }
144
  }
145
 
inc/hfe-functions.php CHANGED
@@ -19,7 +19,7 @@ function hfe_header_enabled() {
19
  $status = true;
20
  }
21
 
22
- return apply_filters( 'hfe_footer_enabled', $status );
23
  }
24
 
25
  /**
@@ -83,7 +83,7 @@ function hfe_render_header() {
83
  }
84
 
85
  ?>
86
- <header id="masthead" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
87
  <p class="main-title bhf-hidden" itemprop="headline"><a href="<?php echo bloginfo( 'url' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
88
  <?php Header_Footer_Elementor::get_header_content(); ?>
89
  </header>
@@ -104,7 +104,7 @@ function hfe_render_footer() {
104
  }
105
 
106
  ?>
107
- <footer itemscope="itemscope" itemtype="http://schema.org/WPFooter">
108
  <?php Header_Footer_Elementor::get_footer_content(); ?>
109
  </footer>
110
  <?php
19
  $status = true;
20
  }
21
 
22
+ return apply_filters( 'hfe_header_enabled', $status );
23
  }
24
 
25
  /**
83
  }
84
 
85
  ?>
86
+ <header id="masthead" itemscope="itemscope" itemtype="https://schema.org/WPHeader">
87
  <p class="main-title bhf-hidden" itemprop="headline"><a href="<?php echo bloginfo( 'url' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
88
  <?php Header_Footer_Elementor::get_header_content(); ?>
89
  </header>
104
  }
105
 
106
  ?>
107
+ <footer itemtype="https://schema.org/WPFooter" itemscope="itemscope" id="colophon" role="contentinfo">
108
  <?php Header_Footer_Elementor::get_footer_content(); ?>
109
  </footer>
110
  <?php
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.10\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2018-02-01 09:46:02+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -119,7 +119,7 @@ msgid ""
119
  "href=\"%s\">Elementor</strong></a> plugin installed & activated."
120
  msgstr ""
121
 
122
- #: inc/class-header-footer-elementor.php:183
123
  msgid ""
124
  "Hey, your current theme is not supported by Header Footer Elementor, click "
125
  "<a "
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.11\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2018-02-27 10:30:33+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
119
  "href=\"%s\">Elementor</strong></a> plugin installed & activated."
120
  msgstr ""
121
 
122
+ #: inc/class-header-footer-elementor.php:188
123
  msgid ""
124
  "Hey, your current theme is not supported by Header Footer Elementor, click "
125
  "<a "
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Header Footer Elementor ===
2
  Contributors: brainstormforce, Nikschavan
3
  Tags: elementor, header footer builder, header, footer, page builder, template builder, landing page builder, front-end editor
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
- Tested up to: 4.9.3
8
- Stable tag: 1.0.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -86,10 +86,15 @@ If the above is nnot possible, You can also add support for the plugin from your
86
  == Screenshots ==
87
 
88
  1. Go to Appearane -> Header Footer Builder to create a new template.
89
- 2. After the template is reade, Assign the template to be header or footer replacement.
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
93
  = 1.0.10 =
94
  - Load the header layout correctly in the <body> in Elementor canvas template.
95
  - Load the Elementor Pro CSS/JS files in <head>.
1
+ === Create Header / Footer with Elementor ===
2
  Contributors: brainstormforce, Nikschavan
3
  Tags: elementor, header footer builder, header, footer, page builder, template builder, landing page builder, front-end editor
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
+ Tested up to: 4.9.4
8
+ Stable tag: 1.0.11
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
86
  == Screenshots ==
87
 
88
  1. Go to Appearane -> Header Footer Builder to create a new template.
89
+ 2. After the template is ready, assign it to be a header or footer replacement.
90
 
91
  == Changelog ==
92
 
93
+ = 1.0.11 =
94
+ - Load the CSS footer early in the page to avoid slow rendering of CSS.
95
+ - Change the schema.org links to be https.
96
+ - Fix: Added correct schema markup for the footer.
97
+
98
  = 1.0.10 =
99
  - Load the header layout correctly in the <body> in Elementor canvas template.
100
  - Load the Elementor Pro CSS/JS files in <head>.
themes/bb-theme/class-hfe-bb-theme-compat.php CHANGED
@@ -62,7 +62,7 @@ class HFE_BB_Theme_Compat {
62
  }
63
 
64
  ?>
65
- <header id="masthead" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
66
  <p class="main-title bhf-hidden" itemprop="headline"><a href="<?php echo bloginfo( 'url' ); ?>"
67
  title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
68
  rel="home"><?php bloginfo( 'name' ); ?></a></p>
@@ -81,7 +81,7 @@ class HFE_BB_Theme_Compat {
81
  }
82
 
83
  ?>
84
- <footer itemscope="itemscope" itemtype="http://schema.org/WPFooter">
85
  <?php Header_Footer_Elementor::get_footer_content(); ?>
86
  </footer>
87
  <?php
62
  }
63
 
64
  ?>
65
+ <header id="masthead" itemscope="itemscope" itemtype="https://schema.org/WPHeader">
66
  <p class="main-title bhf-hidden" itemprop="headline"><a href="<?php echo bloginfo( 'url' ); ?>"
67
  title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
68
  rel="home"><?php bloginfo( 'name' ); ?></a></p>
81
  }
82
 
83
  ?>
84
+ <footer itemscope="itemscope" itemtype="https://schema.org/WPFooter">
85
  <?php Header_Footer_Elementor::get_footer_content(); ?>
86
  </footer>
87
  <?php