aboutsummaryrefslogtreecommitdiff
path: root/app/views/lti/_link_user_info.php
blob: 568aaf89bdfd76a7f2d8fc2dc54b353e0b3d661c (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
39
40
41
42
43
<?
/**
 * @var \LtiResourceLink $link
 */
?>
<? if (!empty($link)) : ?>
    <article class="studip">
        <header><h1><?= htmlReady($link->title) ?></h1></header>
        <section>
            <? if ($link->deployment->tool->range_id === 'global') : ?>
                <p>
                    <?= sprintf(
                        'Dies ist eine Einbindung des LTI-Tools „%s“.',
                        htmlReady($link->deployment->tool->name)
                    ) ?>
                </p>
            <? endif ?>
            <p><?= formatReady($link->description ?? '') ?></p>
            <?
            $url_parts = parse_url($link->getLaunchURL());
            ?>
            <? if (!empty($url_parts['host'])) : ?>
                <p><?= _('Domain') ?>: <?= htmlReady($url_parts['host']) ?></p>
            <? endif ?>
            <? if ($link->deployment->tool->terms_of_use_url || $link->deployment->tool->privacy_policy_url) : ?>
                <p>
                    <? if ($link->deployment->tool->terms_of_use_url) : ?>
                        <a href="<?= htmlReady($link->deployment->tool->terms_of_use_url) ?>">
                            <?= Icon::create('link-extern')->asImg(['class' => 'text-bottom']) ?>
                            <?= _('Nutzungsbedingungen') ?>
                        </a>
                    <? endif ?>
                    <? if ($link->deployment->tool->privacy_policy_url) : ?>
                        <a href="<?= htmlReady($link->deployment->tool->privacy_policy_url) ?>">
                            <?= Icon::create('link-extern')->asImg(['class' => 'text-bottom']) ?>
                            <?= _('Datenschutzerklärung') ?>
                        </a>
                    <? endif ?>
                </p>
            <? endif ?>
        </section>
    </article>
<? endif ?>