source: extensions/flop_style/thumbnails/jPolaroid.tpl @ 16393

Last change on this file since 16393 was 16393, checked in by flop25, 12 years ago

update for 2.4 : really amazing !

File size: 1.5 KB
Line 
1{combine_css path="template-extension/flop_style/thumbnails/jPolaroid.css"}
2{combine_css path="template-extension/flop_style/mainpage_categories/jPolaroid/jpolaroid.minified.css"}
3{combine_script id="jquery.jpolaroid.minified" load="header" path="template-extension/flop_style/mainpage_categories/jPolaroid/jquery.jpolaroid.min.js"}
4{html_head}
5  {literal}
6<script type="text/javascript">
7$(document).ready(function(){
8    $('.thumb_jpolaroid').polaroid({
9        tape:true,
10        shadowPos: "bottom-right",
11        bottom: "33px",
12        top: "22px",
13        left: "27px",
14        right: "27px",
15        shadowColor: "#CCCCCC",
16        backgroundColor: "#FDFDFD"
17    });
18});
19</script>
20  {/literal}
21{/html_head}
22{assign var=crop value=$derivative_params->sizing->max_crop}
23{if $crop==1}
24{assign var=crop value=true}
25{assign var=width value=$derivative_params->max_width()}
26{else}
27{assign var=crop value=false}
28{assign var=width value=99999}
29{/if}
30{define_derivative name='derivative_jPolaroid' width=$width height=$derivative_params->max_height() crop=$crop}
31
32{if !empty($thumbnails)}
33{strip}{foreach from=$thumbnails item=thumbnail}
34        <li>
35                        <a href="{$thumbnail.URL}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|truncate:11:" [...]"|@replace:'"':' '}{/if}">
36                                <img src="{$pwg->derivative_url($derivative_jPolaroid, $thumbnail.src_image)}" class="thumb_jpolaroid" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" >
37                        </a>
38        </li>
39{/foreach}{/strip}
40{/if}
Note: See TracBrowser for help on using the repository browser.