Version Description
- Improvement: Compatibility with Elementor Pro version 3.6
- Fix: Navigation Menu - If Polylang language switcher is present in the menu, it closes the menu with a click.
Download this release
Release Info
Developer | Nikschavan |
Plugin | Header Footer Elementor |
Version | 1.6.9 |
Comparing to | |
See all releases |
Code changes from version 1.6.8 to 1.6.9
- header-footer-elementor.php +3 -3
- inc/js/frontend.js +19 -0
- languages/header-footer-elementor.pot +2 -2
- readme.txt +5 -1
header-footer-elementor.php
CHANGED
@@ -7,14 +7,14 @@
|
|
7 |
* Author URI: https://www.brainstormforce.com/
|
8 |
* Text Domain: header-footer-elementor
|
9 |
* Domain Path: /languages
|
10 |
-
* Version: 1.6.
|
11 |
* Elementor tested up to: 3.5.4
|
12 |
-
* Elementor Pro tested up to: 3.
|
13 |
*
|
14 |
* @package header-footer-elementor
|
15 |
*/
|
16 |
|
17 |
-
define( 'HFE_VER', '1.6.
|
18 |
define( 'HFE_FILE', __FILE__ );
|
19 |
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
|
20 |
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
|
7 |
* Author URI: https://www.brainstormforce.com/
|
8 |
* Text Domain: header-footer-elementor
|
9 |
* Domain Path: /languages
|
10 |
+
* Version: 1.6.9
|
11 |
* Elementor tested up to: 3.5.4
|
12 |
+
* Elementor Pro tested up to: 3.6.0
|
13 |
*
|
14 |
* @package header-footer-elementor
|
15 |
*/
|
16 |
|
17 |
+
define( 'HFE_VER', '1.6.9' );
|
18 |
define( 'HFE_FILE', __FILE__ );
|
19 |
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
|
20 |
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
|
inc/js/frontend.js
CHANGED
@@ -81,6 +81,8 @@
|
|
81 |
|
82 |
_toggleClick( id );
|
83 |
|
|
|
|
|
84 |
_handleSinglePageMenu( id, layout );
|
85 |
|
86 |
if( 'horizontal' !== layout ){
|
@@ -671,6 +673,23 @@
|
|
671 |
);
|
672 |
}
|
673 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
$( window ).on( 'elementor/frontend/init', function () {
|
675 |
|
676 |
elementorFrontend.hooks.addAction( 'frontend/element_ready/navigation-menu.default', WidgethfeNavMenuHandler );
|
81 |
|
82 |
_toggleClick( id );
|
83 |
|
84 |
+
_handlePolylangSwitcher( $scope );
|
85 |
+
|
86 |
_handleSinglePageMenu( id, layout );
|
87 |
|
88 |
if( 'horizontal' !== layout ){
|
673 |
);
|
674 |
}
|
675 |
|
676 |
+
/**
|
677 |
+
* This function handles polylang plugin's lang switcher if present in the menu.
|
678 |
+
*
|
679 |
+
* @param {Object} $scope The current element(hfe nav menu) wrapped with jQuery.
|
680 |
+
*/
|
681 |
+
function _handlePolylangSwitcher( $scope ) {
|
682 |
+
var polylangSwitcher = $scope.find( '.hfe-nav-menu nav .pll-parent-menu-item a.hfe-menu-item' );
|
683 |
+
var hrefProperty = polylangSwitcher.prop( 'href' );
|
684 |
+
if ( undefined !== hrefProperty && hrefProperty.includes( '#' ) ) {
|
685 |
+
var index = hrefProperty.indexOf( '#' );
|
686 |
+
var value = hrefProperty.slice( index );
|
687 |
+
if ( value === '#pll_switcher' ) {
|
688 |
+
polylangSwitcher.prop( 'href', '#' );
|
689 |
+
}
|
690 |
+
}
|
691 |
+
}
|
692 |
+
|
693 |
$( window ).on( 'elementor/frontend/init', function () {
|
694 |
|
695 |
elementorFrontend.hooks.addAction( 'frontend/element_ready/navigation-menu.default', WidgethfeNavMenuHandler );
|
languages/header-footer-elementor.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the Elementor Header & Footer Builder package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Elementor Header & Footer Builder 1.6.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/header-footer-elementor\n"
|
8 |
-
"POT-Creation-Date: 2022-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Elementor Header & Footer Builder package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Elementor Header & Footer Builder 1.6.9\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/header-footer-elementor\n"
|
8 |
+
"POT-Creation-Date: 2022-02-02 07:47:30+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
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.9
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -137,6 +137,10 @@ This same applies when you are creating your Header/Footer using this plugin.
|
|
137 |
5. Default widgets available with Elementor Header & Footer Builder.
|
138 |
|
139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
140 |
= 1.6.8 =
|
141 |
- Improvement: WordPress 5.9 compatibility.
|
142 |
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 5.9
|
8 |
+
Stable tag: 1.6.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
137 |
5. Default widgets available with Elementor Header & Footer Builder.
|
138 |
|
139 |
== Changelog ==
|
140 |
+
= 1.6.9 =
|
141 |
+
- Improvement: Compatibility with Elementor Pro version 3.6
|
142 |
+
- Fix: Navigation Menu - If Polylang language switcher is present in the menu, it closes the menu with a click.
|
143 |
+
|
144 |
= 1.6.8 =
|
145 |
- Improvement: WordPress 5.9 compatibility.
|
146 |
|