mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Fix sidebar menu for plugins
This commit is contained in:
parent
5be159eede
commit
a864adbfb8
@ -185,7 +185,7 @@ if (! function_exists('bs_menu')) {
|
|||||||
$availablePluginConfigs[] = [
|
$availablePluginConfigs[] = [
|
||||||
'title' => trans($plugin->title),
|
'title' => trans($plugin->title),
|
||||||
'link' => 'admin/plugins/config/'.$plugin->name,
|
'link' => 'admin/plugins/config/'.$plugin->name,
|
||||||
'icon' => 'fa-circle-o'
|
'icon' => 'fa-circle'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -233,8 +233,9 @@ if (! function_exists('bs_menu')) {
|
|||||||
} else {
|
} else {
|
||||||
if ($value) {
|
if ($value) {
|
||||||
$content .= sprintf(
|
$content .= sprintf(
|
||||||
'<a href="%s"><i class="fas %s"></i> <span>%s</span></a>',
|
'<a href="%s"><i class="%s %s"></i> <span>%s</span></a>',
|
||||||
url((string) $value['link']),
|
url((string) $value['link']),
|
||||||
|
$value['icon'] == 'fa-circle' ? 'far' : 'fas',
|
||||||
(string) $value['icon'],
|
(string) $value['icon'],
|
||||||
trans((string) $value['title'])
|
trans((string) $value['title'])
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user