<?php 
/* Header */
?>
<header>
<div class="header">     
<?php if ($this->getIsHomePage()):?>
  <div class="logo"><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>"><?php echo $this->getChildHtml('amazeLogo', false) ?></a></div>
<?php else:?>
  <div class="logo"><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>"><?php echo $this->getChildHtml('amazeLogo', false) ?></a></div>
<?php endif?>
<div class="top-links">
  <div class="inner">   
    <p class="welcome-msg"><?php echo $this->getWelcome() ?><?php echo $this->getAdditionalHtml() ?></p>
    <?php echo $this->getChildHtml('store_language') ?>     
    <div class="toplinks">
     <div class="links">
      <div class="myaccount"><a href="<?php echo $this->getUrl('')?>customer/account/" title="<?php echo $this->__('My Account') ?>"><span><?php echo $this->__('My Account') ?></span></a></div>
      <div class="wishlist"><a href="<?php echo $this->getUrl('wishlist') ?>" title="<?php echo $this->__('Wishlist') ?>"><span><?php echo $this->__('Wishlist') ?></span></a></div>
            
      <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze-home-toplinks-block')->toHtml() ?>

      <?php if(!Mage::getSingleton( 'customer/session' )->isLoggedIn()) { ?>
      <div class="login"><a href="<?php echo $this->getUrl('')."customer/account/login/"; ?>"><span><?php echo $this->__('Log In') ?></span></a></div>
      <?php } ?>
      <?php if(Mage::getSingleton( 'customer/session' )->isLoggedIn()) { ?>
      <div class="logout"><a href="<?php echo $this->getUrl('')."customer/account/logout/"; ?>"><span><?php echo $this->__('Log Out') ?></span></a></div>
      <?php } ?>
    </div> <!-- links -->
  </div> <!--toplinks-->
</div><!--inner-->
</div> <!--top-links-->
<?php echo $this->getChildHtml('custom_currency_selector') ?>
<?php if (Mage::getStoreConfig('amazesettings/amazesettings_shoppingcart/shoppingcart_top')): ?>
  <?php echo $this->getChildHtml('cartTop') ?>
<?php endif; ?>
</div> <!--header-->
<?php echo $this->getChildHtml('topContainer'); ?>
</header>
<nav>
  <div class="nav-inner">
    <?php echo $this->getChildHtml('topMenuMob'); ?>
    <?php echo $this->getChildHtml('topMenu'); ?>
    <?php echo $this->getChildHtml('topSearch') ?>
  </div> <!--nav-inner-->
</nav> <!--nav-->