<?php if ($journal3->get('catalogCurrencyStatus')) { ?>
<?php if (count($currencies) > 1) { ?>
<div id="currency" class="currency">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-currency">
  <div class="dropdown drop-menu">
    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
      <span class="currency-symbol-title">
        <?php foreach ($currencies as $currency) { ?>
        <?php if ($currency['symbol_left'] && $currency['code'] == $code) { ?>
        <span class="symbol"><?php echo $currency['symbol_left']; ?></span>
        <span class="currency-title"><?php echo $currency['title']; ?></span>
        <span class="currency-code"><?php echo $currency['code']; ?></span>
        <?php } elseif ($currency['symbol_right'] && $currency['code'] == $code) { ?>
        <span class="symbol"><?php echo $currency['symbol_right']; ?></span>
        <span class="currency-title"><?php echo $currency['title']; ?></span>
        <span class="currency-code"><?php echo $currency['code']; ?></span>
        <?php } ?>
        <?php } ?>
      </span>
    </button>
    <div class="dropdown-menu j-dropdown">
    <ul class="j-menu">
      <?php foreach ($currencies as $currency) { ?>
      <?php if ($currency['symbol_left']) { ?>
      <li class="menu-item">
        <a class="currency-select" data-name="<?php echo $currency['code']; ?>" role="button">
          <span class="currency-symbol"><?php echo $currency['symbol_left']; ?></span>
          <span class="currency-title-dropdown"><?php echo $currency['title']; ?></span>
          <span class="currency-code-dropdown"><?php echo $currency['code']; ?></span>
        </a>
      </li>
      <?php } else { ?>
      <li class="menu-item">
        <a class="currency-select" data-name="<?php echo $currency['code']; ?>" role="button">
          <span class="currency-symbol"><?php echo $currency['symbol_right']; ?></span>
          <span class="currency-title-dropdown"><?php echo $currency['title']; ?></span>
          <span class="currency-code-dropdown"><?php echo $currency['code']; ?></span>
        </a>
      </li>
      <?php } ?>
      <?php } ?>
    </ul>
    </div>
  </div>
  <input type="hidden" name="code" value="" />
  <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</form>
</div>
<?php } ?>
<?php } ?>
