aboutsummaryrefslogtreecommitdiff
path: root/templates/contentbar/contentbar.php
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2023-12-13 13:45:02 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2023-12-13 13:45:02 +0000
commitbba69ab3e72036338923c4a1770a021a801e94af (patch)
tree1f4ea02296a017e3b5e7ee56b06969bd4cdac52a /templates/contentbar/contentbar.php
parentc10070324824232646b28a28a7e4efb33c2b8bda (diff)
Resolve "Gesetzte Information via ContentBar::setInfo() gehen verloren"
Closes #3565 Merge request studip/studip!2448
Diffstat (limited to 'templates/contentbar/contentbar.php')
-rw-r--r--templates/contentbar/contentbar.php19
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">