HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/index_lixo/wp-content/plugins/cherry-plugin/includes/js/cherry-plugin.js
jQuery(document).ready(function(){
	// OWL Carousel init.
	cherryPluginCarouselInit();

	// Full-width block with left-right paddings.
	jQuery('.content_box.full-width').wrapInner('<div class="full-block-wrap"></div>');
	jQuery(window).resize( function(){
		contenBoxResizeFunction();
	});

	contenBoxResizeFunction();
	function contenBoxResizeFunction(){
		var width_of_viewport = jQuery(window).width(),
			half_width_of_viewport = width_of_viewport / 2,
			width_of_container = jQuery('.content-holder > .container').width();

		jQuery('.content_box.full-width').width(width_of_container);
		jQuery('.content_box.full-width').css({'padding-left': half_width_of_viewport+'px', 'padding-right': half_width_of_viewport+'px', 'margin-left': '-'+half_width_of_viewport+'px'});
		jQuery('.full-block-wrap').width(width_of_container);
	}
});

function cherryPluginCarouselInit() {
	jQuery('div[id^="owl-carousel-"]').each(function(){
		var carousel = jQuery(this),
			auto_play = parseInt(carousel.attr('data-auto-play'))<1 ? false : parseInt(carousel.attr('data-auto-play')),
			items_count = parseInt(carousel.attr('data-items')),
			display_navs = carousel.attr('data-nav')=='true' ? true : false,
			display_pagination = carousel.attr('data-pagination')=='true' ? true : false,
			auto_height = items_count<=1 ? true : false,
			keys = Object.keys(items_custom),
			last_key = keys[keys.length-1];

		items_custom[last_key] = [items_custom[last_key][0], items_count];

		jQuery(carousel).owlCarousel({
			autoPlay: auto_play,
			navigation: display_navs,
			pagination: display_pagination,
			navigationText: false,
			autoHeight: auto_height,
			itemsCustom: items_custom
		});
	})
	jQuery('.owl-prev').addClass('icon-chevron-left');
	jQuery('.owl-next').addClass('icon-chevron-right');
}