aboutsummaryrefslogtreecommitdiff
path: root/templates/contentbar/contentbar.php
blob: f9b42edc6b2c41e31eae9728d9e9bbf9e9ada06d (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()) : ?>
                <a href="<?= $toc->getUrl() ?>" title="<?= htmlReady($toc->getTitle()) ?>" class="contentbar-icon">
            <? endif ?>
                    <?= $icon->asImg(24, ['class' => 'text-bottom']) ?>
            <? 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">
                    <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>