<?php
require_once 'ayar/Config.php';
include "header.php";
$gelen = @get('id');
if($Site->blog($gelen,'aktifkontrol')=="aktif" || $Site->adminyetki(session("id"),'yetki')==1){
// Hit İşlemi + İstediğinize Bağlı
$okunma = $Site->blog($gelen,'blog_okunma');
$deneme = 1;
$hit =  $okunma+$deneme;
$okunma = $db->update('blog')
	->where('blog_seflink',$gelen)
	->set(array(
		'blog_okunma' => $hit
	));
?>
	<title>
		<?php echo $Site->blog($gelen,'blog_baslik'); ?>
	</title>
	<meta name="description" content="<?php echo $Site->blog($gelen,'blog_seo_aciklama'); ?>">
	<meta name="keywords" content="<?php echo $Site->blog($gelen,'blog_seo_etiket'); ?>">
	<!--===== Başlık =====-->
	<section class="padding bg_light">

		<div class="container">
			<div class="row">
				<div class="col-md-12 bottom20"><br>
					<br>
					<br>
					<br>
					<h2 class="text-uppercase"><span class="color_red"> <?php echo $Site->blog($gelen,'blog_baslik'); ?> </span></h2>
					<br>
					<span style="font-size:12px; color:#000000;"><a href="./">ANA SAYFA</a> / <a href="blog">BLOG</a> / <a class="text-uppercase" href="blog/<?php echo $Site->blog($gelen,'blog_seflink'); ?>"><?php echo substr($Site->blog($gelen,'blog_baslik'),0,50); ?>...</a></span>					</div>
			</div>
	</section>

	<center>
		<section id="news-section-1" class="news-section-details property-details padding_top">
			<div class="container">
				<div class="row">
					<div class="col-md-12">
						<div class="row">
							<div class="news-1-box margin_bottom  clearfix">
								<div class="col-md-12 col-sm-12 col-xs-12">
									<?php
		  $anasayfa_resim = explode(",",$Site->blog($gelen,'anasayfa_resim'));
		  foreach($anasayfa_resim as $uresim){
			  echo '<img src="upload/blog/'.$uresim.'" class="img-responsive"> <br/>';
		  }
		  ?>
								</div>
								<div class="col-md-12 col-sm-12 col-xs-12">
									<div class="news-details">
										<span><i class="icon-icons230"></i> <?php echo $Site->blog($gelen,'blog_okunma'); ?> okunma.</span>
										<span><i class="icon-icons228"></i> Tarih: <?php echo $Site->blog($gelen,'blog_tarih'); ?></span>
									</div>
									<h3><?php echo $Site->blog($gelen,'blog_baslik'); ?></h3>
									<p>
										<?php echo $Site->blog($gelen,'blog_text'); ?>
									</p>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
	</center>
	<?php include "footer.php";

}
else {
	git("index.php",0);
}?>
