Version Description
- Improvement: Use Elementor's created instance when rendering the markup for header/footer - Credits itay9001
Download this release
Release Info
Developer | Nikschavan |
Plugin | Header Footer Elementor |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- header-footer-elementor.php +3 -3
- inc/class-header-footer-elementor.php +4 -5
- readme.txt +4 -1
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-
|
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 |
*
|
12 |
* @package header-footer-elementor
|
13 |
*/
|
14 |
|
15 |
-
define( 'HFE_VER', '1.0.
|
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: 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.4
|
11 |
*
|
12 |
* @package header-footer-elementor
|
13 |
*/
|
14 |
|
15 |
+
define( 'HFE_VER', '1.0.4' );
|
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
@@ -22,8 +22,7 @@ class Header_Footer_Elementor {
|
|
22 |
*
|
23 |
* @var \Elementor\Frontend()
|
24 |
*/
|
25 |
-
private static $
|
26 |
-
|
27 |
/**
|
28 |
* Constructor
|
29 |
*/
|
@@ -33,7 +32,7 @@ class Header_Footer_Elementor {
|
|
33 |
|
34 |
if ( defined( 'ELEMENTOR_VERSION' ) ) {
|
35 |
|
36 |
-
self::$
|
37 |
|
38 |
$this->includes();
|
39 |
$this->load_textdomain();
|
@@ -167,7 +166,7 @@ class Header_Footer_Elementor {
|
|
167 |
* Prints the Header content.
|
168 |
*/
|
169 |
public static function get_header_content() {
|
170 |
-
echo self::$
|
171 |
}
|
172 |
|
173 |
/**
|
@@ -176,7 +175,7 @@ class Header_Footer_Elementor {
|
|
176 |
public static function get_footer_content() {
|
177 |
|
178 |
echo "<div class='footer-width-fixer'>";
|
179 |
-
echo self::$
|
180 |
echo '</div>';
|
181 |
}
|
182 |
|
22 |
*
|
23 |
* @var \Elementor\Frontend()
|
24 |
*/
|
25 |
+
private static $elementor_instance;
|
|
|
26 |
/**
|
27 |
* Constructor
|
28 |
*/
|
32 |
|
33 |
if ( defined( 'ELEMENTOR_VERSION' ) ) {
|
34 |
|
35 |
+
self::$elementor_instance = Elementor\Plugin::instance();
|
36 |
|
37 |
$this->includes();
|
38 |
$this->load_textdomain();
|
166 |
* Prints the Header content.
|
167 |
*/
|
168 |
public static function get_header_content() {
|
169 |
+
echo self::$elementor_instance->frontend->get_builder_content_for_display( get_hfe_header_id() );
|
170 |
}
|
171 |
|
172 |
/**
|
175 |
public static function get_footer_content() {
|
176 |
|
177 |
echo "<div class='footer-width-fixer'>";
|
178 |
+
echo self::$elementor_instance->frontend->get_builder_content_for_display( get_hfe_footer_id() );
|
179 |
echo '</div>';
|
180 |
}
|
181 |
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -72,6 +72,9 @@ If you are a theme developer <a href="https://github.com/Nikschavan/header-foote
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
75 |
= 1.0.3 =
|
76 |
- Fix: Adding theme support for the plugin does not remove the "no supported" notice.
|
77 |
|
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.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.0.4 =
|
76 |
+
- Improvement: Use Elementor's created instance when rendering the markup for header/footer - Credits <a href="https://github.com/itay9001">itay9001</a>
|
77 |
+
|
78 |
= 1.0.3 =
|
79 |
- Fix: Adding theme support for the plugin does not remove the "no supported" notice.
|
80 |
|