add option to show the avatar instead of the logo
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
<?php if ($_['force-light-icon']): ?>
|
||||
sideMenuContainer.attr('data-forcelighticon', '1')
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_['avatar']): ?>
|
||||
sideMenuContainer.attr('data-avatar', '<?php p($avatar) ?>')
|
||||
<?php endif; ?>
|
||||
|
||||
sideMenuContainer.attr('data-targetblankapps', '<?php p(implode(',', $_['target-blank-apps'])) ?>')
|
||||
|
||||
|
||||
@@ -342,6 +342,18 @@ $choicesSizes = [
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<p><em><?php p($l->t('Use the avatar instead of the logo')); ?></em></p>
|
||||
|
||||
<div>
|
||||
<select id="side-menu-use-avatar" name="use-avatar" class="side-menu-setting">
|
||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||
<option value="<?php echo $value ?>" <?php if ($value === $_['use-avatar']): ?>selected<?php endif; ?>>
|
||||
<?php echo $l->t($label); ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>
|
||||
<?php p($l->t('Icons and texts')); ?>
|
||||
|
||||
Reference in New Issue
Block a user