Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- // @codingStandardsIgnoreFile
- ?>
- <?php
- /** @var \Magento\Wishlist\Block\Customer\Wishlist\Items $block */
- $columns = $block->getColumns();
- $mobileColumns = ['customer.wishlist.item.name', 'customer.wishlist.item.price', 'customer.wishlist.item.review'];
- $isMobileContainerStarted = false;
- ?>
- <div class="products-grid wishlist">
- <?php $iterator = 1; ?>
- <?php if (count($block->getItems())): ?>
- <ol class="product-items">
- <?php foreach ($block->getItems() as $item): ?>
- <?= /* @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()) . '">' ?>
- <div class="product-item-info" data-container="product-grid">
- <?php /** Todo: sambolek - mobile display - start */ ?>
- <div class="wishlist-item-mobile-container">
- <?php foreach ($columns as $column): ?>
- <?php if (in_array($column->getNameInLayout(), $mobileColumns)): ?>
- <?php $column->setItem($item); echo $column->toHtml($item);?>
- <?php endif; ?>
- <?php endforeach; ?>
- </div>
- <?php /** Todo: sambolek - mobile display - end */ ?>
- <?php foreach ($columns as $column): ?>
- <?php $column->setItem($item); echo $column->toHtml($item);?>
- <?php endforeach; ?>
- </div>
- <?= ($iterator == count($block->getItems())+1) ? '</li>' : '' ?>
- <?php endforeach; ?>
- </ol>
- <?php else: ?>
- <div class="message info empty">
- <span><?= $block->escapeHtml(__('This Wish List has no Items')) ?></span>
- </div>
- <?php endif; ?>
- </div>
- <?php foreach ($columns as $column): ?>
- <?= $column->getAdditionalHtml() ?>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement