Files
shop-praktikum/shop/source/tmp/smarty/b33208ab596d2e84d44ce676212fb275^%%E5^E5C^E5C7D84A%%currencies.tpl.php
Nikolai Fesenko 8d227c9191 First upload
2025-02-02 13:37:56 +01:00

36 lines
2.4 KiB
PHP

<?php /* Smarty version 2.6.34, created on 2025-02-01 09:42:13
compiled from widget/header/currencies.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'oxaddparams', 'widget/header/currencies.tpl', 15, false),)), $this); ?>
<?php if ($this->_tpl_vars['oView']->loadCurrency()): ?>
<?php $this->assign('currency', $this->_tpl_vars['oView']->getActCurrency()); ?>
<div class="btn-group currencies-menu">
<button type="button" class="btn dropdown-toggle" data-toggle="dropdown">
<?php echo $this->_tpl_vars['currency']->name; ?>
<i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<?php $_from = $this->_tpl_vars['oxcmp_cur']; if (($_from instanceof StdClass) || (!is_array($_from) && !is_object($_from))) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['_cur']):
?>
<?php if ($this->_tpl_vars['_cur']->selected): ?>
<?php $this->assign('selectedCurrency', $this->_tpl_vars['_cur']->name); ?>
<?php ob_start(); ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['_cur']->link)) ? $this->_run_mod_handler('oxaddparams', true, $_tmp, $this->_tpl_vars['oView']->getDynUrlParams()) : smarty_modifier_oxaddparams($_tmp, $this->_tpl_vars['oView']->getDynUrlParams())); ?>
" title="<?php echo $this->_tpl_vars['_cur']->name; ?>
"><span><?php echo $this->_tpl_vars['_cur']->name; ?>
</span></a>
<?php $this->_smarty_vars['capture']['currencySelected'] = ob_get_contents(); ob_end_clean(); ?>
<?php endif; ?>
<li<?php if ($this->_tpl_vars['_cur']->selected): ?> class="active"<?php endif; ?>><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['_cur']->link)) ? $this->_run_mod_handler('oxaddparams', true, $_tmp, $this->_tpl_vars['oView']->getDynUrlParams()) : smarty_modifier_oxaddparams($_tmp, $this->_tpl_vars['oView']->getDynUrlParams())); ?>
" title="<?php echo $this->_tpl_vars['_cur']->name; ?>
"><?php echo $this->_tpl_vars['_cur']->name; ?>
</a></li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>
<?php endif; ?>