File "content.phtml"
Full Path: /www/wwwroot/turbocarclub.com/themes/asur/layout/header/content.phtml
File size: 4.5 KB
MIME-type: --
Charset: utf-8
<?php global $zon, $site_url; ?>
<nav class="navbar navbar-expand-lg layout-header navbar-dark">
<div class="container-fluid">
<button class="navbar-toggler border-0 shadow-none px-0" type="button" data-bs-toggle="collapse"
data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a href="<?= $site_url ?>" class="navbar-brand dark-logo me-lg-4">
<img src="<?= $site_url ?>static/img/logo/<?= $zon['config']['site_logo_light'] ?>" height="30"
alt="<?= $zon['config']['site_name'] ?>">
</a>
<a href="<?= $site_url ?>" class="navbar-brand light-logo me-lg-4">
<img src="<?= $site_url ?>static/img/logo/<?= $zon['config']['site_logo_dark'] ?>" height="30" alt="Gamepug">
</a>
<button class="navbar-toggler border-0 shadow-none px-0" type="button" data-bs-toggle="collapse"
data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<svg width="24" height="24" stroke="currentColor" stroke-width="1.75" fill="none">
<use xlink:href="<?= $site_url ?>static/sprite.svg#search"></use>
</svg>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav mb-2 mb-lg-0 fs-sm align-items-lg-center">
<li class="nav-item">
<a class="nav-link" href="<?= $site_url ?>new-games">Newest</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= $site_url ?>popular-games">Most popular</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= $site_url ?>autoplay">
Random</a>
</li>
</ul>
<form class="form-search w-xxl-300 w-xl-250 ms-xl-4 mb-3 mb-lg-0" action="<?= $site_url ?>search">
<div class="input-group input-group-inline shadow-none">
<span class="input-group-text bg-transparent border-0 text-gray-500 shadow-none ps-0 pe-3">
<svg width="18" height="18" stroke="currentColor" stroke-width="1.75" fill="none">
<use xlink:href="<?= $site_url ?>static/sprite.svg#search"></use>
</svg>
</span>
<input type="text" name="g" class="form-control form-control-flush bg-transparent border-0 ps-0" id="search"
placeholder="Search .." aria-label="Search" required="true" minlength="3">
</div>
</form>
<ul class="navbar-nav mb-2 mb-lg-0 fw-semibold align-items-xl-center ms-xl-auto">
<?php if (!IsLoggedin) { ?>
<li class="nav-item">
<a href="<?= $site_url ?>login" class="nav-link fs-sm fw-normal">
Login</a>
</li>
<li class="nav-item">
<a href="<?= $site_url ?>register" class="nav-link fs-sm fw-normal">
Sign up</a>
</li>
<?php } ?>
<?php if (IsLoggedin) { ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle d-flex align-items-center py-0 px-3" role="button" id="Profile"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="position-relative">
<div class="avatar rounded-circle text-white fs-xs">
<img
src="<?= $site_url ?>static/img/<?= $zon['user']['user_pic'] != '' ? $zon['user']['user_pic'] : 'user_pic.png' ?>" />
</div>
</div>
<div class="ps-3 lh-sm">
<div class="text-muted fs-xs">
Namaste,</div>
<div class="fs-xs">
<?= $zon['user']['username'] ?> </div>
</div>
</a>
<div class="dropdown-menu dropdown-menu-end dropdown-menu-md border-0 mt-3 py-2 px-3 rounded-3"
aria-labelledby="Profile">
<?php if ($zon['user']['is_admin'] == 1) { ?>
<a target="_blank" class="dropdown-item fs-sm my-1" href="<?= $site_url ?>admin">
Admin Panel
</a>
<?php } ?>
<div class="my-2"></div>
<a class="dropdown-item fs-sm" href="<?= $site_url ?><?= $zon['user']['username'] ?>/settings">
Settings </a>
<a class="dropdown-item fs-sm" href="<?= $site_url ?>/logout.php">
Logout </a>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</nav>