15 <?php
if (
$block->getCurrencyCount() > 1): ?>
16 <?php $currencies =
$block->getCurrencies(); ?>
18 <?php
$id =
$block->getIdModifier() ?
'-' .
$block->getIdModifier() :
'' ?>
19 <div
class=
"switcher currency switcher-currency" id=
"switcher-currency<?= $block->escapeHtmlAttr($id) ?>">
20 <strong
class=
"label switcher-label"><span><?=
$block->escapeHtml(
__(
'Currency')) ?></span></strong>
21 <div
class=
"actions dropdown options switcher-options">
22 <div
class=
"action toggle switcher-trigger" 23 id=
"switcher-currency-trigger<?= $block->escapeHtmlAttr($id) ?>" 24 data-
mage-init=
'{"dropdown":{}}' 25 data-toggle=
"dropdown" 26 data-trigger-keypress-button=
"true">
27 <strong
class=
"language-<?= $block->escapeHtml($block->getCurrentCurrencyCode()) ?>">
31 <ul
class=
"dropdown switcher-dropdown" data-target=
"dropdown">
32 <?php
foreach ($currencies as
$_code => $_name): ?>
34 <li
class=
"currency-<?= $block->escapeHtmlAttr($_code) ?> switcher-option">
35 <a href=
"#" data-post=
'<?= /* @noEscape */ $block->getSwitchCurrencyPostData($_code) ?>'><?=
$block->escapeHtml(
$_code) ?> - <?=
$block->escapeHtml($_name) ?></a>
$idforeach( $currencies as $_code=> $_name)( $_code !=$currentCurrencyCode)( $_code) ?> switcher-option"> <a href endif
if( $form)() ?>< script > require(['jquery' mage mage