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

<?php 
$id = temizle($_GET['id']); 
$durum = "1";
$sayfaqq = $ozy->prepare("SELECT * FROM sayfalar 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 } ?>



	
	<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>Kurumsal</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/sayfalar/<?php echo $page['resim']?>" data-lightbox="image-1">
                                    
                     <div class="pr_lazy_img item__position lazyloaded" 
						data-bgset="resimler/sayfalar/<?php echo $page['resim']?>?v=1677830513"
						data-ratio="1.6629711751662972" style="padding-top: 60.1333%; background-image: url(&quot;resimler/sayfalar/<?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>Kurumsal</a></h3>
                           <h1><a class="h3"><?php echo $page['adi']?></a></h1>
                        </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="custom_html">
<div class="row row-5">
		    <?php 
					$gelenid = $page['id'];
					$sayfaresimi = $ozy->query("select * from tumresimler where sayfaid='$gelenid' and alan='sayfalar' 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>



		<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>

	
	