aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/topics/_material.php
blob: 5e853ceb9b28665edaeed5f3dc3d7c04b54c64f6 (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
<ul class="clean">
    <? $folder = $topic->folders->first() ?>
    <? if ($documents_activated && $folder) : ?>
        <li>
            <? $folder_label = sprintf(_('Zu Dateiordner von Thema %s navigieren'), htmlReady($topic->title)) ?>
            <a
                href="<?= URLHelper::getLink('dispatch.php/course/files/index/' . $folder->id) ?>"
                aria-label="<?= $folder_label ?>"
                title="<?= $folder_label ?>"
            >
                <?= $folder->getTypedFolder()->getIcon('clickable')->asSvg(['class' => 'text-bottom']) ?>
                <span class="<?= $always_show ? '' : 'responsive-hidden' ?>">
                    <?= _('Dateiordner') ?>
                </span>
            </a>
        </li>
    <? endif ?>

    <? if ($forum_activated && $topic->forum_thread_url) : ?>
        <li>
            <? $ftopic_label = sprintf(_('Zu Forumsthema von Thema %s navigieren'), htmlReady($topic->title)) ?>
            <a
                href="<?= URLHelper::getLink($topic->forum_thread_url) ?>"
                aria-label="<?= $ftopic_label ?>"
                title="<?= $ftopic_label ?>"
            >
                <?= Icon::create('forum')->asSvg(['class' => 'text-bottom']) ?>
                <span class="<?= $always_show ? '' : 'responsive-hidden' ?>">
                    <?= _('Thema im Forum') ?>
                </span>
            </a>
        </li>
    <? endif ?>
</ul>