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 | {html_head} |
---|
5 | {literal} |
---|
6 | <script type="text/javascript"> |
---|
7 | jQuery(function($){ |
---|
8 | $('.bar').mosaic({ |
---|
9 | animation : 'slide' |
---|
10 | }); |
---|
11 | }); |
---|
12 | </script> |
---|
13 | {/literal} |
---|
14 | {/html_head} |
---|
15 | {html_style}{literal} |
---|
16 | .mosaic-block, .mosaic-backdrop img { |
---|
17 | width:{/literal}{$derivative_params->max_width()}{literal}px; |
---|
18 | height:{/literal}{$derivative_params->max_height()}{literal}px; |
---|
19 | } |
---|
20 | {/literal}{/html_style} |
---|
21 | |
---|
22 | {define_derivative name='derivative_mosaic' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true} |
---|
23 | <div id="mosaic-content"> {foreach from=$category_thumbnails item=cat} |
---|
24 | <div class="mosaic-block bar"> <a href="{$cat.URL}" class="mosaic-overlay"> |
---|
25 | <div class="details"> |
---|
26 | <h4> {$cat.NAME} |
---|
27 | {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> |
---|
28 | <p>{if isset($cat.INFO_DATES) } |
---|
29 | {$cat.INFO_DATES} |
---|
30 | {/if} |
---|
31 | {$cat.CAPTION_NB_IMAGES} |
---|
32 | {if not empty($cat.DESCRIPTION)} |
---|
33 | {$cat.DESCRIPTION} |
---|
34 | {/if} </p> |
---|
35 | </div> |
---|
36 | </a> |
---|
37 | <div class="mosaic-backdrop"> <img src="{$pwg->derivative_url($derivative_mosaic, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> </div> |
---|
38 | </div> |
---|
39 | {/foreach} |
---|
40 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.