aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar/sidebar.php
blob: 3c28062e8a51f101be5a646c1996a7a11ce42668 (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
<div id="layout-sidebar">
    <section class="sidebar" role="complementary" aria-label="<?= _('Seitenleiste') ?>">
        <div class="sidebar-image <? if ($avatar) echo 'sidebar-image-with-context'; ?>">
        <? if ($avatar) : ?>
            <div class="sidebar-context">
            <? if ($avatar->is_customized()) : ?>
                <a href="<?= htmlReady($avatar->getURL(file_exists($avatar->getFilename(Avatar::ORIGINAL)) ? Avatar::ORIGINAL : Avatar::NORMAL)) ?>"
                   data-lightbox="sidebar-avatar"
                   data-title="<?= htmlReady(PageLayout::getTitle()) ?>">
            <? endif ?>
                    <?= $avatar->getImageTag(Avatar::MEDIUM) ?>
            <? if ($avatar->is_customized()) : ?>
                </a>
            <? endif ?>
            </div>
        <? endif ?>
            <div class="sidebar-title">
                <?= htmlReady($title) ?>
            </div>
        </div>

    <? foreach ($widgets as $index => $widget): ?>
        <?= $widget->render(['base_class' => 'sidebar']) ?>
    <? endforeach; ?>
    </section>
</div>