Skip to content

Commit

Permalink
Merge pull request #470 from brainstormforce/release-candidate
Browse files Browse the repository at this point in the history
Chore v1.6.9
  • Loading branch information
vrundakansara authored Feb 2, 2022
2 parents 76404da + 1c13478 commit 2f0d7c4
Show file tree
Hide file tree
Showing 8 changed files with 29,979 additions and 5,738 deletions.
9 changes: 8 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "release-candidate"
schedule:
interval: "daily"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
target-branch: "release-candidate"
schedule:
interval: "daily"

# Maintain dependencies for Composer
- package-ecosystem: "composer"
target-branch: "release-candidate"
directory: "/"
schedule:
interval: "daily"
interval: "daily"
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Requires at least:** 4.4
**Requires PHP:** 5.4
**Tested up to:** 5.9
**Stable tag:** 1.6.8
**Stable tag:** 1.6.9
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -137,6 +137,10 @@ This same applies when you are creating your Header/Footer using this plugin.
5. Default widgets available with Elementor Header & Footer Builder.

## Changelog ##
### 1.6.9 ###
- 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.

### 1.6.8 ###
- Improvement: WordPress 5.9 compatibility.

Expand Down
6 changes: 3 additions & 3 deletions header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* Author URI: https://www.brainstormforce.com/
* Text Domain: header-footer-elementor
* Domain Path: /languages
* Version: 1.6.8
* Version: 1.6.9
* Elementor tested up to: 3.5.4
* Elementor Pro tested up to: 3.5.2
* Elementor Pro tested up to: 3.6.0
*
* @package header-footer-elementor
*/

define( 'HFE_VER', '1.6.8' );
define( 'HFE_VER', '1.6.9' );
define( 'HFE_FILE', __FILE__ );
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
Expand Down
19 changes: 19 additions & 0 deletions inc/js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

_toggleClick( id );

_handlePolylangSwitcher( $scope );

_handleSinglePageMenu( id, layout );

if( 'horizontal' !== layout ){
Expand Down Expand Up @@ -671,6 +673,23 @@
);
}

/**
* This function handles polylang plugin's lang switcher if present in the menu.
*
* @param {Object} $scope The current element(hfe nav menu) wrapped with jQuery.
*/
function _handlePolylangSwitcher( $scope ) {
var polylangSwitcher = $scope.find( '.hfe-nav-menu nav .pll-parent-menu-item a.hfe-menu-item' );
var hrefProperty = polylangSwitcher.prop( 'href' );
if ( undefined !== hrefProperty && hrefProperty.includes( '#' ) ) {
var index = hrefProperty.indexOf( '#' );
var value = hrefProperty.slice( index );
if ( value === '#pll_switcher' ) {
polylangSwitcher.prop( 'href', '#' );
}
}
}

$( window ).on( 'elementor/frontend/init', function () {

elementorFrontend.hooks.addAction( 'frontend/element_ready/navigation-menu.default', WidgethfeNavMenuHandler );
Expand Down
4 changes: 2 additions & 2 deletions languages/header-footer-elementor.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# This file is distributed under the same license as the Elementor Header & Footer Builder package.
msgid ""
msgstr ""
"Project-Id-Version: Elementor Header & Footer Builder 1.6.8\n"
"Project-Id-Version: Elementor Header & Footer Builder 1.6.9\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/header-footer-elementor\n"
"POT-Creation-Date: 2022-01-24 05:28:40+00:00\n"
"POT-Creation-Date: 2022-02-02 07:47:30+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
Loading

0 comments on commit 2f0d7c4

Please sign in to comment.