<?php
	## PROJELER MODÜLÜ 
	$m_kontrol=mysql_query("SELECT * FROM moduller WHERE modul_adi='projeler'"); 
	$getir=mysql_fetch_array($m_kontrol); 
	$proje_m_durum = $getir['modul_durum'];
	$proje_m_durum_ana = $getir['modul_asayfa'];
	$proje_m_s_g = $getir['modul_v1'];
	$proje_m_s_t = $getir['modul_v2'];
	if($proje_m_durum == "acik"){
	if($proje_m_durum_ana == "evet"){
	?>
	<br>
	<section class="portfolio">
	<div class="container">
	<div class="row">
	<div class="col-lg-6 offset-lg-3 col-md-8 offset-md-2 col-12">
	<div class="section-title default text-center">
	<div class="section-top">
	<br>
	<h1><b><?php echo $dil_v_getir['m11']; ?></b></h1>
	</div>
	<div class="section-bottom">
	<div class="text">
	<p><?php echo $dil_v_getir['m12']; ?></p>
	</div>
	</div>
	</div>
	</div>
	</div>
	
	<div class="row">
	<div class="col-12">
	<div class="portfolio-menu">

	<ul id="portfolio-nav" class="portfolio-nav tr-list list-inline cbp-l-filters-work">
	   
	<?php
	$proje_k_al = mysql_query("SELECT * FROM proje_kategori WHERE veri_dil='$dil_durum' ORDER BY id ASC limit 0,999");
	while($yaz=mysql_fetch_array($proje_k_al)){
	$id = $yaz['id'];
	$baslik = $yaz['baslik'];	
			
	echo ' <li data-filter=".pkat'.$id.'" class="cbp-filter-item">'.$baslik.'</li> '; 
	}?>   
	
	</ul>

	</div>
	</div>
	</div>
	
	<div class="row">
	<div class="col-12">
	<div class="portfolio-main">
	<div id="portfolio-item" class="portfolio-item-active">
							
	<?php
	$projeleri_al = mysql_query("SELECT * FROM projeler WHERE veri_dil='$dil_durum' ORDER BY id DESC limit 0,999");
	while($yaz=mysql_fetch_array($projeleri_al)){
	$id = $yaz['id'];
	$baslik = $yaz['baslik'];	
	$resim = $yaz['resim'];	
	$m15 = $yaz['m15'];	
	$pr_seo_url = $yaz['seo_url'];	
			
	echo ' 
	
	<div class="cbp-item pkat'.$m15.'">
	<div class="single-portfolio">
	<div class="portfolio-head overlay">
	<img src="'.$resim.'" alt="'.$baslik.'">
	<a class="more" href="proje/'.$pr_seo_url.'"><i class="fa fa-long-arrow-right"></i></a>
	</div>
	<div class="portfolio-content">
	<h6><a href="proje/'.$pr_seo_url.'">'.$baslik.'</a></h6>
	</div>
	</div>
	</div>'; 
	}?>   
	

	</div>
	</div>
	</div>
	</div>
	</div><br>
	</section>
	<?php } }  ?>