Hi,
thank you for the addon.
I also installed admin groups, is it possible the left admin menu only available when the access has no limitation, in other words I mean when has file limitation to admin groups, then only top dropdown menu showup. If it is possible, how can I modify the hMenu.php in order to do so? Thank you!
admin group code modified in hMenu.php
Code: Select all
foreach ( $cl_box_groups as $groups ) {
//BOF admin group
if(display_block_to_admin_group($groups['heading'])) {
//EOF admin group
$mr .= '<li class="nav-item dropdown">';
$mr .= '<a class="nav-link dropdown-toggle" href="#" id="navbar_' . $n . '" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' . $groups['heading'] . '</a>';
$al = ( $n > 6 ) ? ' dropdown-menu-right' : '';
$mr .= '<div class="dropdown-menu' . $al . '" aria-labelledby="navbar_' . $n . '">';
foreach ( $groups['apps'] as $app ) {
//BOF admin group
if(check_admin_group($app['code']))
//EOF admin group
$mr .= '<a class="dropdown-item" href="' . $app['link'] . '">' . $app['title'] . '</a>';
}
$mr .= '</div>';
$mr .= '</li>' . PHP_EOL;
$n ++;
}
//BOF admin group
}
//EOF admin group
Code: Select all
if(!display_block_to_admin_group($groups['heading'])) {
//LEFT MENU BELOW ---------------------------------------------------------------------
...
$n ++;
}
}