aboutsummaryrefslogtreecommitdiff
path: root/templates/contentbar/contentbar.php
blob: a6e51a37b9d6d729a7a88ca63f8a5a9c91bb1f3f (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
<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 ($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>