<?php
/**
 * @package Genesis
 * @copyright Copyright 2012 - 2015 Sammycorp
 * @author Sammycorp
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */

?>
<li><a href="<?php echo zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . genesis_get_language_code($_SESSION['languages_id']), $request_type); ?>"><span class="f16"><i class="flag <?php echo genesis_get_language_code($_SESSION['languages_id']); ?>"></i></span> <?php echo genesis_get_language_name($_SESSION['languages_id']); ?></a>
  <ul>
    <?php foreach ($lng->catalog_languages as $key => $value) { ?>
      <li><a href="<?php echo zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type); ?>"><span class="f16"><i class="flag <?php echo $key; ?>"></i></span> <?php echo $value['name']; ?></a></li>
    <?php } ?>
  </ul>
</li>