<!DOCTYPE html>
<html lang="tr">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <link rel="canonical" href="<?php echo $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>" />
  <base href="<?php include "ayar/Domain.php" ?>">
  <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
  <link rel="icon" type="image/x-icon" href="upload/images/<?php echo $Site->site_ayarlari('favicon'); ?>">
  <link rel="stylesheet" type="text/css" href="css/idea_homes._icons.css">
  <link rel="stylesheet" type="text/css" href="css/owl.carousel.css">
  <link rel="stylesheet" type="text/css" href="css/animate.min.css">
  <link rel="stylesheet" type="text/css" href="css/settings.css">
  <link rel="stylesheet" type="text/css" href="css/jquery.fancybox.css">
  <link rel="stylesheet" type="text/css" href="css/cubeportfolio.min.css">
  <link rel="stylesheet" type="text/css" href="css/bootsnav.css">
  <link rel="stylesheet" type="text/css" href="css/range-Slider.min.css">
  <link rel="stylesheet" type="text/css" href="css/style.css">
  <link rel="stylesheet" type="text/css" href="css/color/color-1.css" id="color" />
  <?php if ($Site->modul_ayarlari('headerdurum') == "aktif") { echo $Site->modul_ayarlari('headeryazi'); } ?>

</head>

<body>
<?php if ($Site->modul_ayarlari('bodydurum') == "aktif") { echo $Site->modul_ayarlari('bodyyazi'); } ?>

<?php
  $Site->tekilip(GetIP());
?>
  <div class="loader" style="display:none;">
    <div class="cssload-thecube">
      <div class="cssload-cube cssload-c1"></div>
      <div class="cssload-cube cssload-c2"></div>
      <div class="cssload-cube cssload-c4"></div>
      <div class="cssload-cube cssload-c3"></div>
    </div>
  </div>
  <a href="#" class="back-to" title="Yukarı Çık"><i class="icon-arrow-up2"></i></a>
  <header id="header-top_3">
    <div id="header-top">
      <div class="container">
        <div class="row">
          <div class="col-md-4 col-sm-4 col-xs-12">
            <div class="hidden"> </div>
            <p class="p-white"></p>
          </div>
          <div class="col-md-8 col-sm-8 col-xs-12 text-right">
            <div class="header-top-links">
              <ul>
                <li><a onClick="#"><?php echo $Site->site_ayarlari('site-slogan1'); ?></a></li>
                &nbsp; | &nbsp;

                <?php if ($Site->site_ayarlari('site-facebook') != "") {  ?>
                <li><a href="<?php echo $Site->site_ayarlari('site-facebook'); ?>" target="_blank"><i class="fa fa-facebook"></i></a></li>
                <?php } ?>
                <?php if ($Site->site_ayarlari('site-twitter') != "") {  ?>
                <li><a href="<?php echo $Site->site_ayarlari('site-twitter'); ?>" target="_blank"><i class="fa fa-twitter"></i></a></li>
                <?php } ?>
                <?php if ($Site->site_ayarlari('site-instagram') != "") {  ?>
                <li><a href="<?php echo $Site->site_ayarlari('site-instagram'); ?>" target="_blank"><i class="fa fa-instagram"></i></a></li>
                <?php } ?>
                <?php if ($Site->site_ayarlari('site-googleplus') != "") {  ?>
                <li><a href="<?php echo $Site->site_ayarlari('site-googleplus'); ?>" target="_blank"><i class="fa fa-google-plus"></i></a></li>
                <?php } ?>
                <li><a href="sitemap.xml" target="_blank" title="Site Haritası"><i class="fa fa-sitemap"></i></a></li>

                <?php
                if(@$_SESSION['admin']) { define("Hacking","Hacking");
                echo '&nbsp; | &nbsp; <li><a href="wpanel" title="Bu Özellik Panele Bağlandığınızda Görünür!"><b><i class="fa fa-cogs"></i> Admin Paneline Git </b></a></li>'; } ?>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div id="header-bottom">
      <div class="container">
        <div class="row">
          <div class="col-md-2 hidden-xs hidden-sm"><a href="./"><img src="upload/images/<?php echo $Site->site_ayarlari('logo'); ?>"/></a></div>
          <div class="col-md-10 col-sm-12 col-xs-12">
            <div class="get-tuch text-left top20"> <i class="icon-whatsapp"></i>
              <ul>
                <li>
                  <h4>Bize Mesaj Gönderin</h4>
                </li>
                <li>
                  <p><a href="tel:<?php echo $Site->site_ayarlari('site-telefon1'); ?>"><?php echo $Site->site_ayarlari('site-telefon1'); ?></a></p>
                </li>
              </ul>
            </div>
            <div class="get-tech-line top20"><img src="images/get-tuch-line.png" alt="line" /></div>
            <div class="get-tuch text-left top20"> <i class=" icon-icons142"></i>
              <ul>
                <li>
                  <h4>Bize Yazın</h4>
                </li>
                <li>
                  <p><a href="mailto:<?php echo $Site->site_ayarlari('site-eposta'); ?>"><?php echo $Site->site_ayarlari('site-eposta'); ?></a></p>
                </li>
              </ul>
            </div>
            <div class="get-tech-line top20"> <img src="images/get-tuch-line.png" alt="line" /> </div>
            <div class="get-tuch text-left top20"> <i class="icon-icons74"></i>
              <ul>
                <li>
                  <h4>Bize Ulaşın</h4>
                </li>
                <li>
                  <p><a href="<?php echo $Site->site_ayarlari('site-googlemaps'); ?>" target="_blank" title="Google Maps"><?php echo $Site->site_ayarlari('site-adres'); ?></a></p>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <nav class="navbar navbar-default no-background navbar-sticky bootsnav">
      <div class="container">
        <!-- Start Header Navigation -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu"> <i class="fa fa-bars"></i> </button>
          <a class="navbar-brand sticky_logo" href="./">
		  <img src="upload/images/<?php echo $Site->site_ayarlari('logo'); ?>" style="max-width:63%;" class="logo" alt="Logo">
		  </a></div>
        <!-- End Header Navigation -->
        <div class="collapse navbar-collapse nav_3 clearfix" id="navbar-menu">
          <ul class="nav navbar-nav navbar-center" data-in="fadeInDown" data-out="fadeOutUp">
            <li><a href="./"><i class="fa fa-home" aria-hidden="true"></i> ANASAYFA</a></li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-suitcase" aria-hidden="true"></i> KURUMSAL</a>
              <ul class="dropdown-menu">
                <?php
						$sayfalar = $Site->sayfa_listele();
						foreach ($sayfalar as $key => $value){
               if ($value['aktifkontrol'] == "aktif") {
					?>
                  <li>
                    <a class="text-uppercase" href="<?php echo $value['sayfa_seflink']; ?>">
                      <i class="fa fa-book" aria-hidden="true"></i> <?php echo $value['sayfa_baslik']; ?>
                    </a>
                  </li>
                <?php }} ?>

                  <?php if ($Site->modul_ayarlari('ekibimiz') == "aktif") { ?>
                  <li><a href="ekibimiz"><i class="fa fa-users" aria-hidden="true"></i> EKİBİMİZ</a></li>
                  <?php }  ?>
                    <?php if ($Site->modul_ayarlari('referanslar') == "aktif") { ?>
                  <li><a href="referanslar"><i class="fa fa-chain-broken" aria-hidden="true"></i> REFERANSLAR</a></li>
                  <?php }  ?>
                  <?php if ($Site->modul_ayarlari('sss') == "aktif") { ?>
                <li><a href="sss"><i class="fa fa-question-circle" aria-hidden="true"></i> S.S.S.</a></li>
                <?php }  ?>

              </ul>
            </li>
            <style type="text/css">
              .dropdown-menu .sbb {
                display: none;
              }
            </style>
            <script type="text/javascript">
              $('.').hover(
                function() {
                  $('#submenu').show();
                },
                function() {
                  $('#submenu').hide();
                }
              );
            </script>
    <?php
            function seourlbaslik($string){
               $find = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#', 'amp');
               $replace = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp', '');
               $string = strtolower(str_replace($find, $replace, $string));
               $string = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $string);
               $string = trim(preg_replace('/\s+/', ' ', $string));
               $string = str_replace(' ', '-', $string);
               return $string;
             }

    if ($Site->modul_ayarlari('anasayfaurunler') == "aktif" || $Site->modul_ayarlari('anasayfaurunler') == "anasayfapasif") { ?>
            <li class="dropdown"> <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-list" aria-hidden="true"></i> ÜRÜNLER</a>
              <ul class="dropdown-menu">
                <?php


						$kategoriler = $Site->kategori_listele();
						foreach ($kategoriler as $key => $value){
					if($value['aktifkontrol']=="aktif"){  ?>
                  <li class="dropdown">
                    <a class="text-uppercase" class="<?php  echo $altmenu; ?>" href="<?php echo $value['sayfa_id']; ?>/<?php echo seourlbaslik($value['sayfa_baslik']); ?>">
                     <i class="fa fa-star" aria-hidden="true"></i> <?php echo $value['sayfa_baslik']; ?>
                    </a>
                    <ul class="dropdown-menu animated fadeInDown">
                    <?php
                    $kategoriler = $Site->kategori_listele2($value['sayfa_id']);
                    foreach ($kategoriler as $key => $value){
                  if($value['aktifkontrol']=="aktif"){ ?>
                        <li>
                          <a class="text-uppercase" href="<?php echo $value['sayfa_id']; ?>/<?php echo seourlbaslik($value['sayfa_baslik']); ?>">
                           <i class="fa fa-star-o" aria-hidden="true"></i>  <?php echo $value['sayfa_baslik']; ?>
                          </a>
                        </li>
                      <?php }} ?>
                    </ul>
                  </li>
                <?php } }?>
              </ul>
            </li>
  <?php } ?>

			                        <?php if ($Site->modul_ayarlari('hizmetler') == "aktif") { ?>
                      

						  <li class="dropdown"> <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-briefcase" aria-hidden="true"></i> HİZMETLER</a>
              <ul class="dropdown-menu">

                            <?php


          						$hizmetler2 = $Site->hizmetler2_listele();
          						foreach ($hizmetler2 as $key => $value){
          					if($value['aktifkontrol']=="aktif"){  ?>

                              <li class="dropdown"><a class="text-uppercase" href="hizmet/<?php echo seourlbaslik($value['sayfa_baslik']); ?>">

                                <?php if(substr($value['hizmeticon'],0,1)=="{"){ ?>
                                     <i class="fa <?=substr($value['hizmeticon'],1);?>"></i>

                                                  <?php } else { ?>
                                        <img style="border-radius: 8px;"  src="upload/images/<?=substr($value['hizmeticon'],1); ?>" width="16" height="16">&nbsp;


                                        <?php } ?> <?php echo $value['sayfa_baslik']; ?>


                                </a>

                              </li>
                              <?php } }?>
                          </ul>
                        </li>





                        <?php }  ?>
			
			
			
			
			
            <!-- Blog Kapali İse -->
            <?php if ($Site->modul_ayarlari('blog') == "kapali") { ?>
            <?php } else{  ?>
                <li><a href="blog"><i class="fa fa-newspaper-o"></i> BLOG</a></li>
              <?php }  ?>
              <!-- Multimedya İse -->
              <?php if ($Site->modul_ayarlari('multimedya') != "kapali") { ?>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-picture-o"></i> MULTİMEDYA</a>
              <ul class="dropdown-menu">
                <!-- Foto Aktif İse -->
              <?php if ($Site->modul_ayarlari('multimedya') != "videogaleriaktif") { ?>
                <li><a href="fotogaleri"><i class="fa fa-camera" aria-hidden="true"></i> FOTO GALERİ</a></li>
                  <?php }  ?>
                  <!-- Video Aktif İse -->
                <?php if ($Site->modul_ayarlari('multimedya') != "fotogaleriaktif") { ?>
                <li><a href="videogaleri"><i class="fa fa-video-camera" aria-hidden="true"></i> VİDEO GALERİ</a></li>
                  <?php }  ?>
              </ul>
            </li>
            <?php }  ?>
            <li><a href="iletisim"><i class="fa fa-phone-square"></i> İLETİŞİM</a></li>
          </ul>
        </div>
      </div>
    </nav>
  </header>
