mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #1175 redesign plugin manager
* design based on Samuel's mockup + Hannah's adaptations * on each plugin actions shown as buttons in a single column (better compatibility with verbose languages such as German) * description always shown (no more need of the "show details" action) * filter based on plugin title/description (javascript, no page reload) * hide inactive plugins if they are 8 or more * plugins no longer shown in the admin left menu, they instead get a "settings" action if relevant. Compatible with the old trigger get_admin_plugin_menu_links but new method is to simply add a "Has Setting : true" in the main.inc.php header
This commit is contained in:
13
admin.php
13
admin.php
@@ -261,19 +261,6 @@ if ($nb_orphans > 0)
|
||||
);
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Plugin menu |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$plugin_menu_links = trigger_change('get_admin_plugin_menu_links', array() );
|
||||
|
||||
function UC_name_compare($a, $b)
|
||||
{
|
||||
return strcmp(strtolower($a['NAME']), strtolower($b['NAME']));
|
||||
}
|
||||
usort($plugin_menu_links, 'UC_name_compare');
|
||||
$template->assign('plugin_menu_items', $plugin_menu_links);
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Refresh permissions |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user