<?php
require_once 'ayar/Config.php';
include "header.php";
?>
  <?php if ($Site->site_ayarlari('videogaleri-title') != ''){ // Meta Title ?>
  <title>
    <?php echo $Site->site_ayarlari('videogaleri-title'); ?>
  </title>
  <?php } else { ?>
  <title>Video Galeri</title>
  <?php } ?>
  <?php if ($Site->site_ayarlari('videogaleri-keywords') != ''){ // Meta Keywords ?>
  <meta name="keywords" content="<?php echo $Site->site_ayarlari('videogaleri-keywords'); ?>">
  <?php } else { ?>
  <?php } ?>
  <?php if ($Site->site_ayarlari('videogaleri-description') != ''){  // Meta Description ?>
  <meta name="description" content="<?php echo $Site->site_ayarlari('videogaleri-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"> VİDEO GALERİ </span></h2>
          <br>
          <span style="font-size:12px; color:#000000;"><a href="anasayfa">ANA SAYFA</a> / <a href="videogaleri">VİDEO GALERİ</a></span> </div>
      </div>
  </section>
  <br>
  <div class="container">
    <div class="row">
      <div class='list-group gallery'>
        <?php
  						$video = $Site->video();
  						foreach ($video as $key => $value){
                if($value["aktifkontrol"]=="aktif" || $Site->adminyetki(session("id"),'yetki')==1){
  					?>
          <div class='col-sm-7 col-xs-9 col-md-6 col-lg-6'>


            <a href="#" onclick="javascript: window.open('<?php echo $value['videoEmbed'] ?>', '', 'toolbar=no, location=no, dialog=no, minimizable=no, left=100px, status=no, menubar=no, scrollbars=yes, resizable=no, width=550, height=500'); return false">

              <center> <img class="img-responsive" alt="" style="height:350px;width:350px;" src="upload/video/<?php echo $value['videoResim'] ?>" /></center>
              <div class='text-right'>
                <div align="center"> <small class='text-muted'><?php echo $value['videoBaslik'] ?></small> </div>

              </div>


            </a>
            <br>
            <?php if ($value['videoText'] != '') { ?>
            <?php echo substr($value['videoText'],0,110); ?>-
            <div id="demo<?php echo $value['videoSeflink'] ?>" class="collapse">
              <?php echo substr($value['videoText'],110,9999); ?>
            </div>
            <center> <a onclick="#"><b data-toggle="collapse" data-target="#demo<?php echo $value['videoSeflink'] ?>"><i class="fa fa-angle-down"></i> DEVAMINI OKU ..</b> </a>
            </center>
          <?php }} ?>
            <br><br>
          </div>
          <!-- col-6 / end -->

          <?php } ?>
      </div>
      <!-- list-group / end -->
    </div>
    <!-- row / end -->
  </div>
  <!-- container / end -->
  <br>
  <?php include "footer.php"; ?>
