<?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
 */

?>

<ul id="aux-menu" class="menu">
<?php if(zen_not_null($genesis_options['header_language']) || zen_not_null($genesis_options['header_currencies'])) : ?>
  <?php if(zen_not_null($genesis_options['header_language'])){
    require(DIR_WS_MODULES . zen_get_module_directory('languages.php')); 
  } ?>
  <?php if(zen_not_null($genesis_options['header_currencies'])){
    require(DIR_WS_MODULES . zen_get_module_directory('currencies.php')); 
  } ?>
<?php endif; ?> 

<?php if ( $_SESSION['customer_id'] ) : ?>
  <li>
    <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo $_SESSION['customer_first_name']; ?></a>
    <ul class="menu">
      <li class="account-link"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    </ul>
  </li>
<?php else : ?>
<!-- BOF FAQS LINK -->
    <!-- <li><a href="<?php echo zen_href_link(FILENAME_FAQS, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_FAQS; ?></a></li> -->
<!-- EOF FAQS LINK -->
  <?php if (STORE_STATUS == '0') : ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
  <?php endif; ?>
<?php endif; ?>
  <li id="cart-header-btn"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>"><i class="fa fa-shopping-cart"></i> <?php printf( TEXT_CART_CONTENTS, $_SESSION['cart']->count_contents() ); ?></a></li> 
</ul>