<!DOCTYPE html>
<html lang="en">

<head>
    <?php echo getFileContent('widget/head'); ?>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $title; ?></title>
    <link rel="canonical" href="<?php echo $AppProtocol . $request_path ?>">
    <?php if ($AmpURL) : ?>
        <link rel="amphtml" href="<?php echo $AmpURL; ?>">
    <?php endif; ?>
    <?php if ($schema) : ?>
        <script type="application/ld+json">
            <?php echo json_encode($schema); ?>
        </script>
    <?php endif; ?>
    <meta name="language" content="en">
    <meta name="theme-color" content="#000250">
    <!-- Webmaster Seo Tag -->
    <meta name="title" content="<?php echo $title; ?>">
    <?php if ($metadescription) : ?>
        <meta name="description" content="<?php echo $metadescription; ?>">
    <?php endif; ?>
    <?php if ($metakeywords) : ?>
        <meta name="keywords" content="<?php echo $metakeywords; ?>">
    <?php endif; ?>
    <meta name="robots" content="<?php echo $metarobots; ?>">
    <!-- Open Graph Meta Tag -->
    <meta property="og:url" content="<?php echo $AppProtocol . $request_path ?>">
    <meta property="og:type" content="article">
    <meta property="og:title" content="<?php echo $title; ?>">
    <meta property="og:description" content="<?php echo $metadescription; ?>">
    <meta property="og:image" content="<?php echo $metaogimage; ?>">
    <!-- Fevicons -->
    <link rel="apple-touch-icon" type="image/png" sizes="192x192" href="/assets/images/icons-192.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon-16x16.png">
    <link rel="icon" href="/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="manifest" href="/manifest.json">
    <link rel="stylesheet" href="/assets/dist/style.css">
    <?php if ($Route == "UPLOAD" && $isLogged) : ?>
        <link rel="stylesheet" href="/assets/dist/select2/css/select2.min.css">
    <?php endif; ?>
             <!-- audio player home -->
<link href="https://mp3-ringtone.com/tema/player.css" rel="stylesheet">
<script src="https://mp3-ringtone.com/tema/jquery-3.6.0.min.js"></script>
</head>

<body>
    <header>
        <nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="<?php echo APP_URL; ?>"><img src="/assets/images/logo.png" alt="<?php echo APP_NAME; ?>">
                </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 ms-auto">
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle text-uppercase" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                                <i class="fa fa-music"></i> Categories
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <?php require_once __DIR__ . '/_navbar.php'; ?>
                            </ul>
                        </li>
                        <li class="nav-item"><a href="<?php echo APP_URL . '/artists/1/a-to-z'.$endRoute; ?>" class="nav-link text-uppercase me-lg-2"><i class="fa fa-user-o"></i> A to Z Artists</a></li>

                        <?php
                        if (!$isLogged && (GOOGLE_APP_ID || FACEBOOK_APP_ID))
                            echo '<li class="ms-lg-1 mt-2 mt-md-0"><button type="button" onclick="login();" class="btn btn-outline-info">Login / Register</button></li>';
                        ?>
                        <?php if ($isLogged) : ?>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                                    <img alt="profile" src="<?php echo APP_URL . '/assets/images/user.svg'; ?>" data-src="<?php echo $avatorImg; ?>" width="40" height="40" class="rounded-circle lazy">
                                </a>
                                <ul class="dropdown-menu shadow-sm" aria-labelledby="navbarDropdown2">
                                    <li class="border-bottom"><a class="dropdown-item" href="<?php echo APP_URL . '/user/' . $AuthUser['user_name'] . $endRoute; ?>"><i class="fa fa-user-o"></i> Profile</a></li>
                                    <li class="border-bottom"><a class="dropdown-item" href="<?php echo APP_URL . '/upload' . $endRoute; ?>"><i class="fa fa-upload"></i> Upload</a></li>
                                    <li class="border-bottom"><a class="dropdown-item" href="<?php echo APP_URL . '/musics/1/my-favourites' . $endRoute; ?>"><i class="fa fa-heart text-danger"></i> My Favourites</a></li>
                                    <li><a class="dropdown-item" href="<?php echo APP_URL . '/account?logout=' . $login_via; ?>"><i class="fa fa-logout"></i> Log Out</a></li>
                                </ul>
                            </li>
                        <?php endif; ?>
                    </ul>
                    <form class="ms-2 mt-2 mt-md-0 d-flex" action="<?php echo APP_URL . '/search/list'; ?>" method="GET">
                        <div class="input-group me-2">
                            <input class="form-control form-control-sm" type="text" name="q" placeholder="Search" value="<?php echo isset($searchq) ? $searchq : ''; ?>" aria-label="Search">
                            <div class="input-group-append">
                                <select name="search" aria-label="SearchType" class="form-control">
                                    <option value="song">Song</option>
                                    <option value="album">Album</option>
                                    <option value="artist">Artist</option>
                                </select>
                            </div>
                        </div>
                        <button class="btn btn-danger" type="submit">Search</button>
                    </form>
                </div>
            </div>
        </nav>
    </header>
    <?php echo getAds($AdsPath . '/all_page_top'); ?>