Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
view
frontend
templates
product
widget
new
column
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
$suffix
Definition:
name.phtml:27
endforeach
foreach( $_products->getItems() as $_product)() ?>" title endforeach
Definition:
new_names_list.phtml:18
__
__()
Definition:
__.php:13
$_product
$_product
Definition:
summary.phtml:12
$block
$block
Definition:
block.php:8
endif
endif
Definition:
new_names_list.phtml:30