New bootstrap-based layout #30

Merged
Roflin merged 79 commits from bootstrap into master 2023-03-14 19:11:25 +01:00
Showing only changes of commit febe7bb405 - Show all commits

View File

@ -31,25 +31,32 @@ class MainNavBar extends NavBar
</a> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#', $this->innerMenuId, '" aria-controls="', $this->innerMenuId, '" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#', $this->innerMenuId, '" aria-controls="', $this->innerMenuId, '" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>';
if (Registry::get('user')->isLoggedIn())
{
echo '
<div class="collapse navbar-collapse justify-content-end" id="', $this->innerMenuId, '"> <div class="collapse navbar-collapse justify-content-end" id="', $this->innerMenuId, '">
<ul class="navbar-nav mb-2 mb-lg-0">'; <ul class="navbar-nav mb-2 mb-lg-0">';
$mainMenu = new MainMenu(); $mainMenu = new MainMenu();
$this->renderMenuItems($mainMenu->getItems()); $this->renderMenuItems($mainMenu->getItems());
echo ' echo '
<li class="nav-divider d-none d-lg-inline"></li>'; <li class="nav-divider d-none d-lg-inline"></li>';
$adminMenu = new AdminMenu(); $adminMenu = new AdminMenu();
$this->renderMenuItems($adminMenu->getItems()); $this->renderMenuItems($adminMenu->getItems());
$userMenu = new UserMenu(); $userMenu = new UserMenu();
$this->renderMenuItems($userMenu->getItems()); $this->renderMenuItems($userMenu->getItems());
echo '
</ul>
</div>';
}
echo ' echo '
</ul>
</div>
</div> </div>
</nav>'; </nav>';
} }