Advertisement
sambacar

Untitled

Feb 2nd, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Copyright © Magento, Inc. All rights reserved.
  4.  * See COPYING.txt for license details.
  5.  */
  6.  
  7. // @codingStandardsIgnoreFile
  8.  
  9. ?>
  10. <?php
  11. /** @var \Magento\Wishlist\Block\Customer\Wishlist\Items $block */
  12. $columns = $block->getColumns();
  13. ?>
  14.  
  15. <div class="products-grid wishlist">
  16.     <?php $iterator = 1; ?>
  17.     <?php if (count($block->getItems())): ?>
  18.     <ol class="product-items">
  19.         <?php foreach ($block->getItems() as $item): ?>
  20.         <?= /* @noEscape */ ($iterator++ == 1) ? '<li data-row="product-item" class="product-item" id="item_' . $block->escapeHtmlAttr($item->getId()) . '">' : '</li><li class="product-item" id="item_' . $block->escapeHtmlAttr($item->getId()) . '">' ?>
  21.             <div class="product-item-info" data-container="pro<duct-grid">
  22.                 <?php foreach ($columns as $column): ?>
  23.                     <?php if ($column->getNameInLayout() == 'customer.wishlist.item.name'): echo '<div class="wishlist-item-container">'; endif; ?>
  24.                     <?php $column->setItem($item); echo $column->toHtml($item);?>
  25.                     <?php if ($column->getNameInLayout() == 'customer.wishlist.item.review'): echo '</div>'; endif; ?>
  26.                 <?php endforeach; ?>
  27.             </div>
  28.         <?= ($iterator == count($block->getItems())+1) ? '</li>' : '' ?>
  29.         <?php endforeach; ?>
  30.     </ol>
  31.     <?php else: ?>
  32.         <div class="message info empty">
  33.             <span><?= $block->escapeHtml(__('This Wish List has no Items')) ?></span>
  34.         </div>
  35.     <?php endif; ?>
  36. </div>
  37.  
  38. <?php foreach ($columns as $column): ?>
  39.     <?= $column->getAdditionalHtml() ?>
  40. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement