SHARE
TWEET

Untitled

a guest Oct 10th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Copyright © Magento, Inc. All rights reserved.
  4.  * See COPYING.txt for license details.
  5.  */
  6.  
  7. // @codingStandardsIgnoreFile
  8.  
  9. /** @var \Magento\Wishlist\Block\Customer\Sidebar $block */
  10. ?>
  11. <?php
  12. $wishlistHelper = $this->helper('Magento\Wishlist\Helper\Data');
  13. ?>
  14. <?php if ($wishlistHelper->isAllow()) : ?>
  15.  
  16. <li class="header-action__item" data-bind="scope: 'wishlist'">
  17.     <div class="header-actions__button-wrapper">
  18.         <a href="<?= $block->escapeUrl($this->helper('Magento\Wishlist\Helper\Data')->getListUrl()) ?>" class="header-actions__button">
  19.             <i class="fas fa-star"></i>
  20.             <div class="header-actions__button-title">
  21.                 <?php /* @escapeNotVerified */ echo __('Whishlist'); ?>
  22.             </div>
  23.             <div class="header-actions__button-counter" data-bind="css: { 'header-actions__button-counter__null': wishlist().items && wishlist().items.length == 0 }">
  24.                 <!-- ko if: wishlist().items -->
  25.                     <!-- ko text: wishlist().items.length -->
  26.                     <!-- /ko -->
  27.                 <!-- /ko -->
  28.  
  29.                 <!-- ko ifnot: wishlist().items -->
  30.                     <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
  31.                 <!-- /ko -->
  32.             </div>
  33.         </a>
  34.     </div>
  35. </li>
  36.  
  37. <script type="text/x-magento-init">
  38.     {
  39.         "*": {
  40.             "Magento_Ui/js/core/app": {
  41.                 "components": {
  42.                     "wishlist": {
  43.                         "component": "Magento_Wishlist/js/view/wishlist"
  44.                     }
  45.                 }
  46.             }
  47.         }
  48.     }
  49. </script>
  50. <?php endif ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top