Plugin Directory

Changeset 3221633


Ignore:
Timestamp:
01/13/2025 02:10:56 PM (15 months ago)
Author:
uapp
Message:

Updated the plugin version to 11.4.0

Location:
testimonials-carousel-elementor/trunk
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • testimonials-carousel-elementor/trunk/assets/js/testimonials-carousel-widget-handler.min.js

    r3146245 r3221633  
    1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function _callSuper(e,t,o){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,o||[],_getPrototypeOf(e).constructor):t.apply(e,o))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function disableReadMoreBtn(e,s){e.forEach(function(e){var t=e.querySelector(".slide-description"),o=e.closest(".swiper-slide").querySelector(".slide-read-more"),n=t.offsetHeight,i=parseInt(t.style.lineHeight),e=e.parentNode;n/i<s?o.classList.add("disable-button"):(t.classList.add("crop-content"),e.classList.contains("quote")?o.addEventListener("click",openFullInfoGallery):e.classList.contains("thumbnails-content")?o.addEventListener("click",openFullInfoThumbnails):o.addEventListener("click",openFullInfo))})}function openFullInfoGallery(){var t=document.querySelector(".myGallery .testimonial").swiper,e=this.closest(".testimonial .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function toggleReadMoreContent(e,i){e.forEach(function(e){var t=e.querySelector(".blog-slider__text"),o=e.closest(".swiper-slide").querySelector(".read-more-btn"),e=t.offsetHeight/parseInt(t.style.lineHeight),n=o.getAttribute("data-text");o.getAttribute("href")||(e<i?o.classList.add("disable-button"):(t.classList.add("crop-content"),o.addEventListener("click",function(){t.classList.contains("crop-content")?(t.classList.remove("crop-content"),o.textContent="Hide"):(t.classList.add("crop-content"),o.textContent=n)})))})}function openFullInfoThumbnails(){var t=document.querySelector(".myTestimonialsThumbnail .thumbnail__slider_1").swiper,e=this.closest(".thumbnail__slider_1 .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body"),e=(i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,n.querySelector(".thumbnail__image")),n=n.querySelector(".slide-read-more");e&&e.remove(),n&&n.remove(),o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function openFullInfo(){var t=document.querySelector(".myTestimonials").swiper,e=this.closest("li"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.getElementsByClassName("slider-modal-container-info")[0],i=document.querySelector("body");i.classList.add("hidden-scroll"),document.querySelector(".myTestimonials")&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),document.querySelector(".myTestimonials")&&t.autoplay.start()})})}function initializeSlider(e,s,t,r){document.querySelectorAll(".mySwiperGalleryCoverflow").forEach(function(e,t){e.querySelector(".gallery-thumbs").setAttribute("id","Gallery-".concat(t));var e=e.querySelector(".testimonial"),e=(e.setAttribute("id","Testimonial-".concat(t)),e.querySelector(".swiper-gallery-coverflow-buttons-block")),o=document.createElement("div"),n=(o.setAttribute("class","swiper-pagination"),o.setAttribute("id","Pagination-".concat(t)),e.appendChild(o),{}),e={delay:r.autoplaySpeed,disableOnInteraction:!0},o=("no"===r.autoplay&&(e=!1),{}),i=(n["Gallery-".concat(t)]=new Swiper("#Gallery-".concat(t),{effect:"coverflow",grabCursor:!0,centeredSlides:!0,speed:r.slidesSpeed,coverflowEffect:{rotate:r.rotate,stretch:r.stretch,depth:r.depth,modifier:r.modifier,slideShadows:"yes"===r.slideShadows},breakpoints:{320:{slidesPerView:3===s.slidesToShowMobile?2:s.slidesToShowMobile},768:{slidesPerView:3===s.slidesToShowTablet?2:s.slidesToShowTablet},1024:{slidesPerView:3===s.slidesToShow?2:s.slidesToShow}},onclick:{function:function(e){e=e.target.getAttribute("data-swiper-slide-index");e&&"thumbs"===r.slidesController&&n["Testimonial-".concat(t)].slideTo(e)}}}),"thumbs"===r.slidesController&&(o={swiper:n["Gallery-".concat(t)]}),{el:".swiper-pagination",type:"bullets",clickable:!0});"dots"!==r.pagination&&(i={el:".swiper-pagination-disabled",type:"bullets"}),n["Testimonial-".concat(t)]=new Swiper("#Testimonial-".concat(t),{autoplay:e,speed:r.slidesSpeed,pagination:i,thumbs:o,breakpoints:{320:{direction:r.slidesDirectionMobile},768:{direction:r.slidesDirectionTablet},1024:{direction:r.slidesDirection}},on:{slideChange:function(){"thumbs"===r.slidesController&&n["Gallery-".concat(t)].slideTo(this.activeIndex)}}}),"control"===r.slidesController&&(n["Testimonial-".concat(t)].controller.control=n["Gallery-".concat(t)],n["Gallery-".concat(t)].controller.control=n["Testimonial-".concat(t)])})}function initializeCubeSlider(e,t,o,n){new Swiper("#".concat(e),{effect:"cube",grabCursor:!0,loop:!0,speed:n.slidesSpeed,freeMode:!0,cubeEffect:{shadow:"yes"===n.slideShadows,slideShadows:!0,shadowOffset:n.shadowOffset,shadowScale:n.shadowScale},autoplay:{delay:n.autoplaySpeed,pauseOnMouseEnter:"yes"===n.pauseOnMouseEnter,disableOnInteraction:!1,reverseDirection:"yes"===n.reverseDirection},breakpoints:{320:{spaceBetween:0},768:{spaceBetween:0},1024:{spaceBetween:0}}})}function initializeCreativeSlider(e,t,o,n){var i=document.querySelectorAll(".creative"),s={delay:n.autoplaySpeed,disableOnInteraction:!0};"no"===n.autoplay&&(s=!1),i.forEach(function(o){var e=o.querySelector(".mySwiperCreative");new Swiper(e,{grabCursor:!1,loop:"yes"===n.sliderLoop,noSwiping:!0,speed:n.slidesSpeed,noSwipingClass:"swiper-slide",autoplay:s,effect:"creative",creativeEffect:{prev:{shadow:!1,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:o.querySelector(".swiper-pagination"),type:"fraction"},navigation:{nextEl:o.querySelector(".swiper-button-next"),prevEl:o.querySelector(".swiper-button-prev")},on:{slideChange:function(){var e,t=this.slides[this.activeIndex].id,t=o.parentElement.querySelector('.creative__slide-content[data-id="'+t+'"]');t&&((e=o.parentElement.querySelector(".creative__slide-content.active"))&&e.classList.remove("active"),t.classList.add("active"))}}})})}function startSlider(e,t,o,m){var n={delay:m.autoplaySpeed,disableOnInteraction:!0};"no"===m.autoplay&&(n=!1);var i,p,s={el:".swiper-pagination",type:"bullets",clickable:!0},r=("dots"===m.pagination||"both"===m.pagination||(s={el:".swiper-pagination-disabled",type:"bullets"}),""),l=(document.getElementById(e).classList.contains("mySwiperBottom")&&(r={centeredSlides:!0}),""),a=(document.getElementById(e).classList.contains("mySwiperCoverflow")||(l={320:{slidesPerGroup:o.slidesToScrollMobile,slidesPerView:t.slidesToShowMobile,spaceBetween:0},768:{slidesPerGroup:o.slidesToScrollTablet,slidesPerView:t.slidesToShowTablet,spaceBetween:20},1024:{slidesPerGroup:o.slidesToScroll,slidesPerView:t.slidesToShow,spaceBetween:30}}),""),d="";document.getElementById(e).classList.contains("mySwiperCoverflow")&&(d="coverflow",a={rotate:m.rotate,stretch:m.stretch,depth:m.depth,modifier:m.modifier,slideShadows:"yes"===m.slideShadows},r={centeredSlides:!0},l={320:{slidesPerView:t.slidesToShowMobile},768:{slidesPerView:t.slidesToShowTablet},1024:{slidesPerView:t.slidesToShow}}),document.getElementById(e).classList.contains("myBlog")&&(d="fade",l={320:{slidesPerView:1,spaceBetween:30},768:{slidesPerView:1,spaceBetween:30},1024:{slidesPerView:1,spaceBetween:30}}),document.getElementById(e).classList.contains("mySwiperGalleryCoverflow")?document.querySelectorAll(".swiper").forEach(function(e){initializeSlider(e.id,t,o,m)}):document.getElementById(e).classList.contains("mySwiperCube")?initializeCubeSlider(e,t,o,m):document.getElementById(e).classList.contains("mySwiperCreative")?initializeCreativeSlider(e,t,o,m):document.getElementById(e).classList.contains("myCube-360")?(i=document.querySelectorAll(".myCube-360"),p=document.getElementById(e).querySelector(".cube-interactive"),i.forEach(function(t){var o,n,i=!1,s=m.startCoordinateX,r=m.startCoordinateY,l=m.rotationSpeed,a=!0,d=t.querySelector(".cube");function e(e){i=!0;e=e.touches?e.touches[0]:e;o=e.clientX,n=e.clientY,a=!1,"yes"===m.cursorGrab&&(t.style.cursor="grabbing"),p&&(p.style.opacity="0",setTimeout(function(){p.style.display="none"},300))}function c(e){var t;i&&(t=(e=e.touches?e.touches[0]:e).clientX,e=e.clientY,u(s-=(e-n)*l,r+=(t-o)*l),o=t,n=e)}function u(e,t){d.style.transform="rotateX(".concat(e,"deg) rotateY(").concat(t,"deg)")}d.style.transform="rotateX(".concat(s,"deg) rotateY(").concat(r,"deg)"),"yes"===m.cursorGrab&&(t.style.cursor="grab"),"yes"===m.animationEnable&&function e(){a&&("yes"===m.animationRotationX&&(s+=m.animationSpeed),"yes"===m.animationRotationY&&(r+=m.animationSpeed),u(s,r)),requestAnimationFrame(e)}(),t.addEventListener("mousedown",e),t.addEventListener("mouseup",function(){i=!1,"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("mousemove",c),t.addEventListener("mouseenter",function(){return a=!1}),t.addEventListener("mouseleave",function(){a=!(i=!1),"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("touchstart",e),t.addEventListener("touchend",function(){return i=!1}),t.addEventListener("touchmove",c)})):document.getElementById(e).classList.contains("myTestimonialsThumbnail")?initThumbnailsSwipers(e,m):new Swiper("#".concat(e),{effect:d,coverflowEffect:a,loop:"yes"===m.sliderLoop,centeredSlides:r,loopFillGroupWithBlank:!1,autoplay:n,breakpoints:l,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:s})}function initThumbnailsSwipers(e,t){var o={delay:t.autoplaySpeed,disableOnInteraction:!0},n=("no"===t.autoplay&&(o=!1),document.getElementById(e).querySelector(".thumbnail__slider_1")),i=document.getElementById(e).querySelector(".thumbnail__slider_2"),i=new Swiper(i,{slidesPerView:"auto",spaceBetween:24,centeredSlides:!0,loop:"yes"===t.sliderLoop,slideToClickedSlide:!0}),n=new Swiper(n,{grabCursor:!0,slidesPerView:1,centeredSlides:!0,loop:"yes"===t.sliderLoop,loopedSlides:4,spaceBetween:48,speed:t.slidesSpeed,autoplay:o,pagination:{el:document.getElementById(e).querySelector(".swiper-pagination"),clickable:!0},navigation:{nextEl:document.getElementById(e).querySelector(".swiper-button-next"),prevEl:document.getElementById(e).querySelector(".swiper-button-prev")}});(n.controller.control=i).controller.control=n}var TestimonialsCarouselWidgetHandler=function(){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,elementorModules.frontend.handlers.Base),_createClass(e,[{key:"updateSliderWidgetContent",value:function(){var e=this.$element[0].getElementsByClassName("mySwiper")[0];if(e.querySelectorAll("li:not(.slider-container-background)"))for(var t=e.querySelectorAll("li:not(.slider-container-background)"),o=0;o<t.length;o++)t[o].remove();var n={slidesToShow:Number(this.getElementSettings("slides_to_show"))||3,slidesToShowTablet:Number(this.getElementSettings("slides_to_show_tablet"))||2,slidesToShowMobile:Number(this.getElementSettings("slides_to_show_mobile"))||1},i={slidesToScroll:Number(this.getElementSettings("slides_to_scroll"))||n.slidesToShow,slidesToScrollTablet:Number(this.getElementSettings("slides_to_scroll_tablet"))||n.slidesToShowTablet,slidesToScrollMobile:Number(this.getElementSettings("slides_to_scroll_mobile"))||n.slidesToShowMobile},s={pagination:this.getElementSettings("navigation")||"both",autoplay:this.getElementSettings("autoplay")||"yes",autoplaySpeed:this.getElementSettings("autoplay_speed")||5e3,rotate:this.getElementSettings("rotate")||0,stretch:this.getElementSettings("stretch")||0,depth:this.getElementSettings("depth")||20,modifier:this.getElementSettings("modifier")||3,slideShadows:this.getElementSettings("slideshadows")||!0,sliderLoop:this.getElementSettings("sliderloop")||!0,sliderRotate:this.getElementSettings("sliderrotate-myswiper")||!0,slidesDirection:this.getElementSettings("direction-myswiper")||"vertical",slidesDirectionTablet:this.getElementSettings("direction-myswiper-tablet")||this.getElementSettings("direction-myswiper"),slidesDirectionMobile:this.getElementSettings("direction-myswiper-mobile")||this.getElementSettings("direction-myswiper"),slidesController:this.getElementSettings("controller-myswiper")||"control",slidesSpeed:this.getElementSettings("speed-myswiper")||500,showLineText:this.getElementSettings("showlinetext-myswiper")||7,shadowOffset:this.getElementSettings("slidershadowoffset-myswiper")||10,shadowScale:this.getElementSettings("slidershadowscale-myswiper")||.94,pauseOnMouseEnter:this.getElementSettings("sliderpausemouse-myswiper")||!0,reverseDirection:this.getElementSettings("sliderrevercedirection-myswiper")||!1,animationEnable:this.getElementSettings("animationenable-myswiper")||!0,animationRotationX:this.getElementSettings("animationrotationx-myswiper")||!0,animationRotationY:this.getElementSettings("animationrotationy-myswiper")||!0,cursorGrab:this.getElementSettings("cursorgrabenable-myswiper")||!0,animationSpeed:this.getElementSettings("animationspeed-myswiper")||.5,rotationSpeed:this.getElementSettings("rotationspeed-myswiper")||.5,startCoordinateX:this.getElementSettings("startcoordinatex-myswiper")||-23,startCoordinateY:this.getElementSettings("startcoordinatey-myswiper")||33};startSlider(e.id,n,i,s),disableReadMoreBtn(e.querySelectorAll(".slide-content"),s.showLineText),toggleReadMoreContent(e.querySelectorAll(".blog-slider__content"),s.showLineText)}},{key:"onInit",value:function(){var e=document.querySelectorAll(".mySwiper"),t=1;e.forEach(function(e){e.setAttribute("id","mySwiper-".concat(t)),t++}),this.updateSliderWidgetContent()}}])}();window.addEventListener("elementor/frontend/init",function(){function e(e){elementorFrontend.elementsHandler.addHandler(TestimonialsCarouselWidgetHandler,{$element:e})}elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-logo.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-centered.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-bottom.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-coverflow.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-gallery-coverflow.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-employees.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-blog.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-creative.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube-360.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube-360.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-thumbnails.default",e)});
     1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function _callSuper(e,t,o){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,o||[],_getPrototypeOf(e).constructor):t.apply(e,o))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function disableReadMoreBtn(e,s){e.forEach(function(e){var t=e.querySelector(".slide-description"),o=e.closest(".swiper-slide").querySelector(".slide-read-more"),n=t.offsetHeight,i=parseInt(t.style.lineHeight),e=e.parentNode;n/i<s?o.classList.add("disable-button"):(t.classList.add("crop-content"),e.classList.contains("quote")?o.addEventListener("click",openFullInfoGallery):e.classList.contains("thumbnails-content")?o.addEventListener("click",openFullInfoThumbnails):o.addEventListener("click",openFullInfo))})}function openFullInfoGallery(){var t=document.querySelector(".myGallery .testimonial").swiper,e=this.closest(".testimonial .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function toggleReadMoreContent(e,i){e.forEach(function(e){var t=e.querySelector(".blog-slider__text"),o=e.closest(".swiper-slide").querySelector(".read-more-btn"),e=t.offsetHeight/parseInt(t.style.lineHeight),n=o.getAttribute("data-text");o.getAttribute("href")||(e<i?o.classList.add("disable-button"):(t.classList.add("crop-content"),o.addEventListener("click",function(){t.classList.contains("crop-content")?(t.classList.remove("crop-content"),o.textContent="Hide"):(t.classList.add("crop-content"),o.textContent=n)})))})}function openFullInfoThumbnails(){var t=document.querySelector(".myTestimonialsThumbnail .thumbnail__slider_1").swiper,e=this.closest(".thumbnail__slider_1 .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body"),e=(i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,n.querySelector(".thumbnail__image")),n=n.querySelector(".slide-read-more");e&&e.remove(),n&&n.remove(),o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function openFullInfo(){var t=document.querySelector(".myTestimonials").swiper,e=this.closest("li"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],n=o.getElementsByClassName("slider-modal-container-info")[0],i=document.querySelector("body");i.classList.add("hidden-scroll"),document.querySelector(".myTestimonials")&&t.autoplay.stop(),o.classList.add("open"),n.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),document.querySelector(".myTestimonials")&&t.autoplay.start()})})}function initializeSlider(e,s,t,r){document.querySelectorAll(".mySwiperGalleryCoverflow").forEach(function(e,t){e.querySelector(".gallery-thumbs").setAttribute("id","Gallery-".concat(t));var e=e.querySelector(".testimonial"),e=(e.setAttribute("id","Testimonial-".concat(t)),e.querySelector(".swiper-gallery-coverflow-buttons-block")),o=document.createElement("div"),n=(o.setAttribute("class","swiper-pagination"),o.setAttribute("id","Pagination-".concat(t)),e.appendChild(o),{}),e={delay:r.autoplaySpeed,disableOnInteraction:"yes"===r.sliderDisabledInteraction},o=("no"===r.autoplay&&(e=!1),{}),i=(n["Gallery-".concat(t)]=new Swiper("#Gallery-".concat(t),{effect:"coverflow",grabCursor:!0,centeredSlides:!0,speed:r.slidesSpeed,coverflowEffect:{rotate:r.rotate,stretch:r.stretch,depth:r.depth,modifier:r.modifier,slideShadows:"yes"===r.slideShadows},breakpoints:{320:{slidesPerView:3===s.slidesToShowMobile?2:s.slidesToShowMobile},768:{slidesPerView:3===s.slidesToShowTablet?2:s.slidesToShowTablet},1024:{slidesPerView:3===s.slidesToShow?2:s.slidesToShow}},onclick:{function:function(e){e=e.target.getAttribute("data-swiper-slide-index");e&&"thumbs"===r.slidesController&&n["Testimonial-".concat(t)].slideTo(e)}}}),"thumbs"===r.slidesController&&(o={swiper:n["Gallery-".concat(t)]}),{el:".swiper-pagination",type:"bullets",clickable:!0});"dots"!==r.pagination&&(i={el:".swiper-pagination-disabled",type:"bullets"}),n["Testimonial-".concat(t)]=new Swiper("#Testimonial-".concat(t),{autoplay:e,speed:r.slidesSpeed,pagination:i,thumbs:o,breakpoints:{320:{direction:r.slidesDirectionMobile},768:{direction:r.slidesDirectionTablet},1024:{direction:r.slidesDirection}},on:{slideChange:function(){"thumbs"===r.slidesController&&n["Gallery-".concat(t)].slideTo(this.activeIndex)}}}),"control"===r.slidesController&&(n["Testimonial-".concat(t)].controller.control=n["Gallery-".concat(t)],n["Gallery-".concat(t)].controller.control=n["Testimonial-".concat(t)])})}function initializeCubeSlider(e,t,o,n){new Swiper("#".concat(e),{effect:"cube",grabCursor:!0,loop:!0,speed:n.slidesSpeed,freeMode:!0,cubeEffect:{shadow:"yes"===n.slideShadows,slideShadows:!0,shadowOffset:n.shadowOffset,shadowScale:n.shadowScale},autoplay:{delay:n.autoplaySpeed,pauseOnMouseEnter:"yes"===n.pauseOnMouseEnter,disableOnInteraction:"yes"===n.sliderDisabledInteraction,reverseDirection:"yes"===n.reverseDirection},breakpoints:{320:{spaceBetween:0},768:{spaceBetween:0},1024:{spaceBetween:0}}})}function initializeCreativeSlider(e,t,o,n){var i=document.querySelectorAll(".creative"),s={delay:n.autoplaySpeed,disableOnInteraction:"yes"===n.sliderDisabledInteraction};"no"===n.autoplay&&(s=!1),i.forEach(function(o){var e=o.querySelector(".mySwiperCreative");new Swiper(e,{grabCursor:!1,loop:"yes"===n.sliderLoop,noSwiping:!0,speed:n.slidesSpeed,noSwipingClass:"swiper-slide",autoplay:s,effect:"creative",creativeEffect:{prev:{shadow:!1,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:o.querySelector(".swiper-pagination"),type:"fraction"},navigation:{nextEl:o.querySelector(".swiper-button-next"),prevEl:o.querySelector(".swiper-button-prev")},on:{slideChange:function(){var e,t=this.slides[this.activeIndex].id,t=o.parentElement.querySelector('.creative__slide-content[data-id="'+t+'"]');t&&((e=o.parentElement.querySelector(".creative__slide-content.active"))&&e.classList.remove("active"),t.classList.add("active"))}}})})}function startSlider(e,t,o,m){var n={delay:m.autoplaySpeed,disableOnInteraction:"yes"===m.sliderDisabledInteraction};"no"===m.autoplay&&(n=!1);var i,p,s={el:".swiper-pagination",type:"bullets",clickable:!0},r=("dots"===m.pagination||"both"===m.pagination||(s={el:".swiper-pagination-disabled",type:"bullets"}),""),l=(document.getElementById(e).classList.contains("mySwiperBottom")&&(r={centeredSlides:!0}),""),a=(document.getElementById(e).classList.contains("mySwiperCoverflow")||(l={320:{slidesPerGroup:o.slidesToScrollMobile,slidesPerView:t.slidesToShowMobile,spaceBetween:0},768:{slidesPerGroup:o.slidesToScrollTablet,slidesPerView:t.slidesToShowTablet,spaceBetween:20},1024:{slidesPerGroup:o.slidesToScroll,slidesPerView:t.slidesToShow,spaceBetween:30}}),""),d="";document.getElementById(e).classList.contains("mySwiperCoverflow")&&(d="coverflow",a={rotate:m.rotate,stretch:m.stretch,depth:m.depth,modifier:m.modifier,slideShadows:"yes"===m.slideShadows},r={centeredSlides:!0},l={320:{slidesPerView:t.slidesToShowMobile},768:{slidesPerView:t.slidesToShowTablet},1024:{slidesPerView:t.slidesToShow}}),document.getElementById(e).classList.contains("myBlog")&&(d="fade",l={320:{slidesPerView:1,spaceBetween:30},768:{slidesPerView:1,spaceBetween:30},1024:{slidesPerView:1,spaceBetween:30}}),document.getElementById(e).classList.contains("mySwiperGalleryCoverflow")?document.querySelectorAll(".swiper").forEach(function(e){initializeSlider(e.id,t,o,m)}):document.getElementById(e).classList.contains("mySwiperCube")?initializeCubeSlider(e,t,o,m):document.getElementById(e).classList.contains("mySwiperCreative")?initializeCreativeSlider(e,t,o,m):document.getElementById(e).classList.contains("myCube-360")?(i=document.querySelectorAll(".myCube-360"),p=document.getElementById(e).querySelector(".cube-interactive"),i.forEach(function(t){var o,n,i=!1,s=m.startCoordinateX,r=m.startCoordinateY,l=m.rotationSpeed,a=!0,d=t.querySelector(".cube");function e(e){i=!0;e=e.touches?e.touches[0]:e;o=e.clientX,n=e.clientY,a=!1,"yes"===m.cursorGrab&&(t.style.cursor="grabbing"),p&&(p.style.opacity="0",setTimeout(function(){p.style.display="none"},300))}function c(e){var t;i&&(t=(e=e.touches?e.touches[0]:e).clientX,e=e.clientY,u(s-=(e-n)*l,r+=(t-o)*l),o=t,n=e)}function u(e,t){d.style.transform="rotateX(".concat(e,"deg) rotateY(").concat(t,"deg)")}d.style.transform="rotateX(".concat(s,"deg) rotateY(").concat(r,"deg)"),"yes"===m.cursorGrab&&(t.style.cursor="grab"),"yes"===m.animationEnable&&function e(){a&&("yes"===m.animationRotationX&&(s+=m.animationSpeed),"yes"===m.animationRotationY&&(r+=m.animationSpeed),u(s,r)),requestAnimationFrame(e)}(),t.addEventListener("mousedown",e),t.addEventListener("mouseup",function(){i=!1,"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("mousemove",c),t.addEventListener("mouseenter",function(){return a=!1}),t.addEventListener("mouseleave",function(){a=!(i=!1),"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("touchstart",e),t.addEventListener("touchend",function(){return i=!1}),t.addEventListener("touchmove",c)})):document.getElementById(e).classList.contains("myTestimonialsThumbnail")?initThumbnailsSwipers(e,m):new Swiper("#".concat(e),{effect:d,coverflowEffect:a,loop:"yes"===m.sliderLoop,centeredSlides:r,loopFillGroupWithBlank:!1,autoplay:n,breakpoints:l,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:s})}function initThumbnailsSwipers(e,t){var o={delay:t.autoplaySpeed,disableOnInteraction:"yes"===t.sliderDisabledInteraction},n=("no"===t.autoplay&&(o=!1),document.getElementById(e).querySelector(".thumbnail__slider_1")),i=document.getElementById(e).querySelector(".thumbnail__slider_2"),i=new Swiper(i,{slidesPerView:"auto",spaceBetween:24,centeredSlides:!0,loop:"yes"===t.sliderLoop,slideToClickedSlide:!0}),n=new Swiper(n,{grabCursor:!0,slidesPerView:1,centeredSlides:!0,loop:"yes"===t.sliderLoop,loopedSlides:4,spaceBetween:48,speed:t.slidesSpeed,autoplay:o,pagination:{el:document.getElementById(e).querySelector(".swiper-pagination"),clickable:!0},navigation:{nextEl:document.getElementById(e).querySelector(".swiper-button-next"),prevEl:document.getElementById(e).querySelector(".swiper-button-prev")}});(n.controller.control=i).controller.control=n}var TestimonialsCarouselWidgetHandler=function(){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,elementorModules.frontend.handlers.Base),_createClass(e,[{key:"updateSliderWidgetContent",value:function(){var e=this.$element[0].getElementsByClassName("mySwiper")[0];if(e.querySelectorAll("li:not(.slider-container-background)"))for(var t=e.querySelectorAll("li:not(.slider-container-background)"),o=0;o<t.length;o++)t[o].remove();var n={slidesToShow:Number(this.getElementSettings("slides_to_show"))||3,slidesToShowTablet:Number(this.getElementSettings("slides_to_show_tablet"))||2,slidesToShowMobile:Number(this.getElementSettings("slides_to_show_mobile"))||1},i={slidesToScroll:Number(this.getElementSettings("slides_to_scroll"))||n.slidesToShow,slidesToScrollTablet:Number(this.getElementSettings("slides_to_scroll_tablet"))||n.slidesToShowTablet,slidesToScrollMobile:Number(this.getElementSettings("slides_to_scroll_mobile"))||n.slidesToShowMobile},s={pagination:this.getElementSettings("navigation")||"both",autoplay:this.getElementSettings("autoplay")||"yes",autoplaySpeed:this.getElementSettings("autoplay_speed")||5e3,rotate:this.getElementSettings("rotate")||0,stretch:this.getElementSettings("stretch")||0,depth:this.getElementSettings("depth")||20,modifier:this.getElementSettings("modifier")||3,slideShadows:this.getElementSettings("slideshadows")||!0,sliderLoop:this.getElementSettings("sliderloop")||!0,sliderDisabledInteraction:this.getElementSettings("sliderdisableoninteraction")||!0,sliderRotate:this.getElementSettings("sliderrotate-myswiper")||!0,slidesDirection:this.getElementSettings("direction-myswiper")||"vertical",slidesDirectionTablet:this.getElementSettings("direction-myswiper-tablet")||this.getElementSettings("direction-myswiper"),slidesDirectionMobile:this.getElementSettings("direction-myswiper-mobile")||this.getElementSettings("direction-myswiper"),slidesController:this.getElementSettings("controller-myswiper")||"control",slidesSpeed:this.getElementSettings("speed-myswiper")||500,showLineText:this.getElementSettings("showlinetext-myswiper")||7,shadowOffset:this.getElementSettings("slidershadowoffset-myswiper")||10,shadowScale:this.getElementSettings("slidershadowscale-myswiper")||.94,pauseOnMouseEnter:this.getElementSettings("sliderpausemouse-myswiper")||!0,reverseDirection:this.getElementSettings("sliderrevercedirection-myswiper")||!1,animationEnable:this.getElementSettings("animationenable-myswiper")||!0,animationRotationX:this.getElementSettings("animationrotationx-myswiper")||!0,animationRotationY:this.getElementSettings("animationrotationy-myswiper")||!0,cursorGrab:this.getElementSettings("cursorgrabenable-myswiper")||!0,animationSpeed:this.getElementSettings("animationspeed-myswiper")||.5,rotationSpeed:this.getElementSettings("rotationspeed-myswiper")||.5,startCoordinateX:this.getElementSettings("startcoordinatex-myswiper")||-23,startCoordinateY:this.getElementSettings("startcoordinatey-myswiper")||33};startSlider(e.id,n,i,s),disableReadMoreBtn(e.querySelectorAll(".slide-content"),s.showLineText),toggleReadMoreContent(e.querySelectorAll(".blog-slider__content"),s.showLineText)}},{key:"onInit",value:function(){var e=document.querySelectorAll(".mySwiper"),t=1;e.forEach(function(e){e.setAttribute("id","mySwiper-".concat(t)),t++}),this.updateSliderWidgetContent()}}])}();window.addEventListener("elementor/frontend/init",function(){function e(e){elementorFrontend.elementsHandler.addHandler(TestimonialsCarouselWidgetHandler,{$element:e})}elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-logo.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-centered.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-bottom.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-coverflow.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-gallery-coverflow.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-employees.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-blog.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-creative.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube-360.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube-360.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-thumbnails.default",e)});
  • testimonials-carousel-elementor/trunk/assets/js/testimonials-carousel-widget-old-elementor-handler.min.js

    r3146245 r3221633  
    1 "use strict";!function(e){function c(){var t=document.querySelector(".myGallery .testimonial").swiper,e=this.closest(".testimonial .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function u(){var t=document.querySelector(".myTestimonialsThumbnail .thumbnail__slider_1").swiper,e=this.closest(".thumbnail__slider_1 .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body"),e=(i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,s.querySelector(".thumbnail__image")),s=s.querySelector(".slide-read-more");e&&e.remove(),s&&s.remove(),o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function m(){var t=document.querySelector(".myTestimonials").swiper,e=this.closest("li"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.getElementsByClassName("slider-modal-container-info")[0],i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function p(e,t,o,m){var s={delay:m.autoplaySpeed,disableOnInteraction:!0};"no"===m.autoplay&&(s=!1);var p,i,n,a,l,r,d,c,u,y={el:".swiper-pagination",type:"bullets",clickable:!0},w=("dots"===m.pagination||"both"===m.pagination||(y={el:".swiper-pagination-disabled",type:"bullets"}),""),f=(document.getElementById(e).classList.contains("mySwiperBottom")&&(w={centeredSlides:!0}),""),o=(document.getElementById(e).classList.contains("mySwiperCoverflow")||(f={320:{slidesPerGroup:o.slidesToScrollMobile,slidesPerView:t.slidesToShowMobile,spaceBetween:0},768:{slidesPerGroup:o.slidesToScrollTablet,slidesPerView:t.slidesToShowTablet,spaceBetween:20},1024:{slidesPerGroup:o.slidesToScroll,slidesPerView:t.slidesToShow,spaceBetween:30}}),""),h="";document.getElementById(e).classList.contains("mySwiperCoverflow")&&(h="coverflow",o={rotate:m.rotate,stretch:m.stretch,depth:m.depth,modifier:m.modifier,slideShadows:"yes"===m.slideShadows},w={centeredSlides:!0},f={320:{slidesPerView:t.slidesToShowMobile},768:{slidesPerView:t.slidesToShowTablet},1024:{slidesPerView:t.slidesToShow}}),document.getElementById(e).classList.contains("myBlog")&&(h="fade",f={320:{slidesPerView:1,spaceBetween:30},768:{slidesPerView:1,spaceBetween:30},1024:{slidesPerView:1,spaceBetween:30}}),document.getElementById(e).classList.contains("mySwiperGalleryCoverflow")?document.querySelectorAll(".swiper").forEach(function(e){var n,a;e.id;n=t,a=m,document.querySelectorAll(".mySwiperGalleryCoverflow").forEach(function(e,t){e.querySelector(".gallery-thumbs").setAttribute("id","Gallery-".concat(t));var e=e.querySelector(".testimonial"),e=(e.setAttribute("id","Testimonial-".concat(t)),e.querySelector(".swiper-gallery-coverflow-buttons-block")),o=document.createElement("div"),s=(o.setAttribute("class","swiper-pagination"),o.setAttribute("id","Pagination-".concat(t)),e.appendChild(o),{}),e={delay:a.autoplaySpeed,disableOnInteraction:!0},o=("no"===a.autoplay&&(e=!1),{}),i=(s["Gallery-".concat(t)]=new Swiper("#Gallery-".concat(t),{effect:"coverflow",grabCursor:!0,speed:a.slidesSpeed,centeredSlides:!0,coverflowEffect:{rotate:a.rotate,stretch:a.stretch,depth:a.depth,modifier:a.modifier,slideShadows:"yes"===a.slideShadows},breakpoints:{320:{slidesPerView:3===n.slidesToShowMobile?2:n.slidesToShowMobile},768:{slidesPerView:3===n.slidesToShowTablet?2:n.slidesToShowTablet},1024:{slidesPerView:3===n.slidesToShow?2:n.slidesToShow}},onclick:{function:function(e){e=e.target.getAttribute("data-swiper-slide-index");e&&"thumbs"===a.slidesController&&s["Testimonial-".concat(t)].slideTo(e)}}}),"thumbs"===a.slidesController&&(o={swiper:s["Gallery-".concat(t)]}),{el:".swiper-pagination",type:"bullets",clickable:!0});"dots"!==a.pagination&&(i={el:".swiper-pagination-disabled",type:"bullets"}),s["Testimonial-".concat(t)]=new Swiper("#Testimonial-".concat(t),{autoplay:e,speed:a.slidesSpeed,pagination:i,thumbs:o,breakpoints:{320:{direction:a.slidesDirectionMobile},768:{direction:a.slidesDirectionTablet},1024:{direction:a.slidesDirection}},on:{slideChange:function(){"thumbs"===a.slidesController&&s["Gallery-".concat(t)].slideTo(this.activeIndex)}}}),"control"===a.slidesController&&(s["Testimonial-".concat(t)].controller.control=s["Gallery-".concat(t)],s["Gallery-".concat(t)].controller.control=s["Testimonial-".concat(t)])})}):document.getElementById(e).classList.contains("mySwiperCube")?(u=m,new Swiper("#".concat(e),{effect:"cube",grabCursor:!0,loop:!0,speed:u.slidesSpeed,freeMode:!0,cubeEffect:{shadow:"yes"===u.slideShadows,slideShadows:!0,shadowOffset:u.shadowOffset,shadowScale:u.shadowScale},autoplay:{delay:u.autoplaySpeed,pauseOnMouseEnter:"yes"===u.pauseOnMouseEnter,disableOnInteraction:!1,reverseDirection:"yes"===u.reverseDirection},breakpoints:{320:{spaceBetween:0},768:{spaceBetween:0},1024:{spaceBetween:0}}})):document.getElementById(e).classList.contains("mySwiperCreative")?(d=m,u=document.querySelectorAll(".creative"),c={delay:d.autoplaySpeed,disableOnInteraction:!0},"no"===d.autoplay&&(c=!1),u.forEach(function(o){var e=o.querySelector(".mySwiperCreative");new Swiper(e,{grabCursor:!1,loop:"yes"===d.sliderLoop,noSwiping:!0,speed:d.slidesSpeed,noSwipingClass:"swiper-slide",autoplay:c,effect:"creative",creativeEffect:{prev:{shadow:!1,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:o.querySelector(".swiper-pagination"),type:"fraction"},navigation:{nextEl:o.querySelector(".swiper-button-next"),prevEl:o.querySelector(".swiper-button-prev")},on:{slideChange:function(){var e,t=this.slides[this.activeIndex].id,t=o.parentElement.querySelector('.creative__slide-content[data-id="'+t+'"]');t&&((e=o.parentElement.querySelector(".creative__slide-content.active"))&&e.classList.remove("active"),t.classList.add("active"))}}})})):document.getElementById(e).classList.contains("myCube-360")?(i=document.querySelectorAll(".myCube-360"),p=document.getElementById(e).querySelector(".cube-interactive"),i.forEach(function(t){var o,s,i=!1,n=m.startCoordinateX,a=m.startCoordinateY,l=m.rotationSpeed,r=!0,d=t.querySelector(".cube");function e(e){i=!0;e=e.touches?e.touches[0]:e;o=e.clientX,s=e.clientY,r=!1,"yes"===m.cursorGrab&&(t.style.cursor="grabbing"),p&&(p.style.opacity="0",setTimeout(function(){p.style.display="none"},300))}function c(e){var t;i&&(t=(e=e.touches?e.touches[0]:e).clientX,e=e.clientY,u(n-=(e-s)*l,a+=(t-o)*l),o=t,s=e)}function u(e,t){d.style.transform="rotateX(".concat(e,"deg) rotateY(").concat(t,"deg)")}d.style.transform="rotateX(".concat(n,"deg) rotateY(").concat(a,"deg)"),"yes"===m.cursorGrab&&(t.style.cursor="grab"),"yes"===m.animationEnable&&function e(){r&&("yes"===m.animationRotationX&&(n+=m.animationSpeed),"yes"===m.animationRotationY&&(a+=m.animationSpeed),u(n,a)),requestAnimationFrame(e)}(),t.addEventListener("mousedown",e),t.addEventListener("mouseup",function(){i=!1,"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("mousemove",c),t.addEventListener("mouseenter",function(){return r=!1}),t.addEventListener("mouseleave",function(){r=!(i=!1),"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("touchstart",e),t.addEventListener("touchend",function(){return i=!1}),t.addEventListener("touchmove",c)})):document.getElementById(e).classList.contains("myTestimonialsThumbnail")?(i=e,a={delay:(n=m).autoplaySpeed,disableOnInteraction:!0},"no"===n.autoplay&&(a=!1),l=document.getElementById(i).querySelector(".thumbnail__slider_1"),r=document.getElementById(i).querySelector(".thumbnail__slider_2"),r=new Swiper(r,{slidesPerView:"auto",spaceBetween:24,centeredSlides:!0,loop:"yes"===n.sliderLoop,slideToClickedSlide:!0}),((l=new Swiper(l,{grabCursor:!0,slidesPerView:1,centeredSlides:!0,loop:"yes"===n.sliderLoop,loopedSlides:4,spaceBetween:48,speed:n.slidesSpeed,autoplay:a,pagination:{el:document.getElementById(i).querySelector(".swiper-pagination"),clickable:!0},navigation:{nextEl:document.getElementById(i).querySelector(".swiper-button-next"),prevEl:document.getElementById(i).querySelector(".swiper-button-prev")}})).controller.control=r).controller.control=l):new Swiper("#".concat(e),{effect:h,coverflowEffect:o,loop:"yes"===m.sliderLoop,centeredSlides:w,loopFillGroupWithBlank:!1,autoplay:s,breakpoints:f,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:y})}function t(e,t){for(var o=document.querySelectorAll(".mySwiper"),s=1,o=(o.forEach(function(e){e.setAttribute("id","mySwiper-".concat(s)),s++}),e.find(".slider-params")),i=(e=e[0].getElementsByClassName("mySwiper")[0]).querySelectorAll("li:not(.slider-container-background)"),n=0;n<i.length;n++)i[n].remove();var a,l,r={slidesToShow:Number(o.data("slidestoshow-myswiper"))||3,slidesToShowTablet:Number(o.data("slidestoshow-myswiper-tablet"))||2,slidesToShowMobile:Number(o.data("slidestoshow-myswiper-mobile"))||1},d={slidesToScroll:Number(o.data("slidestoscroll-myswiper"))||r.slidesToShow,slidesToScrollTablet:Number(o.data("slidestoscroll-myswiper-tablet"))||r.slidesToShowTablet,slidesToScrollMobile:Number(o.data("slidestoscroll-myswiper-mobile"))||r.slidesToShowMobile},o={pagination:o.data("navigation-myswiper")||"both",sliderLoop:o.data("sliderloop-myswiper")||!0,sliderRotate:o.data("sliderrotate-myswiper")||!0,autoplay:o.data("autoplay-myswiper")||"yes",autoplaySpeed:o.data("autoplayspeed-myswiper")||5e3,rotate:o.data("rotate-myswiper")||0,stretch:o.data("stretch-myswiper")||0,depth:o.data("depth-myswiper")||20,modifier:o.data("modifier-myswiper")||3,slideShadows:o.data("slideshadows-myswiper")||!0,slidesDirection:o.data("direction-myswiper")||"vertical",slidesDirectionTablet:o.data("direction-myswiper-tablet")||o.data("direction-myswiper"),slidesDirectionMobile:o.data("direction-myswiper-mobile")||o.data("direction-myswiper"),slidesController:o.data("controller-myswiper")||"control",slidesSpeed:o.data("speed-myswiper")||500,showLineText:o.data("showlinetext-myswiper")||7,shadowOffset:o.data("slidershadowoffset-myswiper")||10,shadowScale:o.data("slidershadowscale-myswiper")||.94,pauseOnMouseEnter:o.data("sliderpausemouse-myswiper")||!0,reverseDirection:o.data("sliderrevercedirection-myswiper")||!1,animationEnable:o.data("animationenable-myswiper")||!0,animationRotationX:o.data("animationrotationx-myswiper")||!0,animationRotationY:o.data("animationrotationy-myswiper")||!0,cursorGrab:o.data("cursorgrabenable-myswiper")||!0,animationSpeed:o.data("animationspeed-myswiper")||.5,rotationSpeed:o.data("rotationspeed-myswiper")||.5,startCoordinateX:o.data("startcoordinatex-myswiper")||-23,startCoordinateY:o.data("startcoordinatey-myswiper")||33};p(e.id,r,d,o),r=e.querySelectorAll(".slide-content"),a=o.showLineText,r.forEach(function(e){var t=e.querySelector(".slide-description"),o=e.closest(".swiper-slide").querySelector(".slide-read-more"),s=t.offsetHeight,i=parseInt(t.style.lineHeight),e=e.parentNode;s/i<a?o.classList.add("disable-button"):(t.classList.add("crop-content"),e.classList.contains("quote")?o.addEventListener("click",c):e.classList.contains("thumbnails-content")?o.addEventListener("click",u):o.addEventListener("click",m))}),d=e.querySelectorAll(".blog-slider__content"),l=o.showLineText,d.forEach(function(e){var t=e.querySelector(".blog-slider__text"),o=e.closest(".swiper-slide").querySelector(".read-more-btn"),e=t.offsetHeight/parseInt(t.style.lineHeight),s=o.getAttribute("data-text");o.getAttribute("href")||(e<l?o.classList.add("disable-button"):(t.classList.add("crop-content"),o.addEventListener("click",function(){t.classList.contains("crop-content")?(t.classList.remove("crop-content"),o.textContent="Hide"):(t.classList.add("crop-content"),o.textContent=s)})))})}e(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode(),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-logo.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-centered.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-bottom.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-coverflow.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-gallery-coverflow.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-employees.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-blog.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-creative.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube-360.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube-360.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-thumbnails.default",t)})}(jQuery);
     1"use strict";!function(e){function c(){var t=document.querySelector(".myGallery .testimonial").swiper,e=this.closest(".testimonial .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function u(){var t=document.querySelector(".myTestimonialsThumbnail .thumbnail__slider_1").swiper,e=this.closest(".thumbnail__slider_1 .swiper-slide"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.querySelector(".slider-modal-container-info"),i=document.querySelector("body"),e=(i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,s.querySelector(".thumbnail__image")),s=s.querySelector(".slide-read-more");e&&e.remove(),s&&s.remove(),o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function m(){var t=document.querySelector(".myTestimonials").swiper,e=this.closest("li"),o=this.closest(".elementor-widget-container").getElementsByClassName("slider-modal")[0],s=o.getElementsByClassName("slider-modal-container-info")[0],i=document.querySelector("body");i.classList.add("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.stop(),o.classList.add("open"),s.innerHTML=e.innerHTML,o.querySelectorAll(".slider-modal-exit").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.remove("open"),i.classList.contains("hidden-scroll")&&i.classList.remove("hidden-scroll"),!0===t.params.autoplay.enabled&&t.autoplay.start()})})}function p(e,t,o,m){var s={delay:m.autoplaySpeed,disableOnInteraction:"yes"===m.sliderDisabledInteraction};"no"===m.autoplay&&(s=!1);var p,i,n,a,r,l,d,c,u,y={el:".swiper-pagination",type:"bullets",clickable:!0},w=("dots"===m.pagination||"both"===m.pagination||(y={el:".swiper-pagination-disabled",type:"bullets"}),""),b=(document.getElementById(e).classList.contains("mySwiperBottom")&&(w={centeredSlides:!0}),""),o=(document.getElementById(e).classList.contains("mySwiperCoverflow")||(b={320:{slidesPerGroup:o.slidesToScrollMobile,slidesPerView:t.slidesToShowMobile,spaceBetween:0},768:{slidesPerGroup:o.slidesToScrollTablet,slidesPerView:t.slidesToShowTablet,spaceBetween:20},1024:{slidesPerGroup:o.slidesToScroll,slidesPerView:t.slidesToShow,spaceBetween:30}}),""),f="";document.getElementById(e).classList.contains("mySwiperCoverflow")&&(f="coverflow",o={rotate:m.rotate,stretch:m.stretch,depth:m.depth,modifier:m.modifier,slideShadows:"yes"===m.slideShadows},w={centeredSlides:!0},b={320:{slidesPerView:t.slidesToShowMobile},768:{slidesPerView:t.slidesToShowTablet},1024:{slidesPerView:t.slidesToShow}}),document.getElementById(e).classList.contains("myBlog")&&(f="fade",b={320:{slidesPerView:1,spaceBetween:30},768:{slidesPerView:1,spaceBetween:30},1024:{slidesPerView:1,spaceBetween:30}}),document.getElementById(e).classList.contains("mySwiperGalleryCoverflow")?document.querySelectorAll(".swiper").forEach(function(e){var n,a;e.id;n=t,a=m,document.querySelectorAll(".mySwiperGalleryCoverflow").forEach(function(e,t){e.querySelector(".gallery-thumbs").setAttribute("id","Gallery-".concat(t));var e=e.querySelector(".testimonial"),e=(e.setAttribute("id","Testimonial-".concat(t)),e.querySelector(".swiper-gallery-coverflow-buttons-block")),o=document.createElement("div"),s=(o.setAttribute("class","swiper-pagination"),o.setAttribute("id","Pagination-".concat(t)),e.appendChild(o),{}),e={delay:a.autoplaySpeed,disableOnInteraction:"yes"===a.sliderDisabledInteraction},o=("no"===a.autoplay&&(e=!1),{}),i=(s["Gallery-".concat(t)]=new Swiper("#Gallery-".concat(t),{effect:"coverflow",grabCursor:!0,speed:a.slidesSpeed,centeredSlides:!0,coverflowEffect:{rotate:a.rotate,stretch:a.stretch,depth:a.depth,modifier:a.modifier,slideShadows:"yes"===a.slideShadows},breakpoints:{320:{slidesPerView:3===n.slidesToShowMobile?2:n.slidesToShowMobile},768:{slidesPerView:3===n.slidesToShowTablet?2:n.slidesToShowTablet},1024:{slidesPerView:3===n.slidesToShow?2:n.slidesToShow}},onclick:{function:function(e){e=e.target.getAttribute("data-swiper-slide-index");e&&"thumbs"===a.slidesController&&s["Testimonial-".concat(t)].slideTo(e)}}}),"thumbs"===a.slidesController&&(o={swiper:s["Gallery-".concat(t)]}),{el:".swiper-pagination",type:"bullets",clickable:!0});"dots"!==a.pagination&&(i={el:".swiper-pagination-disabled",type:"bullets"}),s["Testimonial-".concat(t)]=new Swiper("#Testimonial-".concat(t),{autoplay:e,speed:a.slidesSpeed,pagination:i,thumbs:o,breakpoints:{320:{direction:a.slidesDirectionMobile},768:{direction:a.slidesDirectionTablet},1024:{direction:a.slidesDirection}},on:{slideChange:function(){"thumbs"===a.slidesController&&s["Gallery-".concat(t)].slideTo(this.activeIndex)}}}),"control"===a.slidesController&&(s["Testimonial-".concat(t)].controller.control=s["Gallery-".concat(t)],s["Gallery-".concat(t)].controller.control=s["Testimonial-".concat(t)])})}):document.getElementById(e).classList.contains("mySwiperCube")?(u=m,new Swiper("#".concat(e),{effect:"cube",grabCursor:!0,loop:!0,speed:u.slidesSpeed,freeMode:!0,cubeEffect:{shadow:"yes"===u.slideShadows,slideShadows:!0,shadowOffset:u.shadowOffset,shadowScale:u.shadowScale},autoplay:{delay:u.autoplaySpeed,pauseOnMouseEnter:"yes"===u.pauseOnMouseEnter,disableOnInteraction:"yes"===u.sliderDisabledInteraction,reverseDirection:"yes"===u.reverseDirection},breakpoints:{320:{spaceBetween:0},768:{spaceBetween:0},1024:{spaceBetween:0}}})):document.getElementById(e).classList.contains("mySwiperCreative")?(d=m,u=document.querySelectorAll(".creative"),c={delay:d.autoplaySpeed,disableOnInteraction:"yes"===d.sliderDisabledInteraction},"no"===d.autoplay&&(c=!1),u.forEach(function(o){var e=o.querySelector(".mySwiperCreative");new Swiper(e,{grabCursor:!1,loop:"yes"===d.sliderLoop,noSwiping:!0,speed:d.slidesSpeed,noSwipingClass:"swiper-slide",autoplay:c,effect:"creative",creativeEffect:{prev:{shadow:!1,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:o.querySelector(".swiper-pagination"),type:"fraction"},navigation:{nextEl:o.querySelector(".swiper-button-next"),prevEl:o.querySelector(".swiper-button-prev")},on:{slideChange:function(){var e,t=this.slides[this.activeIndex].id,t=o.parentElement.querySelector('.creative__slide-content[data-id="'+t+'"]');t&&((e=o.parentElement.querySelector(".creative__slide-content.active"))&&e.classList.remove("active"),t.classList.add("active"))}}})})):document.getElementById(e).classList.contains("myCube-360")?(i=document.querySelectorAll(".myCube-360"),p=document.getElementById(e).querySelector(".cube-interactive"),i.forEach(function(t){var o,s,i=!1,n=m.startCoordinateX,a=m.startCoordinateY,r=m.rotationSpeed,l=!0,d=t.querySelector(".cube");function e(e){i=!0;e=e.touches?e.touches[0]:e;o=e.clientX,s=e.clientY,l=!1,"yes"===m.cursorGrab&&(t.style.cursor="grabbing"),p&&(p.style.opacity="0",setTimeout(function(){p.style.display="none"},300))}function c(e){var t;i&&(t=(e=e.touches?e.touches[0]:e).clientX,e=e.clientY,u(n-=(e-s)*r,a+=(t-o)*r),o=t,s=e)}function u(e,t){d.style.transform="rotateX(".concat(e,"deg) rotateY(").concat(t,"deg)")}d.style.transform="rotateX(".concat(n,"deg) rotateY(").concat(a,"deg)"),"yes"===m.cursorGrab&&(t.style.cursor="grab"),"yes"===m.animationEnable&&function e(){l&&("yes"===m.animationRotationX&&(n+=m.animationSpeed),"yes"===m.animationRotationY&&(a+=m.animationSpeed),u(n,a)),requestAnimationFrame(e)}(),t.addEventListener("mousedown",e),t.addEventListener("mouseup",function(){i=!1,"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("mousemove",c),t.addEventListener("mouseenter",function(){return l=!1}),t.addEventListener("mouseleave",function(){l=!(i=!1),"yes"===m.cursorGrab&&(t.style.cursor="grab")}),t.addEventListener("touchstart",e),t.addEventListener("touchend",function(){return i=!1}),t.addEventListener("touchmove",c)})):document.getElementById(e).classList.contains("myTestimonialsThumbnail")?(i=e,a={delay:(n=m).autoplaySpeed,disableOnInteraction:"yes"===n.sliderDisabledInteraction},"no"===n.autoplay&&(a=!1),r=document.getElementById(i).querySelector(".thumbnail__slider_1"),l=document.getElementById(i).querySelector(".thumbnail__slider_2"),l=new Swiper(l,{slidesPerView:"auto",spaceBetween:24,centeredSlides:!0,loop:"yes"===n.sliderLoop,slideToClickedSlide:!0}),((r=new Swiper(r,{grabCursor:!0,slidesPerView:1,centeredSlides:!0,loop:"yes"===n.sliderLoop,loopedSlides:4,spaceBetween:48,speed:n.slidesSpeed,autoplay:a,pagination:{el:document.getElementById(i).querySelector(".swiper-pagination"),clickable:!0},navigation:{nextEl:document.getElementById(i).querySelector(".swiper-button-next"),prevEl:document.getElementById(i).querySelector(".swiper-button-prev")}})).controller.control=l).controller.control=r):new Swiper("#".concat(e),{effect:f,coverflowEffect:o,loop:"yes"===m.sliderLoop,centeredSlides:w,loopFillGroupWithBlank:!1,autoplay:s,breakpoints:b,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:y})}function t(e,t){for(var o=document.querySelectorAll(".mySwiper"),s=1,o=(o.forEach(function(e){e.setAttribute("id","mySwiper-".concat(s)),s++}),e.find(".slider-params")),i=(e=e[0].getElementsByClassName("mySwiper")[0]).querySelectorAll("li:not(.slider-container-background)"),n=0;n<i.length;n++)i[n].remove();var a,r,l={slidesToShow:Number(o.data("slidestoshow-myswiper"))||3,slidesToShowTablet:Number(o.data("slidestoshow-myswiper-tablet"))||2,slidesToShowMobile:Number(o.data("slidestoshow-myswiper-mobile"))||1},d={slidesToScroll:Number(o.data("slidestoscroll-myswiper"))||l.slidesToShow,slidesToScrollTablet:Number(o.data("slidestoscroll-myswiper-tablet"))||l.slidesToShowTablet,slidesToScrollMobile:Number(o.data("slidestoscroll-myswiper-mobile"))||l.slidesToShowMobile},o={pagination:o.data("navigation-myswiper")||"both",sliderLoop:o.data("sliderloop-myswiper")||!0,sliderDisabledInteraction:o.data("sliderdisableoninteraction-myswiper")||!0,sliderRotate:o.data("sliderrotate-myswiper")||!0,autoplay:o.data("autoplay-myswiper")||"yes",autoplaySpeed:o.data("autoplayspeed-myswiper")||5e3,rotate:o.data("rotate-myswiper")||0,stretch:o.data("stretch-myswiper")||0,depth:o.data("depth-myswiper")||20,modifier:o.data("modifier-myswiper")||3,slideShadows:o.data("slideshadows-myswiper")||!0,slidesDirection:o.data("direction-myswiper")||"vertical",slidesDirectionTablet:o.data("direction-myswiper-tablet")||o.data("direction-myswiper"),slidesDirectionMobile:o.data("direction-myswiper-mobile")||o.data("direction-myswiper"),slidesController:o.data("controller-myswiper")||"control",slidesSpeed:o.data("speed-myswiper")||500,showLineText:o.data("showlinetext-myswiper")||7,shadowOffset:o.data("slidershadowoffset-myswiper")||10,shadowScale:o.data("slidershadowscale-myswiper")||.94,pauseOnMouseEnter:o.data("sliderpausemouse-myswiper")||!0,reverseDirection:o.data("sliderrevercedirection-myswiper")||!1,animationEnable:o.data("animationenable-myswiper")||!0,animationRotationX:o.data("animationrotationx-myswiper")||!0,animationRotationY:o.data("animationrotationy-myswiper")||!0,cursorGrab:o.data("cursorgrabenable-myswiper")||!0,animationSpeed:o.data("animationspeed-myswiper")||.5,rotationSpeed:o.data("rotationspeed-myswiper")||.5,startCoordinateX:o.data("startcoordinatex-myswiper")||-23,startCoordinateY:o.data("startcoordinatey-myswiper")||33};p(e.id,l,d,o),l=e.querySelectorAll(".slide-content"),a=o.showLineText,l.forEach(function(e){var t=e.querySelector(".slide-description"),o=e.closest(".swiper-slide").querySelector(".slide-read-more"),s=t.offsetHeight,i=parseInt(t.style.lineHeight),e=e.parentNode;s/i<a?o.classList.add("disable-button"):(t.classList.add("crop-content"),e.classList.contains("quote")?o.addEventListener("click",c):e.classList.contains("thumbnails-content")?o.addEventListener("click",u):o.addEventListener("click",m))}),d=e.querySelectorAll(".blog-slider__content"),r=o.showLineText,d.forEach(function(e){var t=e.querySelector(".blog-slider__text"),o=e.closest(".swiper-slide").querySelector(".read-more-btn"),e=t.offsetHeight/parseInt(t.style.lineHeight),s=o.getAttribute("data-text");o.getAttribute("href")||(e<r?o.classList.add("disable-button"):(t.classList.add("crop-content"),o.addEventListener("click",function(){t.classList.contains("crop-content")?(t.classList.remove("crop-content"),o.textContent="Hide"):(t.classList.add("crop-content"),o.textContent=s)})))})}e(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode(),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-logo.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-centered.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-bottom.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-coverflow.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-gallery-coverflow.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-employees.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-blog.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-creative.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-cube-360.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/section-with-carousel-cube-360.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/testimonials-carousel-thumbnails.default",t)})}(jQuery);
  • testimonials-carousel-elementor/trunk/class-testimonials-carousel-elementor.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    2929   * Minimum Elementor Version
    3030   *
    31    * @since 11.3.1
     31   * @since 11.4.0
    3232   * @var string Minimum Elementor version required to run the plugin.
    3333   */
     
    3636   * Minimum PHP Version
    3737   *
    38    * @since 11.3.1
     38   * @since 11.4.0
    3939   * @var string Minimum PHP version required to run the plugin.
    4040   */
     
    4444   * Constructor
    4545   *
    46    * @since  11.3.1
     46   * @since  11.4.0
    4747   * @access public
    4848   */
     
    153153   * Fired by `init` action hook.
    154154   *
    155    * @since  11.3.1
     155   * @since  11.4.0
    156156   * @access public
    157157   */
     
    170170   * Fired by `plugins_loaded` action hook.
    171171   *
    172    * @since  11.3.1
     172   * @since  11.4.0
    173173   * @access public
    174174   */
     
    222222   * Warning when the site doesn't have Elementor installed or activated.
    223223   *
    224    * @since  11.3.1
     224   * @since  11.4.0
    225225   * @access public
    226226   */
     
    245245   * Warning when the site doesn't have a minimum required Elementor version.
    246246   *
    247    * @since  11.3.1
     247   * @since  11.4.0
    248248   * @access public
    249249   */
     
    269269   * Warning when the site doesn't have a minimum required PHP version.
    270270   *
    271    * @since  11.3.1
     271   * @since  11.4.0
    272272   * @access public
    273273   */
     
    290290  /**
    291291   *
    292    * @since  11.3.1
     292   * @since  11.4.0
    293293   * @access public
    294294   */
  • testimonials-carousel-elementor/trunk/class-widgets.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    2626 * Main Plugin class
    2727 *
    28  * @since 11.3.1
     28 * @since 11.4.0
    2929 */
    3030class Widgets
     
    3434   * Instance
    3535   *
    36    * @since  11.3.1
     36   * @since  11.4.0
    3737   * @access private
    3838   * @static
     
    4848   *
    4949   * @return Plugin An instance of the class.
    50    * @since  11.3.1
     50   * @since  11.4.0
    5151   * @access public
    5252   *
     
    6666   * Load widgets files
    6767   *
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   * @access private
    7070   */
     
    9797   * Load widgets templates files
    9898   *
    99    * @since  11.3.1
     99   * @since  11.4.0
    100100   * @access private
    101101   */
     
    111111   * Load widgets templates controls
    112112   *
    113    * @since  11.3.1
     113   * @since  11.4.0
    114114   * @access private
    115115   */
     
    125125   * Register new Elementor widgets.
    126126   *
    127    * @since  11.3.1
     127   * @since  11.4.0
    128128   * @access public
    129129   */
     
    165165   * Register plugin action hooks and filters
    166166   *
    167    * @since  11.3.1
     167   * @since  11.4.0
    168168   * @access public
    169169   */
  • testimonials-carousel-elementor/trunk/readme.txt

    r3157386 r3221633  
    44Requires PHP: 7.4.1
    55Requires at least: 5.9
    6 Tested up to: 6.6.2
    7 Stable tag: 11.3.1
     6Tested up to: 6.7.1
     7Stable tag: 11.4.0
    88License: GPLv3
    99License URI: https://opensource.org/licenses/GPL-3.0
     
    7676== Changelog ==
    7777
     78= 11.4.0 - 2025-01-13 =
     79- New: Added controls for styling the "Read more" button for Testimonials Carousel with Thumbnails.
     80- New: Added controls for positioning the pop-up for widgets.
     81- New: Added controls for configuring "disableOnInteraction".
     82
    7883= 11.3.1 - 2024-09-25 =
    7984- Fix: Fixed and added new conditions for all widgets.
  • testimonials-carousel-elementor/trunk/testimonials-carousel-elementor.php

    r3157386 r3221633  
    88 * Description: The compact Testimonial Carousel for Elementor lets you show long text reviews in Pop-Up of Carousel Slider.
    99 * Plugin URI:
    10  * Version:     11.3.1
     10 * Version:     11.4.0
    1111 * Author:      UAPP GROUP
    1212 * Author URI:  https://uapp.group/
     
    2020 * Plugin Version
    2121 *
    22  * @since 11.3.1
     22 * @since 11.4.0
    2323 * @var string The plugin version.
    2424 */
    25 define('TESTIMONIALS_VERSION', '11.3.1');
     25define('TESTIMONIALS_VERSION', '11.4.0');
    2626
    2727/**
  • testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-coverflow.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Coverflow widget class.
    3434 *
    35  * @since 11.3.1
     35 * @since 11.4.0
    3636 */
    3737class TestimonialsCarousel_Coverflow extends Widget_Base
     
    6868   *
    6969   * @return string Widget name.
    70    * @since  11.3.1
     70   * @since  11.4.0
    7171   *
    7272   * @access public
     
    8282   *
    8383   * @return string Widget title.
    84    * @since  11.3.1
     84   * @since  11.4.0
    8585   *
    8686   * @access public
     
    9696   *
    9797   * @return string Widget icon.
    98    * @since  11.3.1
     98   * @since  11.4.0
    9999   *
    100100   * @access public
     
    115115   *
    116116   * @return array Widget categories.
    117    * @since  11.3.1
     117   * @since  11.4.0
    118118   *
    119119   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.3.1
     165   * @since  11.4.0
    166166   *
    167167   * @access protected
     
    558558        'default'            => 5000,
    559559        'frontend_available' => true,
     560        'condition'          => [
     561          'autoplay' => 'yes',
     562        ]
     563      ]
     564    );
     565
     566    $this->add_control(
     567      'disable_interaction',
     568      [
     569        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     570        'type'               => Controls_Manager::SWITCHER,
     571        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     572        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     573        'return_value'       => 'yes',
     574        'default'            => 'yes',
     575        'frontend_available' => true,
     576        'condition'          => [
     577          'autoplay' => 'yes',
     578        ]
    560579      ]
    561580    );
     
    12391258   * Written in PHP and used to generate the final HTML.
    12401259   *
    1241    * @since  11.3.1
     1260   * @since  11.4.0
    12421261   *
    12431262   * @access protected
     
    12501269        'my_swiper',
    12511270        [
    1252           'class'                             => ['slider-params'],
    1253           'data-slidestoshow-myswiper'        => esc_attr($settings['slides_to_show']),
    1254           'data-slidestoshow-myswiper-tablet' => esc_attr($settings['slides_to_show_tablet']),
    1255           'data-slidestoshow-myswiper-mobile' => esc_attr($settings['slides_to_show_mobile']),
    1256           'data-navigation-myswiper'          => esc_attr($settings['navigation']),
    1257           'data-autoplay-myswiper'            => esc_attr($settings['autoplay']),
    1258           'data-autoplayspeed-myswiper'       => esc_attr($settings['autoplay_speed']),
    1259           'data-rotate-myswiper'              => esc_attr($settings['slide_rotate']),
    1260           'data-stretch-myswiper'             => esc_attr($settings['slide_stretch']),
    1261           'data-depth-myswiper'               => esc_attr($settings['slide_depth']),
    1262           'data-modifier-myswiper'            => esc_attr($settings['slide_modifier']),
    1263           'data-slideshadows-myswiper'        => esc_attr($settings['slide_shadows']),
    1264           'data-sliderloop-myswiper'          => esc_attr($settings['slider_loop']),
     1271          'class'                                    => ['slider-params'],
     1272          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     1273          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     1274          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     1275          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1276          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1277          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1278          'data-rotate-myswiper'                     => esc_attr($settings['slide_rotate']),
     1279          'data-stretch-myswiper'                    => esc_attr($settings['slide_stretch']),
     1280          'data-depth-myswiper'                      => esc_attr($settings['slide_depth']),
     1281          'data-modifier-myswiper'                   => esc_attr($settings['slide_modifier']),
     1282          'data-slideshadows-myswiper'               => esc_attr($settings['slide_shadows']),
     1283          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1284          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    12651285        ]
    12661286      );
  • testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-cube-360.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Cube_360 widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Cube_360 extends Widget_Base
     
    6565   *
    6666   * @return string Widget name.
    67    * @since  11.3.1
     67   * @since  11.4.0
    6868   *
    6969   * @access public
     
    7979   *
    8080   * @return string Widget title.
    81    * @since  11.3.1
     81   * @since  11.4.0
    8282   *
    8383   * @access public
     
    9393   *
    9494   * @return string Widget icon.
    95    * @since  11.3.1
     95   * @since  11.4.0
    9696   *
    9797   * @access public
     
    112112   *
    113113   * @return array Widget categories.
    114    * @since  11.3.1
     114   * @since  11.4.0
    115115   *
    116116   * @access public
     
    144144   * Adds different input fields to allow the user to change and customize the widget settings.
    145145   *
    146    * @since  11.3.1
     146   * @since  11.4.0
    147147   *
    148148   * @access protected
     
    34783478   * Written in PHP and used to generate the final HTML.
    34793479   *
    3480    * @since  11.3.1
     3480   * @since  11.4.0
    34813481   *
    34823482   * @access protected
  • testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-cube.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Cube widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Cube extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.3.1
     69   * @since  11.4.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.3.1
     83   * @since  11.4.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.3.1
     97   * @since  11.4.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.3.1
     116   * @since  11.4.0
    117117   *
    118118   * @access public
     
    164164   * Adds different input fields to allow the user to change and customize the widget settings.
    165165   *
    166    * @since  11.3.1
     166   * @since  11.4.0
    167167   *
    168168   * @access protected
     
    465465        'default'            => 1,
    466466        'frontend_available' => true,
     467        'condition'          => [
     468          'autoplay' => 'yes',
     469        ]
     470      ]
     471    );
     472
     473    $this->add_control(
     474      'disable_interaction',
     475      [
     476        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     477        'type'               => Controls_Manager::SWITCHER,
     478        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     479        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     480        'return_value'       => 'yes',
     481        'default'            => 'yes',
     482        'frontend_available' => true,
     483        'condition'          => [
     484          'autoplay' => 'yes',
     485        ]
    467486      ]
    468487    );
     
    846865   * Written in PHP and used to generate the final HTML.
    847866   *
    848    * @since  11.3.1
     867   * @since  11.4.0
    849868   *
    850869   * @access protected
     
    857876        'my_swiper',
    858877        [
    859           'class'                                => ['slider-params'],
    860           'data-speed-myswiper'                  => esc_attr($settings['slider_speed']),
    861           'data-autoplayspeed-myswiper'          => esc_attr($settings['autoplay_speed']),
    862           'data-sliderrotate-myswiper'           => esc_attr($settings['slider_rotate']),
    863           'data-slidershadowoffset-myswiper'     => esc_attr($settings['slider_shadow_offset']),
    864           'data-slidershadowscale-myswiper'      => esc_attr($settings['slider_shadow_scale']),
    865           'data-sliderpausemouse-myswiper'       => esc_attr($settings['slider_pause_mouse_enter']),
    866           'data-sliderrevercedirection-myswiper' => esc_attr($settings['slider_reverse_direction']),
    867           'data-slideshadows-myswiper'           => esc_attr($settings['slide_shadows']),
     878          'class'                                    => ['slider-params'],
     879          'data-speed-myswiper'                      => esc_attr($settings['slider_speed']),
     880          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     881          'data-sliderrotate-myswiper'               => esc_attr($settings['slider_rotate']),
     882          'data-slidershadowoffset-myswiper'         => esc_attr($settings['slider_shadow_offset']),
     883          'data-slidershadowscale-myswiper'          => esc_attr($settings['slider_shadow_scale']),
     884          'data-sliderpausemouse-myswiper'           => esc_attr($settings['slider_pause_mouse_enter']),
     885          'data-sliderrevercedirection-myswiper'     => esc_attr($settings['slider_reverse_direction']),
     886          'data-slideshadows-myswiper'               => esc_attr($settings['slide_shadows']),
     887          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    868888        ]
    869889      );
  • testimonials-carousel-elementor/trunk/widgets/section-with-carousel/class-section-with-cube-360.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * Section_With_Cube_360 widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class Section_With_Cube_360 extends Widget_Base
     
    6464   *
    6565   * @return string Widget name.
    66    * @since  11.3.1
     66   * @since  11.4.0
    6767   *
    6868   * @access public
     
    7878   *
    7979   * @return string Widget title.
    80    * @since  11.3.1
     80   * @since  11.4.0
    8181   *
    8282   * @access public
     
    9292   *
    9393   * @return string Widget icon.
    94    * @since  11.3.1
     94   * @since  11.4.0
    9595   *
    9696   * @access public
     
    111111   *
    112112   * @return array Widget categories.
    113    * @since  11.3.1
     113   * @since  11.4.0
    114114   *
    115115   * @access public
     
    143143   * Adds different input fields to allow the user to change and customize the widget settings.
    144144   *
    145    * @since  11.3.1
     145   * @since  11.4.0
    146146   *
    147147   * @access protected
     
    37283728   * Written in PHP and used to generate the final HTML.
    37293729   *
    3730    * @since  11.3.1
     3730   * @since  11.4.0
    37313731   *
    37323732   * @access protected
  • testimonials-carousel-elementor/trunk/widgets/section-with-carousel/class-section-with-cube.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * Section_With_Cube widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class Section_With_Cube extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.3.1
     69   * @since  11.4.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.3.1
     83   * @since  11.4.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.3.1
     97   * @since  11.4.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.3.1
     116   * @since  11.4.0
    117117   *
    118118   * @access public
     
    164164   * Adds different input fields to allow the user to change and customize the widget settings.
    165165   *
    166    * @since  11.3.1
     166   * @since  11.4.0
    167167   *
    168168   * @access protected
     
    503503        'default'            => 1,
    504504        'frontend_available' => true,
     505        'condition'          => [
     506          'autoplay' => 'yes',
     507        ]
     508      ]
     509    );
     510
     511    $this->add_control(
     512      'disable_interaction',
     513      [
     514        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     515        'type'               => Controls_Manager::SWITCHER,
     516        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     517        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     518        'return_value'       => 'yes',
     519        'default'            => 'yes',
     520        'frontend_available' => true,
     521        'condition'          => [
     522          'autoplay' => 'yes',
     523        ]
    505524      ]
    506525    );
     
    10931112   * Written in PHP and used to generate the final HTML.
    10941113   *
    1095    * @since  11.3.1
     1114   * @since  11.4.0
    10961115   *
    10971116   * @access protected
     
    11041123        'my_swiper',
    11051124        [
    1106           'class'                                => ['slider-params'],
    1107           'data-speed-myswiper'                  => esc_attr($settings['slider_speed']),
    1108           'data-autoplayspeed-myswiper'          => esc_attr($settings['autoplay_speed']),
    1109           'data-sliderrotate-myswiper'           => esc_attr($settings['slider_rotate']),
    1110           'data-slidershadowoffset-myswiper'     => esc_attr($settings['slider_shadow_offset']),
    1111           'data-slidershadowscale-myswiper'      => esc_attr($settings['slider_shadow_scale']),
    1112           'data-sliderpausemouse-myswiper'       => esc_attr($settings['slider_pause_mouse_enter']),
    1113           'data-sliderrevercedirection-myswiper' => esc_attr($settings['slider_reverse_direction']),
    1114           'data-slideshadows-myswiper'           => esc_attr($settings['slide_shadows']),
     1125          'class'                                    => ['slider-params'],
     1126          'data-speed-myswiper'                      => esc_attr($settings['slider_speed']),
     1127          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1128          'data-sliderrotate-myswiper'               => esc_attr($settings['slider_rotate']),
     1129          'data-slidershadowoffset-myswiper'         => esc_attr($settings['slider_shadow_offset']),
     1130          'data-slidershadowscale-myswiper'          => esc_attr($settings['slider_shadow_scale']),
     1131          'data-sliderpausemouse-myswiper'           => esc_attr($settings['slider_pause_mouse_enter']),
     1132          'data-sliderrevercedirection-myswiper'     => esc_attr($settings['slider_reverse_direction']),
     1133          'data-slideshadows-myswiper'               => esc_attr($settings['slide_shadows']),
     1134          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    11151135        ]
    11161136      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-blog.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Blog widget class.
    3434 *
    35  * @since 11.3.1
     35 * @since 11.4.0
    3636 */
    3737class TestimonialsCarousel_Blog extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.3.1
     69   * @since  11.4.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.3.1
     83   * @since  11.4.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.3.1
     97   * @since  11.4.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.3.1
     116   * @since  11.4.0
    117117   *
    118118   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.3.1
     165   * @since  11.4.0
    166166   *
    167167   * @access protected
     
    463463        'default'            => 5000,
    464464        'frontend_available' => true,
     465        'condition'          => [
     466          'autoplay' => 'yes',
     467        ]
     468      ]
     469    );
     470
     471    $this->add_control(
     472      'disable_interaction',
     473      [
     474        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     475        'type'               => Controls_Manager::SWITCHER,
     476        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     477        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     478        'return_value'       => 'yes',
     479        'default'            => 'yes',
     480        'frontend_available' => true,
     481        'condition'          => [
     482          'autoplay' => 'yes',
     483        ]
    465484      ]
    466485    );
     
    11031122   * Written in PHP and used to generate the final HTML.
    11041123   *
    1105    * @since  11.3.1
     1124   * @since  11.4.0
    11061125   *
    11071126   * @access protected
     
    11141133        'my_swiper',
    11151134        [
    1116           'class'                       => ['slider-params'],
    1117           'data-autoplay-myswiper'      => esc_attr($settings['autoplay']),
    1118           'data-autoplayspeed-myswiper' => esc_attr($settings['autoplay_speed']),
    1119           'data-sliderloop-myswiper'    => esc_attr($settings['slider_loop']),
    1120           'data-navigation-myswiper'    => esc_attr($settings['navigation']),
    1121           'data-showlinetext-myswiper'  => esc_attr($settings['show_line_text']),
     1135          'class'                                    => ['slider-params'],
     1136          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1137          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1138          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1139          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1140          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     1141          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    11221142        ]
    11231143      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-bottom.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Bottom widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Bottom extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.3.1
     82   * @since  11.4.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.3.1
     96   * @since  11.4.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.3.1
     115   * @since  11.4.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.3.1
     165   * @since  11.4.0
    166166   *
    167167   * @access protected
     
    438438        'default'            => 5000,
    439439        'frontend_available' => true,
     440        'condition'          => [
     441          'autoplay' => 'yes',
     442        ]
     443      ]
     444    );
     445
     446    $this->add_control(
     447      'disable_interaction',
     448      [
     449        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     450        'type'               => Controls_Manager::SWITCHER,
     451        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     452        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     453        'return_value'       => 'yes',
     454        'default'            => 'yes',
     455        'frontend_available' => true,
     456        'condition'          => [
     457          'autoplay' => 'yes',
     458        ]
    440459      ]
    441460    );
     
    939958      ]
    940959    );
     960
     961    $this->add_control(
     962      'popup_position',
     963      [
     964        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     965        'type'               => Controls_Manager::SELECT,
     966        'default'            => '',
     967        'options'            => [
     968          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     969          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     970          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     971        ],
     972        'selectors'          => [
     973          '{{WRAPPER}} .slider-bottom-modal#slider-modal' => 'position: {{VALUE}};',
     974        ],
     975        'frontend_available' => true,
     976      ]
     977    );
     978
     979    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     980    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     981
     982    $start = is_rtl() ? $right : $left;
     983    $end   = !is_rtl() ? $right : $left;
     984
     985    $this->add_control(
     986      '_offset_popup_orientation_h',
     987      [
     988        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     989        'type'        => Controls_Manager::CHOOSE,
     990        'toggle'      => false,
     991        'default'     => 'start',
     992        'options'     => [
     993          'start' => [
     994            'title' => $start,
     995            'icon'  => 'eicon-h-align-left',
     996          ],
     997          'end'   => [
     998            'title' => $end,
     999            'icon'  => 'eicon-h-align-right',
     1000          ],
     1001        ],
     1002        'classes'     => 'elementor-control-start-end',
     1003        'render_type' => 'ui',
     1004        'condition'   => [
     1005          'popup_position!' => '',
     1006        ],
     1007      ]
     1008    );
     1009
     1010    $this->add_responsive_control(
     1011      '_offset_popup_x',
     1012      [
     1013        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1014        'type'       => Controls_Manager::SLIDER,
     1015        'range'      => [
     1016          'px' => [
     1017            'min' => -1000,
     1018            'max' => 1000,
     1019          ],
     1020          '%'  => [
     1021            'min' => -200,
     1022            'max' => 200,
     1023          ],
     1024          'vw' => [
     1025            'min' => -200,
     1026            'max' => 200,
     1027          ],
     1028          'vh' => [
     1029            'min' => -200,
     1030            'max' => 200,
     1031          ],
     1032        ],
     1033        'default'    => [
     1034          'size' => 0,
     1035        ],
     1036        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1037        'selectors'  => [
     1038          'body:not(.rtl) {{WRAPPER}} .slider-bottom-modal#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1039          'body.rtl {{WRAPPER}} .slider-bottom-modal#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1040        ],
     1041        'condition'  => [
     1042          '_offset_popup_orientation_h!' => 'end',
     1043          'popup_position!'              => '',
     1044        ],
     1045      ]
     1046    );
     1047
     1048    $this->add_responsive_control(
     1049      '_offset_popup_x_end',
     1050      [
     1051        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1052        'type'       => Controls_Manager::SLIDER,
     1053        'range'      => [
     1054          'px' => [
     1055            'min' => -1000,
     1056            'max' => 1000,
     1057          ],
     1058          '%'  => [
     1059            'min' => -200,
     1060            'max' => 200,
     1061          ],
     1062          'vw' => [
     1063            'min' => -200,
     1064            'max' => 200,
     1065          ],
     1066          'vh' => [
     1067            'min' => -200,
     1068            'max' => 200,
     1069          ],
     1070        ],
     1071        'default'    => [
     1072          'size' => 0,
     1073        ],
     1074        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1075        'selectors'  => [
     1076          'body:not(.rtl) {{WRAPPER}} .slider-bottom-modal#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1077          'body.rtl {{WRAPPER}} .slider-bottom-modal#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1078        ],
     1079        'condition'  => [
     1080          '_offset_popup_orientation_h' => 'end',
     1081          'popup_position!'             => '',
     1082        ],
     1083      ]
     1084    );
     1085
     1086    $this->add_control(
     1087      '_offset_popup_orientation_v',
     1088      [
     1089        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1090        'type'        => Controls_Manager::CHOOSE,
     1091        'toggle'      => false,
     1092        'default'     => 'start',
     1093        'options'     => [
     1094          'start' => [
     1095            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1096            'icon'  => 'eicon-v-align-top',
     1097          ],
     1098          'end'   => [
     1099            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1100            'icon'  => 'eicon-v-align-bottom',
     1101          ],
     1102        ],
     1103        'render_type' => 'ui',
     1104        'condition'   => [
     1105          'popup_position!' => '',
     1106        ],
     1107      ]
     1108    );
     1109
     1110    $this->add_responsive_control(
     1111      '_offset_popup_y',
     1112      [
     1113        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1114        'type'       => Controls_Manager::SLIDER,
     1115        'range'      => [
     1116          'px' => [
     1117            'min' => -1000,
     1118            'max' => 1000,
     1119          ],
     1120          '%'  => [
     1121            'min' => -200,
     1122            'max' => 200,
     1123          ],
     1124          'vh' => [
     1125            'min' => -200,
     1126            'max' => 200,
     1127          ],
     1128          'vw' => [
     1129            'min' => -200,
     1130            'max' => 200,
     1131          ],
     1132        ],
     1133        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1134        'default'    => [
     1135          'size' => 0,
     1136        ],
     1137        'selectors'  => [
     1138          '{{WRAPPER}} .slider-bottom-modal#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1139        ],
     1140        'condition'  => [
     1141          '_offset_popup_orientation_v!' => 'end',
     1142          'popup_position!'              => '',
     1143        ],
     1144      ]
     1145    );
     1146
     1147    $this->add_responsive_control(
     1148      '_offset_popup_y_end',
     1149      [
     1150        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1151        'type'       => Controls_Manager::SLIDER,
     1152        'range'      => [
     1153          'px' => [
     1154            'min' => -1000,
     1155            'max' => 1000,
     1156          ],
     1157          '%'  => [
     1158            'min' => -200,
     1159            'max' => 200,
     1160          ],
     1161          'vh' => [
     1162            'min' => -200,
     1163            'max' => 200,
     1164          ],
     1165          'vw' => [
     1166            'min' => -200,
     1167            'max' => 200,
     1168          ],
     1169        ],
     1170        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1171        'default'    => [
     1172          'size' => 0,
     1173        ],
     1174        'selectors'  => [
     1175          '{{WRAPPER}} .slider-bottom-modal#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1176        ],
     1177        'condition'  => [
     1178          '_offset_popup_orientation_v' => 'end',
     1179          'popup_position!'             => '',
     1180        ],
     1181      ]
     1182    );
     1183
     1184    $this->add_responsive_control(
     1185      'popup_z_index',
     1186      [
     1187        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1188        'type'      => Controls_Manager::NUMBER,
     1189        'min'       => 0,
     1190        'selectors' => [
     1191          '{{WRAPPER}} .slider-bottom-modal#slider-modal' => 'z-index: {{VALUE}};',
     1192        ],
     1193      ]
     1194    );
     1195
    9411196    $this->add_group_control(
    9421197      Group_Control_Background::get_type(),
    9431198      [
    944         'name'     => 'popup_background',
    945         'types'    => ['classic', 'gradient'],
    946         'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1199        'name'      => 'popup_background',
     1200        'types'     => ['classic', 'gradient'],
     1201        'selector'  => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1202        'separator' => 'before',
    9471203      ]
    9481204    );
     
    14691725   * Written in PHP and used to generate the final HTML.
    14701726   *
    1471    * @since  11.3.1
     1727   * @since  11.4.0
    14721728   *
    14731729   * @access protected
     
    14801736        'my_swiper',
    14811737        [
    1482           'class'                               => ['slider-params'],
    1483           'data-slidestoshow-myswiper'          => esc_attr($settings['slides_to_show']),
    1484           'data-slidestoshow-myswiper-tablet'   => esc_attr($settings['slides_to_show_tablet']),
    1485           'data-slidestoshow-myswiper-mobile'   => esc_attr($settings['slides_to_show_mobile']),
    1486           'data-slidestoscroll-myswiper'        => esc_attr($settings['slides_to_scroll']),
    1487           'data-slidestoscroll-myswiper-tablet' => esc_attr($settings['slides_to_scroll_tablet']),
    1488           'data-slidestoscroll-myswiper-mobile' => esc_attr($settings['slides_to_scroll_mobile']),
    1489           'data-navigation-myswiper'            => esc_attr($settings['navigation']),
    1490           'data-autoplay-myswiper'              => esc_attr($settings['autoplay']),
    1491           'data-autoplayspeed-myswiper'         => esc_attr($settings['autoplay_speed']),
    1492           'data-sliderloop-myswiper'            => esc_attr($settings['slider_loop']),
    1493           'data-showlinetext-myswiper'          => esc_attr($settings['show_line_text']),
     1738          'class'                                    => ['slider-params'],
     1739          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     1740          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     1741          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     1742          'data-slidestoscroll-myswiper'             => esc_attr($settings['slides_to_scroll']),
     1743          'data-slidestoscroll-myswiper-tablet'      => esc_attr($settings['slides_to_scroll_tablet']),
     1744          'data-slidestoscroll-myswiper-mobile'      => esc_attr($settings['slides_to_scroll_mobile']),
     1745          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1746          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1747          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1748          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1749          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     1750          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    14941751        ]
    14951752      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-centered.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Centered widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Centered extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.3.1
     82   * @since  11.4.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.3.1
     96   * @since  11.4.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.3.1
     115   * @since  11.4.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.3.1
     165   * @since  11.4.0
    166166   *
    167167   * @access protected
     
    465465        'default'            => 5000,
    466466        'frontend_available' => true,
     467        'condition'          => [
     468          'autoplay' => 'yes',
     469        ]
     470      ]
     471    );
     472
     473    $this->add_control(
     474      'disable_interaction',
     475      [
     476        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     477        'type'               => Controls_Manager::SWITCHER,
     478        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     479        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     480        'return_value'       => 'yes',
     481        'default'            => 'yes',
     482        'frontend_available' => true,
     483        'condition'          => [
     484          'autoplay' => 'yes',
     485        ]
    467486      ]
    468487    );
     
    10001019      ]
    10011020    );
     1021
     1022    $this->add_control(
     1023      'popup_position',
     1024      [
     1025        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     1026        'type'               => Controls_Manager::SELECT,
     1027        'default'            => '',
     1028        'options'            => [
     1029          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     1030          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     1031          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     1032        ],
     1033        'selectors'          => [
     1034          '{{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'position: {{VALUE}};',
     1035        ],
     1036        'frontend_available' => true,
     1037      ]
     1038    );
     1039
     1040    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     1041    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     1042
     1043    $start = is_rtl() ? $right : $left;
     1044    $end   = !is_rtl() ? $right : $left;
     1045
     1046    $this->add_control(
     1047      '_offset_popup_orientation_h',
     1048      [
     1049        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     1050        'type'        => Controls_Manager::CHOOSE,
     1051        'toggle'      => false,
     1052        'default'     => 'start',
     1053        'options'     => [
     1054          'start' => [
     1055            'title' => $start,
     1056            'icon'  => 'eicon-h-align-left',
     1057          ],
     1058          'end'   => [
     1059            'title' => $end,
     1060            'icon'  => 'eicon-h-align-right',
     1061          ],
     1062        ],
     1063        'classes'     => 'elementor-control-start-end',
     1064        'render_type' => 'ui',
     1065        'condition'   => [
     1066          'popup_position!' => '',
     1067        ],
     1068      ]
     1069    );
     1070
     1071    $this->add_responsive_control(
     1072      '_offset_popup_x',
     1073      [
     1074        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1075        'type'       => Controls_Manager::SLIDER,
     1076        'range'      => [
     1077          'px' => [
     1078            'min' => -1000,
     1079            'max' => 1000,
     1080          ],
     1081          '%'  => [
     1082            'min' => -200,
     1083            'max' => 200,
     1084          ],
     1085          'vw' => [
     1086            'min' => -200,
     1087            'max' => 200,
     1088          ],
     1089          'vh' => [
     1090            'min' => -200,
     1091            'max' => 200,
     1092          ],
     1093        ],
     1094        'default'    => [
     1095          'size' => 0,
     1096        ],
     1097        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1098        'selectors'  => [
     1099          'body:not(.rtl) {{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1100          'body.rtl {{WRAPPER}} .slider-rating-centered-modal#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1101        ],
     1102        'condition'  => [
     1103          '_offset_popup_orientation_h!' => 'end',
     1104          'popup_position!'              => '',
     1105        ],
     1106      ]
     1107    );
     1108
     1109    $this->add_responsive_control(
     1110      '_offset_popup_x_end',
     1111      [
     1112        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1113        'type'       => Controls_Manager::SLIDER,
     1114        'range'      => [
     1115          'px' => [
     1116            'min' => -1000,
     1117            'max' => 1000,
     1118          ],
     1119          '%'  => [
     1120            'min' => -200,
     1121            'max' => 200,
     1122          ],
     1123          'vw' => [
     1124            'min' => -200,
     1125            'max' => 200,
     1126          ],
     1127          'vh' => [
     1128            'min' => -200,
     1129            'max' => 200,
     1130          ],
     1131        ],
     1132        'default'    => [
     1133          'size' => 0,
     1134        ],
     1135        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1136        'selectors'  => [
     1137          'body:not(.rtl) {{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1138          'body.rtl {{WRAPPER}} .slider-rating-centered-modal#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1139        ],
     1140        'condition'  => [
     1141          '_offset_popup_orientation_h' => 'end',
     1142          'popup_position!'             => '',
     1143        ],
     1144      ]
     1145    );
     1146
     1147    $this->add_control(
     1148      '_offset_popup_orientation_v',
     1149      [
     1150        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1151        'type'        => Controls_Manager::CHOOSE,
     1152        'toggle'      => false,
     1153        'default'     => 'start',
     1154        'options'     => [
     1155          'start' => [
     1156            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1157            'icon'  => 'eicon-v-align-top',
     1158          ],
     1159          'end'   => [
     1160            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1161            'icon'  => 'eicon-v-align-bottom',
     1162          ],
     1163        ],
     1164        'render_type' => 'ui',
     1165        'condition'   => [
     1166          'popup_position!' => '',
     1167        ],
     1168      ]
     1169    );
     1170
     1171    $this->add_responsive_control(
     1172      '_offset_popup_y',
     1173      [
     1174        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1175        'type'       => Controls_Manager::SLIDER,
     1176        'range'      => [
     1177          'px' => [
     1178            'min' => -1000,
     1179            'max' => 1000,
     1180          ],
     1181          '%'  => [
     1182            'min' => -200,
     1183            'max' => 200,
     1184          ],
     1185          'vh' => [
     1186            'min' => -200,
     1187            'max' => 200,
     1188          ],
     1189          'vw' => [
     1190            'min' => -200,
     1191            'max' => 200,
     1192          ],
     1193        ],
     1194        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1195        'default'    => [
     1196          'size' => 0,
     1197        ],
     1198        'selectors'  => [
     1199          '{{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1200        ],
     1201        'condition'  => [
     1202          '_offset_popup_orientation_v!' => 'end',
     1203          'popup_position!'              => '',
     1204        ],
     1205      ]
     1206    );
     1207
     1208    $this->add_responsive_control(
     1209      '_offset_popup_y_end',
     1210      [
     1211        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1212        'type'       => Controls_Manager::SLIDER,
     1213        'range'      => [
     1214          'px' => [
     1215            'min' => -1000,
     1216            'max' => 1000,
     1217          ],
     1218          '%'  => [
     1219            'min' => -200,
     1220            'max' => 200,
     1221          ],
     1222          'vh' => [
     1223            'min' => -200,
     1224            'max' => 200,
     1225          ],
     1226          'vw' => [
     1227            'min' => -200,
     1228            'max' => 200,
     1229          ],
     1230        ],
     1231        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1232        'default'    => [
     1233          'size' => 0,
     1234        ],
     1235        'selectors'  => [
     1236          '{{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1237        ],
     1238        'condition'  => [
     1239          '_offset_popup_orientation_v' => 'end',
     1240          'popup_position!'             => '',
     1241        ],
     1242      ]
     1243    );
     1244
     1245    $this->add_responsive_control(
     1246      'popup_z_index',
     1247      [
     1248        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1249        'type'      => Controls_Manager::NUMBER,
     1250        'min'       => 0,
     1251        'selectors' => [
     1252          '{{WRAPPER}} .slider-rating-centered-modal#slider-modal' => 'z-index: {{VALUE}};',
     1253        ],
     1254      ]
     1255    );
     1256
    10021257    $this->add_group_control(
    10031258      Group_Control_Background::get_type(),
     
    10061261        'types'    => ['classic', 'gradient'],
    10071262        'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1263        'separator' => 'before',
    10081264      ]
    10091265    );
     
    15881844   * Written in PHP and used to generate the final HTML.
    15891845   *
    1590    * @since  11.3.1
     1846   * @since  11.4.0
    15911847   *
    15921848   * @access protected
     
    15991855        'my_swiper',
    16001856        [
    1601           'class'                               => ['slider-params'],
    1602           'data-slidestoshow-myswiper'          => esc_attr($settings['slides_to_show']),
    1603           'data-slidestoshow-myswiper-tablet'   => esc_attr($settings['slides_to_show_tablet']),
    1604           'data-slidestoshow-myswiper-mobile'   => esc_attr($settings['slides_to_show_mobile']),
    1605           'data-slidestoscroll-myswiper'        => esc_attr($settings['slides_to_scroll']),
    1606           'data-slidestoscroll-myswiper-tablet' => esc_attr($settings['slides_to_scroll_tablet']),
    1607           'data-slidestoscroll-myswiper-mobile' => esc_attr($settings['slides_to_scroll_mobile']),
    1608           'data-navigation-myswiper'            => esc_attr($settings['navigation']),
    1609           'data-autoplay-myswiper'              => esc_attr($settings['autoplay']),
    1610           'data-autoplayspeed-myswiper'         => esc_attr($settings['autoplay_speed']),
    1611           'data-sliderloop-myswiper'            => esc_attr($settings['slider_loop']),
    1612           'data-showlinetext-myswiper'          => esc_attr($settings['show_line_text']),
     1857          'class'                                    => ['slider-params'],
     1858          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     1859          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     1860          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     1861          'data-slidestoscroll-myswiper'             => esc_attr($settings['slides_to_scroll']),
     1862          'data-slidestoscroll-myswiper-tablet'      => esc_attr($settings['slides_to_scroll_tablet']),
     1863          'data-slidestoscroll-myswiper-mobile'      => esc_attr($settings['slides_to_scroll_mobile']),
     1864          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1865          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1866          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1867          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1868          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     1869          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    16131870        ]
    16141871      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-creative.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Creative widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Creative extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.3.1
     82   * @since  11.4.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.3.1
     96   * @since  11.4.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.3.1
     115   * @since  11.4.0
    116116   *
    117117   * @access public
     
    173173   * Adds different input fields to allow the user to change and customize the widget settings.
    174174   *
    175    * @since  11.3.1
     175   * @since  11.4.0
    176176   *
    177177   * @access protected
     
    283283        'type'               => Controls_Manager::NUMBER,
    284284        'default'            => 5000,
     285        'frontend_available' => true,
     286        'condition'          => [
     287          'autoplay' => 'yes',
     288        ]
     289      ]
     290    );
     291
     292    $this->add_control(
     293      'disable_interaction',
     294      [
     295        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     296        'type'               => Controls_Manager::SWITCHER,
     297        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     298        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     299        'return_value'       => 'yes',
     300        'default'            => 'yes',
    285301        'frontend_available' => true,
    286302        'condition'          => [
     
    402418   * Written in PHP and used to generate the final HTML.
    403419   *
    404    * @since  11.3.1
     420   * @since  11.4.0
    405421   *
    406422   * @access protected
     
    414430        'my_swiper',
    415431        [
    416           'class'                       => ['slider-params'],
    417           'data-navigation-myswiper'    => esc_attr($settings['navigation']),
    418           'data-speed-myswiper'         => esc_attr($settings['slider_speed']),
    419           'data-sliderloop-myswiper'    => esc_attr($settings['slider_loop']),
    420           'data-autoplay-myswiper'      => esc_attr($settings['autoplay']),
    421           'data-autoplayspeed-myswiper' => esc_attr($settings['autoplay_speed']),
     432          'class'                                    => ['slider-params'],
     433          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     434          'data-speed-myswiper'                      => esc_attr($settings['slider_speed']),
     435          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     436          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     437          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     438          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    422439        ]
    423440      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-employees.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3030 * TestimonialsCarousel_Employees widget class.
    3131 *
    32  * @since 11.3.1
     32 * @since 11.4.0
    3333 */
    3434class TestimonialsCarousel_Employees extends Widget_Base
     
    6565   *
    6666   * @return string Widget name.
    67    * @since  11.3.1
     67   * @since  11.4.0
    6868   *
    6969   * @access public
     
    7979   *
    8080   * @return string Widget title.
    81    * @since  11.3.1
     81   * @since  11.4.0
    8282   *
    8383   * @access public
     
    9393   *
    9494   * @return string Widget icon.
    95    * @since  11.3.1
     95   * @since  11.4.0
    9696   *
    9797   * @access public
     
    112112   *
    113113   * @return array Widget categories.
    114    * @since  11.3.1
     114   * @since  11.4.0
    115115   *
    116116   * @access public
     
    172172   * Adds different input fields to allow the user to change and customize the widget settings.
    173173   *
    174    * @since  11.3.1
     174   * @since  11.4.0
    175175   *
    176176   * @access protected
     
    627627      'autoplay_speed',
    628628      [
    629         'label'              => esc_html__('Autoplay speed', 'testimonials-carousel-elementor'),
    630         'type'               => Controls_Manager::NUMBER,
    631         'default'            => 5000,
     629        'label'     => esc_html__('Autoplay speed', 'testimonials-carousel-elementor'),
     630        'type'      => Controls_Manager::NUMBER,
     631        'default'   => 5000,
     632        'condition' => [
     633          'autoplay' => 'yes',
     634        ]
     635      ]
     636    );
     637
     638    $this->add_control(
     639      'disable_interaction',
     640      [
     641        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     642        'type'               => Controls_Manager::SWITCHER,
     643        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     644        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     645        'return_value'       => 'yes',
     646        'default'            => 'yes',
    632647        'frontend_available' => true,
     648        'condition'          => [
     649          'autoplay' => 'yes',
     650        ]
    633651      ]
    634652    );
     
    13451363   * Written in PHP and used to generate the final HTML.
    13461364   *
    1347    * @since  11.3.1
     1365   * @since  11.4.0
    13481366   *
    13491367   * @access protected
     
    13561374        'my_swiper',
    13571375        [
    1358           'class'                               => ['slider-params'],
    1359           'data-slidestoshow-myswiper'          => esc_attr($settings['slides_to_show']),
    1360           'data-slidestoshow-myswiper-tablet'   => esc_attr($settings['slides_to_show_tablet']),
    1361           'data-slidestoshow-myswiper-mobile'   => esc_attr($settings['slides_to_show_mobile']),
    1362           'data-slidestoscroll-myswiper'        => esc_attr($settings['slides_to_scroll']),
    1363           'data-slidestoscroll-myswiper-tablet' => esc_attr($settings['slides_to_scroll_tablet']),
    1364           'data-slidestoscroll-myswiper-mobile' => esc_attr($settings['slides_to_scroll_mobile']),
    1365           'data-navigation-myswiper'            => esc_attr($settings['navigation']),
    1366           'data-autoplay-myswiper'              => esc_attr($settings['autoplay']),
    1367           'data-autoplayspeed-myswiper'         => esc_attr($settings['autoplay_speed']),
    1368           'data-sliderloop-myswiper'            => esc_attr($settings['slider_loop']),
     1376          'class'                                    => ['slider-params'],
     1377          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     1378          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     1379          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     1380          'data-slidestoscroll-myswiper'             => esc_attr($settings['slides_to_scroll']),
     1381          'data-slidestoscroll-myswiper-tablet'      => esc_attr($settings['slides_to_scroll_tablet']),
     1382          'data-slidestoscroll-myswiper-mobile'      => esc_attr($settings['slides_to_scroll_mobile']),
     1383          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1384          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1385          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1386          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1387          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    13691388        ]
    13701389      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-gallery-coverflow.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Coverflow widget class.
    3434 *
    35  * @since 11.3.1
     35 * @since 11.4.0
    3636 */
    3737class TestimonialsCarousel_Gallery_Coverflow extends Widget_Base
     
    6969   *
    7070   * @return string Widget name.
    71    * @since  11.3.1
     71   * @since  11.4.0
    7272   *
    7373   * @access public
     
    8383   *
    8484   * @return string Widget title.
    85    * @since  11.3.1
     85   * @since  11.4.0
    8686   *
    8787   * @access public
     
    9797   *
    9898   * @return string Widget icon.
    99    * @since  11.3.1
     99   * @since  11.4.0
    100100   *
    101101   * @access public
     
    116116   *
    117117   * @return array Widget categories.
    118    * @since  11.3.1
     118   * @since  11.4.0
    119119   *
    120120   * @access public
     
    166166   * Adds different input fields to allow the user to change and customize the widget settings.
    167167   *
    168    * @since  11.3.1
     168   * @since  11.4.0
    169169   *
    170170   * @access protected
     
    592592        'default'            => 5000,
    593593        'frontend_available' => true,
     594        'condition'          => [
     595          'autoplay' => 'yes',
     596        ]
     597      ]
     598    );
     599
     600    $this->add_control(
     601      'disable_interaction',
     602      [
     603        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     604        'type'               => Controls_Manager::SWITCHER,
     605        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     606        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     607        'return_value'       => 'yes',
     608        'default'            => 'yes',
     609        'frontend_available' => true,
     610        'condition'          => [
     611          'autoplay' => 'yes',
     612        ]
    594613      ]
    595614    );
     
    14021421      ]
    14031422    );
     1423
     1424    $this->add_control(
     1425      'popup_position',
     1426      [
     1427        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     1428        'type'               => Controls_Manager::SELECT,
     1429        'default'            => '',
     1430        'options'            => [
     1431          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     1432          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     1433          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     1434        ],
     1435        'selectors'          => [
     1436          '{{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'position: {{VALUE}};',
     1437        ],
     1438        'frontend_available' => true,
     1439      ]
     1440    );
     1441
     1442    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     1443    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     1444
     1445    $start = is_rtl() ? $right : $left;
     1446    $end   = !is_rtl() ? $right : $left;
     1447
     1448    $this->add_control(
     1449      '_offset_popup_orientation_h',
     1450      [
     1451        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     1452        'type'        => Controls_Manager::CHOOSE,
     1453        'toggle'      => false,
     1454        'default'     => 'start',
     1455        'options'     => [
     1456          'start' => [
     1457            'title' => $start,
     1458            'icon'  => 'eicon-h-align-left',
     1459          ],
     1460          'end'   => [
     1461            'title' => $end,
     1462            'icon'  => 'eicon-h-align-right',
     1463          ],
     1464        ],
     1465        'classes'     => 'elementor-control-start-end',
     1466        'render_type' => 'ui',
     1467        'condition'   => [
     1468          'popup_position!' => '',
     1469        ],
     1470      ]
     1471    );
     1472
     1473    $this->add_responsive_control(
     1474      '_offset_popup_x',
     1475      [
     1476        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1477        'type'       => Controls_Manager::SLIDER,
     1478        'range'      => [
     1479          'px' => [
     1480            'min' => -1000,
     1481            'max' => 1000,
     1482          ],
     1483          '%'  => [
     1484            'min' => -200,
     1485            'max' => 200,
     1486          ],
     1487          'vw' => [
     1488            'min' => -200,
     1489            'max' => 200,
     1490          ],
     1491          'vh' => [
     1492            'min' => -200,
     1493            'max' => 200,
     1494          ],
     1495        ],
     1496        'default'    => [
     1497          'size' => 0,
     1498        ],
     1499        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1500        'selectors'  => [
     1501          'body:not(.rtl) {{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1502          'body.rtl {{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1503        ],
     1504        'condition'  => [
     1505          '_offset_popup_orientation_h!' => 'end',
     1506          'popup_position!'              => '',
     1507        ],
     1508      ]
     1509    );
     1510
     1511    $this->add_responsive_control(
     1512      '_offset_popup_x_end',
     1513      [
     1514        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1515        'type'       => Controls_Manager::SLIDER,
     1516        'range'      => [
     1517          'px' => [
     1518            'min' => -1000,
     1519            'max' => 1000,
     1520          ],
     1521          '%'  => [
     1522            'min' => -200,
     1523            'max' => 200,
     1524          ],
     1525          'vw' => [
     1526            'min' => -200,
     1527            'max' => 200,
     1528          ],
     1529          'vh' => [
     1530            'min' => -200,
     1531            'max' => 200,
     1532          ],
     1533        ],
     1534        'default'    => [
     1535          'size' => 0,
     1536        ],
     1537        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1538        'selectors'  => [
     1539          'body:not(.rtl) {{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1540          'body.rtl {{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1541        ],
     1542        'condition'  => [
     1543          '_offset_popup_orientation_h' => 'end',
     1544          'popup_position!'             => '',
     1545        ],
     1546      ]
     1547    );
     1548
     1549    $this->add_control(
     1550      '_offset_popup_orientation_v',
     1551      [
     1552        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1553        'type'        => Controls_Manager::CHOOSE,
     1554        'toggle'      => false,
     1555        'default'     => 'start',
     1556        'options'     => [
     1557          'start' => [
     1558            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1559            'icon'  => 'eicon-v-align-top',
     1560          ],
     1561          'end'   => [
     1562            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1563            'icon'  => 'eicon-v-align-bottom',
     1564          ],
     1565        ],
     1566        'render_type' => 'ui',
     1567        'condition'   => [
     1568          'popup_position!' => '',
     1569        ],
     1570      ]
     1571    );
     1572
     1573    $this->add_responsive_control(
     1574      '_offset_popup_y',
     1575      [
     1576        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1577        'type'       => Controls_Manager::SLIDER,
     1578        'range'      => [
     1579          'px' => [
     1580            'min' => -1000,
     1581            'max' => 1000,
     1582          ],
     1583          '%'  => [
     1584            'min' => -200,
     1585            'max' => 200,
     1586          ],
     1587          'vh' => [
     1588            'min' => -200,
     1589            'max' => 200,
     1590          ],
     1591          'vw' => [
     1592            'min' => -200,
     1593            'max' => 200,
     1594          ],
     1595        ],
     1596        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1597        'default'    => [
     1598          'size' => 0,
     1599        ],
     1600        'selectors'  => [
     1601          '{{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1602        ],
     1603        'condition'  => [
     1604          '_offset_popup_orientation_v!' => 'end',
     1605          'popup_position!'              => '',
     1606        ],
     1607      ]
     1608    );
     1609
     1610    $this->add_responsive_control(
     1611      '_offset_popup_y_end',
     1612      [
     1613        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1614        'type'       => Controls_Manager::SLIDER,
     1615        'range'      => [
     1616          'px' => [
     1617            'min' => -1000,
     1618            'max' => 1000,
     1619          ],
     1620          '%'  => [
     1621            'min' => -200,
     1622            'max' => 200,
     1623          ],
     1624          'vh' => [
     1625            'min' => -200,
     1626            'max' => 200,
     1627          ],
     1628          'vw' => [
     1629            'min' => -200,
     1630            'max' => 200,
     1631          ],
     1632        ],
     1633        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1634        'default'    => [
     1635          'size' => 0,
     1636        ],
     1637        'selectors'  => [
     1638          '{{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1639        ],
     1640        'condition'  => [
     1641          '_offset_popup_orientation_v' => 'end',
     1642          'popup_position!'             => '',
     1643        ],
     1644      ]
     1645    );
     1646
     1647    $this->add_responsive_control(
     1648      'popup_z_index',
     1649      [
     1650        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1651        'type'      => Controls_Manager::NUMBER,
     1652        'min'       => 0,
     1653        'selectors' => [
     1654          '{{WRAPPER}} .mySwiperGalleryCoverflow-modal#slider-modal' => 'z-index: {{VALUE}};',
     1655        ],
     1656      ]
     1657    );
     1658
    14041659    $this->add_group_control(
    14051660      Group_Control_Background::get_type(),
     
    14081663        'types'    => ['classic', 'gradient'],
    14091664        'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1665        'separator' => 'before',
    14101666      ]
    14111667    );
     
    18492105   * Written in PHP and used to generate the final HTML.
    18502106   *
    1851    * @since  11.3.1
     2107   * @since  11.4.0
    18522108   *
    18532109   * @access protected
     
    18602116        'my_swiper',
    18612117        [
    1862           'class'                             => ['slider-params'],
    1863           'data-slidestoshow-myswiper'        => esc_attr($settings['slides_to_show']),
    1864           'data-slidestoshow-myswiper-tablet' => esc_attr($settings['slides_to_show_tablet']),
    1865           'data-slidestoshow-myswiper-mobile' => esc_attr($settings['slides_to_show_mobile']),
    1866           'data-direction-myswiper'           => esc_attr($settings['direction']),
    1867           'data-direction-myswiper-tablet'    => esc_attr($settings['direction_tablet']),
    1868           'data-direction-myswiper-mobile'    => esc_attr($settings['direction_mobile']),
    1869           'data-navigation-myswiper'          => esc_attr($settings['navigation']),
    1870           'data-autoplay-myswiper'            => esc_attr($settings['autoplay']),
    1871           'data-speed-myswiper'               => esc_attr($settings['slider_speed']),
    1872           'data-autoplayspeed-myswiper'       => esc_attr($settings['autoplay_speed']),
    1873           'data-rotate-myswiper'              => esc_attr($settings['slide_rotate']),
    1874           'data-stretch-myswiper'             => esc_attr($settings['slide_stretch']),
    1875           'data-depth-myswiper'               => esc_attr($settings['slide_depth']),
    1876           'data-modifier-myswiper'            => esc_attr($settings['slide_modifier']),
    1877           'data-slideshadows-myswiper'        => esc_attr($settings['slide_shadows']),
    1878           'data-controller-myswiper'          => esc_attr($settings['controller']),
    1879           'data-showlinetext-myswiper'        => esc_attr($settings['show_line_text']),
     2118          'class'                                    => ['slider-params'],
     2119          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     2120          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     2121          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     2122          'data-direction-myswiper'                  => esc_attr($settings['direction']),
     2123          'data-direction-myswiper-tablet'           => esc_attr($settings['direction_tablet']),
     2124          'data-direction-myswiper-mobile'           => esc_attr($settings['direction_mobile']),
     2125          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     2126          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     2127          'data-speed-myswiper'                      => esc_attr($settings['slider_speed']),
     2128          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     2129          'data-rotate-myswiper'                     => esc_attr($settings['slide_rotate']),
     2130          'data-stretch-myswiper'                    => esc_attr($settings['slide_stretch']),
     2131          'data-depth-myswiper'                      => esc_attr($settings['slide_depth']),
     2132          'data-modifier-myswiper'                   => esc_attr($settings['slide_modifier']),
     2133          'data-slideshadows-myswiper'               => esc_attr($settings['slide_shadows']),
     2134          'data-controller-myswiper'                 => esc_attr($settings['controller']),
     2135          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     2136          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    18802137        ]
    18812138      );
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-logo.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Logo widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel_Logo extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.3.1
     82   * @since  11.4.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.3.1
     96   * @since  11.4.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.3.1
     115   * @since  11.4.0
    116116   *
    117117   * @access public
     
    166166   * Adds different input fields to allow the user to change and customize the widget settings.
    167167   *
    168    * @since  11.3.1
     168   * @since  11.4.0
    169169   *
    170170   * @access protected
     
    465465        'default'            => 5000,
    466466        'frontend_available' => true,
     467        'condition'          => [
     468          'autoplay' => 'yes',
     469        ]
     470      ]
     471    );
     472
     473    $this->add_control(
     474      'disable_interaction',
     475      [
     476        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     477        'type'               => Controls_Manager::SWITCHER,
     478        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     479        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     480        'return_value'       => 'yes',
     481        'default'            => 'yes',
     482        'frontend_available' => true,
     483        'condition'          => [
     484          'autoplay' => 'yes',
     485        ]
    467486      ]
    468487    );
     
    10891108    );
    10901109
     1110    $this->add_control(
     1111      'popup_position',
     1112      [
     1113        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     1114        'type'               => Controls_Manager::SELECT,
     1115        'default'            => '',
     1116        'options'            => [
     1117          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     1118          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     1119          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     1120        ],
     1121        'selectors'          => [
     1122          '{{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'position: {{VALUE}};',
     1123        ],
     1124        'frontend_available' => true,
     1125      ]
     1126    );
     1127
     1128    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     1129    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     1130
     1131    $start = is_rtl() ? $right : $left;
     1132    $end   = !is_rtl() ? $right : $left;
     1133
     1134    $this->add_control(
     1135      '_offset_popup_orientation_h',
     1136      [
     1137        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     1138        'type'        => Controls_Manager::CHOOSE,
     1139        'toggle'      => false,
     1140        'default'     => 'start',
     1141        'options'     => [
     1142          'start' => [
     1143            'title' => $start,
     1144            'icon'  => 'eicon-h-align-left',
     1145          ],
     1146          'end'   => [
     1147            'title' => $end,
     1148            'icon'  => 'eicon-h-align-right',
     1149          ],
     1150        ],
     1151        'classes'     => 'elementor-control-start-end',
     1152        'render_type' => 'ui',
     1153        'condition'   => [
     1154          'popup_position!' => '',
     1155        ],
     1156      ]
     1157    );
     1158
     1159    $this->add_responsive_control(
     1160      '_offset_popup_x',
     1161      [
     1162        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1163        'type'       => Controls_Manager::SLIDER,
     1164        'range'      => [
     1165          'px' => [
     1166            'min' => -1000,
     1167            'max' => 1000,
     1168          ],
     1169          '%'  => [
     1170            'min' => -200,
     1171            'max' => 200,
     1172          ],
     1173          'vw' => [
     1174            'min' => -200,
     1175            'max' => 200,
     1176          ],
     1177          'vh' => [
     1178            'min' => -200,
     1179            'max' => 200,
     1180          ],
     1181        ],
     1182        'default'    => [
     1183          'size' => 0,
     1184        ],
     1185        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1186        'selectors'  => [
     1187          'body:not(.rtl) {{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1188          'body.rtl {{WRAPPER}} .mySwiperLogo-modal#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1189        ],
     1190        'condition'  => [
     1191          '_offset_popup_orientation_h!' => 'end',
     1192          'popup_position!'              => '',
     1193        ],
     1194      ]
     1195    );
     1196
     1197    $this->add_responsive_control(
     1198      '_offset_popup_x_end',
     1199      [
     1200        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1201        'type'       => Controls_Manager::SLIDER,
     1202        'range'      => [
     1203          'px' => [
     1204            'min' => -1000,
     1205            'max' => 1000,
     1206          ],
     1207          '%'  => [
     1208            'min' => -200,
     1209            'max' => 200,
     1210          ],
     1211          'vw' => [
     1212            'min' => -200,
     1213            'max' => 200,
     1214          ],
     1215          'vh' => [
     1216            'min' => -200,
     1217            'max' => 200,
     1218          ],
     1219        ],
     1220        'default'    => [
     1221          'size' => 0,
     1222        ],
     1223        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1224        'selectors'  => [
     1225          'body:not(.rtl) {{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1226          'body.rtl {{WRAPPER}} .mySwiperLogo-modal#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1227        ],
     1228        'condition'  => [
     1229          '_offset_popup_orientation_h' => 'end',
     1230          'popup_position!'             => '',
     1231        ],
     1232      ]
     1233    );
     1234
     1235    $this->add_control(
     1236      '_offset_popup_orientation_v',
     1237      [
     1238        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1239        'type'        => Controls_Manager::CHOOSE,
     1240        'toggle'      => false,
     1241        'default'     => 'start',
     1242        'options'     => [
     1243          'start' => [
     1244            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1245            'icon'  => 'eicon-v-align-top',
     1246          ],
     1247          'end'   => [
     1248            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1249            'icon'  => 'eicon-v-align-bottom',
     1250          ],
     1251        ],
     1252        'render_type' => 'ui',
     1253        'condition'   => [
     1254          'popup_position!' => '',
     1255        ],
     1256      ]
     1257    );
     1258
     1259    $this->add_responsive_control(
     1260      '_offset_popup_y',
     1261      [
     1262        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1263        'type'       => Controls_Manager::SLIDER,
     1264        'range'      => [
     1265          'px' => [
     1266            'min' => -1000,
     1267            'max' => 1000,
     1268          ],
     1269          '%'  => [
     1270            'min' => -200,
     1271            'max' => 200,
     1272          ],
     1273          'vh' => [
     1274            'min' => -200,
     1275            'max' => 200,
     1276          ],
     1277          'vw' => [
     1278            'min' => -200,
     1279            'max' => 200,
     1280          ],
     1281        ],
     1282        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1283        'default'    => [
     1284          'size' => 0,
     1285        ],
     1286        'selectors'  => [
     1287          '{{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1288        ],
     1289        'condition'  => [
     1290          '_offset_popup_orientation_v!' => 'end',
     1291          'popup_position!'              => '',
     1292        ],
     1293      ]
     1294    );
     1295
     1296    $this->add_responsive_control(
     1297      '_offset_popup_y_end',
     1298      [
     1299        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1300        'type'       => Controls_Manager::SLIDER,
     1301        'range'      => [
     1302          'px' => [
     1303            'min' => -1000,
     1304            'max' => 1000,
     1305          ],
     1306          '%'  => [
     1307            'min' => -200,
     1308            'max' => 200,
     1309          ],
     1310          'vh' => [
     1311            'min' => -200,
     1312            'max' => 200,
     1313          ],
     1314          'vw' => [
     1315            'min' => -200,
     1316            'max' => 200,
     1317          ],
     1318        ],
     1319        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1320        'default'    => [
     1321          'size' => 0,
     1322        ],
     1323        'selectors'  => [
     1324          '{{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1325        ],
     1326        'condition'  => [
     1327          '_offset_popup_orientation_v' => 'end',
     1328          'popup_position!'             => '',
     1329        ],
     1330      ]
     1331    );
     1332
     1333    $this->add_responsive_control(
     1334      'popup_z_index',
     1335      [
     1336        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1337        'type'      => Controls_Manager::NUMBER,
     1338        'min'       => 0,
     1339        'selectors' => [
     1340          '{{WRAPPER}} .mySwiperLogo-modal#slider-modal' => 'z-index: {{VALUE}};',
     1341        ],
     1342      ]
     1343    );
     1344
    10911345    $this->add_group_control(
    10921346      Group_Control_Background::get_type(),
    10931347      [
    1094         'name'     => 'popup_background',
    1095         'types'    => ['classic', 'gradient'],
    1096         'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-background',
     1348        'name'      => 'popup_background',
     1349        'types'     => ['classic', 'gradient'],
     1350        'selector'  => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-background',
     1351        'separator' => 'before',
    10971352      ]
    10981353    );
     
    17201975   * Written in PHP and used to generate the final HTML.
    17211976   *
    1722    * @since  11.3.1
     1977   * @since  11.4.0
    17231978   *
    17241979   * @access protected
     
    17321987        'my_swiper',
    17331988        [
    1734           'class'                               => ['slider-params'],
    1735           'data-slidestoshow-myswiper'          => esc_attr($settings['slides_to_show']),
    1736           'data-slidestoshow-myswiper-tablet'   => esc_attr($settings['slides_to_show_tablet']),
    1737           'data-slidestoshow-myswiper-mobile'   => esc_attr($settings['slides_to_show_mobile']),
    1738           'data-slidestoscroll-myswiper'        => esc_attr($settings['slides_to_scroll']),
    1739           'data-slidestoscroll-myswiper-tablet' => esc_attr($settings['slides_to_scroll_tablet']),
    1740           'data-slidestoscroll-myswiper-mobile' => esc_attr($settings['slides_to_scroll_mobile']),
    1741           'data-navigation-myswiper'            => esc_attr($settings['navigation']),
    1742           'data-autoplay-myswiper'              => esc_attr($settings['autoplay']),
    1743           'data-autoplayspeed-myswiper'         => esc_attr($settings['autoplay_speed']),
    1744           'data-sliderloop-myswiper'            => esc_attr($settings['slider_loop']),
    1745           'data-showlinetext-myswiper'          => esc_attr($settings['show_line_text']),
     1989          'class'                                    => ['slider-params'],
     1990          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     1991          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     1992          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     1993          'data-slidestoscroll-myswiper'             => esc_attr($settings['slides_to_scroll']),
     1994          'data-slidestoscroll-myswiper-tablet'      => esc_attr($settings['slides_to_scroll_tablet']),
     1995          'data-slidestoscroll-myswiper-mobile'      => esc_attr($settings['slides_to_scroll_mobile']),
     1996          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1997          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1998          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1999          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     2000          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     2001          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    17462002        ]
    17472003      );
     
    17932049        </div>
    17942050      </section>
    1795       <div class="slider-modal" id="slider-modal">
     2051      <div class="slider-modal mySwiperLogo-modal" id="slider-modal">
    17962052        <div class="slider-modal-bg slider-modal-exit"></div>
    17972053        <div class="slider-modal-container slider-container-background slider-logo-container-background">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-thumbnails.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3232 * TestimonialsCarousel_Creative widget class.
    3333 *
    34  * @since 11.3.1
     34 * @since 11.4.0
    3535 */
    3636class TestimonialsCarousel_Thumbnails extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.3.1
     69   * @since  11.4.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.3.1
     83   * @since  11.4.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.3.1
     97   * @since  11.4.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.3.1
     116   * @since  11.4.0
    117117   *
    118118   * @access public
     
    162162   * Adds different input fields to allow the user to change and customize the widget settings.
    163163   *
    164    * @since  11.3.1
     164   * @since  11.4.0
    165165   *
    166166   * @access protected
     
    415415        'default'            => 5000,
    416416        'frontend_available' => true,
     417        'condition'          => [
     418          'autoplay' => 'yes',
     419        ]
     420      ]
     421    );
     422
     423    $this->add_control(
     424      'disable_interaction',
     425      [
     426        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     427        'type'               => Controls_Manager::SWITCHER,
     428        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     429        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     430        'return_value'       => 'yes',
     431        'default'            => 'yes',
     432        'frontend_available' => true,
     433        'condition'          => [
     434          'autoplay' => 'yes',
     435        ]
    417436      ]
    418437    );
     
    873892    );
    874893
     894    $this->start_controls_tabs(
     895      'slider_read_more_tabs'
     896    );
     897
     898    $this->start_controls_tab(
     899      'slider_read_more_normal_tab',
     900      [
     901        'label' => esc_html__('Default', 'testimonials-carousel-elementor')
     902      ]
     903    );
     904
     905    $this->add_group_control(
     906      Group_Control_Background::get_type(),
     907      [
     908        'name'     => 'slider_read_more_background_color',
     909        'types'    => ['classic', 'gradient'],
     910        'selector' => '{{WRAPPER}} .testimonials-thumbnails .thumbnail__slider_1 .thumbnail__content .thumbnail__button',
     911      ]
     912    );
     913
    875914    $this->add_control(
    876915      'slider_read_more_color',
    877916      [
    878         'label'     => esc_html__('Read more button color', 'testimonials-carousel-elementor'),
     917        'label'     => esc_html__('Color', 'testimonials-carousel-elementor'),
    879918        'type'      => Controls_Manager::COLOR,
    880919        'selectors' => [
     
    884923      ]
    885924    );
     925
     926    $this->end_controls_tab();
     927
     928    $this->start_controls_tab(
     929      'slider_read_more_hover_tab',
     930      [
     931        'label' => esc_html__('Hover', 'testimonials-carousel-elementor'),
     932      ]
     933    );
     934
     935    $this->add_group_control(
     936      Group_Control_Background::get_type(),
     937      [
     938        'name'     => 'slider_read_more_background_hover_color',
     939        'types'    => ['classic', 'gradient'],
     940        'selector' => '{{WRAPPER}} .testimonials-thumbnails .thumbnail__slider_1 .thumbnail__content .thumbnail__button:hover',
     941      ]
     942    );
     943
     944    $this->add_control(
     945      'slider_read_more_hover_color',
     946      [
     947        'label'     => esc_html__('Color', 'testimonials-carousel-elementor'),
     948        'type'      => Controls_Manager::COLOR,
     949        'selectors' => [
     950          '{{WRAPPER}} .testimonials-thumbnails .thumbnail__slider_1 .thumbnail__content .thumbnail__button:hover'          => 'color: {{VALUE}}; border-color: {{VALUE}};',
     951          '{{WRAPPER}} .testimonials-thumbnails .thumbnail__slider_1 .thumbnail__content .thumbnail__button:hover svg path' => 'fill: {{VALUE}}',
     952        ],
     953      ]
     954    );
     955
     956    $this->end_controls_tab();
     957
     958    $this->end_controls_tabs();
     959
    886960    $this->add_group_control(
    887961      Group_Control_Typography::get_type(),
    888962      [
    889963        'name'     => 'slider_read_more_typography',
    890         'label'    => esc_html__('Read more button typography', 'testimonials-carousel-elementor'),
     964        'label'    => esc_html__('Typography', 'testimonials-carousel-elementor'),
    891965        'selector' => '{{WRAPPER}} .testimonials-thumbnails .thumbnail__slider_1 .thumbnail__content .thumbnail__button',
    892966      ]
     
    923997      ]
    924998    );
     999
     1000    $this->add_control(
     1001      'popup_position',
     1002      [
     1003        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     1004        'type'               => Controls_Manager::SELECT,
     1005        'default'            => '',
     1006        'options'            => [
     1007          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     1008          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     1009          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     1010        ],
     1011        'selectors'          => [
     1012          '{{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'position: {{VALUE}};',
     1013        ],
     1014        'frontend_available' => true,
     1015      ]
     1016    );
     1017
     1018    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     1019    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     1020
     1021    $start = is_rtl() ? $right : $left;
     1022    $end   = !is_rtl() ? $right : $left;
     1023
     1024    $this->add_control(
     1025      '_offset_popup_orientation_h',
     1026      [
     1027        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     1028        'type'        => Controls_Manager::CHOOSE,
     1029        'toggle'      => false,
     1030        'default'     => 'start',
     1031        'options'     => [
     1032          'start' => [
     1033            'title' => $start,
     1034            'icon'  => 'eicon-h-align-left',
     1035          ],
     1036          'end'   => [
     1037            'title' => $end,
     1038            'icon'  => 'eicon-h-align-right',
     1039          ],
     1040        ],
     1041        'classes'     => 'elementor-control-start-end',
     1042        'render_type' => 'ui',
     1043        'condition'   => [
     1044          'popup_position!' => '',
     1045        ],
     1046      ]
     1047    );
     1048
     1049    $this->add_responsive_control(
     1050      '_offset_popup_x',
     1051      [
     1052        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1053        'type'       => Controls_Manager::SLIDER,
     1054        'range'      => [
     1055          'px' => [
     1056            'min' => -1000,
     1057            'max' => 1000,
     1058          ],
     1059          '%'  => [
     1060            'min' => -200,
     1061            'max' => 200,
     1062          ],
     1063          'vw' => [
     1064            'min' => -200,
     1065            'max' => 200,
     1066          ],
     1067          'vh' => [
     1068            'min' => -200,
     1069            'max' => 200,
     1070          ],
     1071        ],
     1072        'default'    => [
     1073          'size' => 0,
     1074        ],
     1075        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1076        'selectors'  => [
     1077          'body:not(.rtl) {{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1078          'body.rtl {{WRAPPER}} .testimonials-thumbnails#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1079        ],
     1080        'condition'  => [
     1081          '_offset_popup_orientation_h!' => 'end',
     1082          'popup_position!'              => '',
     1083        ],
     1084      ]
     1085    );
     1086
     1087    $this->add_responsive_control(
     1088      '_offset_popup_x_end',
     1089      [
     1090        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1091        'type'       => Controls_Manager::SLIDER,
     1092        'range'      => [
     1093          'px' => [
     1094            'min' => -1000,
     1095            'max' => 1000,
     1096          ],
     1097          '%'  => [
     1098            'min' => -200,
     1099            'max' => 200,
     1100          ],
     1101          'vw' => [
     1102            'min' => -200,
     1103            'max' => 200,
     1104          ],
     1105          'vh' => [
     1106            'min' => -200,
     1107            'max' => 200,
     1108          ],
     1109        ],
     1110        'default'    => [
     1111          'size' => 0,
     1112        ],
     1113        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1114        'selectors'  => [
     1115          'body:not(.rtl) {{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1116          'body.rtl {{WRAPPER}} .testimonials-thumbnails#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1117        ],
     1118        'condition'  => [
     1119          '_offset_popup_orientation_h' => 'end',
     1120          'popup_position!'             => '',
     1121        ],
     1122      ]
     1123    );
     1124
     1125    $this->add_control(
     1126      '_offset_popup_orientation_v',
     1127      [
     1128        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1129        'type'        => Controls_Manager::CHOOSE,
     1130        'toggle'      => false,
     1131        'default'     => 'start',
     1132        'options'     => [
     1133          'start' => [
     1134            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1135            'icon'  => 'eicon-v-align-top',
     1136          ],
     1137          'end'   => [
     1138            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1139            'icon'  => 'eicon-v-align-bottom',
     1140          ],
     1141        ],
     1142        'render_type' => 'ui',
     1143        'condition'   => [
     1144          'popup_position!' => '',
     1145        ],
     1146      ]
     1147    );
     1148
     1149    $this->add_responsive_control(
     1150      '_offset_popup_y',
     1151      [
     1152        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1153        'type'       => Controls_Manager::SLIDER,
     1154        'range'      => [
     1155          'px' => [
     1156            'min' => -1000,
     1157            'max' => 1000,
     1158          ],
     1159          '%'  => [
     1160            'min' => -200,
     1161            'max' => 200,
     1162          ],
     1163          'vh' => [
     1164            'min' => -200,
     1165            'max' => 200,
     1166          ],
     1167          'vw' => [
     1168            'min' => -200,
     1169            'max' => 200,
     1170          ],
     1171        ],
     1172        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1173        'default'    => [
     1174          'size' => 0,
     1175        ],
     1176        'selectors'  => [
     1177          '{{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1178        ],
     1179        'condition'  => [
     1180          '_offset_popup_orientation_v!' => 'end',
     1181          'popup_position!'              => '',
     1182        ],
     1183      ]
     1184    );
     1185
     1186    $this->add_responsive_control(
     1187      '_offset_popup_y_end',
     1188      [
     1189        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1190        'type'       => Controls_Manager::SLIDER,
     1191        'range'      => [
     1192          'px' => [
     1193            'min' => -1000,
     1194            'max' => 1000,
     1195          ],
     1196          '%'  => [
     1197            'min' => -200,
     1198            'max' => 200,
     1199          ],
     1200          'vh' => [
     1201            'min' => -200,
     1202            'max' => 200,
     1203          ],
     1204          'vw' => [
     1205            'min' => -200,
     1206            'max' => 200,
     1207          ],
     1208        ],
     1209        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1210        'default'    => [
     1211          'size' => 0,
     1212        ],
     1213        'selectors'  => [
     1214          '{{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1215        ],
     1216        'condition'  => [
     1217          '_offset_popup_orientation_v' => 'end',
     1218          'popup_position!'             => '',
     1219        ],
     1220      ]
     1221    );
     1222
     1223    $this->add_responsive_control(
     1224      'popup_z_index',
     1225      [
     1226        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1227        'type'      => Controls_Manager::NUMBER,
     1228        'min'       => 0,
     1229        'selectors' => [
     1230          '{{WRAPPER}} .testimonials-thumbnails#slider-modal' => 'z-index: {{VALUE}};',
     1231        ],
     1232      ]
     1233    );
     1234
    9251235    $this->add_group_control(
    9261236      Group_Control_Background::get_type(),
    9271237      [
    928         'name'     => 'popup_background',
    929         'types'    => ['classic', 'gradient'],
    930         'selector' => '{{WRAPPER}} .testimonials-thumbnails#slider-modal .slider-modal-container',
     1238        'name'      => 'popup_background',
     1239        'types'     => ['classic', 'gradient'],
     1240        'selector'  => '{{WRAPPER}} .testimonials-thumbnails#slider-modal .slider-modal-container',
     1241        'separator' => 'before',
    9311242      ]
    9321243    );
     
    14621773   * Written in PHP and used to generate the final HTML.
    14631774   *
    1464    * @since  11.3.1
     1775   * @since  11.4.0
    14651776   *
    14661777   * @access protected
     
    14731784        'my_swiper',
    14741785        [
    1475           'class'                       => ['slider-params'],
    1476           'data-navigation-myswiper'    => esc_attr($settings['navigation']),
    1477           'data-speed-myswiper'         => esc_attr($settings['slider_speed']),
    1478           'data-autoplay-myswiper'      => esc_attr($settings['autoplay']),
    1479           'data-autoplayspeed-myswiper' => esc_attr($settings['autoplay_speed']),
    1480           'data-sliderloop-myswiper'    => esc_attr($settings['slider_loop']),
    1481           'data-showlinetext-myswiper'  => esc_attr($settings['show_line_text']),
     1786          'class'                                    => ['slider-params'],
     1787          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     1788          'data-speed-myswiper'                      => esc_attr($settings['slider_speed']),
     1789          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     1790          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     1791          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     1792          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
     1793          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
    14821794        ]
    14831795      );
     
    15041816                    <div class="thumbnail__wrapper thumbnails-content">
    15051817                      <?php if ($settings['slider_global_show_images'] === 'yes') { ?>
    1506                         <img class="thumbnail__image" src="<?php echo esc_url($item['slide_image']['url']) ?>"
    1507                              alt="<?php echo esc_url($item['slide_image']['alt']) ?>"/>
     1818                        <img class="thumbnail__image" src="<?php echo esc_url($item['slide_image']['url']); ?>"
     1819                             alt="<?php echo esc_url($item['slide_image']['alt'] ?? ''); ?>"/>
    15081820                      <?php } ?>
    15091821
     
    15591871                  if (isset($item['slide_image'], $item['slide_image']['url']) && !empty($item['slide_image']['url'])) { ?>
    15601872                    <div class="swiper-slide">
    1561                       <img class="thumbnail__image" src="<?php echo esc_url($item['slide_image']['url']) ?>"
    1562                            alt="<?php echo esc_url($item['slide_image']['alt']) ?>"/>
     1873                      <img class="thumbnail__image" src="<?php echo esc_url($item['slide_image']['url']); ?>"
     1874                           alt="<?php echo esc_url($item['slide_image']['alt'] ?? ''); ?>"/>
    15631875                    </div>
    15641876                  <?php }
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel.php

    r3157386 r3221633  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.3.1
     12 * @since      11.4.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel widget class.
    3232 *
    33  * @since 11.3.1
     33 * @since 11.4.0
    3434 */
    3535class TestimonialsCarousel extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.3.1
     68   * @since  11.4.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.3.1
     82   * @since  11.4.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.3.1
     96   * @since  11.4.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.3.1
     115   * @since  11.4.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.3.1
     165   * @since  11.4.0
    166166   *
    167167   * @access protected
     
    464464        'default'            => 5000,
    465465        'frontend_available' => true,
     466        'condition'          => [
     467          'autoplay' => 'yes',
     468        ]
     469      ]
     470    );
     471
     472    $this->add_control(
     473      'disable_interaction',
     474      [
     475        'label'              => esc_html__('Disable On Interaction', 'testimonials-carousel-elementor'),
     476        'type'               => Controls_Manager::SWITCHER,
     477        'label_on'           => __('Yes', 'testimonials-carousel-elementor'),
     478        'label_off'          => __('No', 'testimonials-carousel-elementor'),
     479        'return_value'       => 'yes',
     480        'default'            => 'yes',
     481        'frontend_available' => true,
     482        'condition'          => [
     483          'autoplay' => 'yes',
     484        ]
    466485      ]
    467486    );
     
    10921111      ]
    10931112    );
     1113
     1114    $this->add_control(
     1115      'popup_position',
     1116      [
     1117        'label'              => esc_html__('Position', 'testimonials-carousel-elementor'),
     1118        'type'               => Controls_Manager::SELECT,
     1119        'default'            => '',
     1120        'options'            => [
     1121          ''         => esc_html__('Default', 'testimonials-carousel-elementor'),
     1122          'absolute' => esc_html__('Absolute', 'testimonials-carousel-elementor'),
     1123          'fixed'    => esc_html__('Fixed', 'testimonials-carousel-elementor'),
     1124        ],
     1125        'selectors'          => [
     1126          '{{WRAPPER}} .testimonials-rating#slider-modal' => 'position: {{VALUE}};',
     1127        ],
     1128        'frontend_available' => true,
     1129      ]
     1130    );
     1131
     1132    $left  = esc_html__('Left', 'testimonials-carousel-elementor');
     1133    $right = esc_html__('Right', 'testimonials-carousel-elementor');
     1134
     1135    $start = is_rtl() ? $right : $left;
     1136    $end   = !is_rtl() ? $right : $left;
     1137
     1138    $this->add_control(
     1139      '_offset_popup_orientation_h',
     1140      [
     1141        'label'       => esc_html__('Horizontal Orientation', 'testimonials-carousel-elementor'),
     1142        'type'        => Controls_Manager::CHOOSE,
     1143        'toggle'      => false,
     1144        'default'     => 'start',
     1145        'options'     => [
     1146          'start' => [
     1147            'title' => $start,
     1148            'icon'  => 'eicon-h-align-left',
     1149          ],
     1150          'end'   => [
     1151            'title' => $end,
     1152            'icon'  => 'eicon-h-align-right',
     1153          ],
     1154        ],
     1155        'classes'     => 'elementor-control-start-end',
     1156        'render_type' => 'ui',
     1157        'condition'   => [
     1158          'popup_position!' => '',
     1159        ],
     1160      ]
     1161    );
     1162
     1163    $this->add_responsive_control(
     1164      '_offset_popup_x',
     1165      [
     1166        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1167        'type'       => Controls_Manager::SLIDER,
     1168        'range'      => [
     1169          'px' => [
     1170            'min' => -1000,
     1171            'max' => 1000,
     1172          ],
     1173          '%'  => [
     1174            'min' => -200,
     1175            'max' => 200,
     1176          ],
     1177          'vw' => [
     1178            'min' => -200,
     1179            'max' => 200,
     1180          ],
     1181          'vh' => [
     1182            'min' => -200,
     1183            'max' => 200,
     1184          ],
     1185        ],
     1186        'default'    => [
     1187          'size' => 0,
     1188        ],
     1189        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1190        'selectors'  => [
     1191          'body:not(.rtl) {{WRAPPER}} .testimonials-rating#slider-modal' => 'left: {{SIZE}}{{UNIT}}',
     1192          'body.rtl {{WRAPPER}} .testimonials-rating#slider-modal'       => 'right: {{SIZE}}{{UNIT}}',
     1193        ],
     1194        'condition'  => [
     1195          '_offset_popup_orientation_h!' => 'end',
     1196          'popup_position!'              => '',
     1197        ],
     1198      ]
     1199    );
     1200
     1201    $this->add_responsive_control(
     1202      '_offset_popup_x_end',
     1203      [
     1204        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1205        'type'       => Controls_Manager::SLIDER,
     1206        'range'      => [
     1207          'px' => [
     1208            'min' => -1000,
     1209            'max' => 1000,
     1210          ],
     1211          '%'  => [
     1212            'min' => -200,
     1213            'max' => 200,
     1214          ],
     1215          'vw' => [
     1216            'min' => -200,
     1217            'max' => 200,
     1218          ],
     1219          'vh' => [
     1220            'min' => -200,
     1221            'max' => 200,
     1222          ],
     1223        ],
     1224        'default'    => [
     1225          'size' => 0,
     1226        ],
     1227        'size_units' => ['px', '%', 'em', 'rem', 'vw', 'vh', 'custom'],
     1228        'selectors'  => [
     1229          'body:not(.rtl) {{WRAPPER}} .testimonials-rating#slider-modal' => 'right: {{SIZE}}{{UNIT}}',
     1230          'body.rtl {{WRAPPER}} .testimonials-rating#slider-modal'       => 'left: {{SIZE}}{{UNIT}}',
     1231        ],
     1232        'condition'  => [
     1233          '_offset_popup_orientation_h' => 'end',
     1234          'popup_position!'             => '',
     1235        ],
     1236      ]
     1237    );
     1238
     1239    $this->add_control(
     1240      '_offset_popup_orientation_v',
     1241      [
     1242        'label'       => esc_html__('Vertical Orientation', 'testimonials-carousel-elementor'),
     1243        'type'        => Controls_Manager::CHOOSE,
     1244        'toggle'      => false,
     1245        'default'     => 'start',
     1246        'options'     => [
     1247          'start' => [
     1248            'title' => esc_html__('Top', 'testimonials-carousel-elementor'),
     1249            'icon'  => 'eicon-v-align-top',
     1250          ],
     1251          'end'   => [
     1252            'title' => esc_html__('Bottom', 'testimonials-carousel-elementor'),
     1253            'icon'  => 'eicon-v-align-bottom',
     1254          ],
     1255        ],
     1256        'render_type' => 'ui',
     1257        'condition'   => [
     1258          'popup_position!' => '',
     1259        ],
     1260      ]
     1261    );
     1262
     1263    $this->add_responsive_control(
     1264      '_offset_popup_y',
     1265      [
     1266        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1267        'type'       => Controls_Manager::SLIDER,
     1268        'range'      => [
     1269          'px' => [
     1270            'min' => -1000,
     1271            'max' => 1000,
     1272          ],
     1273          '%'  => [
     1274            'min' => -200,
     1275            'max' => 200,
     1276          ],
     1277          'vh' => [
     1278            'min' => -200,
     1279            'max' => 200,
     1280          ],
     1281          'vw' => [
     1282            'min' => -200,
     1283            'max' => 200,
     1284          ],
     1285        ],
     1286        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1287        'default'    => [
     1288          'size' => 0,
     1289        ],
     1290        'selectors'  => [
     1291          '{{WRAPPER}} .testimonials-rating#slider-modal' => 'top: {{SIZE}}{{UNIT}}',
     1292        ],
     1293        'condition'  => [
     1294          '_offset_popup_orientation_v!' => 'end',
     1295          'popup_position!'              => '',
     1296        ],
     1297      ]
     1298    );
     1299
     1300    $this->add_responsive_control(
     1301      '_offset_popup_y_end',
     1302      [
     1303        'label'      => esc_html__('Offset', 'testimonials-carousel-elementor'),
     1304        'type'       => Controls_Manager::SLIDER,
     1305        'range'      => [
     1306          'px' => [
     1307            'min' => -1000,
     1308            'max' => 1000,
     1309          ],
     1310          '%'  => [
     1311            'min' => -200,
     1312            'max' => 200,
     1313          ],
     1314          'vh' => [
     1315            'min' => -200,
     1316            'max' => 200,
     1317          ],
     1318          'vw' => [
     1319            'min' => -200,
     1320            'max' => 200,
     1321          ],
     1322        ],
     1323        'size_units' => ['px', '%', 'em', 'rem', 'vh', 'vw', 'custom'],
     1324        'default'    => [
     1325          'size' => 0,
     1326        ],
     1327        'selectors'  => [
     1328          '{{WRAPPER}} .testimonials-rating#slider-modal' => 'bottom: {{SIZE}}{{UNIT}}',
     1329        ],
     1330        'condition'  => [
     1331          '_offset_popup_orientation_v' => 'end',
     1332          'popup_position!'             => '',
     1333        ],
     1334      ]
     1335    );
     1336
     1337    $this->add_responsive_control(
     1338      'popup_z_index',
     1339      [
     1340        'label'     => esc_html__('Z-Index', 'testimonials-carousel-elementor'),
     1341        'type'      => Controls_Manager::NUMBER,
     1342        'min'       => 0,
     1343        'selectors' => [
     1344          '{{WRAPPER}} .testimonials-rating#slider-modal' => 'z-index: {{VALUE}};',
     1345        ],
     1346      ]
     1347    );
     1348
    10941349    $this->add_group_control(
    10951350      Group_Control_Background::get_type(),
    10961351      [
    1097         'name'     => 'popup_background',
    1098         'types'    => ['classic', 'gradient'],
    1099         'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1352        'name'      => 'popup_background',
     1353        'types'     => ['classic', 'gradient'],
     1354        'selector'  => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',
     1355        'separator' => 'before',
    11001356      ]
    11011357    );
     
    18162072   * Written in PHP and used to generate the final HTML.
    18172073   *
    1818    * @since  11.3.1
     2074   * @since  11.4.0
    18192075   *
    18202076   * @access protected
     
    18272083        'my_swiper',
    18282084        [
    1829           'class'                               => ['slider-params'],
    1830           'data-slidestoshow-myswiper'          => esc_attr($settings['slides_to_show']),
    1831           'data-slidestoshow-myswiper-tablet'   => esc_attr($settings['slides_to_show_tablet']),
    1832           'data-slidestoshow-myswiper-mobile'   => esc_attr($settings['slides_to_show_mobile']),
    1833           'data-slidestoscroll-myswiper'        => esc_attr($settings['slides_to_scroll']),
    1834           'data-slidestoscroll-myswiper-tablet' => esc_attr($settings['slides_to_scroll_tablet']),
    1835           'data-slidestoscroll-myswiper-mobile' => esc_attr($settings['slides_to_scroll_mobile']),
    1836           'data-navigation-myswiper'            => esc_attr($settings['navigation']),
    1837           'data-autoplay-myswiper'              => esc_attr($settings['autoplay']),
    1838           'data-autoplayspeed-myswiper'         => esc_attr($settings['autoplay_speed']),
    1839           'data-sliderloop-myswiper'            => esc_attr($settings['slider_loop']),
    1840           'data-showlinetext-myswiper'          => esc_attr($settings['show_line_text']),
     2085          'class'                                    => ['slider-params'],
     2086          'data-slidestoshow-myswiper'               => esc_attr($settings['slides_to_show']),
     2087          'data-slidestoshow-myswiper-tablet'        => esc_attr($settings['slides_to_show_tablet']),
     2088          'data-slidestoshow-myswiper-mobile'        => esc_attr($settings['slides_to_show_mobile']),
     2089          'data-slidestoscroll-myswiper'             => esc_attr($settings['slides_to_scroll']),
     2090          'data-slidestoscroll-myswiper-tablet'      => esc_attr($settings['slides_to_scroll_tablet']),
     2091          'data-slidestoscroll-myswiper-mobile'      => esc_attr($settings['slides_to_scroll_mobile']),
     2092          'data-navigation-myswiper'                 => esc_attr($settings['navigation']),
     2093          'data-autoplay-myswiper'                   => esc_attr($settings['autoplay']),
     2094          'data-autoplayspeed-myswiper'              => esc_attr($settings['autoplay_speed']),
     2095          'data-sliderloop-myswiper'                 => esc_attr($settings['slider_loop']),
     2096          'data-sliderdisableoninteraction-myswiper' => esc_attr($settings['disable_interaction']),
     2097          'data-showlinetext-myswiper'               => esc_attr($settings['show_line_text']),
    18412098        ]
    18422099      );
     
    18942151        <div class="swiper-pagination"></div>
    18952152      </section>
    1896       <div class="slider-modal" id="slider-modal">
     2153      <div class="slider-modal testimonials-rating" id="slider-modal">
    18972154        <div class="slider-modal-bg slider-modal-exit"></div>
    18982155        <div class="slider-modal-container slider-container-background slider-container-block-background">
Note: See TracChangeset for help on using the changeset viewer.