Skip to content

Commit 42e8e69

Browse files
cyrilphoenix71Sylvaner
authored andcommitted
add "all plugins" list
1 parent 451bcd9 commit 42e8e69

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/Helpers/PrepareView.php

+2
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ public function initPluginsData(&$pageData, &$eventsJsPlugin)
539539
$pageData['PANEL_MENU'] = [];
540540
$pageData['MENU_PLUGIN'] = [];
541541
$pageData['MENU_PLUGIN_CATEGORY'] = [];
542+
$pageData['MENU_PLUGIN_ALL'] = [];
542543

543544
foreach ($categories as $categoryCode => $pluginsList) {
544545
$pageData['MENU_PLUGIN'][$categoryCode] = [];
@@ -558,6 +559,7 @@ public function initPluginsData(&$pageData, &$eventsJsPlugin)
558559
/** @var Plugin $plugin */
559560
foreach ($pluginsList as $plugin) {
560561
$pageData['MENU_PLUGIN'][$categoryCode][] = $plugin;
562+
$pageData['MENU_PLUGIN_ALL'][] = $plugin;
561563
if ($plugin->getId() == Utils::init('m')) {
562564
$currentPlugin = $plugin;
563565
$pageData[ControllerData::TITLE] = ucfirst($currentPlugin->getName()) . ' - NextDom';

translations/en_US.yml

+1
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ sidebar:
691691
panel: Panel(s)
692692
plugins: plugins
693693
plugins-markets: Management & Markets
694+
plugins-all: A..Z list
694695
quick-notes: Quick Notes
695696
rights: All rights reserved
696697
show-all: Show all

translations/fr_FR.yml

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ sidebar:
693693
panel: Panel(s)
694694
plugins: Plugins
695695
plugins-markets: Gestion & Markets
696+
plugins-all: Liste A..Z
696697
quick-notes: Quick Notes
697698
rights: All rights reserved
698699
show-all: Afficher tout

views/commons/AdminLTE_sidebar.html.twig

+8
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
<a href="#"><i class="fas fa-puzzle-piece spacing-right"></i><span>{{ 'sidebar.plugins'|trans }}</span><span class="pull-right-container"><i class="fas fa-angle-left pull-right"></i></span></a>
9595
<ul class="treeview-menu">
9696
<li class="treeview divider"><a href="index.php?v=d&p=plugin"><i class="fas fa-tags spacing-right"></i>{{ 'sidebar.plugins-markets'|trans }}</a></li>
97+
<li class="treeview divider"><a href="#" data-toggle="dropdown"><i class="fas fa-sort-alpha-down spacing-right"></i>{{ 'sidebar.plugins-all'|trans }}<span class="pull-right-container"><i class="fas fa-angle-left pull-right"></i></span></a>
98+
<ul class="treeview-menu">
99+
{% if MENU_PLUGIN_ALL is defined %}
100+
{% for plugin in MENU_PLUGIN_ALL|sort((a, b) => a.name|lower <=> b.name|lower) %}
101+
<li class="treeview treeview-plugin-item"><a href="index.php?v=d&m={{ plugin.id }}&p={{ plugin.index }}"><img class="img-responsive spacing-right" src="{{ plugin.pathImgIcon }}"/>{{ plugin.name }}</a></li>
102+
{% endfor %}
103+
{% endif %}
104+
</ul>
97105
{% if MENU_PLUGIN_CATEGORY is defined %}
98106
{% for category, categoryData in MENU_PLUGIN_CATEGORY|sort %}
99107
<li class="treeview">

0 commit comments

Comments
 (0)