ltsecurityinc安防产品在线商城代码
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
/**
|
||||
* Currency switcher
|
||||
*
|
||||
* @var Currency $block
|
||||
*/
|
||||
|
||||
use Magento\Directory\Block\Currency;
|
||||
|
||||
?>
|
||||
<?php if ($block->getCurrencyCount() > 1): ?>
|
||||
<?php $currencies = $block->getCurrencies(); ?>
|
||||
<?php $currentCurrencyCode = $block->getCurrentCurrencyCode(); ?>
|
||||
<?php $id = $block->getIdModifier() ? '-' . $block->getIdModifier() : '' ?>
|
||||
<div class="switcher currency switcher-currency switcher-hover ox-move-item ox-move-item-store.settings" id="switcher-currency<?= $block->escapeHtmlAttr($id) ?>">
|
||||
<strong class="label switcher-label"><span><?= $block->escapeHtml(__('Currency')) ?></span></strong>
|
||||
<div class="actions dropdown options switcher-options">
|
||||
<div class="action toggle switcher-trigger"
|
||||
id="switcher-currency-trigger<?= $block->escapeHtmlAttr($id) ?>"
|
||||
data-mage-init='{"dropdown":{}}'
|
||||
data-toggle="dropdown"
|
||||
data-trigger-keypress-button="true">
|
||||
<strong class="language-<?= $block->escapeHtml($block->getCurrentCurrencyCode()) ?>">
|
||||
<span><?= $block->escapeHtml($currentCurrencyCode) ?></span>
|
||||
</strong>
|
||||
</div>
|
||||
<ul class="dropdown switcher-dropdown" data-target="dropdown">
|
||||
<?php foreach ($currencies as $_code => $_name): ?>
|
||||
<?php if ($_code != $currentCurrencyCode): ?>
|
||||
<li class="currency-<?= $block->escapeHtmlAttr($_code) ?> switcher-option">
|
||||
<a href="#" data-post='<?= /* @noEscape */ $block->getSwitchCurrencyPostData($_code) ?>'><?= $block->escapeHtml($_code) ?> - <?= $block->escapeHtml($_name) ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user