blob: f0f5a05d2b72fab3df53778e5f6f404442284fc2 (
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
|
{strip}
{if $gContent->mStorage}
{if !$gBitSystem->isFeatureActive( 'feature_helppopup' )}
{popup_init src="`$smarty.const.THEMES_PKG_URL`js/overlib.js"}
{/if}
<div class="storage">
{foreach from=$gContent->mStorage item=attachment }
{capture name="popup"}
{include file="bitpackage:kernel/popup_box.tpl" content="`$attachment.filename`<br />{tr}Size{/tr}: `$attachment.size` bytes" noclose=true}
{/capture}
{$popup}
<div class="item">
{if $attachment.thumbnail_url.small}
{if $attachment.source_url}<a href="{$attachment.source_url}">{/if}
<img class="thumb" src="{$attachment.thumbnail_url.avatar}" alt="{$attachment.filename}" title="{$attachment.filename}" {popup fullhtml=1 center=1 text=$smarty.capture.popup|escape:"javascript"|escape:"html"}/>
{if $attachment.source_url}</a>{/if}
{else}
{tr}No thumbnail for{/tr} {$attachment.source_url}
{/if}
</div>
{/foreach}
</div>
{/if}
{/strip}
|