[14687] | 1 | {php} |
---|
| 2 | global $stripped; |
---|
| 3 | $this->assign( 'stripped', $stripped ); |
---|
| 4 | {/php} |
---|
[21216] | 5 | {footer_script} |
---|
| 6 | var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; |
---|
| 7 | {/footer_script} |
---|
[14481] | 8 | {if !empty($thumbnails)}{strip} |
---|
[11059] | 9 | <ul class="thumbList"> |
---|
[14481] | 10 | {foreach from=$thumbnails item=thumbnail} |
---|
[14687] | 11 | {assign var=derivative value=$pwg->derivative($stripped.thumbSize, $thumbnail.src_image)} |
---|
[21216] | 12 | {if !$derivative->is_cached()} |
---|
| 13 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
| 14 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
| 15 | {/if} |
---|
| 16 | {php} |
---|
[14481] | 17 | global $pwg_loaded_plugins, $conf, $stripped; |
---|
| 18 | $this->assign( 'stripped', $stripped ); |
---|
| 19 | {/php} |
---|
[11059] | 20 | <li> |
---|
| 21 | <span class="wrap1"> |
---|
| 22 | <span class="wrap2 {if !($stripped.showThumbLegend)}wrap2full{/if}"> |
---|
[12893] | 23 | <a href="{$thumbnail.URL}"><div class="thumbframe"><div class="thumbpos"> |
---|
[21216] | 24 | <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|@replace:'"':' '}{else}{$thumbnail.TN_TITLE}{/if}"> |
---|
[14687] | 25 | {if (isset($stripped.imagePreload) & isset($stripped.imagePreloadThumbs))} |
---|
| 26 | {assign var=preload value=$pwg->derivative($stripped.imageSize, $thumbnail.src_image)} |
---|
| 27 | <div class="preload" style="display:none;">{$preload->get_url()}</div> |
---|
| 28 | {/if} |
---|
[12893] | 29 | </div></div></a> |
---|
[7989] | 30 | </span> |
---|
[11059] | 31 | <span class="thumbLegend {if !($stripped.showThumbLegend)}noLegend{/if}"> |
---|
[12893] | 32 | <span class="thumbCaption">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</span> |
---|
[11059] | 33 | {if !empty($thumbnail.icon_ts)} |
---|
| 34 | <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)"> |
---|
| 35 | {/if} |
---|
| 36 | <div class="thumbStats"> |
---|
| 37 | {if isset($thumbnail.NB_COMMENTS)} |
---|
| 38 | <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> |
---|
| 39 | {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} |
---|
| 40 | </span> |
---|
| 41 | {/if} |
---|
| 42 | {if isset($thumbnail.NB_HITS)} |
---|
| 43 | <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> |
---|
| 44 | {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} |
---|
| 45 | </span> |
---|
| 46 | {/if} |
---|
| 47 | </div> |
---|
| 48 | </span> |
---|
| 49 | </span> |
---|
| 50 | </li> |
---|
[14481] | 51 | {/foreach} |
---|
[7989] | 52 | </ul> |
---|
[14481] | 53 | {/strip}{/if} |
---|