blob: ddbd7e41d02a5e3fd0cca7ae1da524499b6d0bd2 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?php
/**
* @var Flexi\Template $this
* @var FileController $controller
* @var Flexi\Template|null $file_info_template
* @var array $fullpath
* @var FileType $file
* @var string|null $previous_file_ref_id
* @var string|null $next_file_ref_id
* @var string|null $from_plugin
* @var bool $include_navigation
*/
?>
<div id="file_details_window">
<?= $this->render_partial('file/_file_aside.php') ?>
<div id="preview_container">
<? if ($file_info_template instanceof Flexi\Template) : ?>
<?= $file_info_template->render() ?>
<? endif ?>
<h3><?=_('Pfad')?></h3>
<article>
<? foreach (array_values($fullpath) as $i => $one_folder) : ?>
<? if ($i): ?>/<? endif; ?>
<a href="<?= FileManager::getFolderLink($one_folder) ?>">
<?= htmlReady($one_folder->name) ?>
</a>
<? endforeach; ?>
</article>
<? if ($file->getDescription()) : ?>
<h3><?= _('Beschreibung') ?></h3>
<article>
<?= htmlReady($file->getDescription() ?: _('Keine Beschreibung vorhanden.'), true, true) ?>
</article>
<? endif ?>
<?= Feedback::getHTML($file->getId(), 'FileRef') ?>
</div>
</div>
<footer data-dialog-button>
<?
$file_action_buttons = $file->getInfoDialogButtons(compact('from_plugin'));
?>
<? if ($previous_file_ref_id): ?>
<?= Studip\LinkButton::create(
_('<< Vorherige Datei'),
$controller->url_for(
"file/details/{$previous_file_ref_id}",
['from_plugin' => $from_plugin, 'file_navigation' => $include_navigation]
),
['data-dialog' => '']
) ?>
<? endif ?>
<? if ($next_file_ref_id): ?>
<?= Studip\LinkButton::create(
_('Nächste Datei >>'),
$controller->url_for(
"file/details/{$next_file_ref_id}",
['from_plugin' => $from_plugin, 'file_navigation' => $include_navigation]
),
['data-dialog' => '']
) ?>
<? endif ?>
<? foreach ($file_action_buttons as $button) : ?>
<?= $button ?>
<? endforeach ?>
</footer>
|