Ignore:
Timestamp:
Dec 17, 2013, 11:22:53 PM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

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

    r19205 r25997  
    1 {php}   global $Slim;   $this->assign( 'Slim', $Slim );{/php}
    2 
    31{if ($Slim.style_slim)!=1}
    42{$MENUBAR}
     
    2321
    2422        <div id="infoBlock">
    25         <div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
    26 
    27                 <ul class="categoryActions">
     23<div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
     24
     25        <ul class="categoryActions">
    2826        {if !empty($image_orders)}
    2927                        <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     
    163161
    164162{if !empty($THUMBNAILS)}
    165         <ul class="thumbnails" id="thumbnails">
    166163                {$THUMBNAILS}
    167         </ul>
     164{footer_script}{literal}
     165        $('.jcarousel')
     166            .jcarousel({
     167                 wrap: 'circular'
     168            })         
     169                        .jcarouselAutoscroll({
     170                        autostart: false
     171                        });     
     172                       
     173        $('.jcarousel-control-prev')
     174            .on('jcarouselcontrol:active', function() {
     175                $(this).removeClass('inactive');
     176            })
     177            .on('jcarouselcontrol:inactive', function() {
     178                $(this).addClass('inactive');
     179            })
     180            .jcarouselControl({
     181                target: '-=1'
     182            });
     183
     184        $('.jcarousel-control-next')
     185            .on('jcarouselcontrol:active', function() {
     186                $(this).removeClass('inactive');
     187            })
     188            .on('jcarouselcontrol:inactive', function() {
     189                $(this).addClass('inactive');
     190            })
     191            .jcarouselControl({
     192                target: '+=1'
     193            });
     194{/literal}{/footer_script}
     195
    168196{/if}
    169197
     
    171199        {if !empty($CATEGORIES)}
    172200                {$CATEGORIES}
     201                {footer_script}{literal}
     202        $('.jcarousel')
     203            .jcarousel({
     204                 wrap: 'circular'
     205            })         
     206                        .jcarouselAutoscroll({
     207                        interval: 3000,
     208                        target: '+=1',
     209                        autostart: true
     210                        });     
     211                       
     212        $('.jcarousel-control-prev')
     213            .on('jcarouselcontrol:active', function() {
     214                $(this).removeClass('inactive');
     215            })
     216            .on('jcarouselcontrol:inactive', function() {
     217                $(this).addClass('inactive');
     218            })
     219            .jcarouselControl({
     220                target: '-=1'
     221            });
     222
     223        $('.jcarousel-control-next')
     224            .on('jcarouselcontrol:active', function() {
     225                $(this).removeClass('inactive');
     226            })
     227            .on('jcarouselcontrol:inactive', function() {
     228                $(this).addClass('inactive');
     229            })
     230            .jcarouselControl({
     231                target: '+=1'
     232            });
     233               
     234                $('.jcarousel')
     235                        .on('mouseenter', function(){
     236                                $(this).jcarouselAutoscroll('stop')
     237                        })
     238                        .on('mouseleave', function(){
     239                                $(this).jcarouselAutoscroll('start')
     240                        });
     241{/literal}{/footer_script}
     242
    173243        {/if}
    174244{/if}
Note: See TracChangeset for help on using the changeset viewer.