blob: 188246c7b010c347d62c8edb9f17e64c1f1b030a (
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
|
<form class="default">
<? $base = URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']) ?>
<label>
<?= _('Platzhalter zum Teilen in Stud.IP (Forum, Blubber, Wiki, Ankündigung)') ?>
<input type="text" readonly value="[oermaterial]<?= htmlReady($material->getId()) ?>">
</label>
<? if (Config::get()->OER_PUBLIC_STATUS === "nobody") : ?>
<label>
<?= _('Teilen als Link') ?>
<input type="text" readonly value="<?= $controller->link_for("oer/market/details/".$material->getId()) ?>">
</label>
<? endif ?>
<? if ($material['player_url'] || $material->isPDF() || $material->isVideo() || $material->isAudio()) : ?>
<?
if ($material['player_url']) {
$url = $material['player_url'];
} else {
$url = $material['host_id'] ? $material->host->url."download/".$material['foreign_material_id'] : $controller->link_for("oer/market/download/".$material->getId());
}
?>
<label>
<?= _('Teilen als HTML-Schnipsel') ?>
<textarea readonly><?= htmlReady('<iframe src="'.htmlReady($url).'"></iframe>') ?></textarea>
</label>
<? endif ?>
<? URLHelper::setBaseURL($base) ?>
</form>
|