Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
new_images_list.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if (($_products = $block->getProductCollection()) && $_products->getSize()): ?>
11  <div class="block widget block-new-products-images">
12  <div class="block-title">
13  <strong><?= /* @escapeNotVerified */ __('New Products') ?></strong>
14  </div>
15  <div class="block-content">
16  <?php $suffix = $block->getNameInLayout(); ?>
17  <ol id="widget-new-products-<?= /* @escapeNotVerified */ $suffix ?>" class="product-items product-items-images">
18  <?php foreach ($_products->getItems() as $_product): ?>
19  <li class="product-item">
20  <a class="product-item-photo" href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"
21  title="<?= /* @escapeNotVerified */ $block->stripTags($_product->getName(), null, true) ?>">
22  <?php /* new_products_images_only_widget */ ?>
23  <?= $block->getImage($_product, 'new_products_images_only_widget')->toHtml() ?>
24  </a>
25  </li>
26  <?php endforeach; ?>
27  </ol>
28  <?= $block->getPagerHtml() ?>
29  </div>
30  </div>
31 <?php endif; ?>
$suffix
Definition: name.phtml:27
__()
Definition: __.php:13
foreach( $_products->getItems() as $_product)() ?>" title endforeach
$_product
Definition: summary.phtml:12
$block
Definition: block.php:8