Header Footer Elementor - Version 1.4.1

Version Description

  • Fix: EHF header overlapping Astra WooCommerce Off-Canvas.
  • Fix: WooCommerce Menu Cart - 'div' tag of custom cart layout was not closed.
  • Fix: WooCommerce Menu Cart - Fatal error with count when cart is empty.
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

assets/css/header-footer-elementor.css CHANGED
@@ -28,6 +28,6 @@
28
 
29
  /* Fix: Header hidden below the page content */
30
  .ehf-header #masthead {
31
- z-index: 200;
32
  position: relative;
33
  }
28
 
29
  /* Fix: Header hidden below the page content */
30
  .ehf-header #masthead {
31
+ z-index: 99;
32
  position: relative;
33
  }
header-footer-elementor.php CHANGED
@@ -2,17 +2,17 @@
2
  /**
3
  * Plugin Name: Elementor - Header, Footer & Blocks
4
  * Plugin URI: https://github.com/Nikschavan/header-footer-elementor
5
- * Description: Create Header and Footer for your site using Elementor Page Builder.
6
  * Author: Brainstorm Force, Nikhil Chavan
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.4.0
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.4.0' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
2
  /**
3
  * Plugin Name: Elementor - Header, Footer & Blocks
4
  * Plugin URI: https://github.com/Nikschavan/header-footer-elementor
5
+ * Description: This powerful plugin allows creating a custom header, footer with Elementor and display them on selected locations. You can also create custom Elementor blocks and place them anywhere on the website with a shortcode.
6
  * Author: Brainstorm Force, Nikhil Chavan
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.4.1
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.4.1' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/widgets-manager/widgets/class-cart.php CHANGED
@@ -574,7 +574,7 @@ class Cart extends Widget_Base {
574
  <div class="hfe-cart-menu-wrap-<?php echo $settings['hfe_cart_type']; ?>">
575
  <span class="count">
576
  <?php
577
- echo $woocommerce->cart->cart_contents_count;
578
  ?>
579
  </span>
580
  </div>
@@ -583,21 +583,23 @@ class Cart extends Widget_Base {
583
  <div class="hfe-menu-cart__toggle elementor-button-wrapper">
584
  <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button">
585
  <span class="elementor-button-text">
586
- <?php echo $woocommerce->cart->get_cart_total(); ?>
 
 
587
  </span>
588
- <span class="elementor-button-icon" data-counter="<?php echo $woocommerce->cart->cart_contents_count; ?>">
589
  <i class="eicon" aria-hidden="true"></i>
590
- <span class="elementor-screen-only">Cart</span>
591
  </span>
592
  </a>
593
- <?php } ?>
 
594
  </div>
595
  </div>
596
  </div>
597
  <?php
598
  }
599
 
600
-
601
  /**
602
  * Render Menu Cart output in the editor.
603
  *
574
  <div class="hfe-cart-menu-wrap-<?php echo $settings['hfe_cart_type']; ?>">
575
  <span class="count">
576
  <?php
577
+ echo ( ( empty( $woocommerce->cart ) ) ? 0 : $woocommerce->cart->cart_contents_count );
578
  ?>
579
  </span>
580
  </div>
583
  <div class="hfe-menu-cart__toggle elementor-button-wrapper">
584
  <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button">
585
  <span class="elementor-button-text">
586
+ <?php
587
+ echo ( ( empty( $woocommerce->cart ) ) ? 0 : $woocommerce->cart->get_cart_total() );
588
+ ?>
589
  </span>
590
+ <span class="elementor-button-icon" data-counter="<?php echo ( ( empty( $woocommerce->cart ) ) ? 0 : $woocommerce->cart->cart_contents_count ); ?>">
591
  <i class="eicon" aria-hidden="true"></i>
592
+ <span class="elementor-screen-only"><?php _e( 'Cart', 'header-footer-elementor' ); ?></span>
593
  </span>
594
  </a>
595
+ </div>
596
+ <?php } ?>
597
  </div>
598
  </div>
599
  </div>
600
  <?php
601
  }
602
 
 
603
  /**
604
  * Render Menu Cart output in the editor.
605
  *
languages/header-footer-elementor.pot CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Elementor - Header, Footer & Blocks 1.4.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2020-03-23 05:29:17+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -375,6 +375,7 @@ msgid "Header, Footer & Blocks"
375
  msgstr ""
376
 
377
  #: inc/widgets-manager/widgets/class-cart.php:53
 
378
  msgid "Cart"
379
  msgstr ""
380
 
@@ -1290,7 +1291,10 @@ msgid "https://github.com/Nikschavan/header-footer-elementor"
1290
  msgstr ""
1291
 
1292
  #. Description of the plugin/theme
1293
- msgid "Create Header and Footer for your site using Elementor Page Builder."
 
 
 
1294
  msgstr ""
1295
 
1296
  #. Author of the plugin/theme
5
  "Project-Id-Version: Elementor - Header, Footer & Blocks 1.4.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2020-04-06 08:51:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
375
  msgstr ""
376
 
377
  #: inc/widgets-manager/widgets/class-cart.php:53
378
+ #: inc/widgets-manager/widgets/class-cart.php:592
379
  msgid "Cart"
380
  msgstr ""
381
 
1291
  msgstr ""
1292
 
1293
  #. Description of the plugin/theme
1294
+ msgid ""
1295
+ "This powerful plugin allows creating a custom header, footer with Elementor "
1296
+ "and display them on selected locations. You can also create custom "
1297
+ "Elementor blocks and place them anywhere on the website with a shortcode."
1298
  msgstr ""
1299
 
1300
  #. Author of the plugin/theme
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: elementor, header footer builder, header template, footer template, elemen
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
- Tested up to: 5.3
8
- Stable tag: 1.4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -51,6 +51,7 @@ The plugin offers inbuilt widgets that help to create header/footer layouts. The
51
  <li><strong>Navigation Menu</strong> - Offers you list of already created menus on your website. You just need to choose the required one. If offers 4 layouts for the menu - horizontal, vertical, expanded and flyout. With many other options, you can even set custom icons to open and close the menu.</li>
52
  <li><strong>Page Title</strong> - Displays your current post/page title and offers additional options for prefix, suffix, icon, link, and alignment.</li>
53
  <li><strong>Retina Image</strong> - You can upload the retina image for high definition screens.</li>
 
54
  <li><strong>Copyright</strong> - It offers constants to display copyright notice - [hfe_current_year] and [hfe_site_title].</li>
55
  </ul>
56
 
@@ -136,6 +137,11 @@ This same applies when you are creating your Header/Footer using this plugin.
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
139
  = 1.4.0 =
140
  - New: WooCommerce Menu Cart widget.
141
  - Improvement: Compatibility to Elementor Pro v2.9 full site editing.
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
+ Tested up to: 5.4
8
+ Stable tag: 1.4.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
51
  <li><strong>Navigation Menu</strong> - Offers you list of already created menus on your website. You just need to choose the required one. If offers 4 layouts for the menu - horizontal, vertical, expanded and flyout. With many other options, you can even set custom icons to open and close the menu.</li>
52
  <li><strong>Page Title</strong> - Displays your current post/page title and offers additional options for prefix, suffix, icon, link, and alignment.</li>
53
  <li><strong>Retina Image</strong> - You can upload the retina image for high definition screens.</li>
54
+ <li><strong>WooCommerce Menu Cart</strong> - You can display current number of products in the cart along with the total price.</li>
55
  <li><strong>Copyright</strong> - It offers constants to display copyright notice - [hfe_current_year] and [hfe_site_title].</li>
56
  </ul>
57
 
137
 
138
  == Changelog ==
139
 
140
+ = 1.4.1 =
141
+ - Fix: EHF header overlapping Astra WooCommerce Off-Canvas.
142
+ - Fix: WooCommerce Menu Cart - 'div' tag of custom cart layout was not closed.
143
+ - Fix: WooCommerce Menu Cart - Fatal error with count when cart is empty.
144
+
145
  = 1.4.0 =
146
  - New: WooCommerce Menu Cart widget.
147
  - Improvement: Compatibility to Elementor Pro v2.9 full site editing.