![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-directory/view/frontend/templates/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Currency switcher * * @var \Magento\Directory\Block\Currency $block */ ?> <?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" 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) ?> - <?= $currencies[$currentCurrencyCode] ? $block->escapeHtml($currencies[$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; ?>