aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/management/index.php
blob: c7ab4bf6ce758fb2834d0c13e8a243d7a4c782b6 (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
<ul class="boxed-grid">
<? foreach (Navigation::getItem('/course/admin') as $name => $nav): ?>
    <? if ($nav->isVisible() && $name != 'main'): ?>
        <li>
            <a href="<?= URLHelper::getLink($nav->getURL()) ?>">
                <h3>
                    <? if ($nav->getImage()): ?>
                        <?= $nav->getImage()->asImg(false, $nav->getLinkAttributes()) ?>
                    <? endif; ?>
                    <?= htmlReady($nav->getTitle()) ?>
                </h3>
                <p>
                    <?= htmlReady($nav->getDescription()) ?>
                </p>
            </a>
        </li>
    <? endif; ?>
<? endforeach; ?>
<!--
    this is pretty ugly but we need to spawn some empty elements so that the
    last row of the flex grid won't be messed up if the boxes don't line up
-->
    <li></li><li></li><li></li>
    <li></li><li></li><li></li>
</ul>