refactoring choices
This commit is contained in:
parent
93fef37033
commit
ee8ca7134c
|
@ -878,9 +878,15 @@ $labelAlwaysDisplayed = 'Always displayed';
|
|||
<div class="side-menu-setting-label">
|
||||
<?php p($l->t('Hide labels on mouse over')); ?>
|
||||
</div>
|
||||
<?php
|
||||
$choices = array_merge(
|
||||
$choicesYesNo,
|
||||
['Except the hovered app' => '2']
|
||||
);
|
||||
?>
|
||||
<div class="side-menu-setting-form">
|
||||
<select id="side-menu-top-menu-mouse-over-hidden-label" name="top-menu-mouse-over-hidden-label" class="side-menu-setting">
|
||||
<?php foreach (array_merge($choicesYesNo, ['Except the hovered app' => '2']) as $label => $value): ?>
|
||||
<?php foreach ($choices as $label => $value): ?>
|
||||
<option value="<?php echo $value ?>" <?php if ($value === $_['top-menu-mouse-over-hidden-label']): ?>selected<?php endif; ?>>
|
||||
<?php echo $l->t($label); ?>
|
||||
</option>
|
||||
|
|
Loading…
Reference in a new issue