Line | |
---|
1 | <div id="carouselcat"> |
---|
2 | |
---|
3 | <div id="wrap"> |
---|
4 | <ul id="carousel" class="jcarousel-skin-cat"> |
---|
5 | |
---|
6 | {foreach from=$category_thumbnails item=cat} |
---|
7 | |
---|
8 | |
---|
9 | <li> |
---|
10 | <div class="illustration"> |
---|
11 | <a href="{$cat.URL}"> |
---|
12 | <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$derivative_params->max_width()}" height="{$derivative_params->max_height()-22}"/> |
---|
13 | </a> |
---|
14 | </div> |
---|
15 | |
---|
16 | <div class="CatMPdescription"> |
---|
17 | |
---|
18 | <h3> |
---|
19 | <a href="{$cat.URL}">{$cat.NAME}</a> |
---|
20 | </h3> |
---|
21 | <div> |
---|
22 | {$cat.CAPTION_NB_IMAGES} |
---|
23 | </div> |
---|
24 | </div> |
---|
25 | </li> |
---|
26 | {/foreach} |
---|
27 | </ul> |
---|
28 | {footer_script}{literal} |
---|
29 | function mycarousel_initCallback(carousel) |
---|
30 | { |
---|
31 | // Pause autoscrolling if the user moves with the cursor over the clip. |
---|
32 | carousel.clip.hover(function() { |
---|
33 | carousel.stopAuto(); |
---|
34 | }, function() { |
---|
35 | carousel.startAuto(); |
---|
36 | }); |
---|
37 | }; |
---|
38 | |
---|
39 | jQuery(document).ready(function() { |
---|
40 | jQuery('#carousel').jcarousel({ |
---|
41 | auto: 1, |
---|
42 | wrap: 'circular', |
---|
43 | scroll: 2, |
---|
44 | animation: 2000, |
---|
45 | initCallback: mycarousel_initCallback, |
---|
46 | |
---|
47 | }); |
---|
48 | }); |
---|
49 | {/literal}{/footer_script} |
---|
50 | </div> |
---|
51 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.