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