<nav class="navbar navbar-expand-lg bg-light">
    <div class="container-fluid">
        <a class="navbar-brand" href="#">Facebook 2</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="home.php">Home</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="amici.php">Amici</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="foto.php">Foto</a>
                </li>
                <li class="nav-item d-flex me-2">
                    <a class="nav-link" href="logout.php">Logout</a>
                </li>
                <?php
                if (isset($_SESSION['admin']) && $_SESSION['admin']) {
                    echo '<li class="nav-item">
                            <a class="nav-link" href="upload.php">Admin</a>
                         </li>';
                }
                ?>
            </ul>
        </div>
    </div>
</nav>