<?php require 'db.php'; ?>
<!DOCTYPE html>
<html lang="tr">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title><?php echo $site_baslik; ?></title>
  <meta content="<?php echo $site_aciklama; ?>" name="description">
  <meta content="<?php echo $site_key; ?>" name="keywords">
  <link href="assets/img/favicon.png" rel="icon">
  <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Montserrat:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
  <link href="assets/vendor/aos/aos.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
  <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
  <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
  <link href="assets/css/style.css" rel="stylesheet">
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <script><?php echo $googlekod; ?></script>
  <script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "+905326226911",
            call_to_action: "Merhaba, yardıma ihtiyacınız mı var?",
            position: "left",
        };
        var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
  </head>
<body>
  <header style="background: #274778;" id="header" class="fixed-top d-flex align-items-center header-transparent">
    <div class="container d-flex align-items-center justify-content-between">
      <div class="logo">
        <h1><a href="index.php"><span><a href="index.php"><img src="assets/img/logo.png" alt="" class="img-fluid"></a></span></a></h1>
        <!-- <a href="index.html"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
      </div>

      <nav id="navbar" class="navbar">
        <ul>
          <li><a class="nav-link scrollto active" href="index.php">Ana Sayfa</a></li>
          <li><a class="nav-link scrollto" href="yorumcular.php">Yorumcular</a></li>
          <li><a class="nav-link scrollto" href="index.php#pricing">Paketler</a></li>
          <li class="dropdown"><a href="#"><span> Fal Türleri </span> <i class="bi bi-chevron-down"></i></a>
            <ul>
              <li><a href="fal.php?fal=kahvefali">Kahve Falı</a></li>
              <li><a href="fal.php?fal=tarotfali">Tarot Falı</a></li>
              <li><a href="fal.php?fal=katinafali">Katina Falı</a></li>
              <li><a href="fal.php?fal=yildizfali">Yıldızname Falı</a></li>
              <li><a href="fal.php?fal=sufali">Su Falı</a></li>
            </ul>
        
          <li><a class="nav-link scrollto" href="index.php#contact">İletişim</a></li>
            <?php if ($_SESSION["uyeid"]) {}else{ ?>
          <li class="dropdown"><a href="#"><span> Üye Girişi </span> <i class="bi bi-chevron-down"></i></a>
            <ul>
              <li><a href="giris.php"> Giriş Yap </a></li>
              <li><a href="kayitol.php"> Kayıt Ol </a></li>
              <li><a href="ygiris.php"> Yorumcu Girişi </a></li>
              <li><a href="ykayit.php"> Yorumcu Kayıt </a></li>
            </ul>
          </li>
        <?php } ?>
          <?php if ($_SESSION["uyeid"]) {
            $sessionüyeid = $_SESSION["uyeid"];
            $uyebilgi = mysqli_fetch_array(mysqli_query($db, "SELECT * FROM uyeler WHERE id = '$sessionüyeid'"));
             ?>
            <li class="dropdown"><a href="#"><span> Panel ( <?php echo $uyebilgi["ad"];?> )</span> <i class="bi bi-chevron-down"></i></a>
              <ul>
                <li><a href="panel.php"> Panele Git </a></li>
                <li><a href="yorumcular.php"> Fal Baktır </a></li>
                <li><a href="assets/gerekli/cikis.php"> Çıkış Yap </a></li>
              </ul>
            </li>
          <?php } ?>
          <?php if ($_SESSION["yorumcuid"]) {
            $sessionyorumcuid = $_SESSION["yorumcuid"];
            $yorumcuubilgi = mysqli_fetch_array(mysqli_query($db, "SELECT * FROM yorumcular WHERE id = '$sessionyorumcuid'"));
             ?>
            <li class="dropdown"><a href="#"><span> Panel ( <?php echo $yorumcuubilgi["ad_soyad"];?> )</span> <i class="bi bi-chevron-down"></i></a>
              <ul>
                <li><a href="yorumcupanel.php"> Panele Git </a></li>
                <li><a href="assets/gerekli/cikis.php"> Çıkış Yap </a></li>
              </ul>
            </li>
          <?php } ?>
        </ul>
        <i class="bi bi-list mobile-nav-toggle"></i>
      </nav>
    </div>
  </header>
