aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-12-18 15:54:55 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-12-18 15:54:55 +0000
commitdea06a3f42f7ef1c165b6e192118b79e21f18467 (patch)
tree70c04ad76800d3a2a04eb5ca4892e86eed658f61
parente5521eec401515790b029859f9ed37b14f7bfba1 (diff)
fixes #3552
Closes #3552 Merge request studip/studip!2440
-rw-r--r--templates/header.php3
-rw-r--r--templates/shared/contentgroup-row.php10
2 files changed, 9 insertions, 4 deletions
diff --git a/templates/header.php b/templates/header.php
index 4b1d8dd..73e3713 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -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);
diff --git a/templates/shared/contentgroup-row.php b/templates/shared/contentgroup-row.php
index eecb35d..a1052ab 100644
--- a/templates/shared/contentgroup-row.php
+++ b/templates/shared/contentgroup-row.php
@@ -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>