<!-- /*
* Template Name: Blogy
* Template Author: Untree.co
* Template URI: https://untree.co/
* License: https://creativecommons.org/licenses/by/3.0/
*/ -->
<!doctype html>
<html lang="tr">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Untree.co">
    <link rel="shortcut icon" href="favicon.png">

    <meta name="description" content="" />
    <meta name="keywords" content="bootstrap, bootstrap5" />

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap" rel="stylesheet">


    <link rel="stylesheet" href="fonts/icomoon/style.css">
    <link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">

    <link rel="stylesheet" href="css/tiny-slider.css">
    <link rel="stylesheet" href="css/aos.css">
    <link rel="stylesheet" href="css/glightbox.min.css">
    <link rel="stylesheet" href="css/style.css">

    <link rel="stylesheet" href="css/flatpickr.min.css">


    <title>Blogy &mdash; Free Bootstrap 5 Website Template by Untree.co</title>
</head>

<body>

    <div class="site-mobile-menu site-navbar-target">
        <div class="site-mobile-menu-header">
            <div class="site-mobile-menu-close">
                <span class="icofont-close js-menu-toggle"></span>
            </div>
        </div>
        <div class="site-mobile-menu-body"></div>
    </div>

    <nav class="site-nav">
        <div class="container">
            <div class="menu-bg-wrap">
                <div class="site-navigation">
                    <div class="row g-0 align-items-center">
                        <div class="col-2">
                            <a href="index.php" class="logo m-0 float-start">BELTEK HABER<span class="text-primary"></span></a>
                        </div>
                        <div class="col-8 text-center">
                            <form action="#" class="search-form d-inline-block d-lg-none">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="bi-search"></span>
                            </form>

                            <ul class="js-clone-nav d-none d-lg-inline-block text-start site-menu mx-auto">
                                <li><a href="index.php">Ana Sayfa</a></li>
                                <?php

                                $sql = "SELECT * FROM kategori";
                                $tablo = $vt->query($sql);
                                while ($satir=$tablo->fetch_assoc()) {
                                    echo "<li><a href='kategori.php?id=$satir[kategori_id]&baslik=".baslik_donustur($satir['kategori_ad'])."'>$satir[kategori_ad]</a></li>";
                                }

                                echo '<li><a href="ekonomi.php">Ekonomi</a></li>';
                                echo '<li><a href="haberler.php">Tüm Haberler</a></li>';

                                # !isset($_SESSION["oturum"]) => Kullanıcı henüz oturum açmamışsa
                                if(!isset($_SESSION["oturum"])) echo '<li class="has-children">
                                    <a>Oturum İşlemleri</a>
                                    <ul class="dropdown">
                                        <li><a href="oturum-ac.php">Oturum Aç</a></li>
                                        <li><a href="uye-ol.php">Üye Ol</a></li>
                                        <hr>
                                        <li><a href="parolami-unuttum.php">Parolamı Unuttum</a></li>
                                    </ul>
                                </li>';

                                else if(uye("statu")==0) echo '<li class="has-children">
                                    <a>'.uye("ad").' '.uye("soyad").'</a>
                                    <ul class="dropdown">
                                        <li><a href="bilgilerim.php">Bilgilerim</a></li>
                                        <li><a href="parola-degistir.php">Parola Değiştir</a></li>
                                        <hr>
                                        <li><a href="oturumu-kapat.php">Oturumu Kapat</a></li>
                                    </ul>
                                </li>';

                                else if(uye("statu")==1) echo '<li class="has-children">
                                    <a>'.uye("ad").' '.uye("soyad").'</a>
                                    <ul class="dropdown">
                                        <li><a href="admin/">Yönetim Paneli</a></li>
                                        <hr>
                                        <li><a href="bilgilerim.php">Bilgilerim</a></li>
                                        <li><a href="parola-degistir.php">Parola Değiştir</a></li>
                                        <hr>
                                        <li><a href="oturumu-kapat.php">Oturumu Kapat</a></li>
                                    </ul>
                                </li>';

                                ?>
                            </ul>
                        </div>
                        <div class="col-2 text-end">
                            <a href="#" class="burger ms-auto float-end site-menu-toggle js-menu-toggle d-inline-block d-lg-none light">
                                <span></span>
                            </a>
                            <form action="#" class="search-form d-none d-lg-inline-block">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="bi-search"></span>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>