diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-12-13 13:45:02 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2023-12-13 13:45:02 +0000 |
| commit | bba69ab3e72036338923c4a1770a021a801e94af (patch) | |
| tree | 1f4ea02296a017e3b5e7ee56b06969bd4cdac52a /templates | |
| parent | c10070324824232646b28a28a7e4efb33c2b8bda (diff) | |
Resolve "Gesetzte Information via ContentBar::setInfo() gehen verloren"
Closes #3565
Merge request studip/studip!2448
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/contentbar/contentbar.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/templates/contentbar/contentbar.php b/templates/contentbar/contentbar.php index a6e51a3..fef7fd8 100644 --- a/templates/contentbar/contentbar.php +++ b/templates/contentbar/contentbar.php @@ -1,19 +1,32 @@ +<?php +/** + * @var TOCItem $toc + * @var Icon $icon + * @var Flexi_Template $breadcrumbs + * @var string $info + * @var ActionMenu $actionMenu + * @var Flexi_Template $ttpl + */ +?> <section> <header class="contentbar"> <nav class="contentbar-nav"></nav> <div class="contentbar-wrapper-left"> <nav class="contentbar-breadcrumb"> - <? if (!$toc->isActive()) : ?> + <? if (!$toc->isActive()) : ?> <a href="<?= $toc->getUrl() ?>" title="<?= htmlReady($toc->getTitle()) ?>" class="contentbar-icon"> - <? endif ?> + <? endif ?> <?= $icon->asImg(24, ['class' => 'text-bottom']) ?> - <? if (!$toc->isActive()) : ?> + <? if (!$toc->isActive()) : ?> </a> <? endif ?> <?= $breadcrumbs->render() ?> </nav> </div> <div class="contentbar-wrapper-right"> + <? if (trim($info)): ?> + <div class="contentbar-info"><?= $info ?></div> + <? endif; ?> <? if ($toc->hasChildren()) : ?> <div class="contentbar-button-wrapper contentbar-toc-wrapper"> <input type="checkbox" id="cb-toc"> |
