Changeset 25998 for extensions/Slimi/template/thumbnails.tpl
- Timestamp:
- Dec 17, 2013, 11:25:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slimi/template/thumbnails.tpl
r19019 r25998 3 3 global $page, $template; 4 4 $template->assign('cat_name', $page['category']['name']); 5 6 global $Slimi; $this->assign( 'Slimi', $Slimi);7 5 {/php} 8 6 9 7 10 <div id="carousel thumb">8 <div id="carousel"> 11 9 <div id="wrap"> 12 <ul id="carousel" class="jcarousel-skin-cat"> 10 <div class="jcarousel"> 11 <ul> 13 12 {if !empty($category_thumbnails)} 14 13 … … 39 38 {assign var=derivative value=$pwg->derivative($carousel, $thumbnail.src_image)} 40 39 <li> 41 <div class="i Illustration">40 <div class="illustration"> 42 41 <a href="{if ($Slimi.lytebox_slimi)==1}{$thumbnail.path}" class="lytebox" rev="slide:true group:name showNavigation:true navType:1 slideInterval:6000"{else}{$thumbnail.URL}"{/if} title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'''|replace:'"':'"'}"> 43 42 <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" height="{$carousel->max_height()}"/> … … 73 72 {/foreach} 74 73 </ul> 75 {footer_script}{literal}76 function mycarousel_initCallback(carousel)77 {78 // Pause autoscrolling if the user moves with the cursor over the clip.79 carousel.clip.hover(function() {80 carousel.stopAuto();81 }, function() {82 carousel.startAuto();83 });84 };85 86 jQuery(document).ready(function() {87 jQuery('#carousel').jcarousel({88 auto: 0,89 wrap: 'circular',90 scroll: 2,91 initCallback: mycarousel_initCallback,92 93 });94 });95 96 {/literal}{/footer_script}97 74 98 75 </div> 99 76 </div> 77 <a href="#" class="jcarousel-control-prev">‹</a> 78 <a href="#" class="jcarousel-control-next">›</a> 79 </div>
Note: See TracChangeset
for help on using the changeset viewer.