Last change
on this file since 20340 was
16501,
checked in by flop25, 12 years ago
|
adding a gif loader (introduced in 2.4.2)
fixing the height of medium_cat.tpl
adding a custom size for spotlight.tpl
|
File size:
2.1 KB
|
Line | |
---|
1 | {combine_css path="template-extension/flop_style/mainpage_categories/mosaic/mosaic.css"} |
---|
2 | {combine_css path="template-extension/flop_style/mainpage_categories/mosaic.css"} |
---|
3 | {combine_script id="jquery.mosaic" load="header" path="template-extension/flop_style/mainpage_categories/mosaic/mosaic.1.0.1.min.js"} |
---|
4 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
5 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
6 | {html_head} |
---|
7 | {literal} |
---|
8 | <script type="text/javascript"> |
---|
9 | jQuery(function($){ |
---|
10 | $('.bar').mosaic({ |
---|
11 | animation : 'slide' |
---|
12 | }); |
---|
13 | }); |
---|
14 | </script> |
---|
15 | {/literal} |
---|
16 | {/html_head} |
---|
17 | {html_style}{literal} |
---|
18 | .mosaic-block, .mosaic-backdrop img { |
---|
19 | width:{/literal}{$derivative_params->max_width()}{literal}px; |
---|
20 | height:{/literal}{$derivative_params->max_height()}{literal}px; |
---|
21 | } |
---|
22 | {/literal}{/html_style} |
---|
23 | |
---|
24 | {define_derivative name='derivative_mosaic' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true} |
---|
25 | <div id="mosaic-content"> {foreach from=$category_thumbnails item=cat} |
---|
26 | {assign var=derivative value=$pwg->derivative($derivative_mosaic, $cat.representative.src_image)} |
---|
27 | <div class="mosaic-block bar"> <a href="{$cat.URL}" class="mosaic-overlay"> |
---|
28 | <div class="details"> |
---|
29 | <h4> {$cat.NAME} |
---|
30 | {if !empty($cat.icon_ts)} <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="(!)"> {/if} </h4> |
---|
31 | <p>{if isset($cat.INFO_DATES) } |
---|
32 | {$cat.INFO_DATES} |
---|
33 | {/if} |
---|
34 | {$cat.CAPTION_NB_IMAGES} |
---|
35 | {if not empty($cat.DESCRIPTION)} |
---|
36 | {$cat.DESCRIPTION} |
---|
37 | {/if} </p> |
---|
38 | </div> |
---|
39 | </a> |
---|
40 | <div class="mosaic-backdrop"> <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-big.gif" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> </div> |
---|
41 | </div> |
---|
42 | {/foreach} |
---|
43 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.