1
|
<div class="row menu">
|
2
|
<div class="d-flex mx-auto">
|
3
|
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'], '/index.php') ? 'active' : '');?>" href="index.php">Úvodní info</a>
|
4
|
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/search.php') ? 'active' : '');?>" href="search.php">Vyhledávání</a>
|
5
|
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/manual.php') ? 'active' : '');?>" href="manual.php">Manuál</a>
|
6
|
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/login.php') ? 'active' : '');?>" href="#" data-toggle="modal" data-target="#login-modal">Přihlášení</a>
|
7
|
<?php
|
8
|
if (isset($_SESSION['role']) && $_SESSION['role'] == "admin") {
|
9
|
echo "<a class=\" px-4 py-1 ";
|
10
|
echo (strstr($_SERVER['PHP_SELF'],'/users.php') ? 'active\"' : '\"');
|
11
|
echo "href=\"users.php\">Správa uživatelů</a>";
|
12
|
}
|
13
|
?>
|
14
|
<a class="my-auto px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/settings.php') ? 'active' : '');?>" href="#" data-toggle="modal" data-target="#settings-modal" id="modalSettingsHref">Nastavení</a>
|
15
|
</div>
|
16
|
</div>
|