{combine_script id='jquery.nivo.slider' path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/jquery.nivo.slider.js' require='jquery' load='footer'} {combine_css path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/nivo-slider.css'} {combine_css path=$EXTENDED_DESC_PATH|cat:'template/nivoslider/dark.css'} {footer_script require='jquery.nivo.slider'} $("#slider{$slider_id}").nivoSlider({ldelim} pauseTime: {$pauseTime}, animSpeed: {$pauseTime}/6, effect: '{$effect}', directionNav: {$directionNav}, controlNav: {$controlNav}, beforeChange: function() {ldelim} if ($('#slider{$slider_id}').data('nivo:vars').currentImage.attr('src') == "") {ldelim} return false; } {if $elastic_size} $("#slider{$slider_id}").css({ldelim} height: 'auto', }); {/if} } }); {/footer_script} {if $elastic_size} {assign var=slider_full_height value=0} {else} {assign var=slider_full_height value=$img_size.h} {/if} {assign var=slider_full_width value=0}
{footer_script} $("#slider{$slider_id}").parent(".slider-wrapper").css({ldelim} height: {$slider_full_height}{if $controlNav=='true'}+40{/if}, width: {$slider_full_width} }); $("#slider{$slider_id}").css({ldelim} height: {if $elastic_size}{$slider_init_height}{else}{$slider_full_height}{/if}, width: {$slider_init_width} }); {/footer_script}