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
navigation
left.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
14
?>
15
<?php
if
(!
$block
->getCategory()) {
16
return
;
17
} ?>
18
<?php
$_categories
=
$block
->getCurrentChildCategories(); ?>
19
<?php
$_count
= is_array(
$_categories
) ? count(
$_categories
) :
$_categories
->count(); ?>
20
<?php
if
(
$_count
): ?>
21
<div
class
=
"block filter"
>
22
<div
class
=
"title"
>
23
<strong><?=
/* @escapeNotVerified */
__
(
'Shop By'
) ?></strong>
24
</div>
25
<div
class
=
"content"
>
26
<strong
class
=
"subtitle"
><?=
/* @escapeNotVerified */
__
(
'Shopping Options'
) ?></strong>
27
<dl
class
=
"options"
id
=
"narrow-by-list2"
>
28
<dt><?=
/* @escapeNotVerified */
__
(
'Category'
) ?></dt>
29
<dd>
30
<ol
class
=
"items"
>
31
<?php ?>
32
<?php
foreach
(
$_categories
as
$_category
): ?>
33
<?php
if
(
$_category
->getIsActive()): ?>
34
<li
class
=
"item"
>
35
<a href=
"<?= /* @escapeNotVerified */ $block->getCategoryUrl($_category) ?>"
<?php
if
(
$block
->isCategoryActive(
$_category
)): ?>
class
=
"current"
<?php
endif
; ?>><?=
$block
->escapeHtml(
$_category
->getName()) ?></a>
36
<span
class
=
"count"
><?=
/* @escapeNotVerified */
$_category
->getProductCount() ?></span>
37
</li>
38
<?php
endif
; ?>
39
<?php
endforeach
?>
40
</ol>
41
</dd>
42
</dl>
43
</div>
44
</div>
45
<?php
endif
; ?>
endforeach
foreach( $this->main as $item) endforeach
Definition:
side-menu.phtml:10
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
endif
endif
Definition:
left.phtml:36
$_categories
if(! $block->getCategory()) $_categories
Definition:
left.phtml:18
$_category
$_category
Definition:
image.phtml:19
$_count
$_count
Definition:
left.phtml:19