aboutsummaryrefslogtreecommitdiff
path: root/templates/elearning/elearning_interface_show.php
blob: 7d42b2985b7bb6e61a11eda22e5d5057b383d308 (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
<?php use Studip\Button, Studip\LinkButton; ?>
<? if ($is_inst) : ?>
    <h2><?= _('Lernmodule der Einrichtung') ?></h2>
<? else : ?> 
    <h2><?= _('Lernmodule der Veranstaltung') ?></h2>
<? endif ?>
<? if ($elearning_active) : ?>
    <? if ($new_account) : ?>
        <?=ELearningUtils::getNewAccountForm($new_account)?>
    <? else : ?>
        <? if (!count($content_modules) AND count($course_output['courses'])) : ?>
            <br>
            <div class="messagebox messagebox_info" style="background-image: none; padding-left: 15px">
                <?=$course_output['text']?><br>
                <? foreach ($course_output['courses'] as $course) : ?>        
                    <a href="<?=$course['url']?>"><?=sprintf(_('Kurs in %s'), $course['cms_name'])?></a>
                    <br>
                <? endforeach ?>
            </div>
        <? elseif (count($content_modules)) : ?>
            <?foreach ($content_modules as $module) : ?>        
                <? if ($module['show_header']) : ?>
                    <?=ELearningUtils::getModuleHeader(_("Angebundene Lernmodule"))?>
                <? endif ?>
                <?=$module['module']?>
                <br>
            <? endforeach ?>
            <br>
            <? if (count($course_output['courses'])) : ?>
                <?=$course_output['text']?><br>
                <? foreach ($course_output['courses'] as $course) : ?>        
                    <a href="<?=$course['url']?>"><?=sprintf(_('Kurs in %s'), $course['cms_name'])?></a>
                    <br>
                <? endforeach ?>
            <? endif ?>
        <? endif ?>
    <? endif ?>
<? endif ?>