<header class="version_1">
	<div class="layer"></div><!-- Mobile menu overlay mask -->
	<div class="main_header">
		<div class="container">
			<div class="row small-gutters">
				<div class="col-xl-3 col-lg-3 d-lg-flex align-items-center">
					<div id="logo">
						<a href="<?=SITE?>"><img src="<?=SITE?>images/ayarlar/<?=$sitelogo?>" alt="logo" width="200" height="75"></a>
					</div>
				</div>
				<nav class="col-xl-6 col-lg-7">
					<a class="open_close" href="javascript:void(0);">
						<div class="hamburger hamburger--spin">
							<div class="hamburger-box">
								<div class="hamburger-inner"></div>
							</div>
						</div>
					</a>
					<!-- Mobile menu button -->
					<div class="main-menu">
						<div id="header_menu">
							<a href="<?=SITE?>"><img src="<?=SITE?>images/ayarlar/<?=$sitelogo?>" alt="menu" width="100" height="45"></a>
							<a href="#" class="open_close" id="close_in"><i class="ti-close"></i></a>
						</div>
						<ul> 
							<li><a href="<?=SITE?>">ANASAYFA</a></li>

							<li class="submenu">
								<a href="javascript:void(0);" class="show-submenu">KURUMSAL</a>
								<ul>
									<?php 
									$kurumsal=$VT->VeriGetir("kurumsal","WHERE durum=?",array(1),"ORDER BY sirano ASC");
									if ($kurumsal!=false) 
									{
										for ($i=0; $i <count($kurumsal) ; $i++) { 
											?>
											<li>
												<a href="<?=SITE?>kurumsal/<?=$kurumsal[$i]["seflink"]?>">
													<i class="ti-menu"></i>
													<?=stripslashes($kurumsal[$i]["baslik"])?>
													
												</a>
											</li>
											<?php
										}
									}
									?>
								</ul>
							</li>

							<li class="megamenu submenu">
								<a href="javascript:void(0);" class="show-submenu-mega">Ürünlerimiz</a>
								<div class="menu-wrapper">
									<div class="row small-gutters">
										<?php 
										$kategoriler=$VT->VeriGetir("kategoriler","WHERE durum=? AND tablo=?",array(1,"urunler"),
											"ORDER BY sirano ASC");
										if($kategoriler!=false) {
											for ($i=0; $i<count($kategoriler); $i++) { 
												?>
												<div class="col-lg-3">
													<h3><i class="ti-menu"></i> <?=stripslashes($kategoriler[$i]["baslik"])?></h3>
													<?php 
													$altkategoriler=$VT->VeriGetir("kategoriler","WHERE durum=? AND tablo=?",array(1,$kategoriler[$i]["seflink"]),
														"ORDER BY sirano ASC");
													if($altkategoriler!=false) 
													{
														echo "<ul>";

														for ($j=0; $j<count($altkategoriler); $j++) {
															?>
															<li> 
																<a href="<?=SITE?>kategori/<?=$altkategoriler[$j]["seflink"]?>"> 
																	<i class="ti-menu-alt"></i> 
																	<?=stripslashes($altkategoriler[$j]["baslik"])?> 
																</a>
															</li>
															<?php
														}
														echo "</ul>";
													}
													?>

												</div>

												<?php
											}
										} 
										?>  
										
										<!-- /row -->
									</div>
									<!-- /menu-wrapper -->
								</li> 
								<li><a href="<?=SITE?>blog">BLOG</a></li>
								<li><a href="<?=SITE?>iletisim">BİZE ULAŞIN</a></li>
							</ul>
						</div>
						<!--/main-menu -->
					</nav>
					<div class="col-xl-3 col-lg-2 d-lg-flex align-items-center justify-content-end text-right">
						<a class="phone_top" href="tel://<?=stripslashes($sitetelefon)?>"><strong><span>Çağrı Merkezi</span><?=stripslashes($sitetelefon)?></strong></a>
					</div>
				</div>
				<!-- /row -->
			</div>
		</div>
		<!-- /main_header -->

		<div class="main_nav Sticky">
			<div class="container">
				<div class="row small-gutters">
					<div class="col-xl-3 col-lg-3 col-md-3">
						<nav class="categories">
							<ul class="clearfix">
								<li><span>
									<a href="#">
										<span class="hamburger hamburger--spin">
											<span class="hamburger-box">
												<span class="hamburger-inner"></span>
											</span>
										</span>
										Tüm Kategoriler
									</a>
								</span>
								<div id="menu">
									<ul>
										<?php 
										$kategoriler=$VT->VeriGetir("kategoriler","WHERE durum=? AND tablo=?",array(1,"urunler"),
											"ORDER BY sirano ASC");
										if($kategoriler!=false) {
											for ($i=0; $i<count($kategoriler); $i++) { 
												?>
												<li>
													<span>
														<a href="<?=SITE?>kategori/<?=$kategoriler[$i]["seflink"]?>"><i class="ti-menu"></i> <?=stripslashes($kategoriler[$i]["baslik"])?>

													</a>
												</span>
												<?php 
												$altkategoriler=$VT->VeriGetir("kategoriler","WHERE durum=? AND tablo=?",array(1,$kategoriler[$i]["seflink"]),
													"ORDER BY sirano ASC");
												if($altkategoriler!=false) 
												{
													echo "<ul>";

													for ($j=0; $j<count($altkategoriler); $j++) {
														?>
														<li>
															<a href="<?=SITE?>kategori/<?=$altkategoriler[$j]["seflink"]?>"><i class="ti-menu-alt"></i> <?=stripslashes($altkategoriler[$j]["baslik"])?></a>
														</li>
														<?php
													}
													echo "</ul>";
												}
												?>
											</li>
											<?php
										}
									} 
									?> 
								</ul>
							</div>
						</li>
					</ul>
				</nav>
			</div> 

			<div class="col-xl-6 col-lg-7 col-md-6 d-none d-md-block">
				<form action="urunler" method="get">
					<div class="custom-search-input">
						<input type="text" name="arama" placeholder="Ne Aramıştınız?"> 
						<button type="submit"><i class="header-icon_search_custom"></i></button>
					</div>
				</form>
			</div>

			<div class="col-xl-3 col-lg-2 col-md-3">
				<ul class="top_tools">
					<?php include_once(SAYFA."cart.php"); ?>
					<li>
						<a href="<?=SITE?>favoriler" class="wishlist"><span>Favorilerim</span></a>
					</li>
					<li>
						<div class="dropdown dropdown-access">
							<a href="<?=SITE?>hesabim" class="access_link"><span>Hesabım</span></a>
							<div class="dropdown-menu">
								<?php 
								if (!empty($_SESSION["uyeID"])) 
								{
									?>
									<a class="btn_1"><?php echo "Hoşgeldin ".$_SESSION["uyeAdi"]; ?></a>
									<?php 
								}
								else
								{
									?>
									<a href="<?=SITE?>uyelik" class="btn_1" > Hesabım</a>
									<?php 
								} 
								?>

								<ul>
									<li>
										<a href="<?=SITE?>siparis-takip"><i class="ti-truck"></i>Sipariş Takibi</a>
									</li>
									<?php 

									if (!empty($_SESSION["uyeID"])) 
									{
										?>
										<li>
											<a href="<?=SITE?>siparislerim"><i class="ti-package"></i>Siparişlerim</a>
										</li>

										<li>
											<a href="<?=SITE?>hesabim"><i class="ti-user"></i>Hesabım</a>
										</li> 
										<li>
											<a href="<?=SITE?>cikis-yap"><i class="ti-power-off"></i>Çıkış Yap</a>
										</li>
										<?php
									}
									?>
								</ul>
							</div>
						</div>
						<!-- /dropdown-access-->
					</li>

					<li>
						<a href="javascript:void(0);" name="arama" class="btn_search_mob"><span>Arama</span></a>
					</li>
					
					<li>
						<a href="#menu" class="btn_cat_mob">
							<div class="hamburger hamburger--spin" id="hamburger">
								<div class="hamburger-box">
									<div class="hamburger-inner"></div>
								</div>
							</div>
							Kategoriler
						</a>
					</li>
				</ul>
			</div>
		</div>
		<!-- /row -->
	</div>
	<form action="urunler" method="get">  
		<div class="search_mob_wp">
			<input type="text" name="arama" class="form-control" placeholder="Ne Aramıştınız?">
			<input type="submit" class="btn_1 full-width" value="Arama yap">
		</div>
	</form>
	<!-- /search_mobile -->
</div>
<!-- /main_nav -->
</header>
<!-- /header -->

