Header Footer Elementor - Version 1.1.2

Version Description

  • Fix: Depracated function warning from Elementor's method \Elementor\Post_CSS_File
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

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.1.1
11
*
12
* @package header-footer-elementor
13
*/
14
15
- define( 'HFE_VER', '1.1.1' );
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.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__ ) );
inc/class-header-footer-elementor.php CHANGED
@@ -135,27 +135,34 @@ class Header_Footer_Elementor {
135
public function enqueue_scripts() {
136
wp_enqueue_style( 'hfe-style', HFE_URL . 'assets/css/header-footer-elementor.css', array(), HFE_VER );
137
138
- if ( class_exists( '\Elementor\Post_CSS_File' ) ) {
139
-
140
- if ( class_exists( '\Elementor\Plugin' ) ) {
141
- $elementor = \Elementor\Plugin::instance();
142
- $elementor->frontend->enqueue_styles();
143
- }
144
145
- if ( class_exists( '\ElementorPro\Plugin' ) ) {
146
- $elementor_pro = \ElementorPro\Plugin::instance();
147
- $elementor_pro->enqueue_styles();
148
- }
149
150
- if ( hfe_header_enabled() ) {
151
$css_file = new \Elementor\Post_CSS_File( get_hfe_header_id() );
152
- $css_file->enqueue();
153
}
154
155
- if ( hfe_footer_enabled() ) {
156
$css_file = new \Elementor\Post_CSS_File( get_hfe_footer_id() );
157
- $css_file->enqueue();
158
}
159
}
160
}
161
135
public function enqueue_scripts() {
136
wp_enqueue_style( 'hfe-style', HFE_URL . 'assets/css/header-footer-elementor.css', array(), HFE_VER );
137
138
+ if ( class_exists( '\Elementor\Plugin' ) ) {
139
+ $elementor = \Elementor\Plugin::instance();
140
+ $elementor->frontend->enqueue_styles();
141
+ }
142
143
+ if ( class_exists( '\ElementorPro\Plugin' ) ) {
144
+ $elementor_pro = \ElementorPro\Plugin::instance();
145
+ $elementor_pro->enqueue_styles();
146
+ }
147
148
+ if ( hfe_header_enabled() ) {
149
+ if ( class_exists( '\Elementor\Core\Files\CSS\Post' ) ) {
150
+ $css_file = new \Elementor\Core\Files\CSS\Post( get_hfe_header_id() );
151
+ } elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
152
$css_file = new \Elementor\Post_CSS_File( get_hfe_header_id() );
153
}
154
155
+ $css_file->enqueue();
156
+ }
157
+
158
+ if ( hfe_footer_enabled() ) {
159
+ if ( class_exists( '\Elementor\Core\Files\CSS\Post' ) ) {
160
+ $css_file = new \Elementor\Core\Files\CSS\Post( get_hfe_footer_id() );
161
+ } elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
162
$css_file = new \Elementor\Post_CSS_File( get_hfe_footer_id() );
163
}
164
+
165
+ $css_file->enqueue();
166
}
167
}
168
languages/header-footer-elementor.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2018 Brainstorm Force, Nikhil Chavan
2
# This file is distributed under the same license as the Header, Footer & Blocks for Elementor package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: Header, Footer & Blocks for Elementor 1.1.0\n"
6
"Report-Msgid-Bugs-To: "
7
"https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2018-12-19 16:58:13+00:00\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=utf-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
"Language-Team: LANGUAGE <LL@li.org>\n"
15
"Language: en\n"
@@ -137,7 +137,7 @@ msgid ""
137
"href=\"%s\">Elementor</strong></a> plugin installed & activated."
138
msgstr ""
139
140
- #: inc/class-header-footer-elementor.php:212
141
msgid ""
142
"Hey, your current theme is not supported by Header Footer Elementor, click "
143
"<a "
1
+ # Copyright (C) 2019 Brainstorm Force, Nikhil Chavan
2
# This file is distributed under the same license as the Header, Footer & Blocks for Elementor package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: Header, Footer & Blocks for Elementor 1.1.2\n"
6
"Report-Msgid-Bugs-To: "
7
"https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2019-01-16 07:15:45+00:00\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=utf-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
"Language-Team: LANGUAGE <LL@li.org>\n"
15
"Language: en\n"
137
"href=\"%s\">Elementor</strong></a> plugin installed & activated."
138
msgstr ""
139
140
+ #: inc/class-header-footer-elementor.php:219
141
msgid ""
142
"Hey, your current theme is not supported by Header Footer Elementor, click "
143
"<a "
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: 5.0
8
- Stable tag: 1.1.1
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -93,6 +93,9 @@ If the above is nnot possible, You can also add support for the plugin from your
93
94
== Changelog ==
95
96
= 1.1.1 =
97
- Fix: Blank header being displayed when only footer is translated using WPML.
98
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
93
94
== Changelog ==
95
96
+ = 1.1.2 =
97
+ - Fix: Depracated function warning from Elementor's method `\Elementor\Post_CSS_File`
98
+
99
= 1.1.1 =
100
- Fix: Blank header being displayed when only footer is translated using WPML.
101