Header Footer Elementor - Version v1.1.3

Version Description

Download this release

Release Info

Developer Nikschavan
Plugin Icon Header Footer Elementor
Version v1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to v1.1.3

admin/class-hfe-admin.php CHANGED
@@ -77,7 +77,6 @@ class HFE_Admin {
77
$args = array(
78
'labels' => $labels,
79
'public' => true,
80
- 'rewrite' => false,
81
'show_ui' => true,
82
'show_in_menu' => false,
83
'show_in_nav_menus' => false,
77
$args = array(
78
'labels' => $labels,
79
'public' => true,
80
'show_ui' => true,
81
'show_in_menu' => false,
82
'show_in_nav_menus' => false,
assets/css/header-footer-elementor.css CHANGED
@@ -28,6 +28,6 @@
28
29
/* Fix: Header hidden below the page content */
30
.ehf-header #masthead {
31
- z-index: 30;
32
position: relative;
33
}
28
29
/* Fix: Header hidden below the page content */
30
.ehf-header #masthead {
31
+ z-index: 200;
32
position: relative;
33
}
header-footer-elementor.php CHANGED
@@ -1,18 +1,18 @@
1
<?php
2
/**
3
- * Plugin Name: Header, Footer & Blocks for 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.1.2
11
*
12
* @package header-footer-elementor
13
*/
14
15
- define( 'HFE_VER', '1.1.2' );
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: Elementor - Header, Footer & Blocks
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.1.3
11
*
12
* @package header-footer-elementor
13
*/
14
15
+ define( 'HFE_VER', '1.1.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
@@ -324,18 +324,18 @@ class Header_Footer_Elementor {
324
'hfe_template'
325
);
326
327
- $id = ! empty( $atts['id'] ) ? intval( $atts['id'] ) : '';
328
329
if ( empty( $id ) ) {
330
return '';
331
}
332
333
- if ( class_exists( '\Elementor\Post_CSS_File' ) ) {
334
-
335
- // Load elementor styles.
336
$css_file = new \Elementor\Post_CSS_File( $id );
337
- $css_file->enqueue();
338
}
339
340
return self::$elementor_instance->frontend->get_builder_content_for_display( $id );
341
324
'hfe_template'
325
);
326
327
+ $id = ! empty( $atts['id'] ) ? apply_filters( 'hfe_render_template_id', intval( $atts['id'] ) ) : '';
328
329
if ( empty( $id ) ) {
330
return '';
331
}
332
333
+ if ( class_exists( '\Elementor\Core\Files\CSS\Post' ) ) {
334
+ $css_file = new \Elementor\Core\Files\CSS\Post( $id );
335
+ } elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
336
$css_file = new \Elementor\Post_CSS_File( $id );
337
}
338
+ $css_file->enqueue();
339
340
return self::$elementor_instance->frontend->get_builder_content_for_display( $id );
341
inc/compatibility/class-hfe-wpml-compatibility.php CHANGED
@@ -46,6 +46,7 @@ class HFE_WPML_Compatibility {
46
private function __construct() {
47
add_filter( 'hfe_get_settings_type_header', array( $this, 'get_wpml_object' ) );
48
add_filter( 'hfe_get_settings_type_footer', array( $this, 'get_wpml_object' ) );
49
}
50
51
/**
46
private function __construct() {
47
add_filter( 'hfe_get_settings_type_header', array( $this, 'get_wpml_object' ) );
48
add_filter( 'hfe_get_settings_type_footer', array( $this, 'get_wpml_object' ) );
49
+ add_filter( 'hfe_render_template_id', array( $this, 'get_wpml_object' ) );
50
}
51
52
/**
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Header, Footer & Blocks for 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: 5.0
8
- Stable tag: 1.1.2
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -13,7 +13,9 @@ Create Header and Footer for your site using Elementor Page Builder.
13
14
== Description ==
15
16
- Create header and footer of your site easily using [Elementor](https://goo.gl/qhDrbf "Elementor").
17
18
All you need to do is -
19
@@ -21,27 +23,47 @@ All you need to do is -
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.
46
47
Made with love at <a href="https://www.brainstormforce.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">Brainstorm Force</a>!
@@ -93,6 +115,12 @@ If the above is nnot possible, You can also add support for the plugin from your
93
94
== Changelog ==
95
96
= 1.1.2 =
97
- Fix: Depracated function warning from Elementor's method `\Elementor\Post_CSS_File`
98
1
+ === Elementor - Header, Footer & Blocks ===
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: 5.0
8
+ Stable tag: 1.1.3
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
13
14
== Description ==
15
16
+ Have you ever imagined you could create your website’s header and footer with <a href="https://elementor.com/?ref=1352">Elementor</a>?
17
+
18
+ The Header Footer Elementor plugin allows you to create a layout with Elementor and set it as a header or footer easily on your website.
19
20
All you need to do is -
21
23
2. Select whether it should be applied as the header or footer.
24
3. The template will be automatically applied as the header/footer. Easy peasy!
25
26
+ You can refer to our step-by-step article that will help you <a href="https://uaelementor.com/header-footer-with-elementor/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">set Elementor headers and footers</a> quickly.
27
28
= Features of Header Footer Elementor =
29
30
+ - Create attractive pages and templates to be used as header or footer.
31
+ - Usefully customized header and footer across the website.
32
+
33
+ = Themes you can use Header Footer Elementor with =
34
35
+ The Header Footer Elementor isn’t universally compatible with all WordPress themes. Here is a list of themes you can use it with
36
37
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.
38
+ 2. <a href="https://shareasale.com/r.cfm?b=642802&u=1115254&m=55096&urllink=themeisle%2Ecom%2Fthemes%2Fneve%2F&afftrack=">Neve.</a>
39
+ 3. <a href="https://shareasale.com/r.cfm?b=642802&u=1115254&m=55096&urllink=themeisle%2Ecom%2Fthemes%2Fhestia%2F&afftrack=">Hestia.</a>
40
+ 4. GeneratePress.
41
+ 5. OceanWP.
42
+ 6. Genesis.
43
+ 7. Phlox Theme.
44
+
45
+ Do not see your theme listed here? Theme authors can add <a href="https://github.com/Nikschavan/header-footer-elementor/wiki/Adding-Header-Footer-Elementor-support-for-your-theme">support for Header Footer Elementor through their theme</a> easily.
46
+
47
+ = LOOKING FOR PREMIUM ELEMENTOR ADDONS AND WIDGETS? =
48
+ 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 creative and unique Elementor widgets that add more functionality and flexibility to your favorite page builder.
49
+
50
+ = HAVE YOU TRIED ASTRA WITH ELEMENTOR? =
51
+
52
+ Powering over 400,000+ WordPress websites, Astra is loved for the performance and ease-of-use it offers.
53
54
+ = WHY PEOPLE LOVE ASTRA? =
55
56
+ **Better Performance** - Optimized code and modular architecture make Astra the most lightweight theme for a faster loading website!
57
58
+ **Page Builder’s Best Friend** - Astra works great with all page builders. Its support for custom layouts, Elementor templates, and ready-made starter sites makes it the best <a href="https://wpastra.com/theme-for-elementor/?utm_source=wp-repo&utm_medium=astra_desc&utm_campaign=header_footer_elementor">theme for Elementor</a>.
59
+
60
+ **Easy Customization** - Astra takes away the pain and time spent in coding. With all the settings available in the customizer itself, Astra lets you manage all the theme options with just a few clicks.
61
+
62
+ **Deeper Integrations** - Astra works seamlessly with all WooCommerce plugins, LifterLMS, LearnDash, etc. Therefore, you can now build online stores or websites offering online courses with Astra and Elementor!
63
+
64
+ **Ready-to-use complete website demos** - Astra offers free ready-made website demos built with Elementor. You can import them using the <a href="https://wordpress.org/plugins/astra-sites/">Astra Starter Sites</a> plugin, tweak them as you want and go live in minutes!
65
+
66
+ = SUPPORTED & ACTIVELY DEVELOPED =
67
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.
68
69
Made with love at <a href="https://www.brainstormforce.com/?utm_source=wp-repo&utm_campaign=header-footer-elementor&utm_medium=description">Brainstorm Force</a>!
115
116
== Changelog ==
117
118
+ = 1.1.3 =
119
+ - Improvement: Allow changing the permalinks for the hfe templates (<a href="https://github.com/Nikschavan/header-footer-elementor/pull/162/">#162</a>)
120
+ - Fix: WPML Translations do not work when using the Elementor Template as a shortcode. (<a href="https://github.com/Nikschavan/header-footer-elementor/pull/159/">#159</a>)
121
+ - Fix: Page content appears over the header. (<a href="https://github.com/Nikschavan/header-footer-elementor/pull/150/">#150</a>)
122
+ - Fix: Remove the deprecated function warning for shortcode functions. (Props <a href="https://github.com/hogash">@hogash</a> <a href="https://github.com/Nikschavan/header-footer-elementor/pull/145/">#145</a>)
123
+
124
= 1.1.2 =
125
- Fix: Depracated function warning from Elementor's method `\Elementor\Post_CSS_File`
126