Header Footer Elementor - Version 1.1.1

Version Description

  • Fix: Blank header being displayed when only footer is translated using WPML.
Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

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.0
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.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.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__ ) );
inc/compatibility/class-hfe-wpml-compatibility.php CHANGED
@@ -32,7 +32,7 @@ class HFE_WPML_Compatibility {
32
  */
33
  public static function instance() {
34
  if ( ! isset( self::$_instance ) ) {
35
- self::$_instance = new self;
36
  }
37
 
38
  return self::$_instance;
@@ -56,7 +56,13 @@ class HFE_WPML_Compatibility {
56
  * @return Int $id Post ID of the template being rendered, Passed through the `wpml_object_id` id.
57
  */
58
  public function get_wpml_object( $id ) {
59
- return apply_filters( 'wpml_object_id', $id );
 
 
 
 
 
 
60
  }
61
 
62
  }
32
  */
33
  public static function instance() {
34
  if ( ! isset( self::$_instance ) ) {
35
+ self::$_instance = new self();
36
  }
37
 
38
  return self::$_instance;
56
  * @return Int $id Post ID of the template being rendered, Passed through the `wpml_object_id` id.
57
  */
58
  public function get_wpml_object( $id ) {
59
+ $id = apply_filters( 'wpml_object_id', $id );
60
+
61
+ if ( null === $id ) {
62
+ $id = '';
63
+ }
64
+
65
+ return $id;
66
  }
67
 
68
  }
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.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 &amp; Customizable WordPress Theme.
34
  2. GeneratePress.
@@ -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.0 =
97
  - New: Rename plugin to be Header Footer & Blocks builder as now thee blocks templates can be used as shortcodes.
98
  - New: Add templates before the footer for Astra Theme. Options for other themes will be cominng soon.
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
 
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 &amp; Customizable WordPress Theme.
34
  2. GeneratePress.
93
 
94
  == Changelog ==
95
 
96
+ = 1.1.1 =
97
+ - Fix: Blank header being displayed when only footer is translated using WPML.
98
+
99
  = 1.1.0 =
100
  - New: Rename plugin to be Header Footer & Blocks builder as now thee blocks templates can be used as shortcodes.
101
  - New: Add templates before the footer for Astra Theme. Options for other themes will be cominng soon.