Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
viewed_images_list.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
14 ?>
15 <?php
16 if ($exist = ($block->getRecentlyViewedProducts() && $block->getRecentlyViewedProducts()->getSize())) {
17  $type = 'widget-viewed';
18 
19  $image = 'recently_viewed_products_images_only_widget';
20  $title = __('Recently Viewed');
21  $items = $block->getRecentlyViewedProducts();
22 
23  $showWishlist = false;
24  $showCompare = false;
25  $showCart = false;
26  $rating = false;
27  $description = false;
28 }
29 ?>
30 <?php if ($exist): ?>
31  <div class="block widget block-viewed-products-images">
32  <div class="block-title">
33  <strong><?= /* @escapeNotVerified */ $title ?></strong>
34  </div>
35  <div class="block-content">
36  <?php $suffix = $block->getNameInLayout(); ?>
37  <ol id="widget-viewed-<?= /* @escapeNotVerified */ $suffix ?>" class="product-items product-items-images">
38  <?php foreach ($items as $_product): ?>
39  <li class="product-item">
40  <a class="product-item-photo" href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>" title="<?= /* @escapeNotVerified */ $block->stripTags($_product->getName(), null, true) ?>">
41  <?= $block->getImage($_product, $image)->toHtml() ?>
42  </a>
43  </li>
44  <?php endforeach; ?>
45  </ol>
46  </div>
47  </div>
48 <?php endif; ?>
$title
Definition: default.phtml:14
$suffix
Definition: name.phtml:27
__()
Definition: __.php:13
$rating
Definition: item.phtml:18
$_product
Definition: summary.phtml:12
$block
Definition: block.php:8
$type
Definition: item.phtml:13
foreach( $items as $_product)() ?>" title endforeach
$showCompare
Definition: grid.phtml:21
$showCart
Definition: grid.phtml:22
$showWishlist
Definition: grid.phtml:20
$items