1 | <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif" alt=""></div> |
---|
2 | <ul class="thumbnailCategories thumbnails {if $GDThumb.no_wordwrap}nowrap{/if}"> |
---|
3 | |
---|
4 | {if !empty($category_thumbnails)} |
---|
5 | {assign var=has_cats value="true" scope=root nocache} |
---|
6 | {foreach from=$category_thumbnails item=cat name=cat_loop} |
---|
7 | {assign var=derivative value=$pwg->derivative($GDThumb_derivative_params, $cat.representative.src_image)} |
---|
8 | |
---|
9 | <li class="gdthumb{if $GDThumb.thumb_animate} animate{/if}"> |
---|
10 | {if $GDThumb.thumb_mode_album !== "hide" } |
---|
11 | <span class="thumbLegend {$GDThumb.thumb_mode_album}"> |
---|
12 | <span class="thumbName"> |
---|
13 | <span class="thumbTitle">{$cat.NAME} |
---|
14 | {if $GDThumb.thumb_mode_album !== "overlay-ex"} |
---|
15 | {if !empty($cat.icon_ts)} |
---|
16 | <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)"> |
---|
17 | {/if} |
---|
18 | {/if} |
---|
19 | </span> |
---|
20 | {if $GDThumb.thumb_mode_album == "overlay-ex"} |
---|
21 | <span class="thumbInfo"> |
---|
22 | <span class="item-num">{$cat.count_images}</span> |
---|
23 | <span class="glyphicon glyphicon-th-large grid-gallery-icon"></span> |
---|
24 | {if !empty($cat.icon_ts)} |
---|
25 | <span class="new-thumb glyphicon glyphicon-asterisk" title="{$cat.icon_ts.TITLE}" alt="(!)"></span> |
---|
26 | {/if} |
---|
27 | </span> |
---|
28 | {elseif $GDThumb.thumb_metamode !== "hide"} |
---|
29 | {if isset($cat.INFO_DATES) } |
---|
30 | <span class="dates">{$cat.INFO_DATES}</span> |
---|
31 | {/if} |
---|
32 | <span class="Nb_images">{if $GDThumb.no_wordwrap}{$cat.CAPTION_NB_IMAGES|regex_replace:"[<br>|</br>]":" "}{else}{$cat.CAPTION_NB_IMAGES}{/if}</span> |
---|
33 | {if $GDThumb.thumb_metamode == "merged_desc"} |
---|
34 | {if not empty($cat.DESCRIPTION)} |
---|
35 | <span class="description">{$cat.DESCRIPTION}</span> |
---|
36 | {/if} |
---|
37 | {/if} |
---|
38 | {/if} |
---|
39 | </span> |
---|
40 | </span> |
---|
41 | {/if} |
---|
42 | <a href="{$cat.URL}"> |
---|
43 | <img class="category thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" |
---|
44 | data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" |
---|
45 | title="{$cat.NAME|@replace:'"':' '|@strip_tags:false}" {$derivative->get_size_htm()}> |
---|
46 | </a> |
---|
47 | </li> |
---|
48 | {/foreach} |
---|
49 | {/if} |
---|
50 | |
---|
51 | </ul> |
---|
52 | |
---|
53 | {strip}{html_style} |
---|
54 | .thumbnailCategories .gdthumb {ldelim} margin: {$GDThumb.margin / 2}px {$GDThumb.margin / 2}px {$GDThumb.margin - $GDThumb.margin / 2}px {$GDThumb.margin - $GDThumb.margin / 2}px !important; } |
---|
55 | {/html_style}{/strip} |
---|
56 | |
---|
57 | {combine_css path=$GDThumb.GDTHUMB_ROOT|cat:"/css/gdthumb.css"} |
---|
58 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
59 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
60 | {combine_script id='jquery.ba-resize' path=$GDThumb.GDTHUMB_ROOT|cat:"/js/jquery.ba-resize.min.js" load="footer"} |
---|
61 | {combine_script id='gdthumb' require='jquery,jquery.ba-resize' path=$GDThumb.GDTHUMB_ROOT|cat:"/js/gdthumb.js" load="footer"} |
---|
62 | |
---|
63 | {footer_script require="gdthumb"} |
---|
64 | $(function() { |
---|
65 | {if isset($GDThumb_big)} |
---|
66 | {assign var=gt_size value=$GDThumb_big->get_size()} |
---|
67 | var big_thumb = {ldelim}id: {$GDThumb_big->src_image->id}, src: '{$GDThumb_big->get_url()}', width: {$gt_size[0]}, height: {$gt_size[1]}{rdelim}; |
---|
68 | {else} |
---|
69 | var big_thumb = null; |
---|
70 | {/if} |
---|
71 | GDThumb.setup('{$GDThumb.method}', {$GDThumb.height}, {$GDThumb.margin}, true, big_thumb, {$GDThumb.big_thumb_noinpw}); |
---|
72 | }); |
---|
73 | {/footer_script} |
---|