Header Footer Elementor - Version 1.5.3

Version Description

  • Fix: Polylang plugin conflicting issue with target rules.
  • Fix: Navigation Menu - Double link attributes issue with translation plugins.
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

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.5.2
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.5.2' );
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.5.3
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.5.3' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/compatibility/class-hfe-wpml-compatibility.php CHANGED
@@ -58,13 +58,26 @@ class HFE_WPML_Compatibility {
58
  * @return Int $id Post ID of the template being rendered, Passed through the `wpml_object_id` id.
59
  */
60
  public function get_wpml_object( $id ) {
61
- $id = apply_filters( 'wpml_object_id', $id );
62
 
63
- if ( null === $id ) {
64
- $id = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
66
 
67
- return $id;
68
  }
69
  }
70
 
58
  * @return Int $id Post ID of the template being rendered, Passed through the `wpml_object_id` id.
59
  */
60
  public function get_wpml_object( $id ) {
61
+ $translated_id = apply_filters( 'wpml_object_id', $id );
62
 
63
+ if ( defined( 'POLYLANG_BASENAME' ) ) {
64
+
65
+ if ( null === $translated_id ) {
66
+
67
+ // The current language is not defined yet or translation is not available.
68
+ return $id;
69
+ } else {
70
+
71
+ // Return translated post ID.
72
+ return $translated_id;
73
+ }
74
+ }
75
+
76
+ if ( null === $translated_id ) {
77
+ $translated_id = '';
78
  }
79
 
80
+ return $translated_id;
81
  }
82
  }
83
 
inc/widgets-manager/widgets/class-menu-walker.php CHANGED
@@ -60,11 +60,11 @@ class Menu_Walker extends \Walker_Nav_Menu {
60
  $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) . $rel_xfn . '"' : '' . $rel_blank;
61
  $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) . '"' : '';
62
 
63
- $attributes .= apply_filters( 'hfe_nav_menu_attrs', $attributes );
64
 
65
  $item_output = $args->has_children ? '<div class="hfe-has-submenu-container">' : '';
66
  $item_output .= $args->before;
67
- $item_output .= '<a' . $attributes;
68
  if ( 0 === $depth ) {
69
  $item_output .= ' class = "hfe-menu-item"';
70
  } else {
60
  $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) . $rel_xfn . '"' : '' . $rel_blank;
61
  $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) . '"' : '';
62
 
63
+ $atts = apply_filters( 'hfe_nav_menu_attrs', $attributes );
64
 
65
  $item_output = $args->has_children ? '<div class="hfe-has-submenu-container">' : '';
66
  $item_output .= $args->before;
67
+ $item_output .= '<a' . $atts;
68
  if ( 0 === $depth ) {
69
  $item_output .= ' class = "hfe-menu-item"';
70
  } else {
inc/widgets-manager/widgets/class-navigation-menu.php CHANGED
@@ -1786,7 +1786,7 @@ class Navigation_Menu extends Widget_Base {
1786
  */
1787
  public function handle_link_attrs( $atts ) {
1788
 
1789
- $atts = 'itemprop="url"';
1790
  return $atts;
1791
  }
1792
 
1786
  */
1787
  public function handle_link_attrs( $atts ) {
1788
 
1789
+ $atts .= ' itemprop="url"';
1790
  return $atts;
1791
  }
1792
 
languages/header-footer-elementor.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Elementor - Header, Footer & Blocks package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Elementor - Header, Footer & Blocks 1.5.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2020-08-06 06:18:44+00:00\n"
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 & Blocks package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Elementor - Header, Footer & Blocks 1.5.3\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2020-08-13 09:59:44+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.5
8
- Stable tag: 1.5.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -138,6 +138,10 @@ This same applies when you are creating your Header/Footer using this plugin.
138
 
139
  == Changelog ==
140
 
 
 
 
 
141
  = 1.5.2 =
142
  - Improvement: Compatibility with Polylang.
143
  - Improvement: Navigation Menu - Added 'SiteNavigationElement' schema support.
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.5
8
+ Stable tag: 1.5.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
138
 
139
  == Changelog ==
140
 
141
+ = 1.5.3 =
142
+ - Fix: Polylang plugin conflicting issue with target rules.
143
+ - Fix: Navigation Menu - Double link attributes issue with translation plugins.
144
+
145
  = 1.5.2 =
146
  - Improvement: Compatibility with Polylang.
147
  - Improvement: Navigation Menu - Added 'SiteNavigationElement' schema support.