Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
list.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
12 $columns = $block->getColumns();
13 ?>
14 
15 <div class="products-grid wishlist">
16  <?php if (count($block->getItems())): ?>
17  <ol class="product-items">
18  <?php foreach ($block->getItems() as $item): ?>
19  <li data-row="product-item" class="product-item" id="item_<?= $block->escapeHtmlAttr($item->getId()) ?>">
20  <div class="product-item-info" data-container="product-grid">
21  <?php foreach ($columns as $column): ?>
22  <?= $column->setItem($item)->toHtml();?>
23  <?php endforeach; ?>
24  </div>
25  </li>
26  <?php endforeach; ?>
27  </ol>
28  <?php else: ?>
29  <div class="message info empty">
30  <span><?= $block->escapeHtml(__('This Wish List has no Items')) ?></span>
31  </div>
32  <?php endif; ?>
33 </div>
34 
35 <?php foreach ($columns as $column): ?>
36  <?= $column->getAdditionalHtml() ?>
37 <?php endforeach; ?>
endif
Definition: list.phtml:77
__()
Definition: __.php:13
$block
Definition: block.php:8
$columns
Definition: list.phtml:12
endforeach
Definition: list.phtml:36