<?php
$id = temizle($_GET['id']);
$query = $ozy->prepare("UPDATE haberler SET hit = (hit+1) WHERE seo=?");
$update = $query->execute(array($id));
?>

<?php 
$id = temizle($_GET['id']); 
$durum = "1";
$sayfaqq = $ozy->prepare("SELECT * FROM haberler WHERE seo=:id and durum=:durum");
$page = $sayfaqq->execute([':id' => $id,':durum' => $durum]);
$page = $sayfaqq->fetch(PDO::FETCH_ASSOC);

?>
<?php if($page['seodurum']=='1'){?>
<title><?php echo $page['stitle']; ?></title>
<meta name="keywords" content="<?php echo $page['skey']; ?>">
<meta name="description" content="<?php echo $page['sdesc']; ?>">
<meta property="og:url" content="<?php echo $url; ?>"/>
<meta property="og:title" content="<?php echo $ayar['stitle']; ?>"/>
<meta property="og:description" content="<?php echo $page['sdesc']; ?>"/>
<?php } else { ?>
<title><?php echo $page['adi']; ?></title>
<meta name="keywords" content="<?php echo $ayar['sitekey']; ?>">
<meta name="description" content="<?php echo $ayar['sitedesc']; ?>">
<meta property="og:url" content="<?php echo $url; ?>"/>
<meta property="og:title" content="<?php echo $page['adi']; ?>"/>
<meta property="og:description" content="<?php echo $ayar['sitedesc']; ?>"/>
<?php } ?>
<?php 
$sayfaid = $page['id'];
$urunyorumsayisi = $ozy->prepare("SELECT COUNT(*) FROM tumyorumlar where sayfaid='$sayfaid' and konu='blog' and durum='1'");
$urunyorumsayisi->execute();
$urunyorumsayimis = $urunyorumsayisi->fetchColumn();?>


	
<main id="MainContent">
   <div id="shopify-section-template--18643475071261__breadcrumb" class="shopify-section laber_section laber-breadcrumb">
      <div class="breadcrumbs">
         <div class="container">
            <div class="outline-breadcrum">
               <div class="wrap-breadcrum h_left v_middle">
                  <div class="breadcrum text_center">
                     <ul class="list-unstyled ">
                        <li><a href="<?php echo $url;?>">Anasayfa</a></li>
						<li><a href="bloglar/">Blog</a></li>
                        <li><span><?php echo $page['adi']; ?></span></li>
                     </ul>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div id="shopify-section-template--18643475071261__main-article" class="shopify-section">
      <div id="laber_template--18643475071261__main-article" class=" main-content shop-page main-content-blog single-blog ">
         <div class="container">
            <div class="row">
               <div class="mobile-content  col">
			   
			   
                  <div class="banner-img-article" <?php echo $page['resim'] == 'resimyok.jpg' ? 'style="display:none;"' : null; ?>>
				    <a href="resimler/haberler/<?php echo $page['resim']?>" data-lightbox="image-1">
                                    
                     <div class="pr_lazy_img item__position lazyloaded" 
						data-bgset="resimler/haberler/<?php echo $page['resim']?>?v=1677830513"
						data-ratio="1.6629711751662972" style="padding-top: 60.1333%; background-image: url(&quot;resimler/haberler/<?php echo $page['resim']?>?v=1677830513&quot;);">
                           
                        </div>
                    </a>
                  </div>
				  
				  
                  <div class="content-blog">
                     <div class="head head-article">
                        <div class="cms-group-title">
                           <h3 class="blog"><a>Blog</a></h3>
                           <h1><a class="h3"><?php echo $page['adi']?></a></h1>
                        </div>
                       <div class="wrap-date">
        <div class="inner-date">
          <span class="post_date"></span>
          <span class="month"><?php echo $page['tarih']?></span>
         
        </div>
        <ul class="meta-post">
          <li class="author"><?php echo $page['hit']?> defa okundu</li>   
          <li class="comments"> <span><?php echo $urunyorumsayimis;?> yorum </span></li>                 
        </ul>
      </div>
                     </div>
                     <div class="post-item">
                        <div class="post-info">
                           <div class="main-info-post">
                              <div>
                                <?php echo $page['aciklama']?></div>
                           </div>
                        </div>
                     </div>
                  
              	<div class="content-blog-bottom">
          	
        <div class="tags">
          
          	<!-- Created by Andy 21/10/2016 -->
<!-- /snippets/tags-article.liquid -->










<div class="title">
  <div class="tag-area">
    <span>Etiketler: </span>
    
 
	<?php $etiketlerz = $page['skey'];
	$etiketlerz = explode(',', $etiketlerz);
    foreach( $etiketlerz as $anahtarz => $degerz ){?>
    <a><?php echo $degerz;?></a>
	<?php } ?>
	
	
	
	
      
  </div>
</div>
                     
          
        </div>
          
         








<div class="laber-social-sharing socials clearfix">
  <label>Paylaş:</label>
  <ul>
    
  
    
    <li class="facebook">
      <a data-no-instant="" rel="noopener noreferrer nofollow" title="Share on Facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url;?>/blog/<?php echo $page['seo']; ?>" target="_blank" class="facebook alo_tooltip">
        <span class="alo_tooltip-content">Facebook</span>
        <i class="fa fa-facebook-f"></i>
      </a>
    </li>
    
    
    <li class="twitter">
      <a data-no-instant="" rel="noopener noreferrer nofollow" title="Share on twitter" href="https://twitter.com/intent/tweet?url=<?php echo $url;?>/blog/<?php echo $page['seo']; ?>" target="_blank" class="twitter alo_tooltip">
        <span class="alo_tooltip-content">Twitter</span>
        <i class="fa fa-twitter"></i>
      </a>
    </li>
    
    
<li class="email">
      <a data-no-instant="" rel="noopener noreferrer nofollow" title="Share on email" href="mailto:?subject=Bunu incele https://plus.google.com/share?url=<?php echo $url;?>/blog/<?php echo $page['seo']; ?>" target="_blank" class="email alo_tooltip">
        <span class="alo_tooltip-content">Email</span>
        <i class="fa fa-envelope"></i>
      </a>
    </li>
    	

    
    
    <li class="whatsapp">
      <a data-no-instant="" rel="nofollow" title="Share on Google+" target="_blank" class="whatsapp alo_tooltip" href="https://plus.google.com/share?url=<?php echo $url;?>/blog/<?php echo $page['seo']; ?>"> 
        <span class="alo_tooltip-content">Google+</span>
        <i class="fa fa-google-plus"></i>
      </a>
    </li>
    
  </ul>


</div>

   
      	</div>


<div class="custom_html">
<div class="row row-5">
		    <?php 
					$gelenid = $page['id'];
					$sayfaresimi = $ozy->query("select * from tumresimler where sayfaid='$gelenid' and alan='haberler' order by id desc")->fetchAll(PDO::FETCH_ASSOC); 
                    foreach($sayfaresimi as $genelresim){?>
						 
<div class="col-xs-12 col-sm-12 col-lg-6 pd-5 img">
<a data-lightbox="image-1" href="resimler/genel/<?php echo $genelresim['sayfaresim'];?>">		
                           
<img src="resimler/genel/<?php echo $genelresim['sayfaresim'];?>?v=1675850948" alt=""> 
</a>

</div>
  <?php } ?>
</div>
</div>


<div id="primary" class="list-comment content-form">



				<div class="comments" style="width: 100% !important;">
                    <?php if($urunyorumsayimis>'0'){?>
                        
                    <?php } else { ?>
					<h4 style="font-size: 15px;" class="title">Bu yazıya henüz yorum yapılmamış. İlk yorumu sen yapmak ister misin ?</h4><!-- End .title -->
					<?php } ?>	

                                <ul>
								
								
				<?php 
				$blogid = $page['id'];
				$deneme = $ozy->query("select * from tumyorumlar where durum='1' and sayfaid='$blogid' and konu='blog' order by id desc")->fetchAll(PDO::FETCH_ASSOC); 
                foreach ($deneme as $blogyorum) {?>			
								
                                <div class="review">
                                        <div class="row no-gutters" style="padding:10px;">
                                            
                                            <div class="col">
                                               <h4 style="text-align: left;font-size: 15px;"><a><?php echo $blogyorum['adi']; ?></a></h4>

                                                <div class="review-content">
                                                    <p><?php echo $blogyorum['yorum']; ?></p>
                                                </div><!-- End .review-content -->

                                        <?php 
									$karakter_sayisi = strlen($blogyorum['cevap']);
									
									if($karakter_sayisi>'1'){?>
                                                <div class="review-action" style="border-radius: 6px;padding: 20px;border: 1px solid  #e1e1e6;">
                                                
												<div class="comment">
                                  

                                                    <div class="comment-body">
                                                        <div class="comment-user">
                                                            <h4 style="text-align: left;"><a><?php echo $ayar['siteadi']; ?></a></h4>
                                                          
                                                        </div><!-- End .comment-user -->

                                                        <div class="comment-content">
                                                            <p><?php echo $blogyorum['cevap']; ?></p>
                                                        </div><!-- End .comment-content -->
                                                    </div><!-- End .comment-body -->
                                                </div><!-- End .comment -->
												
												
												</div><!-- End .review-action -->
												
												<?php } ?>
												
                                            </div><!-- End .col-auto -->
                                        </div><!-- End .row -->
                                    </div> 


                       <?php } ?>
								 
								 
								 
								 
								 
								 
								 
								 
								 
                                </ul>
                            </div>







   <h3 class="title">Yorum Yaz</h3>
    <form action="" method="POST" class="comment-form">
      <input type="hidden" name="sayfaid" value="<?php echo $page['id'];?>"/>
                           
      <div class="row">
         <div class="col-xs-12 col-sm-6 comment-form-column">      
            <input type="text" class="input-info" name="adi" required="" placeholder="Adınız Soyadınız *" value="<?php echo $uyebilgileri['isim'];?>">
         </div>
         <div class="col-xs-12 col-sm-6 comment-form-column">      
            <input type="email" class="input-info" name="email" required="" placeholder="Eposta Adresiniz *" value="<?php echo $uyebilgileri['email'];?>">
         </div>
      </div>
      <textarea rows="6" class="input-info input-note" placeholder="Yorumunuz"name="yorum" required></textarea>
      <div class="group-button">
         <button class="button submit" type="submit" name="blogyorum">Yorumu Gönder</button>
      </div>
   </form>
</div>




		<script src="<?php echo $sitetemasi;?>/lightbox/jquery.min.js"></script>
		<link href="<?php echo $sitetemasi;?>/lightbox/css/lightbox.css" rel="stylesheet" media="screen" />
        <script src="<?php echo $sitetemasi;?>/lightbox/js/lightbox.js" type="text/javascript"></script>  


                  </div>
               </div>
            </div>
         </div>
      </div>
      <style data-shopify="">#laber_template--18643475071261__main-article {background-color:#ffffff;		 	 	}</style>
      <style data-shopify="">
         body{
         background-color:#ffffff
         }
      </style>
   </div>
</main>

	
	