<?php
if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
  exit();
}
?>

<div class="back2top-btn">
  <a href="index"><i class="fas fa-long-arrow-alt-up"></i></a>
</div>

<header class="header-part">
  <div class="header-bg">
    <div class="container">
      <div class="row">
        <div class="col-lg-6">
          <a class="header-logo" href="index"><img src="<?= public_url() . "" . $rowset['logo'] ?>" alt="logo" /></a>
        </div>
        <div class="col-lg-6">
          <div class="header-btn">
            <a class="btn btn-outline" href="istek"><i class="fas fa-envelope"></i><span>İstek Gönder</span></a>
          </div>
        </div>
      </div>
    </div>
  </div>
</header>

<nav class="navbar-part">
  <div class="navbar-bg">
    <div class="container">
      <div class="navbar-content">
        <a class="navbar-logo" href="index">
          <img src="<?= public_url() . "" . $rowset['logo'] ?>" alt="logo" />
        </a>
        <button class="navbar-toggle" type="button">
          <i class="fas fa-bars"></i>
        </button>
        <div class="navbar-overlay">
          <div class="navbar-slide">
            <div class="slide-head">
              <a href="index"><img src="<?= public_url() . "" . $rowset['logo'] ?>" alt="logo" /></a>
              <button class="cencel"><i class="fas fa-times"></i></button>
            </div>
            <ul class="navbar-list">
              <li class="navbar-item">
                <a class="navbar-link" href="index"><span><i class="fas fa-headphones-alt"></i>Anasayfa</span></a>
              </li>
              <li class="navbar-item navbar-dropdown">
                <a class="navbar-link">
                  <span><i class="fas fa-headphones-alt"></i>Kurumsal</span>
                  <small class="fas fa-chevron-down"></small>
                </a>
                <ul class="dropdown-list">
                  <?php
                  $queryx = $db->prepare("SELECT * FROM sayfalar");
                  $queryx->execute();
                  while ($rows = $queryx->fetch(PDO::FETCH_ASSOC)) { ?>
                    <li>
                      <a class="dropdown-link" href="sayfa/<?= $rows['seourl']; ?>"><i class="fas fa-headphones-alt"></i> <?= $rows['page']; ?></a>
                    </li>
                  <?php } ?>
                </ul>
              </li>
              <li class="navbar-item">
                <a class="navbar-link" href="yayin-akisi">
                  <span><i class="fas fa-headphones-alt"></i>Yayın Akışı</span>
                </a>
              </li>

              <li class="navbar-player">
                <div class="player" style="background: url(<?= public_url() . "" . $rowset['favicon'] ?>);">
                  <button class="player-btn" id="play-pause-button">
                    <i class="fas fa-play"></i>
                  </button>
                  <input type="hidden" id="rtek1" value="https://<?= $eferow['radyo_ip'] ?>/<?= $eferow['radyo_port'] ?>/stream">
                </div>
              </li>
              
              <li class="navbar-item">
                <a class="navbar-link" href="haber"><span><i class="fas fa-headphones-alt"></i>Haberler</span></a>
              </li>
              <li class="navbar-item navbar-dropdown">
                <a class="navbar-link"><span><i class="fas fa-headphones-alt"></i>Multimedya</span><small class="fas fa-chevron-down"></small></a>
                <ul class="dropdown-list">
                  <li>
                    <a class="dropdown-link" href="video-galeri"><i class="fas fa-headphones-alt"></i> Video Galeri</a>
                  </li>
                  <li>
                    <a class="dropdown-link" href="foto-galeri"><i class="fas fa-headphones-alt"></i> Resim Galeri</a>
                  </li>
                </ul>
              </li>
              <li class="navbar-item">
                <a class="navbar-link" href="iletisim"><span>
                    <i class="fas fa-headphones-alt"></i>Bize Ulaşın</span>
                </a>
              </li>
            </ul>
            <div class="navbar-btn">
              <a class="btn btn-outline" href="istek">
                <i class="fas fa-envelope"></i>
                <span>İstek Gönder</span></a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</nav>

<div class="bottom-player">
  <div class="player" style="background: url(<?= public_url() . "" . $rowset['favicon'] ?>);">
    <button class="player-btn" id="play-pause-button2">
      <input type="hidden" id="rtek2" value="https://<?= $eferow['radyo_ip'] ?>/<?= $eferow['radyo_port'] ?>/stream">
      <i class="fas fa-play"></i>
    </button>

  </div>
</div>