Header Footer Elementor - Version 1.5.5

Version Description

  • Improvement: Compatibility with Elementor v3.1.
  • Improvement: Cart - Added Items Count hover color options.
  • Fix: jQuery shorthand deprecation warning for click() and focus() functions.
  • Fix: Cart - Fixed fatal error due to cart initialization.
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

header-footer-elementor.php CHANGED
@@ -7,12 +7,14 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.5.4
 
 
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.5.4' );
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.5
11
+ * Elementor tested up to: 3.1.0
12
+ * Elementor Pro tested up to: 3.0.9
13
  *
14
  * @package header-footer-elementor
15
  */
16
 
17
+ define( 'HFE_VER', '1.5.5' );
18
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
19
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
20
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/js/frontend.js CHANGED
@@ -16,10 +16,10 @@
16
  var $toggle_search = $scope.find( ".hfe-search-icon-toggle input" );
17
 
18
  $scope.find( '.hfe-search-icon-toggle' ).on( 'click', function( ){
19
- $scope.find( ".hfe-search-form__input" ).focus();
20
  });
21
 
22
- $scope.find( ".hfe-search-form__input" ).focus( function(){
23
  $scope.find( ".hfe-search-button-wrapper" ).addClass( "hfe-input-focus" );
24
  });
25
 
@@ -113,7 +113,7 @@
113
 
114
  _borderClass( id );
115
 
116
- $( window ).resize( function(){
117
 
118
  if( 'horizontal' !== layout ) {
119
 
16
  var $toggle_search = $scope.find( ".hfe-search-icon-toggle input" );
17
 
18
  $scope.find( '.hfe-search-icon-toggle' ).on( 'click', function( ){
19
+ $scope.find( ".hfe-search-form__input" ).trigger( 'focus' );
20
  });
21
 
22
+ $scope.find( ".hfe-search-form__input" ).on( 'focus', function(){
23
  $scope.find( ".hfe-search-button-wrapper" ).addClass( "hfe-input-focus" );
24
  });
25
 
113
 
114
  _borderClass( id );
115
 
116
+ $( window ).on( 'resize', function(){
117
 
118
  if( 'horizontal' !== layout ) {
119
 
inc/widgets-css/frontend.css CHANGED
@@ -1596,13 +1596,13 @@ div.hfe-nav-menu,
1596
  line-height: 1;
1597
  }
1598
 
1599
- .hfe-cart-menu-wrap-custom .count,
1600
- .hfe-cart-menu-wrap-custom .count:after {
1601
  border-color: #75c32c;
1602
  color: #75c32c;
1603
  }
1604
 
1605
- .hfe-cart-menu-wrap-custom .count {
1606
  font-weight: bold;
1607
  position: relative;
1608
  display: inline-block;
@@ -1624,13 +1624,13 @@ div.hfe-nav-menu,
1624
  line-height: 1;
1625
  }
1626
 
1627
- .hfe-cart-menu-wrap-default .count,
1628
- .hfe-cart-menu-wrap-default .count:after {
1629
  border-color: #75c32c;
1630
  color: #75c32c;
1631
  }
1632
 
1633
- .hfe-cart-menu-wrap-default .count {
1634
  font-weight: bold;
1635
  position: relative;
1636
  display: inline-block;
@@ -1646,7 +1646,7 @@ div.hfe-nav-menu,
1646
  padding: 0 .4em;
1647
  }
1648
 
1649
- .hfe-cart-menu-wrap-default .count:after {
1650
  bottom: 100%;
1651
  margin-bottom: 0;
1652
  height: .8em;
1596
  line-height: 1;
1597
  }
1598
 
1599
+ .hfe-cart-menu-wrap-custom .hfe-cart-count,
1600
+ .hfe-cart-menu-wrap-custom .hfe-cart-count:after {
1601
  border-color: #75c32c;
1602
  color: #75c32c;
1603
  }
1604
 
1605
+ .hfe-cart-menu-wrap-custom .hfe-cart-count {
1606
  font-weight: bold;
1607
  position: relative;
1608
  display: inline-block;
1624
  line-height: 1;
1625
  }
1626
 
1627
+ .hfe-cart-menu-wrap-default .hfe-cart-count,
1628
+ .hfe-cart-menu-wrap-default .hfe-cart-count:after {
1629
  border-color: #75c32c;
1630
  color: #75c32c;
1631
  }
1632
 
1633
+ .hfe-cart-menu-wrap-default .hfe-cart-count {
1634
  font-weight: bold;
1635
  position: relative;
1636
  display: inline-block;
1646
  padding: 0 .4em;
1647
  }
1648
 
1649
+ .hfe-cart-menu-wrap-default .hfe-cart-count:after {
1650
  bottom: 100%;
1651
  margin-bottom: 0;
1652
  height: .8em;
inc/widgets-manager/class-widgets-loader.php CHANGED
@@ -59,7 +59,7 @@ class Widgets_Loader {
59
 
60
  // Refresh the cart fragments.
61
  if ( class_exists( 'woocommerce' ) ) {
62
- add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'init_cart' ], 10, 0 );
63
  add_filter( 'woocommerce_add_to_cart_fragments', [ $this, 'wc_refresh_mini_cart_count' ] );
64
  }
65
  }
@@ -194,23 +194,6 @@ class Widgets_Loader {
194
 
195
  }
196
 
197
- /**
198
- * Initialize the cart.
199
- *
200
- * @since 1.5.0
201
- * @access public
202
- */
203
- public function init_cart() {
204
- $has_cart = is_a( WC()->cart, 'WC_Cart' );
205
-
206
- if ( ! $has_cart ) {
207
- $session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );
208
- WC()->session = new $session_class();
209
- WC()->session->init();
210
- WC()->customer = new \WC_Customer( get_current_user_id(), true );
211
- }
212
- }
213
-
214
  /**
215
  * Cart Fragments.
216
  *
@@ -223,19 +206,21 @@ class Widgets_Loader {
223
  public function wc_refresh_mini_cart_count( $fragments ) {
224
 
225
  $has_cart = is_a( WC()->cart, 'WC_Cart' );
 
226
  if ( ! $has_cart ) {
227
  return $fragments;
228
  }
229
 
230
- ob_start();
231
 
232
- include HFE_DIR . '/inc/widgets-manager/widgets/class-cart.php';
233
 
234
- $cart_type = get_option( 'hfe_cart_widget_type' );
235
 
236
- \HFE\WidgetsManager\Widgets\Cart::get_cart_link( $cart_type );
 
237
 
238
- $fragments['body:not(.elementor-editor-active) a.hfe-cart-container'] = ob_get_clean();
239
 
240
  return $fragments;
241
  }
59
 
60
  // Refresh the cart fragments.
61
  if ( class_exists( 'woocommerce' ) ) {
62
+
63
  add_filter( 'woocommerce_add_to_cart_fragments', [ $this, 'wc_refresh_mini_cart_count' ] );
64
  }
65
  }
194
 
195
  }
196
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  /**
198
  * Cart Fragments.
199
  *
206
  public function wc_refresh_mini_cart_count( $fragments ) {
207
 
208
  $has_cart = is_a( WC()->cart, 'WC_Cart' );
209
+
210
  if ( ! $has_cart ) {
211
  return $fragments;
212
  }
213
 
214
+ $cart_badge_count = ( null !== WC()->cart ) ? WC()->cart->get_cart_contents_count() : '';
215
 
216
+ if ( null !== WC()->cart ) {
217
 
218
+ $fragments['span.hfe-cart-count'] = '<span class="hfe-cart-count">' . WC()->cart->get_cart_contents_count() . '</span>';
219
 
220
+ $fragments['span.elementor-button-text'] = '<span class="elementor-button-text">' . WC()->cart->get_cart_subtotal() . '</span>';
221
+ }
222
 
223
+ $fragments['span.elementor-button-icon[data-counter]'] = '<span class="elementor-button-icon" data-counter="' . $cart_badge_count . '"><i class="eicon" aria-hidden="true"></i><span class="elementor-screen-only">' . __( 'Cart', 'header-footer-elementor' ) . '</span></span>';
224
 
225
  return $fragments;
226
  }
inc/widgets-manager/widgets/class-cart.php CHANGED
@@ -279,7 +279,7 @@ class Cart extends Widget_Base {
279
  'unit' => 'px',
280
  ],
281
  'selectors' => [
282
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default .count' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
283
  ],
284
  ]
285
  );
@@ -298,7 +298,7 @@ class Cart extends Widget_Base {
298
  ],
299
  'size_units' => [ 'px', 'em', '%' ],
300
  'selectors' => [
301
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default .count' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
302
  ],
303
 
304
  ]
@@ -334,7 +334,7 @@ class Cart extends Widget_Base {
334
  'label' => __( 'Text Color', 'header-footer-elementor' ),
335
  'type' => Controls_Manager::COLOR,
336
  'selectors' => [
337
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default span.count' => 'color: {{VALUE}}',
338
  ],
339
  ]
340
  );
@@ -359,7 +359,7 @@ class Cart extends Widget_Base {
359
  'label' => __( 'Background Color', 'header-footer-elementor' ),
360
  'type' => Controls_Manager::COLOR,
361
  'selectors' => [
362
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default span.count' => 'background-color: {{VALUE}}',
363
  ],
364
  ]
365
  );
@@ -370,7 +370,7 @@ class Cart extends Widget_Base {
370
  'label' => __( 'Border Color', 'header-footer-elementor' ),
371
  'type' => Controls_Manager::COLOR,
372
  'selectors' => [
373
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .count:after, {{WRAPPER}} .hfe-masthead-custom-menu-items .hfe-cart-menu-wrap-default .count' => 'border-color: {{VALUE}}',
374
  ],
375
  ]
376
  );
@@ -390,7 +390,7 @@ class Cart extends Widget_Base {
390
  'label' => __( 'Text Color', 'header-footer-elementor' ),
391
  'type' => Controls_Manager::COLOR,
392
  'selectors' => [
393
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default span.count:hover' => 'color: {{VALUE}}',
394
  ],
395
  ]
396
  );
@@ -415,7 +415,7 @@ class Cart extends Widget_Base {
415
  'label' => __( 'Background Color', 'header-footer-elementor' ),
416
  'type' => Controls_Manager::COLOR,
417
  'selectors' => [
418
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default span.count:hover' => 'background-color: {{VALUE}}',
419
  ],
420
  ]
421
  );
@@ -426,7 +426,7 @@ class Cart extends Widget_Base {
426
  'label' => __( 'Border Color', 'header-footer-elementor' ),
427
  'type' => Controls_Manager::COLOR,
428
  'selectors' => [
429
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default:hover .count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default:hover .count' => 'border-color: {{VALUE}}',
430
  ],
431
  ]
432
  );
@@ -493,6 +493,39 @@ class Cart extends Widget_Base {
493
  ]
494
  );
495
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
496
  $this->add_control(
497
  'items_indicator_text_color',
498
  [
@@ -521,23 +554,36 @@ class Cart extends Widget_Base {
521
  ]
522
  );
523
 
 
 
 
 
 
 
 
 
 
524
  $this->add_control(
525
- 'items_indicator_distance',
526
  [
527
- 'label' => __( 'Distance', 'header-footer-elementor' ),
528
- 'type' => Controls_Manager::SLIDER,
529
- 'default' => [
530
- 'unit' => 'em',
531
  ],
532
- 'range' => [
533
- 'em' => [
534
- 'min' => 0,
535
- 'max' => 4,
536
- 'step' => 0.1,
537
- ],
538
  ],
 
 
 
 
 
 
 
 
539
  'selectors' => [
540
- '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button-icon[data-counter]:before' => 'right: -{{SIZE}}{{UNIT}}; top: -{{SIZE}}{{UNIT}}',
541
  ],
542
  'condition' => [
543
  'items_indicator' => 'bubble',
@@ -545,45 +591,11 @@ class Cart extends Widget_Base {
545
  ]
546
  );
547
 
548
- $this->end_controls_section();
549
- }
550
-
551
- /**
552
- * Fetch the cart layout.
553
- *
554
- * @since 1.5.0
555
- * @param string $cart_type Menu Cart type.
556
- * @access public
557
- */
558
- public static function get_cart_link( $cart_type ) {
559
- if ( null === WC()->cart ) {
560
- return;
561
- }
562
 
563
- if ( \Elementor\Plugin::instance()->editor->is_edit_mode() ) {
564
- update_option( 'hfe_cart_widget_type', $cart_type );
565
- }
566
 
567
- if ( 'default' === $cart_type ) { ?>
568
- <a class="hfe-cart-container" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="View your shopping cart">
569
- <div class="hfe-cart-menu-wrap-default">
570
- <span class="count">
571
- <?php echo WC()->cart->get_cart_contents_count(); ?>
572
- </span>
573
- </div>
574
- </a>
575
- <?php } else { ?>
576
- <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button hfe-cart-container">
577
- <span class="elementor-button-text">
578
- <?php echo WC()->cart->get_cart_subtotal(); ?>
579
- </span>
580
- <span class="elementor-button-icon" data-counter="<?php echo WC()->cart->get_cart_contents_count(); ?>">
581
- <i class="eicon" aria-hidden="true"></i>
582
- <span class="elementor-screen-only"><?php _e( 'Cart', 'header-footer-elementor' ); ?></span>
583
- </span>
584
- </a>
585
- <?php
586
- }
587
  }
588
 
589
  /**
@@ -610,14 +622,37 @@ class Cart extends Widget_Base {
610
  <div class="hfe-site-header-cart-li current-menu-item">
611
  <?php
612
  if ( 'default' === $cart_type ) {
 
613
 
614
- $this->get_cart_link( 'default' );
 
 
 
 
 
 
 
 
 
615
  } else {
616
  ?>
617
- <div class="hfe-menu-cart__toggle elementor-button-wrapper">
618
- <?php $this->get_cart_link( 'custom' ); ?>
619
- </div>
620
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
621
  </div>
622
  </div>
623
  </div>
279
  'unit' => 'px',
280
  ],
281
  'selectors' => [
282
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .hfe-cart-count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default .hfe-cart-count' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
283
  ],
284
  ]
285
  );
298
  ],
299
  'size_units' => [ 'px', 'em', '%' ],
300
  'selectors' => [
301
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .hfe-cart-count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default .hfe-cart-count' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
302
  ],
303
 
304
  ]
334
  'label' => __( 'Text Color', 'header-footer-elementor' ),
335
  'type' => Controls_Manager::COLOR,
336
  'selectors' => [
337
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default span.hfe-cart-count' => 'color: {{VALUE}}',
338
  ],
339
  ]
340
  );
359
  'label' => __( 'Background Color', 'header-footer-elementor' ),
360
  'type' => Controls_Manager::COLOR,
361
  'selectors' => [
362
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default span.hfe-cart-count' => 'background-color: {{VALUE}}',
363
  ],
364
  ]
365
  );
370
  'label' => __( 'Border Color', 'header-footer-elementor' ),
371
  'type' => Controls_Manager::COLOR,
372
  'selectors' => [
373
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button,{{WRAPPER}} .hfe-cart-menu-wrap-default .hfe-cart-count:after, {{WRAPPER}} .hfe-masthead-custom-menu-items .hfe-cart-menu-wrap-default .hfe-cart-count' => 'border-color: {{VALUE}}',
374
  ],
375
  ]
376
  );
390
  'label' => __( 'Text Color', 'header-footer-elementor' ),
391
  'type' => Controls_Manager::COLOR,
392
  'selectors' => [
393
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default span.hfe-cart-count:hover' => 'color: {{VALUE}}',
394
  ],
395
  ]
396
  );
415
  'label' => __( 'Background Color', 'header-footer-elementor' ),
416
  'type' => Controls_Manager::COLOR,
417
  'selectors' => [
418
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default span.hfe-cart-count:hover' => 'background-color: {{VALUE}}',
419
  ],
420
  ]
421
  );
426
  'label' => __( 'Border Color', 'header-footer-elementor' ),
427
  'type' => Controls_Manager::COLOR,
428
  'selectors' => [
429
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button:hover,{{WRAPPER}} .hfe-cart-menu-wrap-default:hover .hfe-cart-count:after, {{WRAPPER}} .hfe-cart-menu-wrap-default:hover .hfe-cart-count' => 'border-color: {{VALUE}}',
430
  ],
431
  ]
432
  );
493
  ]
494
  );
495
 
496
+ $this->add_control(
497
+ 'items_indicator_distance',
498
+ [
499
+ 'label' => __( 'Distance', 'header-footer-elementor' ),
500
+ 'type' => Controls_Manager::SLIDER,
501
+ 'default' => [
502
+ 'unit' => 'em',
503
+ ],
504
+ 'range' => [
505
+ 'em' => [
506
+ 'min' => 0,
507
+ 'max' => 4,
508
+ 'step' => 0.1,
509
+ ],
510
+ ],
511
+ 'selectors' => [
512
+ '{{WRAPPER}} .hfe-menu-cart__toggle .elementor-button-icon[data-counter]:before' => 'right: -{{SIZE}}{{UNIT}}; top: -{{SIZE}}{{UNIT}}',
513
+ ],
514
+ 'condition' => [
515
+ 'items_indicator' => 'bubble',
516
+ ],
517
+ ]
518
+ );
519
+
520
+ $this->start_controls_tabs( 'count_colors' );
521
+
522
+ $this->start_controls_tab(
523
+ 'count_normal_colors',
524
+ [
525
+ 'label' => __( 'Normal', 'header-footer-elementor' ),
526
+ ]
527
+ );
528
+
529
  $this->add_control(
530
  'items_indicator_text_color',
531
  [
554
  ]
555
  );
556
 
557
+ $this->end_controls_tab();
558
+
559
+ $this->start_controls_tab(
560
+ 'count_hover_colors',
561
+ [
562
+ 'label' => __( 'Hover', 'header-footer-elementor' ),
563
+ ]
564
+ );
565
+
566
  $this->add_control(
567
+ 'items_indicator_text_hover_color',
568
  [
569
+ 'label' => __( 'Text Color', 'header-footer-elementor' ),
570
+ 'type' => Controls_Manager::COLOR,
571
+ 'selectors' => [
572
+ '{{WRAPPER}} .hfe-menu-cart__toggle:hover .elementor-button-icon[data-counter]:before' => 'color: {{VALUE}}',
573
  ],
574
+ 'condition' => [
575
+ 'items_indicator!' => 'none',
 
 
 
 
576
  ],
577
+ ]
578
+ );
579
+
580
+ $this->add_control(
581
+ 'items_indicator_background_hover_color',
582
+ [
583
+ 'label' => __( 'Background Color', 'header-footer-elementor' ),
584
+ 'type' => Controls_Manager::COLOR,
585
  'selectors' => [
586
+ '{{WRAPPER}} .hfe-menu-cart__toggle:hover .elementor-button-icon[data-counter]:before' => 'background-color: {{VALUE}}',
587
  ],
588
  'condition' => [
589
  'items_indicator' => 'bubble',
591
  ]
592
  );
593
 
594
+ $this->end_controls_tab();
 
 
 
 
 
 
 
 
 
 
 
 
 
595
 
596
+ $this->end_controls_tabs();
 
 
597
 
598
+ $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
  }
600
 
601
  /**
622
  <div class="hfe-site-header-cart-li current-menu-item">
623
  <?php
624
  if ( 'default' === $cart_type ) {
625
+ ?>
626
 
627
+ <a class="hfe-cart-container" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="View your shopping cart">
628
+ <div class="hfe-cart-menu-wrap-default">
629
+ <?php if ( null !== WC()->cart ) { ?>
630
+ <span class="hfe-cart-count">
631
+ <?php echo WC()->cart->get_cart_contents_count(); ?>
632
+ </span>
633
+ <?php } ?>
634
+ </div>
635
+ </a>
636
+ <?php
637
  } else {
638
  ?>
639
+
640
+ <div class="hfe-menu-cart__toggle elementor-button-wrapper">
641
+ <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button hfe-cart-container">
642
+ <?php if ( null !== WC()->cart ) { ?>
643
+ <span class="elementor-button-text">
644
+ <?php echo WC()->cart->get_cart_subtotal(); ?>
645
+ </span>
646
+ <?php } ?>
647
+ <span class="elementor-button-icon" data-counter="<?php echo ( null !== WC()->cart ) ? WC()->cart->get_cart_contents_count() : ''; ?>">
648
+ <i class="eicon" aria-hidden="true"></i>
649
+ <span class="elementor-screen-only">
650
+ <?php _e( 'Cart', 'header-footer-elementor' ); ?>
651
+ </span>
652
+ </span>
653
+ </a>
654
+ </div>
655
+ <?php } ?>
656
  </div>
657
  </div>
658
  </div>
languages/header-footer-elementor.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2020 Brainstorm Force, Nikhil Chavan
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.4\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
- "POT-Creation-Date: 2020-12-14 05:04:12+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "Language: en\n"
@@ -423,8 +423,9 @@ msgstr ""
423
  msgid "Header, Footer & Blocks"
424
  msgstr ""
425
 
 
426
  #: inc/widgets-manager/widgets/class-cart.php:53
427
- #: inc/widgets-manager/widgets/class-cart.php:582
428
  msgid "Cart"
429
  msgstr ""
430
 
@@ -625,6 +626,7 @@ msgid "Padding"
625
  msgstr ""
626
 
627
  #: inc/widgets-manager/widgets/class-cart.php:327
 
628
  #: inc/widgets-manager/widgets/class-navigation-menu.php:908
629
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1114
630
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1480
@@ -642,7 +644,8 @@ msgstr ""
642
 
643
  #: inc/widgets-manager/widgets/class-cart.php:334
644
  #: inc/widgets-manager/widgets/class-cart.php:390
645
- #: inc/widgets-manager/widgets/class-cart.php:499
 
646
  #: inc/widgets-manager/widgets/class-copyright.php:155
647
  #: inc/widgets-manager/widgets/class-navigation-menu.php:915
648
  #: inc/widgets-manager/widgets/class-navigation-menu.php:955
@@ -672,7 +675,8 @@ msgstr ""
672
 
673
  #: inc/widgets-manager/widgets/class-cart.php:359
674
  #: inc/widgets-manager/widgets/class-cart.php:415
675
- #: inc/widgets-manager/widgets/class-cart.php:513
 
676
  #: inc/widgets-manager/widgets/class-navigation-menu.php:790
677
  #: inc/widgets-manager/widgets/class-navigation-menu.php:931
678
  #: inc/widgets-manager/widgets/class-navigation-menu.php:974
@@ -707,6 +711,7 @@ msgid "Border Color"
707
  msgstr ""
708
 
709
  #: inc/widgets-manager/widgets/class-cart.php:383
 
710
  #: inc/widgets-manager/widgets/class-navigation-menu.php:948
711
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1157
712
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1512
@@ -733,7 +738,7 @@ msgstr ""
733
  msgid "Icon Spacing"
734
  msgstr ""
735
 
736
- #: inc/widgets-manager/widgets/class-cart.php:527
737
  msgid "Distance"
738
  msgstr ""
739
 
1
+ # Copyright (C) 2021 Brainstorm Force, Nikhil Chavan
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.5\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/header-footer-elementor\n"
8
+ "POT-Creation-Date: 2021-01-18 12:29:31+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "Language: en\n"
423
  msgid "Header, Footer & Blocks"
424
  msgstr ""
425
 
426
+ #: inc/widgets-manager/class-widgets-loader.php:223
427
  #: inc/widgets-manager/widgets/class-cart.php:53
428
+ #: inc/widgets-manager/widgets/class-cart.php:650
429
  msgid "Cart"
430
  msgstr ""
431
 
626
  msgstr ""
627
 
628
  #: inc/widgets-manager/widgets/class-cart.php:327
629
+ #: inc/widgets-manager/widgets/class-cart.php:525
630
  #: inc/widgets-manager/widgets/class-navigation-menu.php:908
631
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1114
632
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1480
644
 
645
  #: inc/widgets-manager/widgets/class-cart.php:334
646
  #: inc/widgets-manager/widgets/class-cart.php:390
647
+ #: inc/widgets-manager/widgets/class-cart.php:532
648
+ #: inc/widgets-manager/widgets/class-cart.php:569
649
  #: inc/widgets-manager/widgets/class-copyright.php:155
650
  #: inc/widgets-manager/widgets/class-navigation-menu.php:915
651
  #: inc/widgets-manager/widgets/class-navigation-menu.php:955
675
 
676
  #: inc/widgets-manager/widgets/class-cart.php:359
677
  #: inc/widgets-manager/widgets/class-cart.php:415
678
+ #: inc/widgets-manager/widgets/class-cart.php:546
679
+ #: inc/widgets-manager/widgets/class-cart.php:583
680
  #: inc/widgets-manager/widgets/class-navigation-menu.php:790
681
  #: inc/widgets-manager/widgets/class-navigation-menu.php:931
682
  #: inc/widgets-manager/widgets/class-navigation-menu.php:974
711
  msgstr ""
712
 
713
  #: inc/widgets-manager/widgets/class-cart.php:383
714
+ #: inc/widgets-manager/widgets/class-cart.php:562
715
  #: inc/widgets-manager/widgets/class-navigation-menu.php:948
716
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1157
717
  #: inc/widgets-manager/widgets/class-navigation-menu.php:1512
738
  msgid "Icon Spacing"
739
  msgstr ""
740
 
741
+ #: inc/widgets-manager/widgets/class-cart.php:499
742
  msgid "Distance"
743
  msgstr ""
744
 
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.6
8
- Stable tag: 1.5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -137,6 +137,12 @@ This same applies when you are creating your Header/Footer using this plugin.
137
  5. Default widgets available with Elementor – Header, Footer & Blocks.
138
 
139
  == Changelog ==
 
 
 
 
 
 
140
  = 1.5.4 =
141
  - Improvement: Compatibility to PHP v8.0.
142
  - Improvement: Improved compatibility with Astra theme.
5
  Requires at least: 4.4
6
  Requires PHP: 5.4
7
  Tested up to: 5.6
8
+ Stable tag: 1.5.5
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 & Blocks.
138
 
139
  == Changelog ==
140
+ = 1.5.5 =
141
+ - Improvement: Compatibility with Elementor v3.1.
142
+ - Improvement: Cart - Added Items Count hover color options.
143
+ - Fix: jQuery shorthand deprecation warning for click() and focus() functions.
144
+ - Fix: Cart - Fixed fatal error due to cart initialization.
145
+
146
  = 1.5.4 =
147
  - Improvement: Compatibility to PHP v8.0.
148
  - Improvement: Improved compatibility with Astra theme.