Your IP : 216.73.216.134


Current Path : /home/bijouxly/www/templates/themler2016aa/includes/currency/
Upload File :
Current File : /home/bijouxly/www/templates/themler2016aa/includes/currency/default_currency_5.php

<?php
require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'functions.php'; ?>

<!-- Currency Selector Module -->
<?php echo $text_before ?>
<form action="<?php echo JURI::getInstance()->toString(); ?>" method="post">
	<?php
$settings = array(
    'showLabel' => false,
    'showArrow' => true,
    'textType' => 'full'
);
$activeCurrency = null;
?>

<div class=" bd-currency-6 bd-no-margins" data-responsive-menu="true" data-responsive-levels="">
    <div class=" bd-horizontalmenu-9 clearfix">
        <div class="bd-container-inner">
            <?php ob_start(); ?>
            <div class="bd-menu-19-popup">
    
    <ul class=" bd-menu-19">
        <?php foreach($currencies as $currency):?>
            <?php if ($currency->virtuemart_currency_id == $virtuemart_currency_id) : ?>
                <?php $activeCurrency = $currency; ?>
            <?php endif; ?>
            <li class=" bd-menuitem-21">
    <?php 
        $uri = JFactory::getURI();
        $uri->setVar('virtuemart_currency_id', $currency->virtuemart_currency_id);
        $url = $uri->toString(array('path', 'query', 'fragment'));
    ?>
   <a href="<?php echo $url; ?>" class="<?php if ($currency->virtuemart_currency_id == $virtuemart_currency_id) : ?> active<?php endif; ?>">
       <span><?php echo $currency->currency_txt;?></span>
   </a>
</li>
        <?php endforeach; ?>
    </ul>
    
</div>
            <?php $submenu = ob_get_clean(); ?>
            <ul class=" bd-menu-18 nav nav-pills navbar-left">
    <li class=" bd-menuitem-20">
    <a class="dropdown-toggle" href="#">
        <span>
            <?php
                reset($currencies);
                $firtsCurrency = current($currencies);
                $parts = explode(' ', $activeCurrency ? $activeCurrency->currency_txt : $firtsCurrency->currency_txt);
                $symbol = array_pop($parts);
                $name = implode(' ', $parts);
            ?>
            <?php if ($settings['showLabel']): ?>Currency: <?php endif ?>
            <?php if ($settings['textType'] === 'noText' || $settings['textType'] === 'short') : ?>
                <?php echo $symbol; ?>
            <?php else : ?>
                <?php echo $name; ?>
            <?php endif; ?>
        </span>
        <?php if ($settings['showArrow']): ?><span class="caret"></span><?php endif ?>
    </a>
    <?php echo $submenu; ?>
</li>
</ul>
        </div>
    </div>
</div>
    <!--input class="button" type="submit" name="submit" value="<?php echo JText::_('MOD_VIRTUEMART_CURRENCIES_CHANGE_CURRENCIES') ?>" /-->
    <input id="virtuemart_currency_id" type="hidden" value="<?php echo $virtuemart_currency_id; ?>">
</form>