blob: a4632ca43a482e0bbaa3bcb9d27f883b87bb4a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?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()): ?>
<?= $icon->asImg(24, ['class' => 'text-bottom contentbar-icon']) ?>
<? else: ?>
<a href="<?= $toc->getUrl() ?>" title="<?= htmlReady($toc->getTitle()) ?>" class="contentbar-icon">
<?= $icon->asImg(24, ['class' => 'text-bottom']) ?>
</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">
<label for="cb-toc" class="contentbar-button contentbar-button-menu check-box enter-accessible" title="<?= _('Inhaltsverzeichnis') ?>" tabindex="0">
</label>
<?= $ttpl->render() ?>
</div>
<? endif ?>
<? if ($actionMenu) : ?>
<div class="contentbar-button-wrapper contentbar-action-menu-wrapper">
<?= $actionMenu->render() ?>
</div>
<? endif ?>
</div>
</header>
</section>
|