blob: 79cbd6038d57038470bdcfa9c92dc1406b3cb06b (
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
|
<?php
/**
* @var StudipController $controller
* @var ?LtiResourceLink $resource_link
* @var array $launch_data
* @var string $signature
* @var bool $lti13a_mode
* @var \OAT\Library\Lti1p3Core\Message\LtiMessage $message
*/
?>
<? if ($resource_link) : ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<? if (!$lti13a_mode) : ?>
<script type="text/javascript">
window.onload=document.ltiLaunchForm.submit();
</script>
<? endif ?>
</head>
<body>
<? if ($lti13a_mode) : ?>
<? if ($message) : ?>
<?= $message->toHtmlRedirectForm(Request::submitted('do_not_send') ? false : true) ?>
<? else: ?>
<?= _('Das LTI-Tool kann nicht aufgerufen werden.') ?>
<? endif ?>
<? else : ?>
<form name="ltiLaunchForm" method="post" action="<?= htmlReady($resource_link->deployment->getLaunchUrl()) ?>">
<? foreach ($launch_data as $key => $value): ?>
<input type="hidden" name="<?= htmlReady($key) ?>" value="<?= htmlReady($value, false) ?>">
<? endforeach ?>
<input type="hidden" name="oauth_signature" value="<?= $signature ?>">
<noscript>
<button><?= _('Anwendung starten') ?></button>
</noscript>
</form>
<? endif ?>
</body>
</html>
<? endif ?>
|