[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ct-post-carousel-widget.js
( function( $ ) { /** * @param $scope The Widget wrapper element as a jQuery element * @param $ The jQuery alias */ var WidgetCTPostCarouselHandler = function( $scope, $ ) { var breakpoints = elementorFrontend.config.breakpoints; var carousel = $scope.find(".ct-slick-carousel"); var data = carousel.data(); var slickOptions = { slidesToShow: data.colxl, slidesToScroll: data.slidestoscroll, autoplay: true === data.autoplay, autoplaySpeed: data.autoplayspeed, infinite: true === data.infinite, pauseOnHover: true === data.pauseonhover, speed: data.speed, arrows: true === data.arrows, dots: true === data.dots, rtl: true === data.dir, responsive: [ { breakpoint: 1200, settings: { slidesToShow: data.collg } }, { breakpoint: 992, settings: { slidesToShow: data.colmd } }, { breakpoint: 767, settings: { slidesToShow: data.colsm } }, { breakpoint: 575, settings: { slidesToShow: data.colxs, slidesToScroll: data.colxs, } }, ] }; var nav_for = $scope.find(".ct-slick-nav"); if(nav_for.length > 0){ slickOptions.asNavFor = nav_for; } if(typeof carousel.attr('data-centerMode') !== 'undefined') { slickOptions.centerMode = carousel.attr('data-centerMode') == 'true' ? true : false; } if(typeof carousel.attr('data-vertical') !== 'undefined') { slickOptions.vertical = carousel.attr('data-vertical') == 'true' ? true : false; } carousel.slick(slickOptions); $('.ct-nav-carousel').parents('.elementor-element').addClass('hide-nav'); $('.ct-nav-carousel .nav-prev').on('click', function () { $(this).parents('.elementor-element').find('.slick-prev').trigger('click'); }); $('.ct-nav-carousel .nav-next').on('click', function () { $(this).parents('.elementor-element').find('.slick-next').trigger('click'); }); $('.ct-portfolio-carousel4 .ct-portfolio-images .slick-next').on('click', function () { $(this).parents('.ct-portfolio-carousel4').find('.ct-portfolio-content .slick-next').trigger('click'); }); $('.ct-portfolio-carousel4 .ct-portfolio-images .slick-prev').on('click', function () { $(this).parents('.ct-portfolio-carousel4').find('.ct-portfolio-content .slick-prev').trigger('click'); }); var slider_nav = $scope.find('.ct-slick-nav'); if(slider_nav.length > 0){ $(slider_nav).slick({ slidesToShow: parseInt(slider_nav.attr('data-nav')), slidesToScroll: 1, asNavFor: carousel, dots: false, arrows: false, centerMode: true, infinite: true, focusOnSelect: true, autoplay: false, autoplaySpeed: 8000, speed: 800, rtl: true === slider_nav.data('dir'), responsive: [ { breakpoint: 768, settings: { slidesToShow: 1 } } ] }); } }; // Make sure you run this code under Elementor. $( window ).on( 'elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_blog_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_service_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_portfolio_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_gallery_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_testimonial_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_team_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_client_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_feature_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_award_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_offer_carousel.default', WidgetCTPostCarouselHandler ); elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_service_external.default', WidgetCTPostCarouselHandler ); } ); } )( jQuery );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002