<?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'?>
<? $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="keywords" content="<?=stripslashes($settings['meta_keywords'])?>"/>
	<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 main-inner main-projects bg-projects" data-stellar-background-ratio="0.6">
      <div class="container">
        <header class="main-header">
          <h1>Projeler</h1>
        </header>
      </div>

      <!-- 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>
    </main>

    <div class="content">   
    
      <!-- Projects -->

      <section class="projects">
        <div class="">
          <div class="row">
			  
			<? $q=mysql_query("Select * from projects order by id desc");?>
			<? 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  col-sm-6 col-md-4 col-lg-3">
              <a href="<?=stripslashes($l['link'])?>" title="project 1">
                <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>

      <!-- Contacts -->
		<? include 'inc_footer.php'?>
    </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>
<script src="js/interface.js"></script> 
</body>
</html>