<!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; ?>" lang="<?php echo $lang; ?>">
<!--<![endif]-->
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?php echo $title; ?></title>
	<base href="<?php echo $base; ?>"/>
	<?php if ($description) { ?>
		<meta name="description" content="<?php echo $description; ?>"/>
	<?php } ?>
	<meta charset="UTF-8"/>
	<?php if ($keywords) { ?>
		<meta name="keywords" content="<?php echo $keywords; ?>"/>
	<?php } ?>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<?php if ($icon) { ?>
	<?php } ?>
	<?php foreach ($links as $link) { ?>
		<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>"/>
	<?php } ?>
	<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
	<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
	<link href="<?php echo $icon; ?>" rel="icon"/>
	<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/material-design.css" rel="stylesheet" type="text/css"/>
	<link href='//fonts.googleapis.com/css?family=Ubuntu:400,300,500,700&subset=latin,cyrillic-ext' rel='stylesheet'
	      type='text/css'>

	<link rel="stylesheet" href="catalog/view/theme/<?php echo $theme_path; ?>/js/fancybox/jquery.fancybox.css"
	      media="screen"/>
	<link href="catalog/view/javascript/jquery/owl-carousel/owl.carousel.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/photoswipe.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/js/jquery.bxslider/jquery.bxslider.css" rel="stylesheet">
	<?php foreach ($styles as $style) { ?>
		<link href="<?php echo $style['href']; ?>" type="text/css" rel="<?php echo $style['rel']; ?>"
		      media="<?php echo $style['media']; ?>"/>
	<?php } ?>
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/stylesheet.css" rel="stylesheet">

	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/common.js" type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/fancybox/jquery.fancybox.js"></script>
	<!--Green Sock-->
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/greensock/jquery.gsap.min.js"
	        type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/greensock/TimelineMax.min.js"
	        type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/greensock/TweenMax.min.js"
	        type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/greensock/jquery.scrollmagic.min.js"
	        type="text/javascript"></script>
	<script src="catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js" type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/jquery.bxslider/jquery.bxslider.js"
	        type="text/javascript"></script>


	<!--custom script-->
	<?php foreach ($scripts as $script) { ?>
		<script src="<?php echo $script; ?>" type="text/javascript"></script>
	<?php } ?>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/device.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<div style='clear:both;height:59px;padding:0 15px 0 15px;position:relative;z-index:10000;text-align:center;'><a
		href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img
		src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0"
		height="42" width="820"
		alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today."/></a>
	</div><![endif]-->
	<?php echo $google_analytics; ?>
</head>
<body class="<?php echo $class; ?>">
<p id="gl_path" class="hidden"><?php echo $theme_path; ?></p>
<!-- swipe menu -->
<div class="swipe">
	<div class="swipe-menu">
		<ul>
			<li><a href="<?php echo $account; ?>" title="<?php echo $text_account; ?>"><i class="fa fa-user"></i>
					<span><?php echo $text_account; ?></span></a></li>
			<?php if ($logged) { ?>
				<li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
				<li><a href="<?php echo $transaction; ?>"><?php echo $text_transaction; ?></a></li>
				<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
				<li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
			<?php } else { ?>
				<li><a href="<?php echo $register; ?>"><i class="fa fa-user"></i> <?php echo $text_register; ?></a></li>
				<li><a href="<?php echo $login; ?>"><i class="fa fa-lock"></i><?php echo $text_login; ?></a></li>
			<?php } ?>
			<li><a href="<?php echo $wishlist; ?>" id="wishlist-total2" title="<?php echo $text_wishlist; ?>"><i
						class="fa fa-heart"></i> <span><?php echo $text_wishlist; ?></span></a></li>
			<li><a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i
						class="material-design-shopping232"></i> <span><?php echo $text_shopping_cart; ?></span></a></li>
			<li><a href="<?php echo $checkout; ?>" title="<?php echo $text_checkout; ?>"><i class="fa fa-share"></i>
					<span><?php echo $text_checkout; ?></span></a></li>
		</ul>
		<?php if ($maintenance == 0) { ?>
			<ul class="foot">
				<?php if ($informations) { ?>
					<?php foreach ($informations as $information) { ?>
						<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
					<?php } ?>
				<?php } ?>
			</ul>
		<?php } ?>
		<ul class="foot foot-1">
			<li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
			<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
			<li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
		</ul>

		<ul class="foot foot-2">
			<li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
			<li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
			<li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
			<li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
		</ul>
		<ul class="foot foot-3">
			<li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
			<li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
		</ul>
	</div>
</div>
<div id="page">
	<div class="shadow"></div>
	<div class="toprow-1">
		<a class="swipe-control" href="#"><i class="fa fa-align-justify"></i></a>
	</div>


	<header class="header">
		<div class="header-box">
			<div class="container">
				<div id="logo" class="logo">
					<?php if ($logo) { ?>
						<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>"
						                                    alt="<?php echo $name; ?>" class="img-responsive"/></a>
					<?php } else { ?>
						<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
					<?php } ?>
				</div>
				<?php echo $search; ?>
				<div class="box-right">
					<?php echo $currency; ?>
					<?php echo $language; ?>
					<div class="phone">
						<a href="<?php echo $contact; ?>"><i class="material-design-phone370"></i></a> <span><?php echo $telephone; ?></span>
					</div>
				</div>


			</div>
		</div>
		<nav id="top" class="clearfix nav">
			<div class="container">
				<?php echo $cart; ?>
				<div id="top-links" class="nav pull-left">
					<ul class="list-inline">
						<li class="first"><a href="<?php echo $home; ?>"><i class="fa fa-home"></i><span
									class="hidden-sm"><?php echo $text_home; ?></span></a></li>
						<li class="dropdown"><a href="<?php echo $account; ?>" title="<?php echo $text_account; ?>"
						                        class="dropdown-toggle" data-toggle="dropdown"><i
									class="fa fa-user"></i>
								<span class="hidden-sm"><?php echo $text_account; ?></span> <span class="caret"></span></a>
							<ul class="dropdown-menu dropdown-menu-left">
								<?php if ($logged) { ?>
									<li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
									<li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
									<li><a href="<?php echo $transaction; ?>"><?php echo $text_transaction; ?></a></li>
									<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
									<li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
								<?php } else { ?>
									<li><a href="<?php echo $register; ?>"><?php echo $text_register; ?></a></li>
									<li><a href="<?php echo $login; ?>"><?php echo $text_login; ?></a></li>
								<?php } ?>
							</ul>
						</li>
						<li><a href="<?php echo $wishlist; ?>" id="wishlist-total"
						       title="<?php echo $text_wishlist; ?>"><i
									class="fa fa-heart"></i> <span
									class="hidden-sm"><?php echo $text_wishlist; ?></span></a></li>
						<li><a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i
									class="material-design-shopping232"></i> <span
									class="hidden-sm"><?php echo $text_shopping_cart; ?></span></a></li>
						<li><a href="<?php echo $checkout; ?>" title="<?php echo $text_checkout; ?>"><i
									class="fa fa-share"></i> <span
									class="hidden-sm"><?php echo $text_checkout; ?></span></a></li>
					</ul>
				</div>
			</div>
		</nav>
	</header>

	<?php if ($categories) { ?>
		<div class="container">
			<div id="menu-gadget" class="menu-gadget">
				<div id="menu-icon" class="menu-icon"><?php echo $text_category; ?></div>
				<?php if ($categories_tm) {
					echo $categories_tm;
				} ?>
			</div>
		</div>
	<?php } ?>


