Advertisement
Guest User

Untitled

a guest
May 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. ```<!--
  2. /**
  3. * Copyright © 2013-2017 Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <div class="block-title">
  8. <strong>
  9. <span class="text"><!-- ko i18n: 'My Cart' --><!-- /ko --></span>
  10. <span
  11. class="qty empty"
  12. data-bind="css: { empty: !!getCartParam('summary_count') == false },
  13. attr: { title: $t('Items in Cart') }">
  14. <!-- ko text: getCartParam('summary_count') --><!-- /ko -->
  15. </span>
  16. </strong>
  17. </div>
  18.  
  19. <div class="block-content">
  20. <button type="button"
  21. id="btn-minicart-close"
  22. class="action close"
  23. data-action="close"
  24. data-bind="attr: { title: $t('Close') }">
  25. <span><!-- ko i18n: 'Close' --><!-- /ko --></span>
  26. </button>
  27.  
  28. <!-- ko if: getCartParam('summary_count') -->
  29. <div class="items-total">
  30. <!-- ko if: maxItemsToDisplay < getCartLineItemsCount() -->
  31. <span class="count"><!-- ko text: maxItemsToDisplay --><!-- /ko --></span>
  32. <!-- /ko -->
  33. <!-- ko if: maxItemsToDisplay < getCartLineItemsCount() -->
  34. <!-- ko i18n: 'of' --><!-- /ko -->
  35. <!-- /ko -->
  36. <span class="count"><!-- ko text: getCartLineItemsCount() --><!-- /ko --></span>
  37. <!-- ko if: getCartLineItemsCount() === 1 -->
  38. <span class="label"><!-- ko text: $t('Item in Cart') --><!-- /ko --></span>
  39. <!-- /ko -->
  40.  
  41. <!-- ko if: getCartLineItemsCount() > 1 -->
  42. <span class="label"><!-- ko text: $t('Items in Cart') --><!-- /ko --></span>
  43. <!-- /ko -->
  44. </div>
  45.  
  46. <!-- ko if: getCartParam('possible_onepage_checkout') -->
  47. <!-- ko foreach: getRegion('subtotalContainer') -->
  48. <!-- ko template: getTemplate() --><!-- /ko -->
  49. <!-- /ko -->
  50. <!-- /ko -->
  51.  
  52. <!-- ko foreach: getRegion('extraInfo') -->
  53. <!-- ko template: getTemplate() --><!-- /ko -->
  54. <!-- /ko -->
  55. <!-- /ko -->
  56.  
  57. <!-- ko if: getCartParam('summary_count') -->
  58. <strong class="subtitle"><!-- ko i18n: 'Recently added item(s)' --><!-- /ko --></strong>
  59. <div data-action="scroll" class="minicart-items-wrapper">
  60. <ol id="mini-cart" class="minicart-items" data-bind="foreach: { data: getCartItems(), as: 'item' }">
  61. <!-- ko foreach: $parent.getRegion($parent.getItemRenderer(item.product_type)) -->
  62. <!-- ko template: {name: getTemplate(), data: item, afterRender: function() {$parents[1].initSidebar()}} --><!-- /ko -->
  63. <!-- /ko -->
  64. </ol>
  65. </div>
  66. <!-- /ko -->
  67.  
  68. <!-- ko if: getCartParam('summary_count') -->
  69. <div class="actions">
  70. <div class="secondary">
  71. <a class="primary checkout action viewcart" data-bind="attr: {href: shoppingCartUrl}">
  72. <span><!-- ko i18n: 'View and edit cart' --><!-- /ko --></span>
  73. </a>
  74. </div>
  75. </div>
  76. <!-- /ko -->
  77.  
  78. <!-- ko ifnot: getCartParam('summary_count') -->
  79. <strong class="subtitle empty" data-bind="visible: closeSidebar()">
  80. <!-- ko i18n: 'You have no items in your shopping cart.' --><!-- /ko -->
  81. </strong>
  82. <!-- ko if: getCartParam('cart_empty_message') -->
  83. <p class="minicart empty text"><!-- ko text: getCartParam('cart_empty_message') --><!-- /ko --></p>
  84.  
  85. <div class="actions">
  86. <div class="secondary">
  87. <a class="primary checkout action viewcart" data-bind="attr: {href: shoppingCartUrl}">
  88. <span><!-- ko text: $t('View and edit cart') --><!-- /ko --></span>
  89. </a>
  90. </div>
  91. </div>
  92. <!-- /ko -->
  93. <!-- /ko -->
  94.  
  95.  
  96.  
  97. <div id="minicart-widgets" class="minicart-widgets">
  98. <!-- ko foreach: getRegion('promotion') -->
  99. <!-- ko template: getTemplate() --><!-- /ko -->
  100. <!-- /ko -->
  101. </div>
  102. </div>
  103. <!-- ko foreach: getRegion('sign-in-popup') -->
  104. <!-- ko template: getTemplate() --><!-- /ko -->
  105. <!-- /ko -->
  106. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement