ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
?>
|
||||
<?php
|
||||
/** @var \Magento\LayeredNavigation\Block\Navigation\FilterRenderer $block */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
/** @var \Magento\Framework\Locale\LocaleFormatter $localeFormatter */
|
||||
/** @var \Magento\LayeredNavigation\ViewModel\Layer\Filter $viewModel */
|
||||
$viewModel = $block->getData('product_layer_view_model');
|
||||
?>
|
||||
|
||||
<ol class="items">
|
||||
<?php foreach ($filterItems as $filterItem): ?>
|
||||
<li class="item">
|
||||
<?php if ($filterItem->getCount() > 0): ?>
|
||||
<a href="<?= $block->escapeUrl($filterItem->getUrl()) ?>" rel="nofollow">
|
||||
<?= /* @escapeNotVerified */ $filterItem->getLabel() ?>
|
||||
</a>
|
||||
<?php if ($viewModel->shouldDisplayProductCountOnLayer()): ?>
|
||||
<span class="count"><?= /* @noEscape */ $localeFormatter->formatNumber((int) $filterItem->getCount()) ?><span class="filter-count-label">
|
||||
<?php if ($filterItem->getCount() == 1):?> <?= /* @escapeNotVerified */ __('item') ?><?php else:?> <?= /* @escapeNotVerified */ __('items') ?><?php endif;?></span></span>
|
||||
<?php endif; ?>
|
||||
<?php else:?>
|
||||
<strong><?= /* @escapeNotVerified */ $filterItem->getLabel() ?></strong>
|
||||
<?php if ($viewModel->shouldDisplayProductCountOnLayer()): ?>
|
||||
<span class="count"><?= /* @noEscape */ $localeFormatter->formatNumber((int) $filterItem->getCount()) ?><span class="filter-count-label">
|
||||
<?php if ($filterItem->getCount() == 1):?><?= /* @escapeNotVerified */ __('item') ?><?php else:?><?= /* @escapeNotVerified */ __('items') ?><?php endif;?></span></span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ol>
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation state
|
||||
*
|
||||
* @var $block \Magento\LayeredNavigation\Block\Navigation\State
|
||||
*/
|
||||
?>
|
||||
<?php $_filters = $block->getActiveFilters() ?>
|
||||
<?php if (!empty($_filters)): ?>
|
||||
<div class="filter-current collapsible open">
|
||||
<strong class="block-subtitle filter-current-subtitle"
|
||||
role="heading"
|
||||
aria-level="2"
|
||||
data-role="title"
|
||||
data-count="<?= count($_filters) ?>"><?= /* @escapeNotVerified */ __('Now Shopping by') ?>
|
||||
<span class="toggle-minus"><span></span></span></strong>
|
||||
<ol class="items ox-toggle-content">
|
||||
<?php foreach ($_filters as $_filter): ?>
|
||||
<li class="item">
|
||||
<span class="filter-label"><?= $block->escapeHtml(__($_filter->getName())) ?></span>
|
||||
<span class="filter-value"><?= /* @escapeNotVerified */ $block->stripTags($_filter->getLabel()) ?></span>
|
||||
<?php
|
||||
$clearLinkUrl = $_filter->getClearLinkUrl();
|
||||
$currentFilterName = $block->escapeHtml(__($_filter->getName())) . " " . $block->stripTags($_filter->getLabel());
|
||||
if ($clearLinkUrl):
|
||||
?>
|
||||
<a class="action previous" href="<?= /* @escapeNotVerified */ $_filter->getRemoveUrl() ?>"
|
||||
title="<?= /* @escapeNotVerified */ __('Previous') ?>">
|
||||
<span><?= /* @escapeNotVerified */ __('Previous') ?></span>
|
||||
</a>
|
||||
<a class="action remove"
|
||||
title="<?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?>"
|
||||
href="<?= /* @escapeNotVerified */ $clearLinkUrl ?>">
|
||||
<span><?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a class="action remove" href="<?= /* @escapeNotVerified */ $_filter->getRemoveUrl() ?>"
|
||||
title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Remove')) . " " . $currentFilterName ?>">
|
||||
<span><?= /* @escapeNotVerified */ __('Remove This Item') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\LayeredNavigation\Block\Navigation;
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation
|
||||
*
|
||||
* @var $block Navigation
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($block->canShowBlock()): ?>
|
||||
<div class="block filter">
|
||||
<div class="block-title filter-title">
|
||||
<strong><?= $block->escapeHtml(__('Shop By')) ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="block-content filter-content">
|
||||
<?= $block->getChildHtml('state') ?>
|
||||
|
||||
<?php if ($block->getLayer()->getState()->getFilters()): ?>
|
||||
<div class="block-actions filter-actions">
|
||||
<a href="<?= $block->escapeUrl($block->getClearUrl()) ?>" class="action clear button filter-clear"><span><?= $block->escapeHtml(__('Clear All')) ?></span></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($block->getFilters() as $filter): ?>
|
||||
<?php if ($filter->getItemsCount()): ?>
|
||||
<div class="filter-options collapsible">
|
||||
<div class="filter-options-title"><strong><?= $block->escapeHtml(__($filter->getName())) ?></strong><div class="toggle-minus"><span></span></div></div>
|
||||
<div class="filter-options-content" style="display:none;"><?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\LayeredNavigation\Block\Navigation;
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation
|
||||
*
|
||||
* @var $block Navigation
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($block->canShowBlock()): ?>
|
||||
<div class="block filter filters-slideout-content ox-move-item ox-move-item-filtersslideout">
|
||||
<div class="block-title filter-title">
|
||||
<strong><?= $block->escapeHtml(__('Shop By')) ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="block-content filter-content">
|
||||
<?= $block->getChildHtml('state') ?>
|
||||
|
||||
<?php if ($block->getLayer()->getState()->getFilters()): ?>
|
||||
<div class="block-actions filter-actions">
|
||||
<a href="<?= $block->escapeUrl($block->getClearUrl()) ?>" class="action clear button filter-clear"><span><?= $block->escapeHtml(__('Clear All')) ?></span></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($block->getFilters() as $filter): ?>
|
||||
<?php if ($filter->getItemsCount()): ?>
|
||||
<div class="filter-options collapsible <?php if(!$this->helper( 'Olegnax\Athlete2\Helper\Helper' )->getConfig('athlete2_settings/products_listing/filters_closed')){ ?>open<?php } ?>">
|
||||
<div class="filter-options-title"><strong><?= $block->escapeHtml(__($filter->getName())) ?></strong><div class="toggle-minus"><span></span></div></div>
|
||||
<div class="filter-options-content"><?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user