<?php
session_start();
include_once 'control/ayarlar.php';
$mysql_baglanti= new yonetici(); 
$mysql_baglanti->mysql_baglan();
error_reporting(E_ALL ^ E_NOTICE);
ini_set('error_reporting', E_ALL ^ E_NOTICE); 
?>
<? include 'functions.php'?>
<? $is_index=1;?>
<? $settings=mysql_fetch_assoc(mysql_query("Select * from settings where id=1"))?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta  charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=stripslashes($settings['meta_title'])?></title>

<base href="<?=stripslashes($settings['base'])?>" /> 
<meta name="description" content="<?=stripslashes($settings['meta_description'])?>"/>

<!-- Favicons -->
<link rel="shortcut icon" href="favicon.png">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png">

<!-- Styles -->
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" media="screen">
</head>
<body>
  
    <!-- Loader -->
	<? include 'inc_header.php'?>

  <!-- Layout -->

  <div class="layout">
    
    <!-- Home -->
    
    <main class="main">

      <div class="arrow-left"></div>
      <div class="arrow-right"></div>

      <!-- Start revolution slider -->

      <div class="rev_slider_wrapper">
        <div id="rev_slider" class="rev_slider fullscreenbanner">
          <ul>

            <!-- Slide 1 -->
			<? $query=mysql_query("Select * from slider order by priority asc");?>
			<? while ($data=mysql_fetch_assoc($query)){?>
			<li  data-transition="slotzoom-horizontal" data-slotamount="7" data-masterspeed="1000" data-fsmasterspeed="1000">
				<img src="<?=$data['image']?>" alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" class="rev-slidebg">
			</li>
			<? }?>
          </ul>
        </div>
      </div>
    </main>

    <div class="content">   
    
      <!-- About  -->
	<? $data_l=mysql_fetch_assoc(mysql_query("Select * from l_dynamic_pages where page='1' and language='".$language."'"))?>
	<? $data=mysql_fetch_assoc(mysql_query("Select * from dynamic_pages where id='1'"))?>
      <section id="about" class="about section">
        <div class="container">
          <header class="section-header">
            <h2 class="section-title"><?=stripslashes($data_l['title'])?></h2>
            <strong class="fade-title-left"><?=stripslashes($data_l['title'])?></strong>
          </header>
          <div class="section-content">
            <div class="row-base row">
				<div class="col-base col-about-img col-sm-6 col-md-4">
					<img alt="" class="img-responsive" src="<?=stripslashes($data['image'])?>">
				  </div>
              
              
              <div class="clearfix visible-sm"></div>
              <div class="col-base col-sm-6 col-md-8">
                <div class="col-about-info">
                  <?=stripslashes($data_l['content'])?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>

      <section class="projects section">
        <div class="container">
          <h2 class="section-title"><span class="text-primary">PROJELERİMİZ</span></h2>
        </div>
        <div class="section-content">
          <div class="projects-carousel js-projects-carousel">
			<? $q=mysql_query("Select * from projects where featured_project='0' order by RAND()");?>
			<? while ($d=mysql_fetch_assoc($q)){?>
			<? $l=mysql_fetch_assoc(mysql_query("Select * from l_projects where project='".$d['id']."' and language='".$language."'"))?>
			<? $c=mysql_fetch_assoc(mysql_query("Select * from l_project_categories where project_category='".$d['parent']."' and language='".$language."'"))?>
			
			<div class="project project-light">
              <a href="<?=stripslashes($l['link'])?>" title="<?=stripslashes($c['title'])?>">
                <figure>
                  <img alt="" src="photo/480/880/100/<?=stripslashes($d['image'])?>">
                  <figcaption>
                    <h3 class="project-title">
                      <?=stripslashes($l['title'])?>
                    </h3>
                    <h4 class="project-category">
                      <?=stripslashes($c['title'])?>
                    </h4>
                    <div class="project-zoom"></div>
                  </figcaption>
                </figure>
              </a>
            </div>
			<? }?>
			  
			  
            
            
          </div>
        </div>
      </section>
<? /*
      <!-- Experience -->

      <section class="experience section">
        <div class="container">
          <div class="text-parallax" data-stellar-background-ratio="0.85" style="background-image: url('img/bg/text-1.jpg');">
            <div class="text-parallax-content">28</div>
          </div>
          <h4 class="experience-info wow fadeInRight"><span class="text-primary">Years of successful work</span><br> in the market</h4>
        </div>
      </section>

      <!-- Clients  -->
 
      <section class="clients section">
        <div class="container">
          <header class="section-header">
            <h2 class="section-title">Kimlerle <span class="text-primary">çalıştık?</span></h2>
            <strong class="fade-title-left">markalar</strong>
          </header>
          <div class="section-content">
            <ul class="clients-list">
				<? $query=mysql_query("Select * from reference_files where image<>'' order by rand() limit 5");?>
				<? while ($data=mysql_fetch_assoc($query)){?>
					
					<li class="client">
						<a href="#"><img alt="" src="photo/170/60/100/<?=stripslashes($data['image'])?>"></a>
				  	</li>
				<? }?>
              
              
            </ul>
          </div>
          <div class="section-content">
            <a href="#" class="btn btn-shadow-2">Birlikte çalışalım <i class="icon-next"></i></a>
          </div>
        </div>
      </section>

      <!-- Contacts -->
*/?>
      

      <!-- Footer -->

      <? include 'inc_footer.php'?>

      <!-- Lines -->

      <div class="page-lines">
        <div class="container">
          <div class="col-line col-xs-4">
            <div class="line"></div>
          </div>
          <div class="col-line col-xs-4">
            <div class="line"></div>
          </div>
          <div class="col-line col-xs-4">
            <div class="line"></div>
            <div class="line"></div>
          </div>
        </div>
      </div>
    </div>
  </div>

<!-- SCRIPTS -->

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.magnific-popup.js"></script>
<script src="js/owl.carousel.min.js"></script>

<!-- SLIDER REVOLUTION -->
<script src="js/rev-slider/jquery.themepunch.tools.min.js"></script>
<script src="js/rev-slider/jquery.themepunch.revolution.min.js"></script>

<!-- SLIDER REVOLUTION 5.0 EXTENSIONS   -->
<script src="js/rev-slider/revolution.extension.actions.min.js"></script>
<script src="js/rev-slider/revolution.extension.carousel.min.js"></script>
<script src="js/rev-slider/revolution.extension.kenburn.min.js"></script>
<script src="js/rev-slider/revolution.extension.layeranimation.min.js"></script>
<script src="js/rev-slider/revolution.extension.migration.min.js"></script>
<script src="js/rev-slider/revolution.extension.navigation.min.js"></script>
<script src="js/rev-slider/revolution.extension.parallax.min.js"></script>
<script src="js/rev-slider/revolution.extension.slideanims.min.js"></script>
<script src="js/rev-slider/revolution.extension.video.min.js"></script>
<script src="js/interface.js"></script> 
</body>
</html>