Last change
on this file since 26667 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:
1.2 KB
|
Line | |
---|
1 | {combine_css path="template-extension/flop_style/thumbnails/polaroid.css"} |
---|
2 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
3 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
4 | {html_style}{literal} |
---|
5 | ul.thumbnails a { |
---|
6 | height:{/literal}{$derivative_params->max_height()+30}{literal}px; |
---|
7 | } |
---|
8 | ul.thumbnails li |
---|
9 | { |
---|
10 | height:{/literal}{$derivative_params->max_height()+70}{literal}px; |
---|
11 | } |
---|
12 | {/literal}{/html_style} |
---|
13 | |
---|
14 | {define_derivative name='derivative_polaroid' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true} |
---|
15 | |
---|
16 | {if !empty($thumbnails)} |
---|
17 | {strip}{foreach from=$thumbnails item=thumbnail} |
---|
18 | {assign var=derivative value=$pwg->derivative($derivative_polaroid, $thumbnail.src_image)} |
---|
19 | <li> |
---|
20 | <a href="{$thumbnail.URL}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|truncate:20:" [...]"|@replace:'"':' '}{/if}"> |
---|
21 | <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="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" > |
---|
22 | </a> |
---|
23 | </li> |
---|
24 | {/foreach}{/strip} |
---|
25 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.