source: extensions/stripped-galleria/template/thumbnails.tpl @ 12975

Last change on this file since 12975 was 12975, checked in by Zaphod, 12 years ago

version 1.2.0

File size: 1.4 KB
Line 
1{if !empty($thumbnails)}
2{php}
3        global $stripped, $strippedgalleria;
4        $this->assign( 'stripped', $stripped );
5        $this->assign( 'strippedgalleria', $strippedgalleria );
6{/php}
7<div id="gallery" class="test">
8        {strip}{foreach from=$thumbnails item=thumbnail}
9                <a href="{$thumbnail.FILE_PATH}" {if (($thumbnail.FILE_HAS_HD) && ($strippedgalleria.lightbox == 'hd'))}rel="{$thumbnail.HD_PATH}"{/if}>
10                <img src="{$thumbnail.TN_SRC}"
11                {if ($stripped.imageCaption == 'description' )}
12                        alt="{$thumbnail.FILE_DESC|strip_tags:false}"
13                {/if}
14                {if ($stripped.imageCaption == 'title' )}
15                        alt="{$thumbnail.NAME}"
16                {/if}
17                /></a>
18        {/foreach}{/strip}
19</div>
20{footer_script}
21{literal}
22                        var Htotal=jQuery(window).height();
23                        var Hheader=jQuery("#content").position().top;
24                        var Hfooter=jQuery("#footer").height();
25                        var Hgallery = Htotal - Hheader - Hfooter - 2;
26            jQuery("#gallery").galleria({
27                height: Hgallery,
28                                lightbox:{/literal}{if ($strippedgalleria.lightbox != 'none')}true{else}false{/if}{literal},
29                                clicknext:{/literal}{if ($strippedgalleria.clicknext)}true{else}false{/if}{literal},
30                                transition:'{/literal}{$strippedgalleria.transition}{literal}',
31                                showCounter:false,
32                                imageTimeout:600000,
33                                maxScaleRatio:1,
34                                extend:function() {
35                                        this.attachKeyboard({
36                                                left: this.prev,
37                                                right: this.next
38                                        });
39                                }
40            });
41{/literal}
42{/footer_script}
43{/if}
Note: See TracBrowser for help on using the repository browser.