currency.phtml 906 Bytes
Newer Older
John Punzalan's avatar
John Punzalan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
if($this->getCurrencyCount() > 1):
?>
<li class="dropdown lang">
    <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
    <?php if ($_code == $this->getCurrentCurrencyCode()): ?>
    <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="<?php echo $this->getSwitchCurrencyUrl($_code)?>">
        <?php echo $_code; ?>
    </a>
    <ul class="languages-header dropdown-menu">
        <?php endif; ?>
        <?php endforeach; ?>
        <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
            <?php if ($_code != $this->getCurrentCurrencyCode()): ?>
                <li class="menu-item">
                    <a href="<?php echo $this->getSwitchCurrencyUrl($_code)?>">
                        <?php echo $_code; ?>
                    </a>
                </li>
            <?php endif; ?>
        <?php endforeach; ?>
    </ul>
</li>
<?php
endif;
?>