  <div class="block-title font-family-header"> <span>Select Your Currency</span> </div>
<div class=" dropdown">
<?php if (count($currencies) > 1) { ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" class="block-content">
    <?php foreach ($currencies as $currency) { ?>
    <?php if ($currency['code'] == $currency_code) { ?>
    <?php if ($currency['symbol_left']) { ?>
            <a  class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="false"  title="<?php echo $currency['title']; ?>">
                <span class="name"><?php echo $currency['symbol_left']; ?> - <?php echo $currency['title']; ?></span>
            </a>
    <?php } else { ?>
     <a  class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="false"  title="<?php echo $currency['title']; ?>">
                <span class="name"><?php echo $currency['symbol_right']; ?> - <?php echo $currency['title']; ?></span>
            </a>
    <?php } ?>
    <?php }
  } ?>

      <ul class="dropdown-menu" id="currency">
  <?php foreach ($currencies as $currency) { ?>
    <?php if ($currency['symbol_left']) { ?>
          <a tabindex="-1" title="<?php echo $currency['title']; ?>" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $(this).parent().parent().submit();"><?php echo $currency['symbol_left']; ?> - <?php echo $currency['title']; ?></a>
    <?php } else { ?>
     <a title="<?php echo $currency['title']; ?>" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $(this).parent().parent().submit();"><?php echo $currency['symbol_right']; ?> - <?php echo $currency['title']; ?> </a>

    <?php } ?>
    <?php } ?>
       </ul>
    <input type="hidden" name="currency_code" value="" />
    <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</form>
<?php } ?>
      </div>
