blob: 549feabdebe4b569683765eac0101f666cad827f (
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
69
70
71
72
73
74
75
76
77
78
|
{strip}
{if $attachment.audio_url}
<div class="row" style="text-align:center;">
{include file="bitpackage:liberty/mime_audio_player_inc.tpl"}
</div>
{/if}
{if $attachment.meta.title}
<div class="row">
{formlabel label="Title" for=""}
{forminput}
{$attachment.meta.title}
{/forminput}
</div>
{/if}
{if $attachment.meta.album}
<div class="row">
{formlabel label="Album" for=""}
{forminput}
{$attachment.meta.album}
{/forminput}
</div>
{/if}
{if $attachment.meta.artist}
<div class="row">
{formlabel label="Artist" for=""}
{forminput}
{$attachment.meta.artist}
{/forminput}
</div>
{/if}
{if $attachment.meta.year}
<div class="row">
{formlabel label="Year" for=""}
{forminput}
{$attachment.meta.year}
{/forminput}
</div>
{/if}
{if $attachment.meta.playtime_string}
<div class="row">
{formlabel label="Duration" for=""}
{forminput}
{$attachment.meta.playtime_string}
{/forminput}
</div>
{/if}
{if $attachment.download_url}
<div class="row">
{formlabel label="Filename" for=""}
{forminput}
<a href="{$attachment.download_url}">{$attachment.filename|escape}</a>
<small>({$attachment.mime_type})</small>
{* TODO: get this to work if $gContent->hasEditPermission() && $attachment.flv_url}
{form ipackage=treasury ifile="plugins/form.flv.php"}
<input type="hidden" name="content_id" value="{$gContent->mContentId}" />
<input type="submit" name="remove_original" value="{tr}Remove Original{/tr}" />
{formhelp note="This will remove the original file from the server. The falsh video will remain and you can still view the video but you cannot download the original anymore."}
{/form}
{/if*}
{/forminput}
</div>
<div class="row">
{formlabel label="Filesize" for=""}
{forminput}
{$attachment.file_size|display_bytes}
{/forminput}
</div>
{/if}
{attachhelp legend=1 hash=$attachment}
{/strip}
|