public function scripts_init()
    {
        ?>
jQuery(document).ready(function() {
	jQuery('#roundabout').css('display', 'block');
	jQuery('#roundabout ul').roundabout({
		bearing:       0.0,
		tilt:          0.0,
		minZ:          80,
		maxZ:          100,
		minOpacity:    0.7,
		maxOpacity:    1.0,
		minScale:      0.4,
		maxScale:      1.0,
		duration:      <?php 
        echo get_option('roundabout_slider_speed');
        ?>
,
		easing:        '<?php 
        echo get_option('roundabout_slider_easing');
        ?>
',
		clickToFocus:  <?php 
        echo get_option_str('roundabout_slider_tofocus');
        ?>
,
		focusBearing:  0.0,
		shape:         'square',
		childSelector: 'li',
		startingChild: 6,
		reflect:       false
	});
});
<?php 
    }
Beispiel #2
0
    public function scripts_init()
    {
        ?>
jQuery(document).ready(function() {
	jQuery('#coin-slider').css('display', 'block');
	jQuery('#coin-slider').coinslider({
		width:      960, // width of slider panel
		height:     400, // height of slider panel
		spw:        <?php 
        echo get_option('coin_slider_squares_width');
        ?>
,
		sph:        <?php 
        echo get_option('coin_slider_squares_height');
        ?>
,
		delay:      <?php 
        echo get_option('coin_slider_delay');
        ?>
,
		sDelay:     <?php 
        echo get_option('coin_slider_sdelay');
        ?>
,
		opacity:    <?php 
        echo get_option('coin_slider_opacity') / 100;
        ?>
,
		titleSpeed: <?php 
        echo get_option('coin_slider_title_speed');
        ?>
,
		effect:     '<?php 
        echo get_option('coin_slider_effect');
        ?>
',
		navigation: <?php 
        echo get_option_str('coin_slider_navigation');
        ?>
,
		links :     <?php 
        echo get_option_str('slider_link');
        ?>
,
		hoverPause: <?php 
        echo get_option_str('coin_slider_hover');
        ?>
	});
	jQuery('#cs-buttons-coin-slider').css('margin-left', function(index, val){
		return -this.offsetWidth/2;
	});
});
<?php 
    }
Beispiel #3
0
    public function scripts_init()
    {
        ?>
jQuery(window).load(function() {
	jQuery('#orbit-slider').orbit({
		'animation' : '<?php 
        echo get_option('orbit_slider_animation');
        ?>
',
		'animationSpeed' : <?php 
        echo get_option('orbit_slider_animation_speed');
        ?>
,
		'advanceSpeed' : <?php 
        echo get_option('orbit_slider_advance_speed');
        ?>
,
		'startClockOnMouseOut' : <?php 
        echo get_option_str('orbit_slider_mouse_out');
        ?>
,
		'startClockOnMouseOutAfter' : <?php 
        echo get_option('orbit_slider_mouse_out_after');
        ?>
,
		'directionalNav' : <?php 
        echo get_option_str('orbit_slider_direction_nav');
        ?>
,
		'captions' : <?php 
        echo get_option_str('slider_caption');
        ?>
,
		'captionAnimationSpeed' : <?php 
        echo get_option('orbit_slider_captions_speed');
        ?>
,
		'timer' : <?php 
        echo get_option_str('orbit_slider_timer');
        ?>
,
		'bullets': <?php 
        echo get_option_str('orbit_slider_bullets');
        ?>
	});
});
<?php 
    }
Beispiel #4
0
    public function scripts_init()
    {
        ?>
jQuery(document).ready(function () {
	jQuery('#round-slider').css('display', 'block');
	jQuery("#round-slider").waterwheelCarousel("horizontal",{
		startingItem:           Math.ceil(jQuery('#round-slider').find('img').length / 2),
		startingItemSeparation: 150,
		itemSeparationFactor:   0.5,
		startingWaveSeparation: 35,
		waveSeparationFactor:   0.75,
		itemDecreaseFactor:     0.8,
		opacityDecreaseFactor:  0.5,
		centerOffset:           35,
		flankingItems:          4,
		speed:                  <?php 
        echo get_option('round_slider_speed');
        ?>
,
		animationEasing:			'<?php 
        echo get_option('round_slider_easing');
        ?>
',
		quickerForFurther:		<?php 
        echo get_option_str('round_slider_quicker');
        ?>
,
		clickedCenter: function(e) {
			var link_id = jQuery(e).attr('rel');
			if (link_id != undefined) {
				window.location.href = jQuery(link_id).attr('href');
				return false;
			}
		},
		movedToCenter: function(e) {
			jQuery('#round-slider > img').each(function() {
				jQuery(this).css({cursor: 'default'});
			});
			if (jQuery(e).attr('rel') != undefined)
				jQuery(e).css({cursor: 'pointer'});
		}
	});
});
<?php 
    }
Beispiel #5
0
    public function scripts_init()
    {
        ?>
jQuery(window).load(function() {
	jQuery('#nivo-slider').nivoSlider({
		effect:          '<?php 
        echo get_option('nivo_slider_effect');
        ?>
',
		slices:          <?php 
        echo get_option('nivo_slider_slices');
        ?>
,
		animSpeed:       <?php 
        echo get_option('nivo_slider_speed');
        ?>
,
		pauseTime:       <?php 
        echo get_option('nivo_slider_pause');
        ?>
,
		directionNav:    <?php 
        echo get_option_str('nivo_slider_direction_nav');
        ?>
,
		directionNavHide:<?php 
        echo get_option_str('nivo_slider_direction_nav_hide');
        ?>
,
		controlNav:      <?php 
        echo get_option_str('nivo_slider_control_nav');
        ?>
,
		controlNavThumbs: <?php 
        echo get_option_str('nivo_slider_thumb');
        ?>
,
		controlNavThumbsFromAlt: <?php 
        echo get_option_str('nivo_slider_thumb');
        ?>
,
		pauseOnHover:    <?php 
        echo get_option_str('nivo_slider_pause_on_hover');
        ?>
,
		manualAdvance:   <?php 
        echo get_option_str('nivo_slider_manual_advance');
        ?>
,
		captionOpacity:  <?php 
        echo get_option('nivo_slider_caption_opacity') / 100;
        ?>
,
		captionEasing:   '<?php 
        echo get_option('nivo_slider_caption_easing');
        ?>
'
	});
	<?php 
        if (!get_option('nivo_slider_thumb')) {
            ?>
	jQuery('div.nivo-controlNav').css('margin-left', function(index, val){
		return -this.offsetWidth/2;
	}).css('display', 'none');
	<?php 
        }
        ?>
	jQuery('#nivo-slider').hover(
		function() {
			jQuery(this).find('.nivo-controlNav').slideDown(200);
		},
		function() {
			jQuery(this).find('.nivo-controlNav').slideUp(200);
		 }
	);
});
<?php 
    }
Beispiel #6
0
    public function scripts_init()
    {
        ?>
function formatText(index, panel) {
	return index + "";
};

jQuery(function () {
	jQuery('#anythingSlider').css('display', 'block');
	jQuery('#anythingSlider').anythingSlider({
		width:            <?php 
        echo $this->width;
        ?>
,
		height:           <?php 
        echo $this->height;
        ?>
,
		playRtl:          <?php 
        echo get_option_str('anything_playRtl');
        ?>
,
		delay:            <?php 
        echo get_option('anything_delay');
        ?>
,
		animationTime:    <?php 
        echo get_option('anything_animationTime');
        ?>
,
		easing:           '<?php 
        echo get_option('anything_easing');
        ?>
',
		buildArrows:      <?php 
        echo get_option_str('anything_buildArrows');
        ?>
,
		toggleArrows:     <?php 
        echo get_option('anything_buildArrows') ? get_option_str('anything_toggleArrows', false) : 'false';
        ?>
,
		buildNavigation:  <?php 
        echo get_option_str('anything_buildNavigation');
        ?>
,
		toggleControls:   <?php 
        echo get_option_str('anything_toggleControls');
        ?>
,
		autoPlay:         <?php 
        echo get_option_str('anything_autoPlay');
        ?>
,
		pauseOnHover:     <?php 
        echo get_option_str('anything_pauseOnHover');
        ?>
,
		resumeOnVideoEnd: <?php 
        echo get_option_str('anything_resumeOnVideoEnd');
        ?>
,
		stopAtEnd:        <?php 
        echo get_option_str('anything_stopAtEnd');
        ?>
,
		navigationFormatter: formatText
	});
	function formatText(index, panel) {
		return '';
	}
  });
<?php 
    }