Dropdown navbar menu for services

This commit is contained in:
alextselegidis 2021-11-18 05:28:16 +01:00
parent aadac6a060
commit 54ee7ac924

View file

@ -41,12 +41,20 @@
<?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'd-none' ?> <?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'd-none' ?>
<?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : '' ?> <?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : '' ?>
<li class="nav-item <?= $active . $hidden ?>"> <li class="nav-item dropdown <?= $active . $hidden ?>">
<a href="<?= site_url('services') ?>" class="nav-link" <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"
data-tippy-content="<?= lang('manage_services_hint') ?>"> data-tippy-content="<?= lang('manage_services_hint') ?>">
<i class="fas fa-business-time mr-2"></i> <i class="fas fa-business-time mr-2"></i>
<?= lang('services') ?> <?= lang('services') ?>
</a> </a>
<div class="dropdown-menu">
<a class="dropdown-item" href="<?= site_url('services') ?>">
<?= lang('services') ?>
</a>
<a class="dropdown-item" href="<?= site_url('service_categories') ?>">
<?= lang('categories') ?>
</a>
</div>
</li> </li>
<?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'd-none' ?> <?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'd-none' ?>