Changeset 3249685
- Timestamp:
- 03/03/2025 12:35:58 PM (12 months ago)
- Location:
- testimonials-carousel-elementor/trunk
- Files:
-
- 23 edited
-
assets/css/testimonials-carousel.min.css (modified) (1 diff)
-
assets/js/testimonials-carousel-widget-handler.min.js (modified) (1 diff)
-
assets/js/testimonials-carousel-widget-old-elementor-handler.min.js (modified) (1 diff)
-
class-testimonials-carousel-elementor.php (modified) (10 diffs)
-
class-widgets.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
-
testimonials-carousel-elementor.php (modified) (2 diffs)
-
widgets-templates/creative-slider/creative-with-background.php (modified) (3 diffs)
-
widgets-templates/creative-slider/default.php (modified) (3 diffs)
-
widgets/animated-carousel/class-testimonialscarousel-coverflow.php (modified) (12 diffs)
-
widgets/animated-carousel/class-testimonialscarousel-cube-360.php (modified) (8 diffs)
-
widgets/animated-carousel/class-testimonialscarousel-cube.php (modified) (9 diffs)
-
widgets/section-with-carousel/class-section-with-cube-360.php (modified) (8 diffs)
-
widgets/section-with-carousel/class-section-with-cube.php (modified) (9 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-blog.php (modified) (12 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-bottom.php (modified) (12 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-centered.php (modified) (13 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-creative.php (modified) (9 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-employees.php (modified) (12 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-gallery-coverflow.php (modified) (14 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-logo.php (modified) (12 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel-thumbnails.php (modified) (13 diffs)
-
widgets/testimonials-carousel/class-testimonialscarousel.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
testimonials-carousel-elementor/trunk/assets/css/testimonials-carousel.min.css
r3106750 r3249685 1 @font-face{font-family:icomoon;src:url(fonts/icomoon.eot?8dc08x);src:url(fonts/icomoon.eot?8dc08x#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?8dc08x) format("truetype"),url(fonts/icomoon.woff?8dc08x) format("woff"),url(fonts/icomoon.svg?8dc08x#icomoon) format("svg");font-weight:400;font-style:normal;font-display:block}[class*=" icon-"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-close:before{content:"\e90e"}.icon-star-empty:before{content:"\e9d7"}.icon-star-full:before{content:"\e9d9"}.icon-arrow-right2:before{content:"\ea3c"}.icon-arrow-left2:before{content:"\ea40"}.mySwiper{position:static;padding:30px 30px 50px;width:calc(100% - 140px);height:100%}@media (max-width:1024px){.mySwiper{width:calc(100% - 120px);padding-bottom:40px}}@media (max-width:767px){.mySwiper{width:100%}}.mySwiper .swiper-wrapper{margin-left:0;margin-right:0;padding:0}.mySwiper .swiper-slide{display:flex;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;padding:2px;height:auto}.mySwiper .swiper-button-next,.mySwiper .swiper-button-prev{width:40px;height:40px;background-color:#fff;background-image:none;border-radius:50%}@media (max-width:767px){.mySwiper .swiper-button-next,.mySwiper .swiper-button-prev{display:none}}.mySwiper .swiper-button-next:after,.mySwiper .swiper-button-prev:after{font-size:15px;color:#a9a9a9;font-weight:700}.mySwiper .swiper-button-next:hover::after,.mySwiper .swiper-button-prev:hover::after{color:#000}.mySwiper .swiper-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiper .swiper-pagination-bullet{width:8px;height:8px;background-color:#c4c4c4;opacity:1}.mySwiper .swiper-pagination-bullet-active{width:12px;height:12px;background-color:#979797}.mySwiper .block-shadow{display:flex;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;align-items:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:25px 30px;width:100%;background-color:#fff;-webkit-box-shadow:0 0 7.27941px rgba(0,0,0,.05);box-shadow:0 0 7.27941px rgba(0,0,0,.05);border-radius:4px;font-size:18px;overflow:hidden}.mySwiper .slide-icons,.mySwiper .slide-info{width:100%}.mySwiper .slide-content{width:100%}.mySwiper .slide-read-more{margin-top:5px;width:100%;font-weight:600;font-size:11px;line-height:1.5;color:#a3a3a3;text-transform:uppercase;cursor:pointer}.mySwiper .disable-button{display:none}.mySwiper .crop-content{display:box!important;display:-webkit-box!important;display:-moz-box!important;box-orient:vertical;-webkit-box-orient:vertical;-webkit-line-clamp:7;word-break:normal;text-overflow:ellipsis;overflow:hidden}.mySwiper.slider-arrows-disabled{width:100%}.mySwiper.slider-arrows-disabled .swiper-button-next,.mySwiper.slider-arrows-disabled .swiper-button-prev{display:none}.swiper-arrows-position-inside .mySwiper{position:relative;width:100%}.swiper-arrows-position-outside .mySwiper{position:static;width:calc(100% - 200px)}@media (max-width:1024px){.swiper-arrows-position-outside .mySwiper{position:static;width:calc(100% - 120px)}}@media (max-width:767px){.swiper-arrows-position-outside .mySwiper{position:static;width:100%}}.mySwiper .slide-block,.slider-modal .slide-block{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;margin-bottom:15px;padding-bottom:15px;width:100%;border-bottom:1px solid #c4c4c4}.mySwiper .slide-info span,.slider-modal .slide-info span{display:block}.mySwiper .slide-title,.slider-modal .slide-title{font-weight:600;font-size:17px;line-height:21px;color:#474747}.mySwiper .slide-subtitle,.slider-modal .slide-subtitle{font-weight:400;font-size:10px;line-height:13px;color:#5c5c5c}.mySwiper .slide-basic-info,.slider-modal .slide-basic-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mySwiper .slide-image,.slider-modal .slide-image{width:80px;font-size:12px}.mySwiper .slide-description,.slider-modal .slide-description{font-weight:400;font-size:11px;line-height:22px;color:#2c2c2c}.mySwiper .swiper-slide img,.slider-modal .swiper-slide img{border-radius:4px}.mySwiper .icon-star-full,.slider-modal .icon-star-full{color:#fabf35;font-size:12px}.mySwiper .icon-star-empty,.slider-modal .icon-star-empty{color:#e8e8e8;font-size:12px}.slider-modal{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;width:100vw;height:100vh;top:0;left:0;opacity:0;visibility:hidden;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;z-index:9999}.slider-modal.open{opacity:1;visibility:visible;-webkit-transition-delay:0s;transition-delay:0s}.slider-modal .slide-read-more{display:none}.slider-modal-bg{position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5)}.slider-modal-container{position:relative;padding:30px;width:550px;max-height:370px;background-color:#fff;border-radius:10px;overflow-y:scroll}@media (max-width:1024px){.slider-modal-container{width:550px;max-height:370px}}@media (max-width:767px){.slider-modal-container{width:calc(100% - 40px);max-height:calc(100% - 120px)}}.slider-modal-container::-webkit-scrollbar{width:4px}.slider-modal-container::-webkit-scrollbar-thumb{background-color:#c4c4c4;border-radius:4px}.slider-modal-container .icon-close:before{width:9px;height:9px}#slider-modal .slider-modal-close{position:absolute;background:0 0;border:0;font-size:9px;color:#474747;right:15px;top:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;cursor:pointer}#slider-modal .slider-modal-container-info .slider-container-block-background{background:0 0}.slider-logo-container-background{background-color:#b5e7c9}.slider-logo-container-background.slider-modal-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:30px;border-radius:24px}.slider-logo-container-background .slide-logo-block{overflow:unset}.mySwiperLogo.swiper{width:100%}.mySwiperLogo .slider-logo-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:30px;border-radius:24px;overflow:hidden}.mySwiperLogo .swiper-logo-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperLogo .swiper-logo-button-next,.mySwiperLogo .swiper-logo-button-prev,.mySwiperLogo .swiper-logo-pagination{position:unset}.mySwiperLogo .swiper-logo-button-next,.mySwiperLogo .swiper-logo-button-prev{margin-top:0;background:0 0}.mySwiperLogo .swiper-logo-button-next:after,.mySwiperLogo .swiper-logo-button-prev:after{font-family:icomoon;font-size:16px;color:#4abe80}.mySwiperLogo .swiper-logo-button-next{margin-left:50px}.mySwiperLogo .swiper-logo-button-prev{margin-right:50px}.mySwiperLogo .swiper-logo-pagination{width:auto}.mySwiperLogo .swiper-logo-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#9c9c9c}.mySwiperLogo .swiper-logo-pagination .swiper-pagination-bullet-active{background-color:#4abe80}.mySwiperLogo .slide-logo,.mySwiperLogo .slide-logo-block,.mySwiperLogo .slide-logo-image,.mySwiperLogo .slide-logo-main-block,.slider-logo-container-background .slide-logo,.slider-logo-container-background .slide-logo-block,.slider-logo-container-background .slide-logo-image,.slider-logo-container-background .slide-logo-main-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiperLogo .slide-logo-block,.slider-logo-container-background .slide-logo-block{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:25px;overflow:hidden}@media (max-width:767px){.mySwiperLogo .slide-logo-block,.slider-logo-container-background .slide-logo-block{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.mySwiperLogo .slide-logo-image,.slider-logo-container-background .slide-logo-image{width:70px;min-width:70px;height:70px;font-size:12px}.mySwiperLogo .slide-logo-image img,.slider-logo-container-background .slide-logo-image img{border-radius:35px}.mySwiperLogo .slide-logo-basic-info,.slider-logo-container-background .slide-logo-basic-info{margin-left:15px;margin-right:5px}.mySwiperLogo .slide-logo-title,.slider-logo-container-background .slide-logo-title{font-size:18px;font-weight:600;line-height:23px;color:#334a48}@media (max-width:767px){.mySwiperLogo .slide-logo-main-block,.slider-logo-container-background .slide-logo-main-block{width:100%}}@media (max-width:767px){.mySwiperLogo .slide-logotype,.slider-logo-container-background .slide-logotype{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;width:100%}}.mySwiperLogo .slide-logotype img,.slider-logo-container-background .slide-logotype img{max-width:100px;min-width:50px;max-height:70px;font-size:12px}.mySwiperLogo .slider-logo-container .slide-description,.slider-logo-container-background .slider-logo-container .slide-description{margin-bottom:10px;font-size:14px;font-weight:500;line-height:1.5;color:#414141}.mySwiperLogo .slider-logo-container .slide-read-more,.slider-logo-container-background .slider-logo-container .slide-read-more{font-size:14px;font-weight:600;line-height:1.5;color:#08433c;text-decoration:underline;text-transform:none;text-align:right}.swiper-logo-button-prev:after{content:"\ea40"}.swiper-logo-button-next:after{content:"\ea3c"}.mySwiperCentered .slide-block,.slider-rating-centered-modal .slide-block{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:0;border-bottom:none}.mySwiperCentered .slide-image,.slider-rating-centered-modal .slide-image{margin-right:0}.mySwiperCentered .slide-image img,.slider-rating-centered-modal .slide-image img{border-radius:40px}.mySwiperCentered .slide-basic-info,.slider-rating-centered-modal .slide-basic-info{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiperCentered .slide-info,.slider-rating-centered-modal .slide-info{text-align:center}.mySwiperCentered .slide-title,.slider-rating-centered-modal .slide-title{margin-bottom:5px;color:#160f68}.mySwiperCentered .slide-icons,.slider-rating-centered-modal .slide-icons{margin:15px 0;line-height:1}.mySwiperCentered .icon-star-empty,.mySwiperCentered .icon-star-full,.slider-rating-centered-modal .icon-star-empty,.slider-rating-centered-modal .icon-star-full{font-size:15px;color:#147ec0}.mySwiperCentered.swiper{width:100%}.mySwiperCentered .swiper-slide img{border-radius:40px}.mySwiperCentered .swiper-rating-centered-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperCentered .swiper-rating-centered-button-next,.mySwiperCentered .swiper-rating-centered-button-prev,.mySwiperCentered .swiper-rating-centered-pagination{position:unset}.mySwiperCentered .swiper-rating-centered-button-next,.mySwiperCentered .swiper-rating-centered-button-prev{background:0 0;margin-top:0}.mySwiperCentered .swiper-rating-centered-button-next:after,.mySwiperCentered .swiper-rating-centered-button-prev:after{font-family:icomoon;font-size:16px;color:#147ec0}.mySwiperCentered .swiper-rating-centered-button-next{margin-left:50px}.mySwiperCentered .swiper-rating-centered-button-prev{margin-right:50px}.mySwiperCentered .swiper-rating-centered-pagination{width:auto}.mySwiperCentered .swiper-rating-centered-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#8dc4eb}.mySwiperCentered .slide-read-more{margin-top:15px;text-align:center}.swiper-rating-centered-button-prev:after{content:"\ea40"}.swiper-rating-centered-button-next:after{content:"\ea3c"}.elementor-widget -container .mySwiperCentered .swiper-rating-centered-buttons-block .swiper-rating-centered-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{width:28px;border-radius:8px;background:linear-gradient(109.37deg,#147ec0 12.53%,#59a7ef 91.8%)}.slider-bottom-modal .slider-modal-container{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;background-color:#b018ef;border-radius:0}.slider-bottom-modal .slide-image img{border-radius:24px;color:#d0d0d0}.mySwiperBottom.swiper{width:100%}.mySwiperBottom .block-shadow{background-color:#b018ef;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-radius:0}.mySwiperBottom .swiper-slide img{border-radius:24px;color:#d0d0d0}.mySwiperBottom .swiper-bottom-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperBottom .swiper-bottom-button-next,.mySwiperBottom .swiper-bottom-button-prev,.mySwiperBottom .swiper-bottom-pagination{position:unset}.mySwiperBottom .swiper-bottom-button-next,.mySwiperBottom .swiper-bottom-button-prev{margin-top:0;background:0 0}.mySwiperBottom .swiper-bottom-button-next:after,.mySwiperBottom .swiper-bottom-button-prev:after{font-size:14px;color:#cc5a51}.mySwiperBottom .swiper-bottom-button-next{margin-left:50px}.mySwiperBottom .swiper-bottom-button-prev{margin-right:50px}.mySwiperBottom .swiper-bottom-pagination{width:auto}.mySwiperBottom .swiper-bottom-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#848484}.mySwiperBottom .slide-read-more{margin-top:0;margin-left:5px;width:auto;font-size:12px;color:#f69587;text-decoration:underline;text-transform:none}.mySwiperBottom .slide-description,.slider-bottom-modal .slide-description{margin-bottom:26px;color:#d0d0d0}.mySwiperBottom .slide-image,.slider-bottom-modal .slide-image{width:48px}.mySwiperBottom .slide-title,.slider-bottom-modal .slide-title{margin-bottom:8px;color:#fff}.mySwiperBottom .slide-subtitle,.slider-bottom-modal .slide-subtitle{font-size:12px;color:#d9d9d9}.mySwiperBottom .slide-basic-info,.slider-bottom-modal .slide-basic-info{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:15px;width:auto}.mySwiperBottom .slide-block,.slider-bottom-modal .slide-block{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:0;border-bottom:none}.elementor-widget-container .mySwiperBottom .swiper-bottom-buttons-block .swiper-bottom-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{width:8px;height:8px;background:#cc5a51}#slider-modal .slider-modal-close.slider-bottom-modal-exit{color:#fff}.mySwiperCoverflow.mySwiper{width:100%}.mySwiperCoverflow.mySwiper .slider-container-block-background{background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:unset}.mySwiperCoverflow .swiper-slide{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}.mySwiperCoverflow .swiper-coverflow-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:20px}.mySwiperCoverflow .swiper-coverflow-button-next,.mySwiperCoverflow .swiper-coverflow-button-prev,.mySwiperCoverflow .swiper-coverflow-pagination{position:unset}.mySwiperCoverflow .swiper-coverflow-button-next,.mySwiperCoverflow .swiper-coverflow-button-prev{margin-top:0;background:0 0}.mySwiperCoverflow .swiper-coverflow-button-next:after,.mySwiperCoverflow .swiper-coverflow-button-prev:after{font-family:icomoon;font-size:16px}.mySwiperCoverflow .swiper-coverflow-button-next{margin-left:50px}.mySwiperCoverflow .swiper-coverflow-button-next:after{content:"\ea3c"}.mySwiperCoverflow .swiper-coverflow-button-prev{margin-right:50px}.mySwiperCoverflow .swiper-coverflow-button-prev:after{content:"\ea40"}.mySwiperCoverflow .swiper-coverflow-pagination{width:auto}.mySwiperCoverflow .swiper-coverflow-pagination .swiper-pagination-bullet{margin:0 5px}@media (max-width:767px){.mySwiperCoverflow .swiper-button-next,.mySwiperCoverflow .swiper-button-prev{display:-webkit-box;display:-ms-flexbox;display:flex}}.mySwiperCoverflow .block-shadow{height:100%;-webkit-box-shadow:unset;box-shadow:unset;overflow:hidden}.mySwiperCoverflow .slider-coverflow-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start;width:100%;height:100%}.mySwiperCoverflow .slide-title{font-size:24px;font-weight:400;color:#000}.mySwiperCoverflow .slide-description{font-size:14px;font-weight:300;color:#000}.mySwiperCoverflow .slide-coverflow-button{padding:10px 20px;width:auto;background:#fff;border:2px solid #000;border-radius:50px;color:#000;text-decoration:none;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.mySwiperCoverflow .slide-coverflow-button-wrapper{display:block;width:100%}.elementor-widget-container.mySwiperCoverflow .swiper-coverflow-buttons-block .swiper-coverflow-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{border-radius:8px}.mySwiperGalleryCoverflow{padding-bottom:0;height:100vh}@media (max-width:1024px){.mySwiperGalleryCoverflow{height:auto}}.mySwiperGalleryCoverflow .swiper-pagination{display:block;position:absolute;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition:.3s opacity;transition:.3s opacity;z-index:10}.mySwiperGalleryCoverflow .swiper-pagination-bullet{width:8px;height:8px;background:#000;border-radius:100%;opacity:.2}.mySwiperGalleryCoverflow .swiper-pagination-bullet-active{background:#fff;opacity:1}.mySwiperGalleryCoverflow .swiper-slide{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media (max-width:1024px){.mySwiperGalleryCoverflow .swiper-container.testimonial{height:40vh}}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section{height:auto}}.mySwiperGalleryCoverflow .testimonial-section .testimonial-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:60%;height:auto;background:#e89a3d;color:#fff}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section .testimonial-wrapper{width:100%;height:100%}}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section .quote{padding:60px}}@media (max-width:767px){.mySwiperGalleryCoverflow .testimonial-section .quote{padding:20px}}.mySwiperGalleryCoverflow .testimonial .icon-star-full{font-size:12px;color:#fff}.mySwiperGalleryCoverflow .testimonial .icon-star-empty{color:#fff;font-size:12px}.mySwiperGalleryCoverflow .slide-read-more{margin-top:5px;margin-right:0;margin-left:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:11px;line-height:1.5;color:#fff;text-transform:uppercase;cursor:pointer}.mySwiperGalleryCoverflow.mySwiper .swiper-pagination-vertical .swiper-pagination-bullet{margin-right:auto;margin-left:auto}.mySwiperGalleryCoverflow.mySwiper .swiper-pagination-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.mySwiperGalleryCoverflow-modal .slider-modal-container-info img{width:50%}@media (max-width:1024px){.mySwiperGalleryCoverflow .gallery-wrapper{padding:60px;width:100%;height:50%}}@media (max-width:767px){.mySwiperGalleryCoverflow .gallery-wrapper{height:20%;padding:20px}}@media (max-width:1024px){.mySwiperGalleryCoverflow .gallery-thumbs .swiper-slide{height:230px}}@media (max-width:767px){.mySwiperGalleryCoverflow .gallery-thumbs .swiper-slide{height:150px}}@media (max-width:767px){.mySwiperGalleryCoverflow .crop-content{display:box!important;display:-webkit-box!important;display:-moz-box!important;box-orient:vertical;-webkit-box-orient:vertical;-webkit-line-clamp:4;word-break:break-all;text-overflow:ellipsis;overflow:hidden}}.hidden-scroll{overflow:hidden}@media (max-width:1024px){.testimonials-column{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}}@media (max-width:1024px){.testimonials-column-reverse{-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}}1 @font-face{font-family:icomoon;src:url(fonts/icomoon.eot?8dc08x);src:url(fonts/icomoon.eot?8dc08x#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?8dc08x) format("truetype"),url(fonts/icomoon.woff?8dc08x) format("woff"),url(fonts/icomoon.svg?8dc08x#icomoon) format("svg");font-weight:400;font-style:normal;font-display:block}[class*=" icon-"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-close:before{content:"\e90e"}.icon-star-empty:before{content:"\e9d7"}.icon-star-full:before{content:"\e9d9"}.icon-arrow-right2:before{content:"\ea3c"}.icon-arrow-left2:before{content:"\ea40"}.mySwiper{position:static;padding:30px 30px 50px;width:calc(100% - 140px);height:100%}@media (max-width:1024px){.mySwiper{width:calc(100% - 120px);padding-bottom:40px}}@media (max-width:767px){.mySwiper{width:100%}}.mySwiper .swiper-wrapper{margin-left:0;margin-right:0;padding:0}.mySwiper .swiper-slide{display:flex;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;padding:2px;height:auto}.mySwiper .swiper-button-next,.mySwiper .swiper-button-prev{width:40px;height:40px;background-color:#fff;background-image:none;border-radius:50%}@media (max-width:767px){.mySwiper .swiper-button-next,.mySwiper .swiper-button-prev{display:none}}.mySwiper .swiper-button-next:after,.mySwiper .swiper-button-prev:after{font-size:15px;color:#a9a9a9;font-weight:700}.mySwiper .swiper-button-next:hover::after,.mySwiper .swiper-button-prev:hover::after{color:#000}.mySwiper .swiper-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiper .swiper-pagination-bullet{width:8px;height:8px;background-color:#c4c4c4;opacity:1}.mySwiper .swiper-pagination-bullet-active{width:12px;height:12px;background-color:#979797}.mySwiper .block-shadow{display:flex;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;align-items:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:25px 30px;width:100%;background-color:#fff;-webkit-box-shadow:0 0 7.27941px rgba(0,0,0,.05);box-shadow:0 0 7.27941px rgba(0,0,0,.05);border-radius:4px;font-size:18px;overflow:hidden}.mySwiper .slide-icons,.mySwiper .slide-info{width:100%}.mySwiper .slide-content{width:100%}.mySwiper .slide-read-more{margin-top:5px;width:100%;font-weight:600;font-size:11px;line-height:1.5;color:#a3a3a3;text-transform:uppercase;cursor:pointer}.mySwiper .disable-button{display:none}.mySwiper .crop-content{display:box!important;display:-webkit-box!important;display:-moz-box!important;box-orient:vertical;-webkit-box-orient:vertical;-webkit-line-clamp:7;word-break:normal;text-overflow:ellipsis;overflow:hidden}.mySwiper.slider-arrows-disabled{width:100%}.mySwiper.slider-arrows-disabled .swiper-button-next,.mySwiper.slider-arrows-disabled .swiper-button-prev{display:none}.swiper-arrows-position-inside .mySwiper{position:relative;width:100%}.swiper-arrows-position-outside .mySwiper{position:static;width:calc(100% - 200px)}@media (max-width:1024px){.swiper-arrows-position-outside .mySwiper{position:static;width:calc(100% - 120px)}}@media (max-width:767px){.swiper-arrows-position-outside .mySwiper{position:static;width:100%}}.mySwiper .slide-block,.slider-modal .slide-block{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;margin-bottom:15px;padding-bottom:15px;width:100%;border-bottom:1px solid #c4c4c4}.mySwiper .slide-info span,.slider-modal .slide-info span{display:block}.mySwiper .slide-title,.slider-modal .slide-title{font-weight:600;font-size:17px;line-height:21px;color:#474747}.mySwiper .slide-subtitle,.slider-modal .slide-subtitle{font-weight:400;font-size:10px;line-height:13px;color:#5c5c5c}.mySwiper .slide-basic-info,.slider-modal .slide-basic-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mySwiper .slide-image,.slider-modal .slide-image{width:80px;font-size:12px}.mySwiper .slide-description,.slider-modal .slide-description{font-weight:400;font-size:11px;line-height:22px;color:#2c2c2c}.mySwiper .swiper-slide img,.slider-modal .swiper-slide img{border-radius:4px}.mySwiper .icon-star-full,.slider-modal .icon-star-full{color:#fabf35;font-size:12px}.mySwiper .icon-star-empty,.slider-modal .icon-star-empty{color:#e8e8e8;font-size:12px}.slider-modal{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;width:100vw;height:100vh;top:0;left:0;opacity:0;visibility:hidden;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;z-index:9999}.slider-modal.open{opacity:1;visibility:visible;-webkit-transition-delay:0s;transition-delay:0s}.slider-modal .slide-read-more{display:none}.slider-modal-bg{position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5)}.slider-modal-container{position:relative;padding:30px;width:550px;max-height:370px;background-color:#fff;border-radius:10px;overflow-y:scroll}@media (max-width:1024px){.slider-modal-container{width:550px;max-height:370px}}@media (max-width:767px){.slider-modal-container{width:calc(100% - 40px);max-height:calc(100% - 120px)}}.slider-modal-container::-webkit-scrollbar{width:4px}.slider-modal-container::-webkit-scrollbar-thumb{background-color:#c4c4c4;border-radius:4px}.slider-modal-container .icon-close:before{width:9px;height:9px}#slider-modal .slider-modal-close{position:absolute;background:0 0;border:0;font-size:9px;color:#474747;right:15px;top:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;cursor:pointer}#slider-modal .slider-modal-container-info .slider-container-block-background{background:0 0}.slider-logo-container-background{background-color:#b5e7c9}.slider-logo-container-background.slider-modal-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:30px;border-radius:24px}.slider-logo-container-background .slide-logo-block{overflow:unset}.mySwiperLogo.swiper{width:100%}.mySwiperLogo .slider-logo-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:30px;border-radius:24px;overflow:hidden}.mySwiperLogo .swiper-logo-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperLogo .swiper-logo-button-next,.mySwiperLogo .swiper-logo-button-prev,.mySwiperLogo .swiper-logo-pagination{position:unset}.mySwiperLogo .swiper-logo-button-next,.mySwiperLogo .swiper-logo-button-prev{margin-top:0;background:0 0}.mySwiperLogo .swiper-logo-button-next:after,.mySwiperLogo .swiper-logo-button-prev:after{font-family:icomoon;font-size:16px;color:#4abe80}.mySwiperLogo .swiper-logo-button-next{margin-left:50px}.mySwiperLogo .swiper-logo-button-prev{margin-right:50px}.mySwiperLogo .swiper-logo-pagination{width:auto}.mySwiperLogo .swiper-logo-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#9c9c9c}.mySwiperLogo .swiper-logo-pagination .swiper-pagination-bullet-active{background-color:#4abe80}.mySwiperLogo .slide-logo,.mySwiperLogo .slide-logo-block,.mySwiperLogo .slide-logo-image,.mySwiperLogo .slide-logo-main-block,.slider-logo-container-background .slide-logo,.slider-logo-container-background .slide-logo-block,.slider-logo-container-background .slide-logo-image,.slider-logo-container-background .slide-logo-main-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiperLogo .slide-logo-block,.slider-logo-container-background .slide-logo-block{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:25px;overflow:hidden}@media (max-width:767px){.mySwiperLogo .slide-logo-block,.slider-logo-container-background .slide-logo-block{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.mySwiperLogo .slide-logo-image,.slider-logo-container-background .slide-logo-image{width:70px;min-width:70px;height:70px;font-size:12px}.mySwiperLogo .slide-logo-image img,.slider-logo-container-background .slide-logo-image img{border-radius:35px}.mySwiperLogo .slide-logo-basic-info,.slider-logo-container-background .slide-logo-basic-info{margin-left:15px;margin-right:5px}.mySwiperLogo .slide-logo-title,.slider-logo-container-background .slide-logo-title{font-size:18px;font-weight:600;line-height:23px;color:#334a48}@media (max-width:767px){.mySwiperLogo .slide-logo-main-block,.slider-logo-container-background .slide-logo-main-block{width:100%}}@media (max-width:767px){.mySwiperLogo .slide-logotype,.slider-logo-container-background .slide-logotype{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;width:100%}}.mySwiperLogo .slide-logotype img,.slider-logo-container-background .slide-logotype img{max-width:100px;min-width:50px;max-height:70px;font-size:12px}.mySwiperLogo .slider-logo-container .slide-description,.slider-logo-container-background .slider-logo-container .slide-description{margin-bottom:10px;font-size:14px;font-weight:500;line-height:1.5;color:#414141}.mySwiperLogo .slider-logo-container .slide-read-more,.slider-logo-container-background .slider-logo-container .slide-read-more{font-size:14px;font-weight:600;line-height:1.5;color:#08433c;text-decoration:underline;text-transform:none;text-align:right}.swiper-logo-button-prev:after{content:"\ea40"}.swiper-logo-button-next:after{content:"\ea3c"}.mySwiperCentered .slide-block,.slider-rating-centered-modal .slide-block{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:0;border-bottom:none}.mySwiperCentered .slide-image,.slider-rating-centered-modal .slide-image{margin-right:0}.mySwiperCentered .slide-image img,.slider-rating-centered-modal .slide-image img{border-radius:40px}.mySwiperCentered .slide-basic-info,.slider-rating-centered-modal .slide-basic-info{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mySwiperCentered .slide-info,.slider-rating-centered-modal .slide-info{text-align:center}.mySwiperCentered .slide-title,.slider-rating-centered-modal .slide-title{margin-bottom:5px;color:#160f68}.mySwiperCentered .slide-icons,.slider-rating-centered-modal .slide-icons{margin:15px 0;line-height:1}.mySwiperCentered .icon-star-empty,.mySwiperCentered .icon-star-full,.slider-rating-centered-modal .icon-star-empty,.slider-rating-centered-modal .icon-star-full{font-size:15px;color:#147ec0}.mySwiperCentered.swiper{width:100%}.mySwiperCentered .swiper-slide img{border-radius:40px}.mySwiperCentered .swiper-rating-centered-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperCentered .swiper-rating-centered-button-next,.mySwiperCentered .swiper-rating-centered-button-prev,.mySwiperCentered .swiper-rating-centered-pagination{position:unset}.mySwiperCentered .swiper-rating-centered-button-next,.mySwiperCentered .swiper-rating-centered-button-prev{background:0 0;margin-top:0}.mySwiperCentered .swiper-rating-centered-button-next:after,.mySwiperCentered .swiper-rating-centered-button-prev:after{font-family:icomoon;font-size:16px;color:#147ec0}.mySwiperCentered .swiper-rating-centered-button-next{margin-left:50px}.mySwiperCentered .swiper-rating-centered-button-prev{margin-right:50px}.mySwiperCentered .swiper-rating-centered-pagination{width:auto}.mySwiperCentered .swiper-rating-centered-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#8dc4eb}.mySwiperCentered .slide-read-more{margin-top:15px;text-align:center}.swiper-rating-centered-button-prev:after{content:"\ea40"}.swiper-rating-centered-button-next:after{content:"\ea3c"}.elementor-widget .mySwiperCentered .swiper-rating-centered-buttons-block .swiper-rating-centered-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{width:28px;border-radius:8px;background:linear-gradient(109.37deg,#147ec0 12.53%,#59a7ef 91.8%)}.slider-bottom-modal .slider-modal-container{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;background-color:#b018ef;border-radius:0}.slider-bottom-modal .slide-image img{border-radius:24px;color:#d0d0d0}.mySwiperBottom.swiper{width:100%}.mySwiperBottom .block-shadow{background-color:#b018ef;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-radius:0}.mySwiperBottom .swiper-slide img{border-radius:24px;color:#d0d0d0}.mySwiperBottom .swiper-bottom-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.mySwiperBottom .swiper-bottom-button-next,.mySwiperBottom .swiper-bottom-button-prev,.mySwiperBottom .swiper-bottom-pagination{position:unset}.mySwiperBottom .swiper-bottom-button-next,.mySwiperBottom .swiper-bottom-button-prev{margin-top:0;background:0 0}.mySwiperBottom .swiper-bottom-button-next:after,.mySwiperBottom .swiper-bottom-button-prev:after{font-size:14px;color:#cc5a51}.mySwiperBottom .swiper-bottom-button-next{margin-left:50px}.mySwiperBottom .swiper-bottom-button-prev{margin-right:50px}.mySwiperBottom .swiper-bottom-pagination{width:auto}.mySwiperBottom .swiper-bottom-pagination .swiper-pagination-bullet{margin:0 5px;background-color:#848484}.mySwiperBottom .slide-read-more{margin-top:0;margin-left:5px;width:auto;font-size:12px;color:#f69587;text-decoration:underline;text-transform:none}.mySwiperBottom .slide-description,.slider-bottom-modal .slide-description{margin-bottom:26px;color:#d0d0d0}.mySwiperBottom .slide-image,.slider-bottom-modal .slide-image{width:48px}.mySwiperBottom .slide-title,.slider-bottom-modal .slide-title{margin-bottom:8px;color:#fff}.mySwiperBottom .slide-subtitle,.slider-bottom-modal .slide-subtitle{font-size:12px;color:#d9d9d9}.mySwiperBottom .slide-basic-info,.slider-bottom-modal .slide-basic-info{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:15px;width:auto}.mySwiperBottom .slide-block,.slider-bottom-modal .slide-block{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:0;border-bottom:none}.elementor-widget .mySwiperBottom .swiper-bottom-buttons-block .swiper-bottom-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{width:8px;height:8px;background:#cc5a51}#slider-modal .slider-modal-close.slider-bottom-modal-exit{color:#fff}.mySwiperCoverflow.mySwiper{width:100%}.mySwiperCoverflow.mySwiper .slider-container-block-background{background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:unset}.mySwiperCoverflow .swiper-slide{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}.mySwiperCoverflow .swiper-coverflow-buttons-block{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:20px}.mySwiperCoverflow .swiper-coverflow-button-next,.mySwiperCoverflow .swiper-coverflow-button-prev,.mySwiperCoverflow .swiper-coverflow-pagination{position:unset}.mySwiperCoverflow .swiper-coverflow-button-next,.mySwiperCoverflow .swiper-coverflow-button-prev{margin-top:0;background:0 0}.mySwiperCoverflow .swiper-coverflow-button-next:after,.mySwiperCoverflow .swiper-coverflow-button-prev:after{font-family:icomoon;font-size:16px}.mySwiperCoverflow .swiper-coverflow-button-next{margin-left:50px}.mySwiperCoverflow .swiper-coverflow-button-next:after{content:"\ea3c"}.mySwiperCoverflow .swiper-coverflow-button-prev{margin-right:50px}.mySwiperCoverflow .swiper-coverflow-button-prev:after{content:"\ea40"}.mySwiperCoverflow .swiper-coverflow-pagination{width:auto}.mySwiperCoverflow .swiper-coverflow-pagination .swiper-pagination-bullet{margin:0 5px}@media (max-width:767px){.mySwiperCoverflow .swiper-button-next,.mySwiperCoverflow .swiper-button-prev{display:-webkit-box;display:-ms-flexbox;display:flex}}.mySwiperCoverflow .block-shadow{height:100%;-webkit-box-shadow:unset;box-shadow:unset;overflow:hidden}.mySwiperCoverflow .slider-coverflow-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start;width:100%;height:100%}.mySwiperCoverflow .slide-title{font-size:24px;font-weight:400;color:#000}.mySwiperCoverflow .slide-description{font-size:14px;font-weight:300;color:#000}.mySwiperCoverflow .slide-coverflow-button{padding:10px 20px;width:auto;background:#fff;border:2px solid #000;border-radius:50px;color:#000;text-decoration:none;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.mySwiperCoverflow .slide-coverflow-button-wrapper{display:block;width:100%}.elementor-widget .mySwiperCoverflow .swiper-coverflow-buttons-block .swiper-coverflow-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{border-radius:8px}.mySwiperGalleryCoverflow{padding-bottom:0;height:100vh}@media (max-width:1024px){.mySwiperGalleryCoverflow{height:auto}}.mySwiperGalleryCoverflow .swiper-pagination{display:block;position:absolute;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition:.3s opacity;transition:.3s opacity;z-index:10}.mySwiperGalleryCoverflow .swiper-pagination-bullet{width:8px;height:8px;background:#000;border-radius:100%;opacity:.2}.mySwiperGalleryCoverflow .swiper-pagination-bullet-active{background:#fff;opacity:1}.mySwiperGalleryCoverflow .swiper-slide{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media (max-width:1024px){.mySwiperGalleryCoverflow .swiper-container.testimonial{height:40vh}}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section{height:auto}}.mySwiperGalleryCoverflow .testimonial-section .testimonial-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:60%;height:auto;background:#e89a3d;color:#fff}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section .testimonial-wrapper{width:100%;height:100%}}@media (max-width:1024px){.mySwiperGalleryCoverflow .testimonial-section .quote{padding:60px}}@media (max-width:767px){.mySwiperGalleryCoverflow .testimonial-section .quote{padding:20px}}.mySwiperGalleryCoverflow .testimonial .icon-star-full{font-size:12px;color:#fff}.mySwiperGalleryCoverflow .testimonial .icon-star-empty{color:#fff;font-size:12px}.mySwiperGalleryCoverflow .slide-read-more{margin-top:5px;margin-right:0;margin-left:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:11px;line-height:1.5;color:#fff;text-transform:uppercase;cursor:pointer}.mySwiperGalleryCoverflow.mySwiper .swiper-pagination-vertical .swiper-pagination-bullet{margin-right:auto;margin-left:auto}.mySwiperGalleryCoverflow.mySwiper .swiper-pagination-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.mySwiperGalleryCoverflow-modal .slider-modal-container-info img{width:50%}@media (max-width:1024px){.mySwiperGalleryCoverflow .gallery-wrapper{padding:60px;width:100%;height:50%}}@media (max-width:767px){.mySwiperGalleryCoverflow .gallery-wrapper{height:20%;padding:20px}}@media (max-width:1024px){.mySwiperGalleryCoverflow .gallery-thumbs .swiper-slide{height:230px}}@media (max-width:767px){.mySwiperGalleryCoverflow .gallery-thumbs .swiper-slide{height:150px}}@media (max-width:767px){.mySwiperGalleryCoverflow .crop-content{display:box!important;display:-webkit-box!important;display:-moz-box!important;box-orient:vertical;-webkit-box-orient:vertical;-webkit-line-clamp:4;word-break:break-all;text-overflow:ellipsis;overflow:hidden}}.hidden-scroll{overflow:hidden}@media (max-width:1024px){.testimonials-column{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}}@media (max-width:1024px){.testimonials-column-reverse{-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}} -
testimonials-carousel-elementor/trunk/assets/js/testimonials-carousel-widget-handler.min.js
r3221633 r3249685 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)});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").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").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").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}),document.getElementById(e).querySelectorAll("li.swiper-slide[role='group']").forEach(function(e){e.setAttribute("role","listitem")})}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
r3221633 r3249685 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);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").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").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").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,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"}),""),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,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:"yes"===n.sliderDisabledInteraction},"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: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}),document.getElementById(e).querySelectorAll("li.swiper-slide[role='group']").forEach(function(e){e.setAttribute("role","listitem")})}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,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,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); -
testimonials-carousel-elementor/trunk/class-testimonials-carousel-elementor.php
r3247164 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 29 29 * Minimum Elementor Version 30 30 * 31 * @since 11. 4.031 * @since 11.5.0 32 32 * @var string Minimum Elementor version required to run the plugin. 33 33 */ … … 36 36 * Minimum PHP Version 37 37 * 38 * @since 11. 4.038 * @since 11.5.0 39 39 * @var string Minimum PHP version required to run the plugin. 40 40 */ … … 44 44 * Constructor 45 45 * 46 * @since 11. 4.046 * @since 11.5.0 47 47 * @access public 48 48 */ … … 153 153 * Fired by `init` action hook. 154 154 * 155 * @since 11. 4.0155 * @since 11.5.0 156 156 * @access public 157 157 */ … … 170 170 * Fired by `plugins_loaded` action hook. 171 171 * 172 * @since 11. 4.0172 * @since 11.5.0 173 173 * @access public 174 174 */ … … 222 222 * Warning when the site doesn't have Elementor installed or activated. 223 223 * 224 * @since 11. 4.0224 * @since 11.5.0 225 225 * @access public 226 226 */ … … 245 245 * Warning when the site doesn't have a minimum required Elementor version. 246 246 * 247 * @since 11. 4.0247 * @since 11.5.0 248 248 * @access public 249 249 */ … … 269 269 * Warning when the site doesn't have a minimum required PHP version. 270 270 * 271 * @since 11. 4.0271 * @since 11.5.0 272 272 * @access public 273 273 */ … … 290 290 /** 291 291 * 292 * @since 11. 4.0292 * @since 11.5.0 293 293 * @access public 294 294 */ -
testimonials-carousel-elementor/trunk/class-widgets.php
r3247164 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 26 26 * Main Plugin class 27 27 * 28 * @since 11. 4.028 * @since 11.5.0 29 29 */ 30 30 class Widgets … … 34 34 * Instance 35 35 * 36 * @since 11. 4.036 * @since 11.5.0 37 37 * @access private 38 38 * @static … … 48 48 * 49 49 * @return Plugin An instance of the class. 50 * @since 11. 4.050 * @since 11.5.0 51 51 * @access public 52 52 * … … 66 66 * Load widgets files 67 67 * 68 * @since 11. 4.068 * @since 11.5.0 69 69 * @access private 70 70 */ … … 97 97 * Load widgets templates files 98 98 * 99 * @since 11. 4.099 * @since 11.5.0 100 100 * @access private 101 101 */ … … 111 111 * Load widgets templates controls 112 112 * 113 * @since 11. 4.0113 * @since 11.5.0 114 114 * @access private 115 115 */ … … 125 125 * Register new Elementor widgets. 126 126 * 127 * @since 11. 4.0127 * @since 11.5.0 128 128 * @access public 129 129 */ … … 165 165 * Register plugin action hooks and filters 166 166 * 167 * @since 11. 4.0167 * @since 11.5.0 168 168 * @access public 169 169 */ -
testimonials-carousel-elementor/trunk/readme.txt
r3247164 r3249685 4 4 Requires PHP: 7.4.1 5 5 Requires at least: 5.9 6 Tested up to: 6.7. 17 Stable tag: 11. 4.16 Tested up to: 6.7.2 7 Stable tag: 11.5.0 8 8 License: GPLv3 9 9 License URI: https://opensource.org/licenses/GPL-3.0 … … 78 78 == Changelog == 79 79 80 = 11.5.0 - 2025-03-03 = 81 - New: Added a new control to change the random order of elements in widgets. 82 - Change: Changed the role in lists in widgets. 83 - Security Fix: Update deprecated code. 84 80 85 = 11.4.1 - 2025-02-26 = 81 86 - Modified: Changed plugin description. -
testimonials-carousel-elementor/trunk/testimonials-carousel-elementor.php
r3247164 r3249685 8 8 * Description: The compact Testimonial Carousel for Elementor lets you show long text reviews in Pop-Up of Carousel Slider. 9 9 * Plugin URI: 10 * Version: 11. 4.110 * Version: 11.5.0 11 11 * Author: UAPP GROUP 12 12 * Author URI: https://uapp.group/ … … 23 23 * @var string The plugin version. 24 24 */ 25 define('TESTIMONIALS_VERSION', '11. 4.1');25 define('TESTIMONIALS_VERSION', '11.5.0'); 26 26 27 27 /** -
testimonials-carousel-elementor/trunk/widgets-templates/creative-slider/creative-with-background.php
r3157386 r3249685 3 3 function get_creative_with_background_template($settings, $attributes) 4 4 { 5 $slide = $settings['creative_with_background']; 6 5 7 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 6 8 <div <?php echo $attributes; ?>></div> 7 <?php } ?> 9 <?php } 10 11 if ($settings['slider_random'] === 'yes') { 12 $keys = array_keys($slide); 13 shuffle($keys); 14 $slide = array_map(fn($key) => $slide[$key], $keys); 15 } 16 ?> 8 17 9 18 <section class="creative creative-with-background" … … 15 24 <div class="swiper-wrapper"> 16 25 <?php $counter = 1; 17 foreach ($s ettings['creative_with_background']as $item) { ?>26 foreach ($slide as $item) { ?> 18 27 <div class="swiper-slide" id="slide-<?php echo esc_attr($counter); ?>"> 19 28 <?php if (isset($item['creative_with_background_image'], $item['creative_with_background_image']['url']) && !empty($item['creative_with_background_image']['url'])) { ?> … … 30 39 <div class="creative__wrapper-content"> 31 40 <?php $counter_content = 1; 32 foreach ($s ettings['creative_with_background']as $item_content) { ?>41 foreach ($slide as $item_content) { ?> 33 42 <div class="creative__slide-content <?php if ($counter_content === 1) { ?> active <?php } ?>" 34 43 data-id="slide-<?php echo esc_attr($counter_content); ?>"> -
testimonials-carousel-elementor/trunk/widgets-templates/creative-slider/default.php
r3157386 r3249685 3 3 function get_default_creative_template($settings, $attributes) 4 4 { 5 $slide = $settings['slide']; 6 5 7 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 6 8 <div <?php echo $attributes; ?>></div> 7 <?php } ?> 9 <?php } 10 11 if ($settings['slider_random'] === 'yes') { 12 $keys = array_keys($slide); 13 shuffle($keys); 14 $slide = array_map(fn($key) => $slide[$key], $keys); 15 } 16 ?> 8 17 9 18 <section class="creative"> … … 11 20 <div class="swiper-wrapper"> 12 21 <?php $counter = 1; 13 foreach ($s ettings['slide']as $item) {22 foreach ($slide as $item) { 14 23 $alt = $item['slide_image']['alt'] ?? '' ?> 15 24 <div class="swiper-slide" id="slide-<?php echo esc_attr($counter); ?>"> … … 27 36 <div class="creative__wrapper-content"> 28 37 <?php $counter_content = 1; 29 foreach ($s ettings['slide']as $item_content) { ?>38 foreach ($slide as $item_content) { ?> 30 39 <div class="creative__slide-content <?php if ($counter_content === 1) { ?> active <?php } ?>" 31 40 data-id="slide-<?php echo esc_attr($counter_content); ?>"> -
testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-coverflow.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 33 33 * TestimonialsCarousel_Coverflow widget class. 34 34 * 35 * @since 11. 4.035 * @since 11.5.0 36 36 */ 37 37 class TestimonialsCarousel_Coverflow extends Widget_Base … … 68 68 * 69 69 * @return string Widget name. 70 * @since 11. 4.070 * @since 11.5.0 71 71 * 72 72 * @access public … … 82 82 * 83 83 * @return string Widget title. 84 * @since 11. 4.084 * @since 11.5.0 85 85 * 86 86 * @access public … … 96 96 * 97 97 * @return string Widget icon. 98 * @since 11. 4.098 * @since 11.5.0 99 99 * 100 100 * @access public … … 115 115 * 116 116 * @return array Widget categories. 117 * @since 11. 4.0117 * @since 11.5.0 118 118 * 119 119 * @access public … … 163 163 * Adds different input fields to allow the user to change and customize the widget settings. 164 164 * 165 * @since 11. 4.0165 * @since 11.5.0 166 166 * 167 167 * @access protected 168 168 */ 169 protected function _register_controls()169 protected function register_controls() 170 170 { 171 171 // Content Section … … 451 451 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 452 452 453 $this->add_control( 454 'slider_random', 455 [ 456 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 457 'type' => Controls_Manager::SWITCHER, 458 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 459 'label_off' => __('No', 'testimonials-carousel-elementor'), 460 'return_value' => 'yes', 461 'default' => 'no', 462 'frontend_available' => true, 463 ] 464 ); 465 453 466 $this->add_responsive_control( 454 467 'slides_to_show', … … 1258 1271 * Written in PHP and used to generate the final HTML. 1259 1272 * 1260 * @since 11. 4.01273 * @since 11.5.0 1261 1274 * 1262 1275 * @access protected … … 1265 1278 { 1266 1279 $settings = $this->get_settings_for_display(); 1280 $slide = $settings['slide']; 1281 1267 1282 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1268 1283 $this->add_render_attribute( … … 1287 1302 } 1288 1303 1289 if ($s ettings['slide']) {1304 if ($slide) { 1290 1305 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1291 1306 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1292 <?php } ?> 1307 <?php } 1308 1309 if ($settings['slider_random'] === 'yes') { 1310 $keys = array_keys($slide); 1311 shuffle($keys); 1312 $slide = array_map(fn($key) => $slide[$key], $keys); 1313 } 1314 ?> 1293 1315 1294 1316 <section class="swiper mySwiper mySwiperCoverflow <?php if ( … … 1296 1318 || esc_attr($settings['navigation']) === "none" 1297 1319 ) { ?>slider-arrows-disabled<?php } ?>"> 1298 <ul class="swiper-wrapper"> 1299 <?php 1300 foreach ($settings['slide'] as $item) { 1320 <ul class="swiper-wrapper" role="list"> 1321 <?php foreach ($slide as $item) { 1301 1322 $this->add_link_attributes('slide_button_link', $item['slide_button_link'] ?? [], true); ?> 1302 1323 <li class="swiper-slide slider-container-background"> -
testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-cube-360.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Cube_360 widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Cube_360 extends Widget_Base … … 65 65 * 66 66 * @return string Widget name. 67 * @since 11. 4.067 * @since 11.5.0 68 68 * 69 69 * @access public … … 79 79 * 80 80 * @return string Widget title. 81 * @since 11. 4.081 * @since 11.5.0 82 82 * 83 83 * @access public … … 93 93 * 94 94 * @return string Widget icon. 95 * @since 11. 4.095 * @since 11.5.0 96 96 * 97 97 * @access public … … 112 112 * 113 113 * @return array Widget categories. 114 * @since 11. 4.0114 * @since 11.5.0 115 115 * 116 116 * @access public … … 144 144 * Adds different input fields to allow the user to change and customize the widget settings. 145 145 * 146 * @since 11. 4.0146 * @since 11.5.0 147 147 * 148 148 * @access protected 149 149 */ 150 protected function _register_controls()150 protected function register_controls() 151 151 { 152 152 // Side Front … … 3478 3478 * Written in PHP and used to generate the final HTML. 3479 3479 * 3480 * @since 11. 4.03480 * @since 11.5.0 3481 3481 * 3482 3482 * @access protected -
testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-cube.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Cube widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Cube extends Widget_Base … … 67 67 * 68 68 * @return string Widget name. 69 * @since 11. 4.069 * @since 11.5.0 70 70 * 71 71 * @access public … … 81 81 * 82 82 * @return string Widget title. 83 * @since 11. 4.083 * @since 11.5.0 84 84 * 85 85 * @access public … … 95 95 * 96 96 * @return string Widget icon. 97 * @since 11. 4.097 * @since 11.5.0 98 98 * 99 99 * @access public … … 114 114 * 115 115 * @return array Widget categories. 116 * @since 11. 4.0116 * @since 11.5.0 117 117 * 118 118 * @access public … … 164 164 * Adds different input fields to allow the user to change and customize the widget settings. 165 165 * 166 * @since 11. 4.0166 * @since 11.5.0 167 167 * 168 168 * @access protected 169 169 */ 170 protected function _register_controls()170 protected function register_controls() 171 171 { 172 172 // Content Section … … 865 865 * Written in PHP and used to generate the final HTML. 866 866 * 867 * @since 11. 4.0867 * @since 11.5.0 868 868 * 869 869 * @access protected … … 896 896 897 897 <section class="swiper mySwiper mySwiperCube"> 898 <ul class="swiper-wrapper <?php if (esc_attr($settings['slider_rotate'])) { ?>slide-rotate<?php } ?>"> 898 <ul class="swiper-wrapper <?php if (esc_attr($settings['slider_rotate'])) { ?>slide-rotate<?php } ?>" 899 role="list"> 899 900 <?php $counter = 1; 900 901 foreach ($settings['slide'] as $item) { ?> -
testimonials-carousel-elementor/trunk/widgets/section-with-carousel/class-section-with-cube-360.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * Section_With_Cube_360 widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class Section_With_Cube_360 extends Widget_Base … … 64 64 * 65 65 * @return string Widget name. 66 * @since 11. 4.066 * @since 11.5.0 67 67 * 68 68 * @access public … … 78 78 * 79 79 * @return string Widget title. 80 * @since 11. 4.080 * @since 11.5.0 81 81 * 82 82 * @access public … … 92 92 * 93 93 * @return string Widget icon. 94 * @since 11. 4.094 * @since 11.5.0 95 95 * 96 96 * @access public … … 111 111 * 112 112 * @return array Widget categories. 113 * @since 11. 4.0113 * @since 11.5.0 114 114 * 115 115 * @access public … … 143 143 * Adds different input fields to allow the user to change and customize the widget settings. 144 144 * 145 * @since 11. 4.0145 * @since 11.5.0 146 146 * 147 147 * @access protected 148 148 */ 149 protected function _register_controls()149 protected function register_controls() 150 150 { 151 151 // Content Section … … 3728 3728 * Written in PHP and used to generate the final HTML. 3729 3729 * 3730 * @since 11. 4.03730 * @since 11.5.0 3731 3731 * 3732 3732 * @access protected -
testimonials-carousel-elementor/trunk/widgets/section-with-carousel/class-section-with-cube.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * Section_With_Cube widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class Section_With_Cube extends Widget_Base … … 67 67 * 68 68 * @return string Widget name. 69 * @since 11. 4.069 * @since 11.5.0 70 70 * 71 71 * @access public … … 81 81 * 82 82 * @return string Widget title. 83 * @since 11. 4.083 * @since 11.5.0 84 84 * 85 85 * @access public … … 95 95 * 96 96 * @return string Widget icon. 97 * @since 11. 4.097 * @since 11.5.0 98 98 * 99 99 * @access public … … 114 114 * 115 115 * @return array Widget categories. 116 * @since 11. 4.0116 * @since 11.5.0 117 117 * 118 118 * @access public … … 164 164 * Adds different input fields to allow the user to change and customize the widget settings. 165 165 * 166 * @since 11. 4.0166 * @since 11.5.0 167 167 * 168 168 * @access protected 169 169 */ 170 protected function _register_controls()170 protected function register_controls() 171 171 { 172 172 // Content Section … … 1112 1112 * Written in PHP and used to generate the final HTML. 1113 1113 * 1114 * @since 11. 4.01114 * @since 11.5.0 1115 1115 * 1116 1116 * @access protected … … 1151 1151 </div> 1152 1152 <div class="swiper mySwiper mySwiperCube"> 1153 <ul class="swiper-wrapper <?php if (esc_attr($settings['slider_rotate'])) { ?>slide-rotate<?php } ?>"> 1153 <ul class="swiper-wrapper <?php if (esc_attr($settings['slider_rotate'])) { ?>slide-rotate<?php } ?>" 1154 role="list"> 1154 1155 <?php foreach ($settings['slide'] as $item) { ?> 1155 1156 <li class="swiper-slide slider-container-background"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-blog.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 33 33 * TestimonialsCarousel_Blog widget class. 34 34 * 35 * @since 11. 4.035 * @since 11.5.0 36 36 */ 37 37 class TestimonialsCarousel_Blog extends Widget_Base … … 67 67 * 68 68 * @return string Widget name. 69 * @since 11. 4.069 * @since 11.5.0 70 70 * 71 71 * @access public … … 81 81 * 82 82 * @return string Widget title. 83 * @since 11. 4.083 * @since 11.5.0 84 84 * 85 85 * @access public … … 95 95 * 96 96 * @return string Widget icon. 97 * @since 11. 4.097 * @since 11.5.0 98 98 * 99 99 * @access public … … 114 114 * 115 115 * @return array Widget categories. 116 * @since 11. 4.0116 * @since 11.5.0 117 117 * 118 118 * @access public … … 163 163 * Adds different input fields to allow the user to change and customize the widget settings. 164 164 * 165 * @since 11. 4.0165 * @since 11.5.0 166 166 * 167 167 * @access protected 168 168 */ 169 protected function _register_controls()169 protected function register_controls() 170 170 { 171 171 // Content Section … … 417 417 418 418 $this->add_control( 419 'slider_random', 420 [ 421 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 422 'type' => Controls_Manager::SWITCHER, 423 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 424 'label_off' => __('No', 'testimonials-carousel-elementor'), 425 'return_value' => 'yes', 426 'default' => 'no', 427 'frontend_available' => true, 428 ] 429 ); 430 431 $this->add_control( 419 432 'show_line_text', 420 433 [ … … 1122 1135 * Written in PHP and used to generate the final HTML. 1123 1136 * 1124 * @since 11. 4.01137 * @since 11.5.0 1125 1138 * 1126 1139 * @access protected … … 1129 1142 { 1130 1143 $settings = $this->get_settings_for_display(); 1144 $slide = $settings['slide']; 1145 1131 1146 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1132 1147 $this->add_render_attribute( … … 1144 1159 } 1145 1160 1146 if ($s ettings['slide']) {1161 if ($slide) { 1147 1162 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1148 1163 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1149 <?php } ?> 1164 <?php } 1165 1166 if ($settings['slider_random'] === 'yes') { 1167 $keys = array_keys($slide); 1168 shuffle($keys); 1169 $slide = array_map(fn($key) => $slide[$key], $keys); 1170 } 1171 ?> 1150 1172 1151 1173 <section class="swiper mySwiper myBlog <?php if ( … … 1155 1177 <div 1156 1178 class="swiper-wrapper blog-slider <?php if (esc_attr($settings['slide_content_direction']) === 'yes') { ?> blog-slider-reverse<?php } ?>"> 1157 <?php foreach ($s ettings['slide']as $item) {1179 <?php foreach ($slide as $item) { 1158 1180 $this->add_link_attributes('slide_button_link', $item['slide_button_link'] ?? [], true); ?> 1159 1181 <div class="swiper-slide blog-slider__item"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-bottom.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Bottom widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Bottom extends Widget_Base … … 66 66 * 67 67 * @return string Widget name. 68 * @since 11. 4.068 * @since 11.5.0 69 69 * 70 70 * @access public … … 80 80 * 81 81 * @return string Widget title. 82 * @since 11. 4.082 * @since 11.5.0 83 83 * 84 84 * @access public … … 94 94 * 95 95 * @return string Widget icon. 96 * @since 11. 4.096 * @since 11.5.0 97 97 * 98 98 * @access public … … 113 113 * 114 114 * @return array Widget categories. 115 * @since 11. 4.0115 * @since 11.5.0 116 116 * 117 117 * @access public … … 163 163 * Adds different input fields to allow the user to change and customize the widget settings. 164 164 * 165 * @since 11. 4.0165 * @since 11.5.0 166 166 * 167 167 * @access protected 168 168 */ 169 protected function _register_controls()169 protected function register_controls() 170 170 { 171 171 // Content Section … … 365 365 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 366 366 367 $this->add_control( 368 'slider_random', 369 [ 370 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 371 'type' => Controls_Manager::SWITCHER, 372 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 373 'label_off' => __('No', 'testimonials-carousel-elementor'), 374 'return_value' => 'yes', 375 'default' => 'no', 376 'frontend_available' => true, 377 ] 378 ); 379 367 380 $this->add_responsive_control( 368 381 'slides_to_show', … … 1725 1738 * Written in PHP and used to generate the final HTML. 1726 1739 * 1727 * @since 11. 4.01740 * @since 11.5.0 1728 1741 * 1729 1742 * @access protected … … 1732 1745 { 1733 1746 $settings = $this->get_settings_for_display(); 1747 $slide = $settings['slide']; 1748 1734 1749 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1735 1750 $this->add_render_attribute( … … 1753 1768 } 1754 1769 1755 if ($s ettings['slide']) {1770 if ($slide) { 1756 1771 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1757 1772 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1758 <?php } ?> 1773 <?php } 1774 1775 if ($settings['slider_random'] === 'yes') { 1776 $keys = array_keys($slide); 1777 shuffle($keys); 1778 $slide = array_map(fn($key) => $slide[$key], $keys); 1779 } 1780 ?> 1759 1781 1760 1782 <section class="swiper mySwiper myTestimonials mySwiperBottom <?php if ( … … 1762 1784 || esc_attr($settings['navigation']) === "none" 1763 1785 ) { ?>slider-arrows-disabled<?php } ?>"> 1764 <ul class="swiper-wrapper"> 1765 <?php 1766 foreach ($settings['slide'] as $item) { ?> 1786 <ul class="swiper-wrapper" role="list"> 1787 <?php foreach ($slide as $item) { ?> 1767 1788 <li class="swiper-slide slider-container-background"> 1768 1789 <div class="block-shadow slider-container-block-background"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-centered.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Centered widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Centered extends Widget_Base … … 66 66 * 67 67 * @return string Widget name. 68 * @since 11. 4.068 * @since 11.5.0 69 69 * 70 70 * @access public … … 80 80 * 81 81 * @return string Widget title. 82 * @since 11. 4.082 * @since 11.5.0 83 83 * 84 84 * @access public … … 94 94 * 95 95 * @return string Widget icon. 96 * @since 11. 4.096 * @since 11.5.0 97 97 * 98 98 * @access public … … 113 113 * 114 114 * @return array Widget categories. 115 * @since 11. 4.0115 * @since 11.5.0 116 116 * 117 117 * @access public … … 163 163 * Adds different input fields to allow the user to change and customize the widget settings. 164 164 * 165 * @since 11. 4.0165 * @since 11.5.0 166 166 * 167 167 * @access protected 168 168 */ 169 protected function _register_controls()169 protected function register_controls() 170 170 { 171 171 // Content Section … … 392 392 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 393 393 394 $this->add_control( 395 'slider_random', 396 [ 397 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 398 'type' => Controls_Manager::SWITCHER, 399 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 400 'label_off' => __('No', 'testimonials-carousel-elementor'), 401 'return_value' => 'yes', 402 'default' => 'no', 403 'frontend_available' => true, 404 ] 405 ); 406 394 407 $this->add_responsive_control( 395 408 'slides_to_show', … … 1258 1271 Group_Control_Background::get_type(), 1259 1272 [ 1260 'name' => 'popup_background',1261 'types' => ['classic', 'gradient'],1262 'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',1273 'name' => 'popup_background', 1274 'types' => ['classic', 'gradient'], 1275 'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background', 1263 1276 'separator' => 'before', 1264 1277 ] … … 1844 1857 * Written in PHP and used to generate the final HTML. 1845 1858 * 1846 * @since 11. 4.01859 * @since 11.5.0 1847 1860 * 1848 1861 * @access protected … … 1851 1864 { 1852 1865 $settings = $this->get_settings_for_display(); 1866 $slide = $settings['slide']; 1867 1853 1868 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1854 1869 $this->add_render_attribute( … … 1872 1887 } 1873 1888 1874 if ($s ettings['slide']) {1889 if ($slide) { 1875 1890 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1876 1891 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1877 <?php } ?> 1892 <?php } 1893 1894 if ($settings['slider_random'] === 'yes') { 1895 $keys = array_keys($slide); 1896 shuffle($keys); 1897 $slide = array_map(fn($key) => $slide[$key], $keys); 1898 } 1899 ?> 1878 1900 1879 1901 <section class="swiper mySwiper myTestimonials mySwiperCentered <?php if ( … … 1881 1903 || esc_attr($settings['navigation']) === "none" 1882 1904 ) { ?>slider-arrows-disabled<?php } ?>"> 1883 <ul class="swiper-wrapper"> 1884 <?php 1885 foreach ($settings['slide'] as $item) { ?> 1905 <ul class="swiper-wrapper" role="list"> 1906 <?php foreach ($slide as $item) { ?> 1886 1907 <li class="swiper-slide slider-container-background"> 1887 1908 <div class="block-shadow slider-container-block-background"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-creative.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Creative widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Creative extends Widget_Base … … 66 66 * 67 67 * @return string Widget name. 68 * @since 11. 4.068 * @since 11.5.0 69 69 * 70 70 * @access public … … 80 80 * 81 81 * @return string Widget title. 82 * @since 11. 4.082 * @since 11.5.0 83 83 * 84 84 * @access public … … 94 94 * 95 95 * @return string Widget icon. 96 * @since 11. 4.096 * @since 11.5.0 97 97 * 98 98 * @access public … … 113 113 * 114 114 * @return array Widget categories. 115 * @since 11. 4.0115 * @since 11.5.0 116 116 * 117 117 * @access public … … 173 173 * Adds different input fields to allow the user to change and customize the widget settings. 174 174 * 175 * @since 11. 4.0175 * @since 11.5.0 176 176 * 177 177 * @access protected 178 178 */ 179 protected function _register_controls()179 protected function register_controls() 180 180 { 181 181 // Content Section … … 237 237 [ 238 238 'label' => esc_html__('Additional Options', 'testimonials-carousel-elementor'), 239 ] 240 ); 241 242 $this->add_control( 243 'slider_random', 244 [ 245 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 246 'type' => Controls_Manager::SWITCHER, 247 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 248 'label_off' => __('No', 'testimonials-carousel-elementor'), 249 'return_value' => 'yes', 250 'default' => 'no', 251 'frontend_available' => true, 239 252 ] 240 253 ); … … 418 431 * Written in PHP and used to generate the final HTML. 419 432 * 420 * @since 11. 4.0433 * @since 11.5.0 421 434 * 422 435 * @access protected -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-employees.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 30 30 * TestimonialsCarousel_Employees widget class. 31 31 * 32 * @since 11. 4.032 * @since 11.5.0 33 33 */ 34 34 class TestimonialsCarousel_Employees extends Widget_Base … … 65 65 * 66 66 * @return string Widget name. 67 * @since 11. 4.067 * @since 11.5.0 68 68 * 69 69 * @access public … … 79 79 * 80 80 * @return string Widget title. 81 * @since 11. 4.081 * @since 11.5.0 82 82 * 83 83 * @access public … … 93 93 * 94 94 * @return string Widget icon. 95 * @since 11. 4.095 * @since 11.5.0 96 96 * 97 97 * @access public … … 112 112 * 113 113 * @return array Widget categories. 114 * @since 11. 4.0114 * @since 11.5.0 115 115 * 116 116 * @access public … … 172 172 * Adds different input fields to allow the user to change and customize the widget settings. 173 173 * 174 * @since 11. 4.0174 * @since 11.5.0 175 175 * 176 176 * @access protected 177 177 */ 178 protected function _register_controls()178 protected function register_controls() 179 179 { 180 180 // Content Section … … 570 570 $slides_to_show = range(1, 4); 571 571 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 572 573 $this->add_control( 574 'slider_random', 575 [ 576 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 577 'type' => Controls_Manager::SWITCHER, 578 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 579 'label_off' => __('No', 'testimonials-carousel-elementor'), 580 'return_value' => 'yes', 581 'default' => 'no', 582 'frontend_available' => true, 583 ] 584 ); 572 585 573 586 $this->add_responsive_control( … … 1363 1376 * Written in PHP and used to generate the final HTML. 1364 1377 * 1365 * @since 11. 4.01378 * @since 11.5.0 1366 1379 * 1367 1380 * @access protected … … 1370 1383 { 1371 1384 $settings = $this->get_settings_for_display(); 1385 $slide = $settings['slide']; 1386 1372 1387 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1373 1388 $this->add_render_attribute( … … 1390 1405 } 1391 1406 1392 if ($s ettings['slide']) {1407 if ($slide) { 1393 1408 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1394 1409 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1395 <?php } ?> 1410 <?php } 1411 1412 if ($settings['slider_random'] === 'yes') { 1413 $keys = array_keys($slide); 1414 shuffle($keys); 1415 $slide = array_map(fn($key) => $slide[$key], $keys); 1416 } 1417 ?> 1396 1418 1397 1419 <section class="swiper mySwiper myEmployees <?php if ( … … 1400 1422 ) { ?>slider-arrows-disabled<?php } ?>"> 1401 1423 <div class="swiper-wrapper content"> 1402 <?php foreach ($s ettings['slide']as $item) { ?>1424 <?php foreach ($slide as $item) { ?> 1403 1425 <div class="swiper-slide card"> 1404 1426 <div class="card-content"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-gallery-coverflow.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 33 33 * TestimonialsCarousel_Coverflow widget class. 34 34 * 35 * @since 11. 4.035 * @since 11.5.0 36 36 */ 37 37 class TestimonialsCarousel_Gallery_Coverflow extends Widget_Base … … 69 69 * 70 70 * @return string Widget name. 71 * @since 11. 4.071 * @since 11.5.0 72 72 * 73 73 * @access public … … 83 83 * 84 84 * @return string Widget title. 85 * @since 11. 4.085 * @since 11.5.0 86 86 * 87 87 * @access public … … 97 97 * 98 98 * @return string Widget icon. 99 * @since 11. 4.099 * @since 11.5.0 100 100 * 101 101 * @access public … … 116 116 * 117 117 * @return array Widget categories. 118 * @since 11. 4.0118 * @since 11.5.0 119 119 * 120 120 * @access public … … 166 166 * Adds different input fields to allow the user to change and customize the widget settings. 167 167 * 168 * @since 11. 4.0168 * @since 11.5.0 169 169 * 170 170 * @access protected 171 171 */ 172 protected function _register_controls()172 protected function register_controls() 173 173 { 174 174 // Content Section … … 447 447 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 448 448 449 $this->add_control( 450 'slider_random', 451 [ 452 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 453 'type' => Controls_Manager::SWITCHER, 454 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 455 'label_off' => __('No', 'testimonials-carousel-elementor'), 456 'return_value' => 'yes', 457 'default' => 'no', 458 'frontend_available' => true, 459 ] 460 ); 461 449 462 $this->add_responsive_control( 450 463 'slides_to_show', … … 1660 1673 Group_Control_Background::get_type(), 1661 1674 [ 1662 'name' => 'popup_background',1663 'types' => ['classic', 'gradient'],1664 'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background',1675 'name' => 'popup_background', 1676 'types' => ['classic', 'gradient'], 1677 'selector' => '{{WRAPPER}} .slider-modal .slider-modal-container.slider-container-block-background', 1665 1678 'separator' => 'before', 1666 1679 ] … … 2105 2118 * Written in PHP and used to generate the final HTML. 2106 2119 * 2107 * @since 11. 4.02120 * @since 11.5.0 2108 2121 * 2109 2122 * @access protected … … 2112 2125 { 2113 2126 $settings = $this->get_settings_for_display(); 2127 $slide = $settings['slide']; 2128 2114 2129 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 2115 2130 $this->add_render_attribute( … … 2139 2154 } 2140 2155 2141 if ($s ettings['slide']) {2156 if ($slide) { 2142 2157 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 2143 2158 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 2144 <?php } ?> 2159 <?php } 2160 2161 if ($settings['slider_random'] === 'yes') { 2162 $keys = array_keys($slide); 2163 shuffle($keys); 2164 $slide = array_map(fn($key) => $slide[$key], $keys); 2165 } 2166 ?> 2145 2167 2146 2168 <section class="swiper mySwiper myGallery mySwiperGalleryCoverflow <?php if ( … … 2158 2180 <div class="swiper-container gallery-thumbs"> 2159 2181 <div class="swiper-wrapper"> 2160 <?php foreach ($s ettings['slide']as $item) { ?>2182 <?php foreach ($slide as $item) { ?> 2161 2183 <div class="swiper-slide"> 2162 2184 <?php if (isset($item['slide_image'], $item['slide_image']['url']) && !empty($item['slide_image']['url']) && $item['slide_show_image'] === 'yes' && $settings['slider_global_show_images'] === 'yes') { ?> … … 2173 2195 <div class="swiper-wrapper "> 2174 2196 <!-- Slides --> 2175 <?php foreach ($s ettings['slide']as $item) {2197 <?php foreach ($slide as $item) { 2176 2198 $this->add_link_attributes('slide_icon_link', $item['slide_icon_link'] ?? [], true); ?> 2177 2199 <div class="swiper-slide"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-logo.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel_Logo widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel_Logo extends Widget_Base … … 66 66 * 67 67 * @return string Widget name. 68 * @since 11. 4.068 * @since 11.5.0 69 69 * 70 70 * @access public … … 80 80 * 81 81 * @return string Widget title. 82 * @since 11. 4.082 * @since 11.5.0 83 83 * 84 84 * @access public … … 94 94 * 95 95 * @return string Widget icon. 96 * @since 11. 4.096 * @since 11.5.0 97 97 * 98 98 * @access public … … 113 113 * 114 114 * @return array Widget categories. 115 * @since 11. 4.0115 * @since 11.5.0 116 116 * 117 117 * @access public … … 166 166 * Adds different input fields to allow the user to change and customize the widget settings. 167 167 * 168 * @since 11. 4.0168 * @since 11.5.0 169 169 * 170 170 * @access protected 171 171 */ 172 protected function _register_controls()172 protected function register_controls() 173 173 { 174 174 // Content Section … … 392 392 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 393 393 394 $this->add_control( 395 'slider_random', 396 [ 397 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 398 'type' => Controls_Manager::SWITCHER, 399 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 400 'label_off' => __('No', 'testimonials-carousel-elementor'), 401 'return_value' => 'yes', 402 'default' => 'no', 403 'frontend_available' => true, 404 ] 405 ); 406 394 407 $this->add_responsive_control( 395 408 'slides_to_show', … … 1975 1988 * Written in PHP and used to generate the final HTML. 1976 1989 * 1977 * @since 11. 4.01990 * @since 11.5.0 1978 1991 * 1979 1992 * @access protected … … 1982 1995 { 1983 1996 $settings = $this->get_settings_for_display(); 1997 $slide = $settings['slide']; 1984 1998 1985 1999 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { … … 2004 2018 } 2005 2019 2006 if ($s ettings['slide']) {2020 if ($slide) { 2007 2021 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 2008 2022 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 2009 <?php } ?> 2023 <?php } 2024 2025 if ($settings['slider_random'] === 'yes') { 2026 $keys = array_keys($slide); 2027 shuffle($keys); 2028 $slide = array_map(fn($key) => $slide[$key], $keys); 2029 } 2030 ?> 2010 2031 2011 2032 <section class="swiper mySwiper myTestimonials mySwiperLogo <?php if ( … … 2013 2034 || esc_attr($settings['navigation']) === "none" 2014 2035 ) { ?>slider-arrows-disabled<?php } ?>"> 2015 <ul class="swiper-wrapper" >2036 <ul class="swiper-wrapper" role="list"> 2016 2037 <?php 2017 foreach ($s ettings['slide']as $item) { ?>2038 foreach ($slide as $item) { ?> 2018 2039 <li class="swiper-slide slider-container-background slider-logo-container-background slider-logo-container"> 2019 2040 <div class="slide-logo-block"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-thumbnails.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 32 32 * TestimonialsCarousel_Creative widget class. 33 33 * 34 * @since 11. 4.034 * @since 11.5.0 35 35 */ 36 36 class TestimonialsCarousel_Thumbnails extends Widget_Base … … 67 67 * 68 68 * @return string Widget name. 69 * @since 11. 4.069 * @since 11.5.0 70 70 * 71 71 * @access public … … 81 81 * 82 82 * @return string Widget title. 83 * @since 11. 4.083 * @since 11.5.0 84 84 * 85 85 * @access public … … 95 95 * 96 96 * @return string Widget icon. 97 * @since 11. 4.097 * @since 11.5.0 98 98 * 99 99 * @access public … … 114 114 * 115 115 * @return array Widget categories. 116 * @since 11. 4.0116 * @since 11.5.0 117 117 * 118 118 * @access public … … 162 162 * Adds different input fields to allow the user to change and customize the widget settings. 163 163 * 164 * @since 11. 4.0164 * @since 11.5.0 165 165 * 166 166 * @access protected 167 167 */ 168 protected function _register_controls()168 protected function register_controls() 169 169 { 170 170 // Content Section … … 359 359 360 360 $this->add_control( 361 'slider_random', 362 [ 363 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 364 'type' => Controls_Manager::SWITCHER, 365 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 366 'label_off' => __('No', 'testimonials-carousel-elementor'), 367 'return_value' => 'yes', 368 'default' => 'no', 369 'frontend_available' => true, 370 ] 371 ); 372 373 $this->add_control( 361 374 'slider_loop', 362 375 [ … … 1773 1786 * Written in PHP and used to generate the final HTML. 1774 1787 * 1775 * @since 11. 4.01788 * @since 11.5.0 1776 1789 * 1777 1790 * @access protected … … 1780 1793 { 1781 1794 $settings = $this->get_settings_for_display(); 1795 $slide = $settings['slide']; 1796 1782 1797 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 1783 1798 $this->add_render_attribute( … … 1796 1811 } 1797 1812 1798 if ($s ettings['slide']) {1813 if ($slide) { 1799 1814 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 1800 1815 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 1801 <?php } ?> 1816 <?php } 1817 1818 if ($settings['slider_random'] === 'yes') { 1819 $keys = array_keys($slide); 1820 shuffle($keys); 1821 $slide = array_map(fn($key) => $slide[$key], $keys); 1822 } 1823 ?> 1802 1824 1803 1825 <section id="thumbnails" class="testimonials-thumbnails myTestimonialsThumbnail mySwiper <?php if ( … … 1811 1833 || esc_attr($settings['navigation']) === "arrows") { ?>thumbnail__slider_1-width<?php } ?>"> 1812 1834 <div class="swiper-wrapper"> 1813 <?php foreach ($s ettings['slide']as $item) {1835 <?php foreach ($slide as $item) { 1814 1836 if (esc_url($item['slide_image']['url'])) { ?> 1815 1837 <div class="swiper-slide"> … … 1868 1890 ) { ?>d-none<?php } ?>"> 1869 1891 <div class="swiper-wrapper"> 1870 <?php foreach ($s ettings['slide']as $item) {1892 <?php foreach ($slide as $item) { 1871 1893 if (isset($item['slide_image'], $item['slide_image']['url']) && !empty($item['slide_image']['url'])) { ?> 1872 1894 <div class="swiper-slide"> -
testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel.php
r3221633 r3249685 10 10 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only 11 11 * @link 12 * @since 11. 4.012 * @since 11.5.0 13 13 * php version 7.4.1 14 14 */ … … 31 31 * TestimonialsCarousel widget class. 32 32 * 33 * @since 11. 4.033 * @since 11.5.0 34 34 */ 35 35 class TestimonialsCarousel extends Widget_Base … … 66 66 * 67 67 * @return string Widget name. 68 * @since 11. 4.068 * @since 11.5.0 69 69 * 70 70 * @access public … … 80 80 * 81 81 * @return string Widget title. 82 * @since 11. 4.082 * @since 11.5.0 83 83 * 84 84 * @access public … … 94 94 * 95 95 * @return string Widget icon. 96 * @since 11. 4.096 * @since 11.5.0 97 97 * 98 98 * @access public … … 113 113 * 114 114 * @return array Widget categories. 115 * @since 11. 4.0115 * @since 11.5.0 116 116 * 117 117 * @access public … … 163 163 * Adds different input fields to allow the user to change and customize the widget settings. 164 164 * 165 * @since 11. 4.0165 * @since 11.5.0 166 166 * 167 167 * @access protected 168 168 */ 169 protected function _register_controls()169 protected function register_controls() 170 170 { 171 171 // Content Section … … 391 391 $slides_to_show = array_combine($slides_to_show, $slides_to_show); 392 392 393 $this->add_control( 394 'slider_random', 395 [ 396 'label' => esc_html__('Random Order', 'testimonials-carousel-elementor'), 397 'type' => Controls_Manager::SWITCHER, 398 'label_on' => __('Yes', 'testimonials-carousel-elementor'), 399 'label_off' => __('No', 'testimonials-carousel-elementor'), 400 'return_value' => 'yes', 401 'default' => 'no', 402 'frontend_available' => true, 403 ] 404 ); 405 393 406 $this->add_responsive_control( 394 407 'slides_to_show', … … 2072 2085 * Written in PHP and used to generate the final HTML. 2073 2086 * 2074 * @since 11. 4.02087 * @since 11.5.0 2075 2088 * 2076 2089 * @access protected … … 2079 2092 { 2080 2093 $settings = $this->get_settings_for_display(); 2094 $slide = $settings['slide']; 2095 2081 2096 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { 2082 2097 $this->add_render_attribute( … … 2100 2115 } 2101 2116 2102 if ($s ettings['slide']) {2117 if ($slide) { 2103 2118 if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?> 2104 2119 <div <?php echo $this->get_render_attribute_string('my_swiper'); ?>></div> 2105 <?php } ?> 2120 <?php } 2121 2122 if ($settings['slider_random'] === 'yes') { 2123 $keys = array_keys($slide); 2124 shuffle($keys); 2125 $slide = array_map(fn($key) => $slide[$key], $keys); 2126 } 2127 ?> 2106 2128 2107 2129 <section class="swiper mySwiper myTestimonials <?php if ( … … 2109 2131 || esc_attr($settings['navigation']) === "none" 2110 2132 ) { ?>slider-arrows-disabled<?php } ?>"> 2111 <ul class="swiper-wrapper"> 2112 <?php 2113 foreach ($settings['slide'] as $item) { ?> 2133 <ul class="swiper-wrapper" role="list"> 2134 <?php foreach ($slide as $item) { ?> 2114 2135 <li class="swiper-slide slider-container-background"> 2115 2136 <div class="block-shadow slider-container-block-background">
Note: See TracChangeset
for help on using the changeset viewer.