Version Description
- Fix: Make the theme not supported notice dismissable.
- Fix: Use specific selector when adding z-index for the header.
Download this release
Release Info
Developer | Nikschavan |
Plugin | Header Footer Elementor |
Version | 1.0.16 |
Comparing to | |
See all releases |
Code changes from version 1.0.15 to 1.0.16
- admin/class-hfe-admin.php +1 -1
- assets/css/header-footer-elementor.css +1 -1
- header-footer-elementor.php +2 -2
- inc/class-header-footer-elementor.php +21 -14
- inc/class-hfe-notices.php +2 -2
- languages/header-footer-elementor.pot +2 -2
- readme.txt +7 -3
admin/class-hfe-admin.php
CHANGED
@@ -139,7 +139,7 @@ class HFE_Admin {
|
|
139 |
<p>
|
140 |
<label for="display-on-canvas-template">
|
141 |
<input type="checkbox" id="display-on-canvas-template" name="display-on-canvas-template" value="1" <?php checked( $display_on_canvas, true ); ?> />
|
142 |
-
<?php _e( 'Display Layout on Elementor Canvas Template?', 'header-footer-elementor' ); ?>
|
143 |
</label>
|
144 |
</p>
|
145 |
<p class="description"><?php _e( 'Enabling this option will display this layout on pages using Elementor Canvas Template.', 'header-footer-elementor' ); ?></p>
|
139 |
<p>
|
140 |
<label for="display-on-canvas-template">
|
141 |
<input type="checkbox" id="display-on-canvas-template" name="display-on-canvas-template" value="1" <?php checked( $display_on_canvas, true ); ?> />
|
142 |
+
<?php _e( 'Display Layout automatically on Elementor Canvas Template?', 'header-footer-elementor' ); ?>
|
143 |
</label>
|
144 |
</p>
|
145 |
<p class="description"><?php _e( 'Enabling this option will display this layout on pages using Elementor Canvas Template.', 'header-footer-elementor' ); ?></p>
|
assets/css/header-footer-elementor.css
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
}
|
28 |
|
29 |
/* Fix: Header hidden below the page content */
|
30 |
-
.ehf-header
|
31 |
z-index: 30;
|
32 |
position: relative;
|
33 |
}
|
27 |
}
|
28 |
|
29 |
/* Fix: Header hidden below the page content */
|
30 |
+
.ehf-header #masthead {
|
31 |
z-index: 30;
|
32 |
position: relative;
|
33 |
}
|
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.
|
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__ ) );
|
7 |
* Author URI: https://www.brainstormforce.com/
|
8 |
* Text Domain: header-footer-elementor
|
9 |
* Domain Path: /languages
|
10 |
+
* Version: 1.0.16
|
11 |
*
|
12 |
* @package header-footer-elementor
|
13 |
*/
|
14 |
|
15 |
+
define( 'HFE_VER', '1.0.16' );
|
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
@@ -59,6 +59,7 @@ class Header_Footer_Elementor {
|
|
59 |
// Scripts and styles.
|
60 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
61 |
add_filter( 'body_class', array( $this, 'body_class' ) );
|
|
|
62 |
|
63 |
} else {
|
64 |
|
@@ -68,6 +69,17 @@ class Header_Footer_Elementor {
|
|
68 |
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
/**
|
72 |
* Prints the admin notics when Elementor is not installed or activated.
|
73 |
*/
|
@@ -102,8 +114,7 @@ class Header_Footer_Elementor {
|
|
102 |
}
|
103 |
|
104 |
// Load the Admin Notice Class.
|
105 |
-
|
106 |
-
// require_once HFE_DIR . 'inc/class-hfe-notices.php';.
|
107 |
}
|
108 |
|
109 |
/**
|
@@ -174,22 +185,18 @@ class Header_Footer_Elementor {
|
|
174 |
public function setup_unsupported_theme_notice() {
|
175 |
|
176 |
if ( ! current_theme_supports( 'header-footer-elementor' ) ) {
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
}
|
180 |
|
181 |
}
|
182 |
|
183 |
-
/**
|
184 |
-
* Prints an admin notics oif the currently installed theme is not supported by header-footer-elementor.
|
185 |
-
*/
|
186 |
-
public function unsupported_theme() {
|
187 |
-
$class = 'notice notice-error';
|
188 |
-
$message = __( 'Hey, your current theme is not supported by Header Footer Elementor, click <a href="https://github.com/Nikschavan/header-footer-elementor#which-themes-are-supported-by-this-plugin">here</a> to check out the supported themes.', 'header-footer-elementor' );
|
189 |
-
|
190 |
-
printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
|
191 |
-
}
|
192 |
-
|
193 |
/**
|
194 |
* Prints the Header content.
|
195 |
*/
|
59 |
// Scripts and styles.
|
60 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
61 |
add_filter( 'body_class', array( $this, 'body_class' ) );
|
62 |
+
add_action( 'switch_theme', array( $this, 'reset_unsupported_theme_notice' ) );
|
63 |
|
64 |
} else {
|
65 |
|
69 |
|
70 |
}
|
71 |
|
72 |
+
/**
|
73 |
+
* Reset the Unsupported theme nnotice after a theme is switched.
|
74 |
+
*
|
75 |
+
* @since 1.0.16
|
76 |
+
*
|
77 |
+
* @return void
|
78 |
+
*/
|
79 |
+
public function reset_unsupported_theme_notice() {
|
80 |
+
delete_user_meta( get_current_user_id(), 'hfe-sites-notices-id-unsupported-theme' );
|
81 |
+
}
|
82 |
+
|
83 |
/**
|
84 |
* Prints the admin notics when Elementor is not installed or activated.
|
85 |
*/
|
114 |
}
|
115 |
|
116 |
// Load the Admin Notice Class.
|
117 |
+
require_once HFE_DIR . 'inc/class-hfe-notices.php';
|
|
|
118 |
}
|
119 |
|
120 |
/**
|
185 |
public function setup_unsupported_theme_notice() {
|
186 |
|
187 |
if ( ! current_theme_supports( 'header-footer-elementor' ) ) {
|
188 |
+
HFE_Notices::add_notice(
|
189 |
+
array(
|
190 |
+
'id' => 'unsupported-theme',
|
191 |
+
'type' => 'error',
|
192 |
+
'dismissible' => true,
|
193 |
+
'message' => __( 'Hey, your current theme is not supported by Header Footer Elementor, click <a href="https://github.com/Nikschavan/header-footer-elementor#which-themes-are-supported-by-this-plugin">here</a> to check out the supported themes.', 'header-footer-elementor' ),
|
194 |
+
)
|
195 |
+
);
|
196 |
}
|
197 |
|
198 |
}
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
/**
|
201 |
* Prints the Header content.
|
202 |
*/
|
inc/class-hfe-notices.php
CHANGED
@@ -150,10 +150,10 @@ if ( ! class_exists( 'HFE_Notices' ) ) :
|
|
150 |
}
|
151 |
|
152 |
// Notice ID.
|
153 |
-
$notice_id = 'hfe-sites-notices-id-' . $
|
154 |
$notice['id'] = $notice_id;
|
155 |
if ( ! isset( $notice['id'] ) ) {
|
156 |
-
$notice_id = 'hfe-sites-notices-id-' . $
|
157 |
$notice['id'] = $notice_id;
|
158 |
} else {
|
159 |
$notice_id = $notice['id'];
|
150 |
}
|
151 |
|
152 |
// Notice ID.
|
153 |
+
$notice_id = 'hfe-sites-notices-id-' . $notice['id'];
|
154 |
$notice['id'] = $notice_id;
|
155 |
if ( ! isset( $notice['id'] ) ) {
|
156 |
+
$notice_id = 'hfe-sites-notices-id-' . $notice['id'];
|
157 |
$notice['id'] = $notice_id;
|
158 |
} else {
|
159 |
$notice_id = $notice['id'];
|
languages/header-footer-elementor.pot
CHANGED
@@ -5,7 +5,7 @@ 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-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -98,7 +98,7 @@ msgid "Footer"
|
|
98 |
msgstr ""
|
99 |
|
100 |
#: admin/class-hfe-admin.php:142
|
101 |
-
msgid "Display Layout on Elementor Canvas Template?"
|
102 |
msgstr ""
|
103 |
|
104 |
#: admin/class-hfe-admin.php:145
|
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-08-09 14:56:52+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
98 |
msgstr ""
|
99 |
|
100 |
#: admin/class-hfe-admin.php:142
|
101 |
+
msgid "Display Layout automatically on Elementor Canvas Template?"
|
102 |
msgstr ""
|
103 |
|
104 |
#: admin/class-hfe-admin.php:145
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Tags: elementor, header footer builder, header, footer, page builder, template b
|
|
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.
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -28,7 +28,7 @@ All you need to do is -
|
|
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 & Customizable WordPress Theme.
|
34 |
2. GeneratePress.
|
@@ -93,6 +93,10 @@ If the above is nnot possible, You can also add support for the plugin from your
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
96 |
= 1.0.15 =
|
97 |
- Fix: Default Header being displayed for Generatepress and Gensis theme after v1.0.14.
|
98 |
|
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.8
|
8 |
+
Stable tag: 1.0.16
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
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 & Customizable WordPress Theme.
|
34 |
2. GeneratePress.
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.0.16 =
|
97 |
+
- Fix: Make the theme not supported notice dismissable.
|
98 |
+
- Fix: Use specific selector when adding z-index for the header.
|
99 |
+
|
100 |
= 1.0.15 =
|
101 |
- Fix: Default Header being displayed for Generatepress and Gensis theme after v1.0.14.
|
102 |
|