Skip to content
Snippets Groups Projects
Commit dea06a3f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3552

Closes #3552

Merge request studip/studip!2440
parent e5521eec
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,8 @@ if ($navigation) {
$action_menu->addLink(
URLHelper::getURL($subnav->getURL(), [], true),
$subnav->getTitle(),
$subnav->getImage()
$subnav->getImage(),
$subnav->getLinkAttributes()
);
}
SkipLinks::addIndex(_('Profilmenü'), 'header_avatar_image_link', 1, false);
......
......@@ -6,7 +6,7 @@
<?= $image ?>
</a>
<div class="action-menu-content">
<? if (!empty($label)): ?>
<? if (!empty($label)): ?>
<div class="action-menu-title" aria-hidden="true">
<?= htmlReady(_($label)) ?>
</div>
......@@ -19,7 +19,7 @@
<? if ($has_link_icons): ?>
<? if ($action['icon']): ?>
<?= $action['icon'] ?>
<?= $action['icon']->asImg(false, ['class' => 'action-menu-item-icon']) ?>
<? else: ?>
<span class="action-menu-no-icon"></span>
<? endif; ?>
......@@ -29,7 +29,11 @@
<? elseif ($action['type'] === 'button'): ?>
<label>
<? if ($action['icon']): ?>
<?= $action['icon']->asInput(['name' => $action['name']]) ?>
<?= $action['icon']->asInput(false, [
'class' => 'action-menu-item-icon',
'name' => $action['name'],
'title' => $action['label'],
]) ?>
<? else: ?>
<span class="action-menu-no-icon"></span>
<button type="submit" name="<?= htmlReady($action['name']) ?>" style="display: none;"></button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment