

	<?php ##-> Referanslar Modülü
	$m_kontrol=mysql_query("SELECT * FROM moduller WHERE modul_adi='referanslar'"); 
	$getir=mysql_fetch_array($m_kontrol); 
	$referans_m_durum = $getir['modul_durum'];
	$referans_m_s_limit = $getir['modul_v2'];
	$referans_serit_durum = $getir['modul_v3'];
	if($referans_m_durum == "acik"){
	if($referans_serit_durum == "evet"){ ?>
	<div class="clients section-bg">
	
	<div class="container">
	<div class="row">
	<div class="col-12">
	<div class="partner-slider">
			 
	<?php
	$blog_al = mysql_query("SELECT * FROM referanslar WHERE veri_dil='$dil_durum' ORDER BY id DESC limit 0,$referans_m_s_limit");
	while($yaz=mysql_fetch_array($blog_al)){
	$id = $yaz['id'];
	$referans_baslik = $yaz['baslik'];	
	$referans_resim = $yaz['resim'];	
	$referans_alt = $yaz['seo_anahtarkelime'];	
			
	echo '
	<div class="single-slider">
	<div class="single-client">
	<a href="#" target="_blank"><img src="'.$referans_resim.'" alt="'.$referans_baslik.'"></a>
	</div>
	</div>
	';
	}?>  
						
	
	</div>
	</div>
	</div>
	</div>
	</div>
	<?php } } ?>
	
	
	<?php
	## -> FOOTER MODÜLÜ
	$modul_getir=mysql_query("SELECT * FROM moduller WHERE modul_adi='footer'"); 
	$getir=mysql_fetch_array($modul_getir); 
	$footer_modul_durum = $getir['modul_durum'];
	$footer_modul_v1 = $getir['modul_v1'];
	$footer_modul_v2 = $getir['modul_v2'];
	$footer_modul_v3 = $getir['modul_v3'];
	$footer_modul_v4 = $getir['modul_v4'];
	$footer_modul_v5 = $getir['modul_v5'];	
	if($footer_modul_durum == "acik"){
	?>
	
	<footer class="footer" style="background-color:<?php echo $tema_footer_renk;?>;background-image:url('vi-includes/tema/vi-mars/img/map2.png')">
	<div class="footer-top">
	<div class="container">
	<div class="row">
	
	<div class="col-lg-3 col-md-6 col-12">
	<div class="single-widget footer-about widget">	
	<?php if($footer_modul_v1 == "evet"){?>
	<div class="logo">
	<div class="img-logo">
	<a class="logo" href="anasayfa/">
	<img class="img-responsive" src="<?php echo $geayar_footer_logo;?>" alt="logo">
	</a>
	</div>
	</div>
	<?php } ?>
	<div class="footer-widget-about-description">
	<p><?php echo $d_g_site_aciklama;?></p>
	</div>	
	<div class="social">
								
	<ul class="social-icons">
	<?php
	$icerik_al = mysql_query("SELECT * FROM sosyal_medya ORDER BY id ASC limit 0,999");
	while($yaz=mysql_fetch_array($icerik_al)){
	$id = $yaz['id'];
	$sc_icon = $yaz['sc_icon'];
	$sc_baslik = $yaz['sc_baslik'];
	$sc_renk = $yaz['sc_renk'];
	$sc_link = $yaz['sc_link'];
	
	echo '
	<li><a href="'.$sc_link.'" target="_blank" title="'.$sc_baslik.' alt='.$sc_baslik.'"><i class="fa fa-'.$sc_icon.'"></i></a></li>
	';
	
	}?>
	</ul>
	</div>
	</div>					
	</div>
	
	<?php if($footer_modul_v2 == "evet"){?>
	<div class="col-lg-2 col-md-6 col-12">			
	<div class="single-widget f-link widget">
	<h3 class="widget-title"><?php echo $dil_v_getir['m10']; ?></h3>
	<ul>
	<?php
	$blog_al = mysql_query("SELECT * FROM sayfalar WHERE veri_dil='$dil_durum' ORDER BY id DESC limit 0,6");
	while($yaz=mysql_fetch_array($blog_al)){
	$id = $yaz['id'];
	$sayfa_baslik = $yaz['baslik'];	
	$sayfa_url = $yaz['seo_url'];	
			
	echo '
	<li><a href="sayfa/'.$sayfa_url.'">'.$sayfa_baslik.'</a></li>		
	';
	}?>
	</ul>
	</div>						
	</div>
	<?php } ?>
	
	<?php if($footer_modul_v3 == "evet"){?>
	<div class="col-lg-4 col-md-6 col-12">
	<div class="single-widget footer-news widget">	
	<h3 class="widget-title"><?php echo $dil_v_getir['m18']; ?></h3>				
	<?php
	$blog_al = mysql_query("SELECT * FROM bloglar WHERE veri_dil='$dil_durum' ORDER BY id DESC limit 0,2");
	while($yaz=mysql_fetch_array($blog_al)){
	$id = $yaz['id'];
	$blog_a_baslik = $yaz['baslik'];	
	$blog_a_resim = $yaz['resim'];	
	$blog_a_tarih = $yaz['tarih'];	
	$blog_a_seourl = $yaz['seo_url'];	
			
	echo '
	<div class="single-f-news">
	<div class="post-thumb"><a href="blog/'.$blog_a_seourl.'"><img src="'.$blog_a_resim.'" alt="'.$blog_a_baslik.'"></a></div>
	<div class="content">
	<p class="post-meta"><time class="post-date"><i class="fa fa-clock-o"></i> '.$blog_a_tarih.'</time></p>
	<h4 class="title"><a href="blog/'.$blog_a_seourl.'">'.$blog_a_baslik.'</a></h4>
	</div>
	</div>
	<br>					
	';
	}?>   	
	</div>			
	</div>
	<?php } ?>
					
	<?php if($footer_modul_v4 == "evet"){?>
	<div class="col-lg-3 col-md-6 col-12">
	<div class="single-widget footer_contact widget">	
	<h3 class="widget-title"><?php echo $dil_v_getir['m35']; ?></h3>
	<p><?php echo $dil_v_getir['m36']; ?></p>
	<ul class="address-widget-list">
	<li class="footer-mobile-number"><i class="fa fa-phone"></i><?php echo $geayar_telefon;?></li>
	<li class="footer-mobile-number"><i class="fa fa-envelope"></i><?php echo $geayar_mail;?></li>
	<li class="footer-mobile-number"><i class="fa fa-map-marker"></i><?php echo $geayar_adres;?></li>
	</ul>
	</div>											
	</div>
	<?php } ?>
	
	</div>
					
	</div>
	</div>
		
	<div class="copyright">
	<div class="container">
	<div class="row">
	<div class="col-12">
	<div class="copyright-content">

	<p><?php echo $footer_modul_v5;?></p>
	</div>
	</div>
	</div>
	</div>
	</div>
		
	</footer>
	<?php } ?>
		
		</div>
	
		<script src="vi-includes/tema/vi-mars/js/jquery.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/jquery-migrate-3.0.0.js"></script>
		<script src="vi-includes/tema/vi-mars/js/popper.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/bootstrap.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/modernizr.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/scrollup.js"></script>
		<script src="vi-includes/tema/vi-mars/js/jquery-fancybox.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/cubeportfolio.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/slicknav.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/waypoints.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/jquery.counterup.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/slicknav.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/owl-carousel.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/easing.js"></script>
		<script src="vi-includes/tema/vi-mars/js/theme-option.js"></script>
		<script src="vi-includes/tema/vi-mars/js/magnific-popup.min.js"></script>
		<script src="vi-includes/tema/vi-mars/js/active.js"></script>
	</body>

</html>