Browse Source

add option: show link to settings

tags/v1.18.0
Simon Vieille 4 days ago
parent
commit
b749a9be2e
Signed by: deblan GPG Key ID: 03383D15A1D31745
4 changed files with 19 additions and 0 deletions
  1. +1
    -0
      lib/Settings/Admin.php
  2. +1
    -0
      src/l10n/fixtures/de.yaml
  3. +1
    -0
      src/l10n/fixtures/fr.yaml
  4. +16
    -0
      templates/settings/admin-form.php

+ 1
- 0
lib/Settings/Admin.php View File

@@ -82,6 +82,7 @@ class Admin implements ISettings
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
'opener-hover' => $this->config->getAppValue('opener-hover', '0'),
'opener-only' => $this->config->getAppValue('opener-only', '0'),
'show-settings' => $this->config->getAppValue('show-settings', '0'),
'hide-when-no-apps' => $this->config->getAppValue('hide-when-no-apps', '0'),
'size-icon' => $this->config->getAppValue('size-icon', 'normal'),
'size-text' => $this->config->getAppValue('size-text', 'normal'),


+ 1
- 0
src/l10n/fixtures/de.yaml View File

@@ -61,3 +61,4 @@
"Force this configuration to users": "Erzwingen Sie diese Konfiguration für Benutzer"
"Export the configuration": "Exportieren Sie die Konfiguration"
"Purge the cache": "Leeren Sie den Cache"
"Show the link to settings": "Zeigen Sie den Link zu den Einstellungen an"

+ 1
- 0
src/l10n/fixtures/fr.yaml View File

@@ -61,3 +61,4 @@
"Force this configuration to users": "Forcer cette configuration aux utilisateurs"
"Export the configuration": "Exporter la configuration"
"Purge the cache": "Purger le cache"
"Show the link to settings": "Afficher le lien vers les paramètres"

+ 16
- 0
templates/settings/admin-form.php View File

@@ -362,6 +362,22 @@ $choicesSizes = [
</div>

<div>
<label for="side-menu-show-settings">
<?php p($l->t('Show the link to settings')); ?>
</label>
</div>

<div>
<select id="side-menu-show-settings" name="show-settings" class="side-menu-setting">
<?php foreach ($choicesYesNo as $label => $value): ?>
<option value="<?php echo $value ?>" <?php if ($value === $_['show-settings']): ?>selected<?php endif; ?>>
<?php echo $l->t($label); ?>
</option>
<?php endforeach; ?>
</select>
</div>

<div>
<label>
<?php p($l->t('Icons and texts')); ?>
</label>


Loading…
Cancel
Save