Your IP : 216.73.216.171


Current Path : /home/ereika83/www/wp-content/plugins/bbpowerpack/modules/pp-hotspot/includes/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/bbpowerpack/modules/pp-hotspot/includes/frontend.js.php

;(function($){

	$(function() {
		<?php
			$hide_desktop = isset( $settings->hide_tour_desktop ) ? $settings->hide_tour_desktop : '';
			$hide_tablet  = isset( $settings->hide_tour_tablet ) ? $settings->hide_tour_tablet : '';
			$hide_mobile  = isset( $settings->hide_tour_mobile ) ? $settings->hide_tour_mobile : '';
			$bp_tablet   = ! empty( $global_settings->medium_breakpoint ) ? $global_settings->medium_breakpoint : 1024;
			$bp_mobile   = ! empty( $global_settings->responsive_breakpoint ) ? $global_settings->responsive_breakpoint : 768;
			$max_width   = 'none';
			$min_width   = 'none';
			$show_on     = 'all';

		if ( 'yes' == $hide_desktop && 'yes' !== $hide_tablet && 'yes' !== $hide_mobile ) {
			$min_width = $bp_tablet + 1;
			$show_on = 'medium-responsive';
		} elseif ( 'yes' == $hide_desktop && 'yes' === $hide_tablet && 'yes' !== $hide_mobile ) {
			$min_width = $bp_mobile - 1;
			$show_on = 'responsive';
		} elseif ( 'yes' == $hide_desktop && 'yes' !== $hide_tablet && 'yes' === $hide_mobile ) {
			$max_width = $bp_tablet;
			$min_width = $bp_mobile;
			$show_on = 'medium';
		} elseif ( 'yes' == $hide_desktop && 'yes' === $hide_tablet && 'yes' === $hide_mobile ) {
			$min_width = 0;
			$show_on = 'none';
		} elseif ( 'yes' !== $hide_desktop && 'yes' === $hide_tablet && 'yes' === $hide_mobile ) {
			$max_width = $bp_tablet;
			$min_width = 0;
			$show_on = 'large';
		} elseif ( 'yes' !== $hide_desktop && 'yes' !== $hide_tablet && 'yes' === $hide_mobile ) {
			$max_width = $bp_mobile - 1;
			$min_width = 0;
			$show_on = 'large-medium';
		} elseif ( 'yes' !== $hide_desktop && 'yes' === $hide_tablet && 'yes' !== $hide_mobile ) {
			$max_width = $bp_tablet;
			$min_width = $bp_mobile;
			$show_on = 'large-responsive';
		}
		?>
		window['pp_hotspot_<?php echo $id; ?>'] = new PPHotspot({
			id: 				'<?php echo $id; ?>',
			markerLength:		'<?php echo sizeof( $settings->markers_content ); ?>',
			tooltipEnable:		'<?php echo $settings->tooltip; ?>',
			enableCloseIcon:    '<?php echo $settings->enable_close_icon; ?>',
			escToClose:         '<?php echo $settings->esc_to_close; ?>',
			clickToClose:       '<?php echo isset( $settings->click_to_close ) ? $settings->click_to_close : 'no'; ?>',
			tooltipPosition:	'<?php echo $settings->tooltip_position; ?>',
			tooltipTrigger:		'<?php echo $settings->tooltip_trigger; ?>',
			tooltipDistance:	'<?php echo $settings->tooltip_distance; ?>',
			tooltipAnimation:	'<?php echo $settings->tooltip_animation; ?>',
			tooltipWidth:		'<?php echo $settings->tooltip_max_width; ?>',
			animationDur:		'<?php echo $settings->animation_duration; ?>',
			tourEnable:			'<?php echo $settings->enable_tour; ?>',
			tourRepeat:			'<?php echo $settings->repeat_tour; ?>',
			tourAutoplay:		'<?php echo $settings->autoplay_tour; ?>',
			tooltipInterval:	'<?php echo $settings->tooltip_interval; ?>',
			launchTourOn:		'<?php echo $settings->launch_tour; ?>',
			nonActiveMarker:	'<?php echo $settings->non_active_marker; ?>',
			tooltipZindex:		'<?php echo $settings->tooltip_zindex; ?>',
			adminTitlePreview:	'<?php echo $settings->admin_title_preview; ?>',
			tooltipPreview:		'<?php echo $settings->tooltip_preview; ?>',
			viewport:			90,
			tooltipArrow:		<?php echo 'show' === $settings->tooltip_arrow ? 'true' : 'false'; ?>,
			isBuilderActive:	<?php echo FLBuilderModel::is_builder_active() ? 'true' : 'false'; ?>,
			maxWidth:           '<?php echo $max_width; ?>',
			minWidth:           '<?php echo $min_width; ?>',
			breakpoints:        {
				tablet: <?php echo $bp_tablet; ?>,
				mobile: <?php echo $bp_mobile; ?>
			},
			tourVisibility:    '<?php echo $show_on; ?>'
		});
	});

})(jQuery);