Ignore:
Timestamp:
Jun 1, 2014, 9:38:49 PM (10 years ago)
Author:
Miklfe
Message:

Compatibilité avec Slim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slimi/template/index.tpl

    r25998 r28586  
    142142{/if}
    143143
     144{if !empty($CONTENT)}{$CONTENT}{/if}
    144145
    145146
    146147{if !empty($THUMBNAILS)}
    147148{$THUMBNAILS}
    148 {footer_script}{literal}
    149         $('.jcarousel')
    150             .jcarousel({
    151                  wrap: 'circular'
    152             })         
    153                         .jcarouselAutoscroll({
    154                         autostart: false
    155                         });     
    156                        
    157         $('.jcarousel-control-prev')
    158             .on('jcarouselcontrol:active', function() {
    159                 $(this).removeClass('inactive');
    160             })
    161             .on('jcarouselcontrol:inactive', function() {
    162                 $(this).addClass('inactive');
    163             })
    164             .jcarouselControl({
    165                 target: '-=1'
    166             });
    167 
    168         $('.jcarousel-control-next')
    169             .on('jcarouselcontrol:active', function() {
    170                 $(this).removeClass('inactive');
    171             })
    172             .on('jcarouselcontrol:inactive', function() {
    173                 $(this).addClass('inactive');
    174             })
    175             .jcarouselControl({
    176                 target: '+=1'
    177             });
    178 {/literal}{/footer_script}
    179149{/if}
    180150
    181151{if empty($THUMBNAILS)}
    182152{if !empty($CATEGORIES)}{$CATEGORIES}
    183                 {footer_script}{literal}
    184         $('.jcarousel')
    185             .jcarousel({
    186                  wrap: 'circular'
    187             })         
    188                         .jcarouselAutoscroll({
    189                         interval: 3000,
    190                         target: '+=1',
    191                         autostart: true
    192                         });     
    193                        
    194         $('.jcarousel-control-prev')
    195             .on('jcarouselcontrol:active', function() {
    196                 $(this).removeClass('inactive');
    197             })
    198             .on('jcarouselcontrol:inactive', function() {
    199                 $(this).addClass('inactive');
    200             })
    201             .jcarouselControl({
    202                 target: '-=1'
    203             });
    204 
    205         $('.jcarousel-control-next')
    206             .on('jcarouselcontrol:active', function() {
    207                 $(this).removeClass('inactive');
    208             })
    209             .on('jcarouselcontrol:inactive', function() {
    210                 $(this).addClass('inactive');
    211             })
    212             .jcarouselControl({
    213                 target: '+=1'
    214             });
    215                
    216                 $('.jcarousel')
    217                         .on('mouseenter', function(){
    218                                 $(this).jcarouselAutoscroll('stop')
    219                         })
    220                         .on('mouseleave', function(){
    221                                 $(this).jcarouselAutoscroll('start')
    222                         });
    223 {/literal}{/footer_script}
    224 
    225153{/if}
    226154{/if}
Note: See TracChangeset for help on using the changeset viewer.