blob: 59904572d3199f075493bad7a805ae9104548c58 (
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
|
{strip}
{if $attachment.media_url}
<div class="row" style="text-align:center;">
{include file="bitpackage:liberty/mime_flv_player_inc.tpl"}
</div>
<div class="pagination">
{tr}View other sizes{/tr}<br />
•
<a href="{$attachment.display_url}&size=small">{tr}Small{/tr}</a> •
<a href="{$attachment.display_url}&size=medium">{tr}Medium{/tr}</a> •
<a href="{$attachment.display_url}&size=large">{tr}Large{/tr}</a> •
<a href="{$attachment.display_url}&size=huge">{tr}Huge{/tr}</a> •
<a href="{$attachment.display_url}&size=original">{tr}Original{/tr}</a> •
</div>
{elseif $attachment.status.processing}
<div class="row" style="text-align:center;">
<a href="{$attachment.download_url}">
{assign var=size value=$gBitSystem->getConfig('treasury_item_view_thumb')}
<img src="{$attachment.thumbnail_url.$size}{$refresh}" alt="{$gContent->getTitle()}" title="{$gContent->getTitle()}" />
<br />{$gContent->getTitle()|escape}
</a>
</div>
{formfeedback warning="{tr}The video is being processed. please try to reload in a couple of minutes.{/tr}"}
{elseif $attachment.status.error}
<div class="row" style="text-align:center;">
<a href="{$attachment.download_url}">
{assign var=size value=$gBitSystem->getConfig('treasury_item_view_thumb')}
<img src="{$attachment.thumbnail_url.$size}{$refresh}" alt="{$gContent->getTitle()}" title="{$gContent->getTitle()}" />
<br />{$gContent->getTitle()|escape}
</a>
</div>
{formfeedback error="{tr}The Video could not be processed. You can upload a different version of the film or simply leave as is.{/tr}"}
{/if}
{if $attachment.meta.duration}
<div class="row">
{formlabel label="Duration" for=""}
{forminput}
{$attachment.meta.duration|display_duration}
{/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>
{/forminput}
</div>
<div class="row">
{formlabel label="Filesize" for=""}
{forminput}
{$attachment.file_size|display_bytes}
{/forminput}
</div>
{/if}
{attachhelp legend=1 hash=$attachment}
{/strip}
|