<?php require_once 'ayar/Config.php'; ?>
<?php if ($Site->modul_ayarlari('bakimmodudurum') == "aktif") { header('Content-Type: text/html; charset=utf-8'); echo "<center>".$Site->modul_ayarlari('bakimmoduyazi')."</center>"; } else { ?>
<?php include "header.php"; ?>
<title>
  <?php echo $Site->site_ayarlari('site-baslik'); ?>
</title>
<meta name="description" content="<?php echo $Site->site_ayarlari('site-seo-aciklama'); ?>">
<meta name="keywords" content="<?php echo $Site->site_ayarlari('site-seo-etiket'); ?>">
<!-- Ana Sayfa Slayt -->
<section class="rev_slider_wrapper">
  <div id="rev_slider_3" class="rev_slider" data-version="5.0">
    <ul>
      <?php
				$slider = $Site->slider();
				foreach ($slider as $key => $value){
          if($value["resim_goster"]=='1'){
			?>
        <li data-transition="swing"> <img src="upload/slider/<?php echo $value['sliderResim']; ?>" alt="" data-bgposition="center center" data-bgfit="cover" class="rev-slidebg">
          <div class="tp-caption tp-resizeme" data-x="['center','center','center','center']" data-hoffset="['15','15','30','15']" data-y="['330','290','230','230']" data-voffset="['0','0','0','0']" data-responsive_offset="on" data-visibility="['on','on','on','on']"
            data-transform_idle="o:1;" data-transform_in="z:0;rX:0;rY:0;rZ:0;sX:0.9;sY:0.9;skX:0;skY:0;opacity:0;s:1500;e:Power3.easeInOut;" data-transform_out="y:[100%];s:1000;e:Power2.easeInOut;s:1000;e:Power2.easeInOut;" data-mask_out="x:inherit;y:inherit;s:inherit;e:inherit;"
            data-start="800">
            <h2 class="border_heading p-white" style="font-size:25px;"> <?php if($value["baslik_goster"]=='1'){ echo $value['sliderBaslik']; }?> </h2>
          </div>
        </li>
      <?php }} ?>
    </ul>
  </div>
</section>
<?php if ($Site->modul_ayarlari('anasayfaurunler') == "aktif" || $Site->modul_ayarlari('anasayfaurunler') == "anasayfaaktif") { ?>
<!-- Ürünler -->
<section id="agent-p-2" class="property-details bg_light padding">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 bottom40">
        <h2 class="text-uppercase"><span class="color_red">ÜRÜN</span>LERİMİZ</h2>
      </div>
    </div>
    <div class="col-md-12">
      <div class="row">
        <div id="property-2-slider" class="owl-carousel">
          <?php
						$urunler = $Site->urun_listele();
						foreach ($urunler as $key => $value){
					?>
          <?php if($value['aktifkontrol'] == "aktif"){ ?>
            <div class="item">
              <div class="property_item bottom40">
                <div class="image">
                  <img src="upload/images/<?php echo $value['anasayfa_resim'] ?>" style="height:250px;" alt="listin" class="img-responsive">
                  <div class="property_meta">
                    <h4 style="color:#FFFFFF;"> <?php echo $value['urun_baslik']; ?></h4>
                  </div>
                  <div class="price"><span class="tag">
                    <?php
                    if ($Site->modul_ayarlari('fiyatgoster') == "aktif") {
                        if($value['fiyat_goster']==1){
                          echo $value['urun_fiyat']; ?> <i class="fa fa fa-try"></i>
                          <?php } else { ?> Fiyat Sorunuz
                        <?php }}
                        else {
                        echo $Site->modul_ayarlari('fiyattext');
                      } ?>
                  </span></div>
                  <div class="overlay">
                    <div class="centered"><a class="link_arrow white_border" href="urun/<?php echo $value['urun_seflink'] ?>">Ürün Detayı</a></div>
                  </div>
                </div>
                <div class="proerty_content">
                  <div class="proerty_text">
                    <span class="bottom10"><?php echo  substr($value['urun_text'],0,200); ?> <a href="urun/<?php echo $value['urun_seflink'] ?>"><b>İncele »</b></span>
                  </div>
                  <div>
                    <ul class="pull-right">
                      <li><a href="#"></a></li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          <?php }} ?>
        </div>
      </div>
    </div>
  </div>
</section>
<?php } else { echo "<br>"; } ?>
<!-- Blog -->
<br>
<?php if ($Site->modul_ayarlari('blog') == "aktif") { ?>
<br>
<div class="container bas">
  <div class="beyaz wow zoomIn" style="visibility: visible; animation-name: zoomIn;">
    <div class="row">
      <div class="col-md-6 col-llg-6 col-sm-12 col-xs-12">
        <h2 class="text-uppercase"><span class="color_red">BLOG</span>'TAN SON YAZILAR</h2>
        <br>
        <div class="cizgi-sol"></div>
        <?php
						$blog = $Site->blog_listele();
            $i=0;
						foreach ($blog as $key => $value){
              if($i==2)
                break;
              $i++;
						$blog_resim = explode(",",$value['anasayfa_resim']);
            if($value["aktifkontrol"]=="aktif"){
					?>
          <div class="liste">
            <div class="row">
              <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4"> <a href="blog/<?php echo $value['blog_seflink'] ?>" title="<?php echo $value['blog_baslik']; ?>"> <br>
              <img src="upload/blog/<?php echo $value['anasayfa_resim']; ?>" width="100%"></a> </div>
              <div class="col-lg-8 col-md-8 col-xs-8 col-sm-8">
                <div class="liste-baslik"> <a href="blog/<?php echo $value['blog_seflink'] ?>"><b><?php echo $value['blog_baslik']; ?></b></a> </div>
                <p></p>
                <p>
                  <?php echo substr($value['blog_text'],0,150); ?>...</p>
                <div class="hidden-xs tarih"><i class="fa fa-calendar-o"></i>
                  <?php echo $value['blog_tarih']; ?> &nbsp;/&nbsp; <i class="fa fa-bullhorn"></i>
                  <?php echo $value['blog_okunma']; ?> okunma.</div>
              </div>
            </div>
          </div>
          <br>
        <?php }} ?>
          <a style="text-align:right;" href="blog">
            <h4 class="text-uppercase">>> Tüm <span class="color_red">Bloglar</span></h4>
          </a>
      </div>
      <?php if ($Site->modul_ayarlari('sss') == "aktif") { ?>
      <div class="col-md-6 col-llg-6 col-sm-12 col-xs-12">
        <h2 class="text-uppercase"><span class="color_red">S</span>IKÇA <span class="color_red">S</span>ORULAN <span class="color_red">S</span>ORULAR</h2>
		<h6 class="text-uppercase">&nbsp; Aklınıza takılan tüm soru ve cevapları sizin için derledik.</h6>
        <div class="cizgi-sol"></div>
        <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" style="margin-top:10px;">
          <?php
						$hizmetler = $Site->hizmetler_listele();
						foreach ($hizmetler as $key => $value){
					?>
            <div class="panel panel-default">
              <div class="panel-heading" role="tab" id="heading<?php echo $value['sayfa_id']; ?>">
                <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $value['sayfa_id']; ?>" aria-expanded="true" aria-controls="collapse<?php echo $value['sayfa_id']; ?>"> <i class="fa <?php echo $value['hizmeticon']; ?>"></i>&nbsp; <?php echo $value['sayfa_baslik']; ?> </a> </h4>
              </div>
              <div id="collapse<?php echo $value['sayfa_id']; ?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading<?php echo $value['sayfa_id']; ?>">
                <div class="panel-body">
                  <p>
                    <?php echo $value['sayfa_text']; ?>
                  </p>
                </div>
              </div>
            </div>
            <?php } ?>
        </div>
      </div>
      <?php } else { echo "<br>"; } ?>
    </div>
  </div>
</div>
<?php } else { echo "<br>"; } ?>
<?php if ($Site->modul_ayarlari('anasayfamarkalar') == "aktif") { ?>
<!-- Markalar -->
<section id="our-partner" class="padding">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <h2 class="text-uppercase"><span class="color_red">Markalar</span></h2>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div id="partner_slider_2" class="owl-carousel">
          <?php
              $markalar = $Site->markalar();
              foreach ($markalar as $key => $value){
            ?>
            <div class="item"><img src="upload/markalar/<?php echo $value['markalarResim'] ?>" alt="Markalar"></div>
            <?php } ?>
        </div>
      </div>
    </div>
  </div>
</section>
<?php } else { echo "<br>"; } ?>
<?php include "footer.php"; ?>
<?php } ?>
