<?php
require_once 'ayar/Config.php';
include "header.php";
?>
  <?php if ($Site->site_ayarlari('fotogaleri-title') != ''){ // Meta Title ?>
  <title>
    <?php echo $Site->site_ayarlari('fotogaleri-title'); ?>
  </title>
  <?php } else { ?>
  <title>Foto Galeri</title>
  <?php } ?>
  <?php if ($Site->site_ayarlari('fotogaleri-keywords') != ''){ // Meta Keywords ?>
  <meta name="keywords" content="<?php echo $Site->site_ayarlari('fotogaleri-keywords'); ?>">
  <?php } else { ?>
  <?php } ?>
  <?php if ($Site->site_ayarlari('fotogaleri-description') != ''){  // Meta Description ?>
  <meta name="description" content="<?php echo $Site->site_ayarlari('fotogaleri-description'); ?>">
  <?php } else { ?>
  <?php } ?>
  <!--===== 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"> FOTO GALERİ </span></h2>
          <br>
          <span style="font-size:12px; color:#000000;"><a href="anasayfa">ANA SAYFA</a> / <a href="fotogaleri">FOTO GALERİ</a></span> </div>
      </div>
  </section>
  <br>
  <div class="container">
    <div class="row">
      <div class='list-group gallery'>
        <?php
              $galeri = $Site->galeri();
              foreach ($galeri as $key => $value){
                if($value["aktifkontrol"]=="aktif" || $Site->adminyetki(session("id"),'yetki')==1){
            ?>
          <div class='col-sm-4 col-xs-6 col-md-3 col-lg-3'>
            <a class="thumbnail fancybox" rel="ligthbox" href="upload/galeri/<?php echo $value['galeriResim'] ?>">
                    <img class="img-responsive" alt="<?php echo $value['galeriBaslik'] ?>" style="height:250px;width:250px;" src="upload/galeri/<?php echo $value['galeriResim'] ?>" />
                  <!--  <div class='text-right'>
                      <div align="center">  <b class='text-muted'><?php // echo $value['galeriBaslik'] ?></b> </div>
                    </div>
                  -->
                </a>
          </div>
          <!-- col-6 / end -->
        <?php }} ?>
      </div>
      <!-- list-group / end -->
    </div>
    <!-- row / end -->
  </div>
  <!-- container / end -->

  <?php include "footer.php"; ?>
