diff --git a/css/admin.css b/css/admin.css index 0fce026..8c54856 100644 --- a/css/admin.css +++ b/css/admin.css @@ -90,3 +90,24 @@ min-height: auto; margin-top: -1px; } + + +.side-menu-setting-table { + display: table; + width: 100%; +} + +.side-menu-setting-row { + display: table; +} + +.side-menu-setting-label { + display: table-cell; + width: 400px; + padding-right: 20px; +} + +.side-menu-setting-form { + display: table-cell; + width: 300px; +} diff --git a/lib/Service/CategoryRepository.php b/lib/Service/CategoryRepository.php index e523cd7..3e67e63 100644 --- a/lib/Service/CategoryRepository.php +++ b/lib/Service/CategoryRepository.php @@ -54,7 +54,7 @@ class CategoryRepository public function getOrderedCategories() { $currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2); - $type = $this->config->getAppValueArray('categories-order-type', 'default'); + $type = $this->config->getAppValue('categories-order-type', 'default'); $order = $this->config->getAppValueArray('categories-order', '[]'); $categoriesLabels = $this->config->getAppValueArray('cache-categories', '[]'); @@ -76,7 +76,7 @@ class CategoryRepository asort($categoriesLabels); - if ('custom' === $type || true) { + if ('custom' === $type) { $ordered = []; foreach ($order as $id) { diff --git a/templates/settings/admin-form.php b/templates/settings/admin-form.php index 9524ebf..4ef405e 100644 --- a/templates/settings/admin-form.php +++ b/templates/settings/admin-form.php @@ -160,88 +160,83 @@ $choicesSizes = [ t('Opener')); ?> - 'side-menu-opener', - 'Default (dark)' => 'side-menu-opener-dark', - 'Hamburger' => 'side-menu-opener-hamburger', - 'Hamburger (dark)' => 'side-menu-opener-hamburger-dark', - 'Hamburger 2' => 'side-menu-opener-hamburger-2', - 'Hamburger 2 (dark)' => 'side-menu-opener-hamburger-2-dark', - ]; - ?> +
+ 'side-menu-opener', + 'Default (dark)' => 'side-menu-opener-dark', + 'Hamburger' => 'side-menu-opener-hamburger', + 'Hamburger (dark)' => 'side-menu-opener-hamburger-dark', + 'Hamburger 2' => 'side-menu-opener-hamburger-2', + 'Hamburger 2 (dark)' => 'side-menu-opener-hamburger-2-dark', + ]; + ?> +
+
+ t('Icon')); ?> + t('Live preview')); ?> +
+
+ +
+
-
- -
+
+
+ t('Show only the opener (hidden logo)')); ?> +
+
+ +
+
-
- -
- - 'before', - 'After the logo' => 'after', - ]; - ?> - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- +
+
+ t('Do not display the side menu and the opener if there is no application (eg: public pages).')); ?> +
+
+ +
+
@@ -310,191 +305,193 @@ $choicesSizes = [
-
- -
-

t('This is the automatic behavior when the menu is always displayed.')); ?>

+
+
+
+ t('Open the menu when the mouse is hover the opener (automatically disabled on touch screens)')); ?> -
- -
+
+ t('This is the automatic behavior when the menu is always displayed.')); ?> +
+
+ +
+
-
- -
+
+
+ t('Display the logo')); ?> +
+ + t('This feature is not compatible with the big menu display.'); ?> +
+ t('The logo will be hidden when the menu is always displayed.')); ?> +
+
+
+ +
+
-

t('This feature is not compatible with the big menu display.'); ?>

-

t('The logo will be hidden when the menu is always displayed.')); ?>

+
+
+ t('Use the avatar instead of the logo')); ?> +
+
+ +
+
-
- -
+
+
+ t('The logo is a link to the default app')); ?> +
+
+ +
+
-

t('Use the avatar instead of the logo')); ?>

+
+
+ t('Apps that should not be displayed in the menu')); ?> +
+ t('This feature is only compatible with the big menu display.'); ?> +
+
+ + 🖱️ t('Show and hide the list of applications')); ?> + -
- -
+ +
+
-
- -
+
+
+ t('Show the link to settings')); ?> +
+
+ +
+
-
- -
+
+
+ t('Icons and texts')); ?> +
+
+ -

t('This feature is only compatible with the big menu display.'); ?>

+ +
+
-

- - 🖱️ t('Show and hide the list of applications')); ?> - -

+
+
+ t('Open apps in new tab')); ?> +
+
+ + 🖱️ t('Show and hide the list of applications')); ?> + - +
+
-
- -
- -
- -
- -
- -
- -
- -
- - - -
- -
- -
- -

- - 🖱️ t('Show and hide the list of applications')); ?> - -

- - - -
- -
- -
- -
- +
+
+ t('Loader enabled')); ?> +
+
+ +
+
@@ -502,36 +499,38 @@ $choicesSizes = [

t('Top menu')); ?>

-
- -
-

- - 🖱️ t('Show and hide the list of applications')); ?> - -

+
+
+
+ t('Apps that not must be moved in the side menu')); ?> +
+
+ + 🖱️ t('Show and hide the list of applications')); ?> + - +
+
@@ -540,54 +539,56 @@ $choicesSizes = [

t('Categories')); ?>

-
- - 'default', - 'Customed' => 'custom', - ]; - ?> +
+
+ 'default', + 'Customed' => 'custom', + ]; + ?> +
+ t('Order by')); ?> +
+
+ +
+
- +
+
+ t('Customize sorting')); ?> +
+
+ + 🖱️ t('Show and hide the list of categories')); ?> + + + + + ' name="categories-order" class="side-menu-setting"> +
+
- -
- -
- -

- - 🖱️ t('Show and hide the list of categories')); ?> - -

- - - - ' name="categories-order" class="side-menu-setting">
@@ -601,40 +602,41 @@ $choicesSizes = [
-
- +
+
+
+ t('The menu is enabled by default for users')); ?> +
+ t('Except when the configuration is forced.')); ?> +
+
+ +
+
-

t('Except when the configuration is forced.')); ?>

- - -
- -
- -
- -
- +
+
+ t('Force this configuration to users')); ?> +
+
+ +
+
-