<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="<?php echo $direction; ?>" class="<?php echo $helper->getDirection(); ?>" lang="<?php echo $lang; ?>">
<!--<![endif]-->
<?php  require( ThemeControlHelper::getLayoutPath( 'common/parts/head.tpl' ) );   ?>
<body class="<?php echo $class; ?> <?php echo $helper->getPageClass();?> layout-<?php echo $template_layout; ?>">
  <div  class="row-offcanvas row-offcanvas-left">
  <div id="page">
  	<div id="header">
	<div id="headertop">
		<div class="container">
			<!--Sopport Desktop-->
			<div class="container-inner">
				<div class="hidden-xs hidden-sm">
					<div class="pull-left">
						<div class="currency pull-left">
							<?php echo $currency; ?>
						</div>
						<div class="language pull-left">
							<?php echo $language; ?>
						</div>						
					</div>
					<div class="pull-right">
						<div class="login pull-right">
						<?php if ($logged) { ?>
					    	<a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a>
					    <?php } else { ?>
						    <a href="<?php echo $register; ?>"><?php echo $text_register; ?></a>
						    <a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>  
					    <?php } ?>
						</div>
						<div class="links  pull-right">
							<!--<a class="first" href="<?php //echo $home; ?>"><?php // echo $text_home; ?></a>-->
							<a class="account" href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
							<a class="wishlist" href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a>
							<!--<a href="<?php //echo $shopping_cart; ?>"><?php //echo $text_shopping_cart; ?></a>-->
							<a class="last checkout" href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>							
						</div>
					</div>
				</div>
			</div>
			<!-- Show Mobile -->					
			<div class="show-mobile hidden-lg hidden-md pull-right">
			<button data-toggle="offcanvas" class="pull-left btn-theme-normal dropdown-toggle" type="button"><span class="fa fa-bars"></span> Menu</button>				
				<div class="quick-user pull-left">
					<div class="quickaccess-toggle">
						<i class="fa fa-user"></i>															
					</div>	
					<div class="inner-toggle">
						<div class="login links">
							<?php if ($logged) { ?>
					    	<a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a>
						    <?php } else { ?>
							    <a href="<?php echo $register; ?>"><?php echo $text_register; ?></a>
							    <a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>  
						    <?php } ?> 
						</div>
					</div>						
				</div>
				<div class="quick-access pull-left">
					<div class="quickaccess-toggle">
						<i class="fa fa-list"></i>															
					</div>	
					<div class="inner-toggle">
						<ul class="links pull-left">							
							<li><a class="wishlist" href="<?php echo $wishlist; ?>" id="mobile-wishlist-total"><span class="fa fa-heart"></span><?php echo $text_wishlist; ?></a></li>
							<li><a class="shoppingcart" href="<?php echo $shopping_cart; ?>"><span class="fa fa-shopping-cart"></span><?php echo $text_shopping_cart; ?></a></li>
							<li><a class="last checkout" href="<?php echo $checkout; ?>"><span class="fa fa-file"></span><?php echo $text_checkout; ?></a></li>
							<li><a class="account" href="<?php echo $account; ?>"><span class="fa fa-user"></span><?php echo $text_account; ?></a></li>						 		
						</ul>
					</div>						
				</div>
				<div class="support pull-left">
					<div class="quickaccess-toggle">
						<i class="fa fa-sun-o"></i>								
					</div>						
					<div class="inner-toggle">
						<div class="currency pull-left">
							<?php echo $currency; ?>
						</div> 
						<div class="lang pull-left">
							<?php echo $language; ?>
						</div>
					</div>														
				</div>
				<div class="support pull-left">
					<div class="quickaccess-toggle">
						<i class="fa fa-search"></i>								
					</div>						
					<div class="inner-toggle">
						<div id="search-m" class="">
							<?php echo str_replace('name="search"','name="search-m"',$search); ?>
						</div>
					</div>														
				</div>			
			</div>

			<!-- End -->			
		</div>
	</div>
	<div id="headerbottom">
		<div class="container">
			<div class="container-inner">
				<?php if( $logoType=='logo-theme'){ ?>
				<div  id="logo-theme" class="logo-store pull-left">
					<a href="<?php echo $home; ?>">
						<span><?php echo $name; ?></span>
					</a>
				</div>
				<?php } elseif ($logo) { ?>
					<div id="logo" class="logo-store pull-left">
						<a href="<?php echo $home; ?>">
							<img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" />
						</a>
					</div>
				<?php } ?>

				<div class="search-cart hidden-xs hidden-sm pull-right">
					<?php echo $cart; ?>
					<div id="search" class="btn">
						<a class="search-icon" href="#">search</a>
						<div class="search-content">
						<div class="search-content-inner">
							<?php echo $search; ?>							
						</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php  require( ThemeControlHelper::getLayoutPath( 'common/parts/mainmenu.tpl' ) );   ?>
<?php
/**
 * Slideshow modules
 */
$modules = $helper->getModulesByPosition( 'slideshow' ); 
if( $modules ){
?>
<div id="pav-slideshow" class="pav-slideshow hidden-xs">
    <?php foreach ($modules as $module) { ?>
      <?php echo $module; ?>
    <?php } ?>
</div>
<?php } ?>


<!-- sys-notification -->
<div id="sys-notification">
  <div class="container">
    <div id="notification"></div>
  </div>
</div>
<!-- /sys-notification -->
<?php
/**
 * Showcase modules
 * $ospans allow overrides width of columns base on thiers indexs. format array( column-index=>span number ), example array( 1=> 3 )[value from 1->12]
 */
$blockid = 'showcase';
$blockcls = '';
$ospans = array(1=>12,2=>12);
require( ThemeControlHelper::getLayoutPath( 'common/block-cols.tpl' ) );
?>

<?php
/**
 * promotion modules
 * $ospans allow overrides width of columns base on thiers indexs. format array( column-index=>span number ), example array( 1=> 3 )[value from 1->12]
 */
$blockid = 'promotion';
$blockcls = '';
$ospans = array();
require( ThemeControlHelper::getLayoutPath( 'common/block-cols.tpl' ) );
?> 
 