forked from deblan/side_menu
remove personal setting for the big menu
This commit is contained in:
parent
8e0be738a6
commit
8c3dd2a4f6
|
@ -61,12 +61,6 @@ class PersonalSettingController extends Controller
|
|||
if (!in_array($value, ['0', '1'])) {
|
||||
$value = '1';
|
||||
}
|
||||
} elseif ($name === 'big-menu') {
|
||||
$doSave = true;
|
||||
|
||||
if (!in_array($value, ['0', '1'])) {
|
||||
$value = '0';
|
||||
}
|
||||
}
|
||||
|
||||
if ($doSave) {
|
||||
|
|
|
@ -64,7 +64,6 @@ class Personal implements ISettings
|
|||
|
||||
$parameters = [
|
||||
'enabled' => $this->config->getUserValue($user->getUid(), 'side_menu', 'enabled', '1'),
|
||||
'big-menu' => $this->config->getUserValue($user->getUid(), 'side_menu', 'big-menu', '0'),
|
||||
];
|
||||
|
||||
return new TemplateResponse('side_menu', 'settings/personal-form', $parameters, '');
|
||||
|
|
|
@ -49,24 +49,6 @@ $choicesYesNo = [
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="side-menu-big-menu" class="settings-hint">
|
||||
<?php p($l->t('Display the big menu')); ?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<select id="side-menu-big-menu" name="big-menu" class="side-menu-setting" data-personal>
|
||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||
<option value="<?php echo $value ?>" <?php if ($value === $_['big-menu']): ?>selected<?php endif; ?>>
|
||||
<?php echo $l->t($label); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<p>The big menu is not compatible with AppOrder.</p>
|
||||
|
||||
<p>Use the shortcut <span class="keyboard-key">Ctrl</span>+<span class="keyboard-key">o</span>
|
||||
to open and to hide the side menu. Use <span class="keyboard-key">tab</span> to navigate.</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue