echo $current_slider; ?> .flexslider img.attachment-full').css('width', '<?php echo $width == 0 ? '100%' : $width . 'px'; ?> ').css('height', '<?php echo $height; ?> px'); $('#<?php echo $slider_id; ?> .flexslider .slider-wrapper').flexslider({ animation: '<?php yit_slide_the('effect'); ?> ', slideshowSpeed: <?php echo yit_slide_get('interval') * 1000; ?> , animationSpeed: <?php echo yit_slide_get('speed') * 1000; ?> , touch: false, controlNav: <?php if (yit_slide_get('controlnav') != '') { echo yit_slide_get('controlnav'); } else {
<script type="text/javascript"> jQuery(document).ready(function($){ $('#<?php echo $slider_id; ?> .elastic').eislideshow({ easing : 'easeOutExpo', titleeasing : 'easeOutExpo', titlespeed : 1200, autoplay : <?php yit_slide_the('autoplay', array('bool' => true)); ?> , slideshow_interval : <?php echo yit_slide_get('interval') * 1000; ?> , speed : <?php echo yit_slide_get('speed') * 1000; ?> , animation : '<?php yit_slide_the('animation'); ?> ' // slidesLoaded: function() { // $('.ei-slider .ei-slider-loading').hide(); // } }); }); </script>
var content_width = <?php yit_slide_the('width') ?> + 22; var content_height = <?php yit_slide_the('height') ?> + 22; if ( content_width > $('.slider.thumbnails .showcase').width() ) { content_width = $('.slider.thumbnails .showcase').width(); } $("#<?php echo $slider_id ?> .showcase").awShowcase({ content_width : content_width, content_height : content_height, show_caption : '<?php yit_slide_the('show_caption') ?>', /* onload/onhover/show */ continuous : true, buttons : false, auto : true, thumbnails : true, transition : '<?php yit_slide_the('effect') ?>', /* hslide / vslide / fade */ interval : <?php echo yit_slide_get('interval') * 1000 ?>, transition_speed : <?php echo yit_slide_get('speed') * 1000 ?>, thumbnails_position : 'outside-last', /* outside-last/outside-first/inside-last/inside-first */ thumbnails_direction : 'horizontal', /* vertical/horizontal */ thumbnails_slidex : 1, /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */ onload : function(){ $( window ).load(function(){ resize_height_thumbnail(); }); }, onchange : resize_height_thumbnail }); }); </script>
?> <li data-images="rm_container_<?php echo $count; ?> " style="width:<?php echo $width_li; ?> %;<?php if ($count == $nslides) { echo 'margin-right:0;'; } ?> "> <?php yit_slide_the('featured-content', array('container' => false)); ?> </li> <?php if ($count == $nslides) { break; } } ?> </ul> <!--<div id="rm_mask_left" class="rm_mask_left"></div> <div id="rm_mask_right" class="rm_mask_right"></div> <div id="rm_corner_left" class="rm_corner_left"></div>
echo yit_slide_get('caption_speed') * 1000; ?> ; $('.caption-top', nextSlideElement).animate({top:0}, caption_speed); $('.caption-bottom', nextSlideElement).animate({bottom:0}, caption_speed); $('.caption-left', nextSlideElement).animate({left:0}, caption_speed); $('.caption-right', nextSlideElement).animate({right:0}, caption_speed); }; $('#slider-<?php echo $current_slider; ?> .flexslider').flexslider({ animation: '<?php yit_slide_the('effect_' . $slider_type); ?> ', slideshowSpeed: <?php echo yit_slide_get('interval') * 1000; ?> , animationSpeed: <?php echo yit_slide_get('speed') * 1000; ?> , pauseOnAction: false, controlNav: false, directionNav: true, touch: false, start : flex_caption_show,
, transition_speed : <?php echo yit_slide_get('speed') * 1000; ?> , thumbnails_position : 'outside-last', /* outside-last/outside-first/inside-last/inside-first */ thumbnails_direction : 'horizontal', /* vertical/horizontal */ thumbnails_slidex : 1 /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */ }); slider.find('.showcase-thumbnail-container').removeClass('container').addClass('container'); }; if($('body').hasClass('stretched')){ thumbnails_width = $(window).width(); thumbnails_height = <?php yit_slide_the('height'); ?> ; } $(window).resize(function(){ slider.stop(true); slider.find('.showcase').remove(); slider.append(slider_cloned); render_thumbnails_slider(); fix_slider_sizes(); }); render_thumbnails_slider(); fix_slider_sizes(); });
<?php if (!$is_primary) { ?> jQuery(document).ready(function($){ var ResizeFlash = function(){ var main_width = $('#<?php echo $slider_id; ?> ').width(); var initial_height = <?php echo yit_slide_get('height') + 75; ?> ; $(".slider-wrapper").css( "width", main_width ); $(".slider-wrapper").css( "height", ( initial_height * main_width ) / <?php yit_slide_the('width'); ?> ); } ResizeFlash(); $(window).resize(ResizeFlash); }); <?php } ?> </script> <?php add_action('wp_footer', create_function('', 'echo stripslashes( "' . addslashes(ob_get_clean()) . '" );'), 20);
<?php yit_string( '<h3>', yit_slide_get( 'subtitle' ), '</h3>' ) ?> </div> <?php endif; ?> </li> <?php endwhile; ?> </ul><!-- ei-slider-large --> <ul class="ei-slider-thumbs"> <li class="ei-slider-element"><?php _e( 'Current', 'yit' ) ?></li> <?php echo $thumbs ?> </ul><!-- ei-slider-thumbs --> <div class="shadow"></div> </div><!-- ei-slider --> <!-- END #slider --> <script type="text/javascript"> jQuery(document).ready(function($){ $('#<?php echo $slider_id ?>.elastic').eislideshow({ easing : 'easeOutExpo', titleeasing : 'easeOutExpo', titlespeed : 1200, autoplay : <?php yit_slide_the( 'autoplay', array( 'bool' => true ) ) ?>, slideshow_interval : <?php echo yit_slide_get('interval') * 1000 ?>, speed : <?php echo yit_slide_get('speed') * 1000 ?>, animation : '<?php yit_slide_the('animation') ?>' // slidesLoaded: function() { // $('.ei-slider .ei-slider-loading').hide(); // } }); }); </script>
?> , yit_slider_cycle_timeout = <?php echo yit_slide_get('interval') * 1000; ?> , yit_slider_cycle_directionNav = <?php yit_slide_the('directionNav', array('bool' => true)); ?> , yit_slider_cycle_directionNavHide = <?php yit_slide_the('directionNavHide', array('bool' => true)); ?> , yit_slider_cycle_autoplay = <?php yit_slide_the('autoplay', array('bool' => true)); ?> ; var yit_widget_area_position = function(){ $('#yit-widget-area').css({ top: 33 - $('#yit-widget-area').height() }); }; $(window).resize(yit_widget_area_position); yit_widget_area_position(); if( $.browser.msie && parseInt($.browser.version.substr(0,1),10) <= '8' ) { $('#slider-<?php echo $current_slider; ?> ul.slider').anythingSlider({ expand : true,