#wp-mail-smtp-notifications{position:relative;background:#fff 0 0 no-repeat padding-box;box-shadow:0 2px 4px rgba(0,0,0,.05);border-radius:6px;opacity:1;min-height:48px;margin:0 0 14px 0}#wp-mail-smtp-notifications *{box-sizing:border-box}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-header{display:flex;align-items:center;padding:8px 16px;border-bottom:1px solid rgba(204,208,212,.5)}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-header .wp-mail-smtp-notifications-bell{position:relative;top:2px;margin-right:10px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-header .wp-mail-smtp-notifications-title{font-style:normal;font-weight:500;font-size:14px;line-height:17px;color:#23282d}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-body{position:relative}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages{padding:16px 100px 16px 16px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-message{display:none}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-message.current{display:block}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-title{font-weight:600;font-size:17px;line-height:17px;margin:0;color:#2c3337}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-content{font-weight:normal;font-size:14px;line-height:18px;margin:8px 0 41px 0;color:#50575e}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-content p{font-size:inherit;line-height:inherit;margin:0 0 5px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons a{margin:0 10px 0 0;padding:8px 10px;line-height:13px;font-size:13px;min-height:unset}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons .button-secondary{border:1px solid #0071a1}#wp-mail-smtp-notifications .dismiss{position:absolute;top:15px;right:16px;width:16px;height:16px;color:#a0a5aa;font-size:16px;cursor:pointer;text-align:center;vertical-align:middle;line-height:16px}#wp-mail-smtp-notifications .dismiss:hover{color:#d63638}#wp-mail-smtp-notifications .dismiss i{width:100%;height:100%;font-size:inherit}#wp-mail-smtp-notifications .navigation{position:absolute;bottom:20px;right:16px;width:63px;height:30px}#wp-mail-smtp-notifications .navigation a{display:block;width:30px;height:30px;border:1px solid #7e8993;border-radius:3px;font-size:16px;line-height:1.625;text-align:center;cursor:pointer;background-color:#fff;color:#41454a}#wp-mail-smtp-notifications .navigation a:hover{background-color:#f1f1f1}#wp-mail-smtp-notifications .navigation a .dashicons{margin-top:8px;font-size:12px}#wp-mail-smtp-notifications .navigation .prev{float:left}#wp-mail-smtp-notifications .navigation .next{float:right}#wp-mail-smtp-notifications .navigation .disabled{border-color:#ddd;color:#a0a5aa;cursor:default}#wp-mail-smtp-notifications .navigation .disabled:hover{background-color:#fff}@media screen and (max-width: 768px){#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages{padding:15px 50px 20px 16px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-title{margin:0 30px 0 0;line-height:22px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-content{font-size:16px;line-height:22px}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons a{margin:0;display:table}#wp-mail-smtp-notifications .wp-mail-smtp-notifications-messages .wp-mail-smtp-notifications-buttons .button-secondary{margin-top:6px}}(function ($) { $(window).on('elementor/frontend/init', function () { var PremiumTestimonialsHandler = elementorModules.frontend.handlers.Base.extend({ getDefaultSettings: function () { return { slick: { infinite: true, rows: 0, prevArrow: '', nextArrow: '', draggable: true, pauseOnHover: true, }, selectors: { multipleTestimonials: '.multiple-testimonials', testimonials: '.premium-testimonial-container', testimonialCarousel: '.premium-testimonial-container.slick-active', testimonialImg: '.premium-testimonial-img-wrapper img', } } }, getDefaultElements: function () { var selectors = this.getSettings('selectors'); return { $multipleTestimonials: this.$element.find(selectors.multipleTestimonials), $testimonials: this.$element.find(selectors.testimonials), $testimonialImg: this.$element.find(selectors.testimonialImg), } }, bindEvents: function () { this.run(); }, getSlickSettings: function () { var settings = this.getElementSettings(), rtl = this.elements.$multipleTestimonials.data("rtl"), colsNumber = 'skin4' !== settings.skin ? parseInt(100 / settings.testimonials_per_row.substr(0, settings.testimonials_per_row.indexOf('%'))) : 1, colsTablet = 'skin4' !== settings.skin ? parseInt(100 / settings.testimonials_per_row_tablet.substr(0, settings.testimonials_per_row_tablet.indexOf('%'))) : 1, colsMobile = 'skin4' !== settings.skin ? parseInt(100 / settings.testimonials_per_row_mobile.substr(0, settings.testimonials_per_row_mobile.indexOf('%'))) : 1; return Object.assign(this.getSettings('slick'), { slide: '.premium-testimonial-container', slidesToShow: colsNumber, slidesToScroll: colsNumber, responsive: [{ breakpoint: 1025, settings: { slidesToShow: colsTablet, slidesToScroll: 1 } }, { breakpoint: 768, settings: { slidesToShow: colsMobile, slidesToScroll: 1 } } ], autoplay: settings.carousel_play, autoplaySpeed: settings.speed || 5000, rtl: rtl ? true : false, speed: 500, arrows: 'skin4' !== settings.skin ? true : false, fade: 'skin4' === settings.skin ? true : false }); }, runEqualHeight: function () { var $testimonials = this.elements.$testimonials; var heights = new Array(); $testimonials.each(function (index, testimonial) { var height = $(testimonial).outerHeight(); heights.push(height); }); var maxHeight = Math.max.apply(null, heights); $testimonials.find('.premium-testimonial-content-wrapper').css("height", maxHeight + "px"); }, run: function () { var $multipleTestimonials = this.elements.$multipleTestimonials; if (!$multipleTestimonials.length) return; if (this.$element.hasClass("premium-testimonial__equal-yes")) { this.runEqualHeight(); } var settings = this.getElementSettings(), skin = settings.skin, carousel = 'skin4' !== skin ? settings.carousel : true; if (carousel) { // var $testimonials = this.elements.$testimonials; // if ('skin1' === skin) { // var imgPosition = settings.img_position; // if ('absolute' === imgPosition) { // $testimonials.css('margin-top', '80px') // } // } else if ('skin4' === skin) { // $testimonials.css('margin-bottom', '20px'); // } var slickSettings = this.getSlickSettings(); if ('skin4' === skin) slickSettings.infinite = false; $multipleTestimonials.slick(slickSettings); if ('skin4' === skin) { var $skinCarousel = this.$element.find('.premium-testimonial__carousel'); $skinCarousel.slick({ slidesToScroll: 1, slidesToShow: 3, arrows: false, centerMode: true, centerPadding: 0, infinite: false, speed: 500, autoplay: settings.carousel_play, autoplaySpeed: settings.speed || 5000, }); $multipleTestimonials.slick('slickGoTo', 1); $skinCarousel.slick('slickGoTo', 1); this.$element.find('.premium-testimonial__carousel-img').on('click', function () { var slideIndex = $(this).data("index"); $multipleTestimonials.slick('slickGoTo', slideIndex); $skinCarousel.slick('slickGoTo', slideIndex); }); this.$element.hover(function () { $skinCarousel.slick('slickPause'); $multipleTestimonials.slick('slickPause'); }, function () { $skinCarousel.slick('slickPlay'); $multipleTestimonials.slick('slickPlay'); }); } } } }); elementorFrontend.elementsHandler.attachHandler('premium-addon-testimonials', PremiumTestimonialsHandler); }); })(jQuery);