mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
update admin menu
This commit is contained in:
parent
b1b6458b51
commit
bf81646df1
@ -24,24 +24,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
($navigation = template()->get('cp')->getNavigation()->get('anomaly.module.system')) ? $navigation->setClass('hidden') : false;
|
||||
($navigation = template()->get('cp')->getNavigation()->get('anomaly.module.redirects')) ? $navigation->setClass('hidden') : false;
|
||||
($navigation = template()->get('cp')->getNavigation()->get('anomaly.module.repeaters')) ? $navigation->setClass('hidden') : false;
|
||||
|
||||
// Add new menu items in sidebar on dashboard
|
||||
$newNavigations = [
|
||||
[
|
||||
'slug' => setting_value("streams::standard_theme"),
|
||||
'icon' => 'fa fa-pencil-square-o',
|
||||
'title' => 'visiosoft.theme.defaultadmin::section.theme_settings.name',
|
||||
'attributes' => [
|
||||
'href' => url("admin/settings/themes/" . setting_value("streams::standard_theme"))
|
||||
]
|
||||
]
|
||||
];
|
||||
$cp = $builder->getControlPanel();
|
||||
foreach ($newNavigations as $newNavigation) {
|
||||
if (!template()->get('cp')->getNavigation()->get($newNavigation['slug'])){
|
||||
$cp->addNavigationLink($factory->make($newNavigation));
|
||||
}
|
||||
}
|
||||
}
|
||||
//Auto Language Switcher
|
||||
if (config('advs.lang_switcher_for_browser') and is_null(Request()->session()->get('_locale')) and isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user