Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
new_names_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-names">
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-names">
18  <?php foreach ($_products->getItems() as $_product): ?>
19  <li class="product-item">
20  <strong class="product-item-name">
21  <a href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"
22  title="<?= /* @escapeNotVerified */ $block->stripTags($_product->getName(), null, true) ?>)"
23  class="product-item-link">
24  <?= /* @escapeNotVerified */ $this->helper('Magento\Catalog\Helper\Output')->productAttribute($_product, $_product->getName(), 'name') ?>
25  </a>
26  </strong>
27  </li>
28  <?php endforeach; ?>
29  </ol>
30  <?= $block->getPagerHtml() ?>
31  </div>
32  </div>
33 <?php endif; ?>
$suffix
Definition: name.phtml:27
foreach( $_products->getItems() as $_product)() ?>" title endforeach
__()
Definition: __.php:13
$_product
Definition: summary.phtml:12
$block
Definition: block.php:8