[30225] | 1 | {if !empty($thumbnails)} |
---|
| 2 | |
---|
| 3 | {foreach from=$thumbnails item=thumbnail} |
---|
| 4 | {assign var=derivative value=$pwg->derivative($GDThumb_derivative_params, $thumbnail.src_image)} |
---|
| 5 | <li class="gdthumb"> |
---|
| 6 | {if $GDThumb.thumb_mode_photo !== "hide" } |
---|
| 7 | <span class="thumbLegend {$GDThumb.thumb_mode_photo}"> |
---|
| 8 | <span class="thumbName thumbTitle"> |
---|
[30485] | 9 | {if $GDThumb.normalize_title == "desc" && $thumbnail.DESCRIPTION} |
---|
| 10 | {$thumbnail.DESCRIPTION} |
---|
| 11 | {elseif $GDThumb.normalize_title == "off"} |
---|
| 12 | {$thumbnail.NAME} |
---|
| 13 | {else} |
---|
[30225] | 14 | {assign var="file_title" value=$thumbnail.NAME|cat:"."} |
---|
| 15 | {assign var="file_name" value=$thumbnail.file|replace:"_":" "} |
---|
| 16 | {if $file_name|strstr:$file_title} |
---|
| 17 | Photo {$thumbnail.id} |
---|
| 18 | {else} |
---|
| 19 | {$thumbnail.NAME} |
---|
| 20 | {/if} |
---|
| 21 | {/if} |
---|
| 22 | {if !empty($thumbnail.icon_ts)} |
---|
| 23 | <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)"> |
---|
| 24 | {/if} |
---|
| 25 | </span> |
---|
| 26 | {if $GDThumb.thumb_mode_album == "overlay-ex"} |
---|
| 27 | <span class="thumbInfo"> |
---|
| 28 | <span class="hit-num">{$thumbnail.hit}</span> |
---|
[30890] | 29 | <span class="glyphicon {if $derivative->is_cached()}{if $derivative->get_url()|strstr:"/piwigo-videojs/"}glyphicon-film{else}glyphicon-picture{/if}{else}glyphicon-picture{/if}"></span> |
---|
[30225] | 30 | {if $thumbnail.rating_score > 0} |
---|
| 31 | <span class="rank-num glyphicon glyphicon-star">{$thumbnail.rating_score|string_format:"%d"}</span> |
---|
| 32 | {/if} |
---|
| 33 | </span> |
---|
| 34 | {elseif $GDThumb.thumb_metamode !== "hide"} |
---|
| 35 | {if isset($thumbnail.NB_COMMENTS)} |
---|
| 36 | <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> |
---|
| 37 | {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} |
---|
| 38 | </span> |
---|
| 39 | {/if} |
---|
| 40 | {if isset($thumbnail.NB_COMMENTS) && isset($thumbnail.NB_HITS)} - {/if} |
---|
| 41 | {if isset($thumbnail.NB_HITS)} |
---|
| 42 | <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> |
---|
| 43 | {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} |
---|
| 44 | </span> |
---|
| 45 | {/if} |
---|
| 46 | {/if} |
---|
| 47 | </span> |
---|
| 48 | {/if} |
---|
| 49 | <a href="{$thumbnail.URL}"> |
---|
| 50 | <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="{$thumbnail.TN_TITLE}" {$derivative->get_size_htm()}> |
---|
| 51 | </a> |
---|
| 52 | </li> |
---|
| 53 | {/foreach} |
---|
| 54 | |
---|
| 55 | {combine_css path=$GDThumb.GDTHUMB_ROOT|cat:"/css/gdthumb.css" version=1} |
---|
| 56 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
| 57 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
| 58 | {combine_script id='jquery.ba-resize' path=$GDThumb.GDTHUMB_ROOT|cat:"/js/jquery.ba-resize.min.js" load="footer"} |
---|
| 59 | {combine_script id='gdthumb' require='jquery,jquery.ba-resize' path=$GDThumb.GDTHUMB_ROOT|cat:"/js/gdthumb.js" load="footer"} |
---|
| 60 | |
---|
| 61 | {footer_script require="gdthumb"} |
---|
| 62 | |
---|
| 63 | {if isset($has_cats)} |
---|
| 64 | {else} |
---|
| 65 | $(function() { |
---|
| 66 | {if isset($GDThumb_big)} |
---|
| 67 | {assign var=gt_size value=$GDThumb_big->get_size()} |
---|
| 68 | var big_thumb = {ldelim}id: {$GDThumb_big->src_image->id}, src: '{$GDThumb_big->get_url()}', width: {$gt_size[0]}, height: {$gt_size[1]}{rdelim}; |
---|
| 69 | {else} |
---|
| 70 | var big_thumb = null; |
---|
| 71 | {/if} |
---|
| 72 | GDThumb.setup('{$GDThumb.method}', {$GDThumb.height}, {$GDThumb.margin}, false, big_thumb, {$GDThumb.big_thumb_noinpw}); |
---|
| 73 | }); |
---|
| 74 | {/if} |
---|
| 75 | {/footer_script} |
---|
| 76 | |
---|
| 77 | {html_head} |
---|
| 78 | <style type="text/css">#thumbnails .gdthumb {ldelim} margin:{$GDThumb.margin / 2}px {$GDThumb.margin / 2}px {$GDThumb.margin - $GDThumb.margin / 2}px {$GDThumb.margin - $GDThumb.margin / 2}px !important; }</style> |
---|
| 79 | <!--[if IE 8]> |
---|
| 80 | <style type="text/css">#thumbnails .gdthumb a {ldelim} right: 0px; }</style> |
---|
| 81 | <![endif]--> |
---|
| 82 | {/html_head} |
---|
| 83 | {/if} |
---|