Plugin Directory

Changeset 3249685


Ignore:
Timestamp:
03/03/2025 12:35:58 PM (12 months ago)
Author:
uapp
Message:

Updated the plugin version to 11.5.0

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

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

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

    r3247164 r3249685  
    44Requires PHP: 7.4.1
    55Requires at least: 5.9
    6 Tested up to: 6.7.1
    7 Stable tag: 11.4.1
     6Tested up to: 6.7.2
     7Stable tag: 11.5.0
    88License: GPLv3
    99License URI: https://opensource.org/licenses/GPL-3.0
     
    7878== Changelog ==
    7979
     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
    8085= 11.4.1 - 2025-02-26 =
    8186- Modified: Changed plugin description.
  • testimonials-carousel-elementor/trunk/testimonials-carousel-elementor.php

    r3247164 r3249685  
    88 * Description: The compact Testimonial Carousel for Elementor lets you show long text reviews in Pop-Up of Carousel Slider.
    99 * Plugin URI:
    10  * Version:     11.4.1
     10 * Version:     11.5.0
    1111 * Author:      UAPP GROUP
    1212 * Author URI:  https://uapp.group/
     
    2323 * @var string The plugin version.
    2424 */
    25 define('TESTIMONIALS_VERSION', '11.4.1');
     25define('TESTIMONIALS_VERSION', '11.5.0');
    2626
    2727/**
  • testimonials-carousel-elementor/trunk/widgets-templates/creative-slider/creative-with-background.php

    r3157386 r3249685  
    33function get_creative_with_background_template($settings, $attributes)
    44{
     5  $slide = $settings['creative_with_background'];
     6
    57  if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    68    <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  ?>
    817
    918  <section class="creative creative-with-background"
     
    1524        <div class="swiper-wrapper">
    1625          <?php $counter = 1;
    17           foreach ($settings['creative_with_background'] as $item) { ?>
     26          foreach ($slide as $item) { ?>
    1827            <div class="swiper-slide" id="slide-<?php echo esc_attr($counter); ?>">
    1928              <?php if (isset($item['creative_with_background_image'], $item['creative_with_background_image']['url']) && !empty($item['creative_with_background_image']['url'])) { ?>
     
    3039        <div class="creative__wrapper-content">
    3140          <?php $counter_content = 1;
    32           foreach ($settings['creative_with_background'] as $item_content) { ?>
     41          foreach ($slide as $item_content) { ?>
    3342            <div class="creative__slide-content <?php if ($counter_content === 1) { ?> active <?php } ?>"
    3443                 data-id="slide-<?php echo esc_attr($counter_content); ?>">
  • testimonials-carousel-elementor/trunk/widgets-templates/creative-slider/default.php

    r3157386 r3249685  
    33function get_default_creative_template($settings, $attributes)
    44{
     5  $slide = $settings['slide'];
     6
    57  if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    68    <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  ?>
    817
    918  <section class="creative">
     
    1120      <div class="swiper-wrapper">
    1221        <?php $counter = 1;
    13         foreach ($settings['slide'] as $item) {
     22        foreach ($slide as $item) {
    1423          $alt = $item['slide_image']['alt'] ?? '' ?>
    1524          <div class="swiper-slide" id="slide-<?php echo esc_attr($counter); ?>">
     
    2736      <div class="creative__wrapper-content">
    2837        <?php $counter_content = 1;
    29         foreach ($settings['slide'] as $item_content) { ?>
     38        foreach ($slide as $item_content) { ?>
    3039          <div class="creative__slide-content <?php if ($counter_content === 1) { ?> active <?php } ?>"
    3140               data-id="slide-<?php echo esc_attr($counter_content); ?>">
  • testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-coverflow.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Coverflow widget class.
    3434 *
    35  * @since 11.4.0
     35 * @since 11.5.0
    3636 */
    3737class TestimonialsCarousel_Coverflow extends Widget_Base
     
    6868   *
    6969   * @return string Widget name.
    70    * @since  11.4.0
     70   * @since  11.5.0
    7171   *
    7272   * @access public
     
    8282   *
    8383   * @return string Widget title.
    84    * @since  11.4.0
     84   * @since  11.5.0
    8585   *
    8686   * @access public
     
    9696   *
    9797   * @return string Widget icon.
    98    * @since  11.4.0
     98   * @since  11.5.0
    9999   *
    100100   * @access public
     
    115115   *
    116116   * @return array Widget categories.
    117    * @since  11.4.0
     117   * @since  11.5.0
    118118   *
    119119   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.4.0
     165   * @since  11.5.0
    166166   *
    167167   * @access protected
    168168   */
    169   protected function _register_controls()
     169  protected function register_controls()
    170170  {
    171171    // Content Section
     
    451451    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    452452
     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
    453466    $this->add_responsive_control(
    454467      'slides_to_show',
     
    12581271   * Written in PHP and used to generate the final HTML.
    12591272   *
    1260    * @since  11.4.0
     1273   * @since  11.5.0
    12611274   *
    12621275   * @access protected
     
    12651278  {
    12661279    $settings = $this->get_settings_for_display();
     1280    $slide    = $settings['slide'];
     1281
    12671282    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    12681283      $this->add_render_attribute(
     
    12871302    }
    12881303
    1289     if ($settings['slide']) {
     1304    if ($slide) {
    12901305      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    12911306        <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      ?>
    12931315
    12941316      <section class="swiper mySwiper mySwiperCoverflow <?php if (
     
    12961318        || esc_attr($settings['navigation']) === "none"
    12971319      ) { ?>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) {
    13011322            $this->add_link_attributes('slide_button_link', $item['slide_button_link'] ?? [], true); ?>
    13021323            <li class="swiper-slide slider-container-background">
  • testimonials-carousel-elementor/trunk/widgets/animated-carousel/class-testimonialscarousel-cube-360.php

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

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Cube widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel_Cube extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.4.0
     69   * @since  11.5.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.4.0
     83   * @since  11.5.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.4.0
     97   * @since  11.5.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.4.0
     116   * @since  11.5.0
    117117   *
    118118   * @access public
     
    164164   * Adds different input fields to allow the user to change and customize the widget settings.
    165165   *
    166    * @since  11.4.0
     166   * @since  11.5.0
    167167   *
    168168   * @access protected
    169169   */
    170   protected function _register_controls()
     170  protected function register_controls()
    171171  {
    172172    // Content Section
     
    865865   * Written in PHP and used to generate the final HTML.
    866866   *
    867    * @since  11.4.0
     867   * @since  11.5.0
    868868   *
    869869   * @access protected
     
    896896
    897897      <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">
    899900          <?php $counter = 1;
    900901          foreach ($settings['slide'] as $item) { ?>
  • testimonials-carousel-elementor/trunk/widgets/section-with-carousel/class-section-with-cube-360.php

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

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * Section_With_Cube widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class Section_With_Cube extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.4.0
     69   * @since  11.5.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.4.0
     83   * @since  11.5.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.4.0
     97   * @since  11.5.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.4.0
     116   * @since  11.5.0
    117117   *
    118118   * @access public
     
    164164   * Adds different input fields to allow the user to change and customize the widget settings.
    165165   *
    166    * @since  11.4.0
     166   * @since  11.5.0
    167167   *
    168168   * @access protected
    169169   */
    170   protected function _register_controls()
     170  protected function register_controls()
    171171  {
    172172    // Content Section
     
    11121112   * Written in PHP and used to generate the final HTML.
    11131113   *
    1114    * @since  11.4.0
     1114   * @since  11.5.0
    11151115   *
    11161116   * @access protected
     
    11511151            </div>
    11521152            <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">
    11541155                <?php foreach ($settings['slide'] as $item) { ?>
    11551156                  <li class="swiper-slide slider-container-background">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-blog.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Blog widget class.
    3434 *
    35  * @since 11.4.0
     35 * @since 11.5.0
    3636 */
    3737class TestimonialsCarousel_Blog extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.4.0
     69   * @since  11.5.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.4.0
     83   * @since  11.5.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.4.0
     97   * @since  11.5.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.4.0
     116   * @since  11.5.0
    117117   *
    118118   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.4.0
     165   * @since  11.5.0
    166166   *
    167167   * @access protected
    168168   */
    169   protected function _register_controls()
     169  protected function register_controls()
    170170  {
    171171    // Content Section
     
    417417
    418418    $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(
    419432      'show_line_text',
    420433      [
     
    11221135   * Written in PHP and used to generate the final HTML.
    11231136   *
    1124    * @since  11.4.0
     1137   * @since  11.5.0
    11251138   *
    11261139   * @access protected
     
    11291142  {
    11301143    $settings = $this->get_settings_for_display();
     1144    $slide    = $settings['slide'];
     1145
    11311146    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    11321147      $this->add_render_attribute(
     
    11441159    }
    11451160
    1146     if ($settings['slide']) {
     1161    if ($slide) {
    11471162      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    11481163        <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      ?>
    11501172
    11511173      <section class="swiper mySwiper myBlog <?php if (
     
    11551177        <div
    11561178            class="swiper-wrapper blog-slider <?php if (esc_attr($settings['slide_content_direction']) === 'yes') { ?> blog-slider-reverse<?php } ?>">
    1157           <?php foreach ($settings['slide'] as $item) {
     1179          <?php foreach ($slide as $item) {
    11581180            $this->add_link_attributes('slide_button_link', $item['slide_button_link'] ?? [], true); ?>
    11591181            <div class="swiper-slide blog-slider__item">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-bottom.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Bottom widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel_Bottom extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.4.0
     68   * @since  11.5.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.4.0
     82   * @since  11.5.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.4.0
     96   * @since  11.5.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.4.0
     115   * @since  11.5.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.4.0
     165   * @since  11.5.0
    166166   *
    167167   * @access protected
    168168   */
    169   protected function _register_controls()
     169  protected function register_controls()
    170170  {
    171171    // Content Section
     
    365365    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    366366
     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
    367380    $this->add_responsive_control(
    368381      'slides_to_show',
     
    17251738   * Written in PHP and used to generate the final HTML.
    17261739   *
    1727    * @since  11.4.0
     1740   * @since  11.5.0
    17281741   *
    17291742   * @access protected
     
    17321745  {
    17331746    $settings = $this->get_settings_for_display();
     1747    $slide    = $settings['slide'];
     1748
    17341749    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    17351750      $this->add_render_attribute(
     
    17531768    }
    17541769
    1755     if ($settings['slide']) {
     1770    if ($slide) {
    17561771      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    17571772        <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      ?>
    17591781
    17601782      <section class="swiper mySwiper myTestimonials mySwiperBottom <?php if (
     
    17621784        || esc_attr($settings['navigation']) === "none"
    17631785      ) { ?>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) { ?>
    17671788            <li class="swiper-slide slider-container-background">
    17681789              <div class="block-shadow slider-container-block-background">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-centered.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Centered widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel_Centered extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.4.0
     68   * @since  11.5.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.4.0
     82   * @since  11.5.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.4.0
     96   * @since  11.5.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.4.0
     115   * @since  11.5.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.4.0
     165   * @since  11.5.0
    166166   *
    167167   * @access protected
    168168   */
    169   protected function _register_controls()
     169  protected function register_controls()
    170170  {
    171171    // Content Section
     
    392392    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    393393
     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
    394407    $this->add_responsive_control(
    395408      'slides_to_show',
     
    12581271      Group_Control_Background::get_type(),
    12591272      [
    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',
    12631276        'separator' => 'before',
    12641277      ]
     
    18441857   * Written in PHP and used to generate the final HTML.
    18451858   *
    1846    * @since  11.4.0
     1859   * @since  11.5.0
    18471860   *
    18481861   * @access protected
     
    18511864  {
    18521865    $settings = $this->get_settings_for_display();
     1866    $slide    = $settings['slide'];
     1867
    18531868    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    18541869      $this->add_render_attribute(
     
    18721887    }
    18731888
    1874     if ($settings['slide']) {
     1889    if ($slide) {
    18751890      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    18761891        <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      ?>
    18781900
    18791901      <section class="swiper mySwiper myTestimonials mySwiperCentered <?php if (
     
    18811903        || esc_attr($settings['navigation']) === "none"
    18821904      ) { ?>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) { ?>
    18861907            <li class="swiper-slide slider-container-background">
    18871908              <div class="block-shadow slider-container-block-background">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-creative.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Creative widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel_Creative extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.4.0
     68   * @since  11.5.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.4.0
     82   * @since  11.5.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.4.0
     96   * @since  11.5.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.4.0
     115   * @since  11.5.0
    116116   *
    117117   * @access public
     
    173173   * Adds different input fields to allow the user to change and customize the widget settings.
    174174   *
    175    * @since  11.4.0
     175   * @since  11.5.0
    176176   *
    177177   * @access protected
    178178   */
    179   protected function _register_controls()
     179  protected function register_controls()
    180180  {
    181181    // Content Section
     
    237237      [
    238238        '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,
    239252      ]
    240253    );
     
    418431   * Written in PHP and used to generate the final HTML.
    419432   *
    420    * @since  11.4.0
     433   * @since  11.5.0
    421434   *
    422435   * @access protected
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-employees.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3030 * TestimonialsCarousel_Employees widget class.
    3131 *
    32  * @since 11.4.0
     32 * @since 11.5.0
    3333 */
    3434class TestimonialsCarousel_Employees extends Widget_Base
     
    6565   *
    6666   * @return string Widget name.
    67    * @since  11.4.0
     67   * @since  11.5.0
    6868   *
    6969   * @access public
     
    7979   *
    8080   * @return string Widget title.
    81    * @since  11.4.0
     81   * @since  11.5.0
    8282   *
    8383   * @access public
     
    9393   *
    9494   * @return string Widget icon.
    95    * @since  11.4.0
     95   * @since  11.5.0
    9696   *
    9797   * @access public
     
    112112   *
    113113   * @return array Widget categories.
    114    * @since  11.4.0
     114   * @since  11.5.0
    115115   *
    116116   * @access public
     
    172172   * Adds different input fields to allow the user to change and customize the widget settings.
    173173   *
    174    * @since  11.4.0
     174   * @since  11.5.0
    175175   *
    176176   * @access protected
    177177   */
    178   protected function _register_controls()
     178  protected function register_controls()
    179179  {
    180180    // Content Section
     
    570570    $slides_to_show = range(1, 4);
    571571    $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    );
    572585
    573586    $this->add_responsive_control(
     
    13631376   * Written in PHP and used to generate the final HTML.
    13641377   *
    1365    * @since  11.4.0
     1378   * @since  11.5.0
    13661379   *
    13671380   * @access protected
     
    13701383  {
    13711384    $settings = $this->get_settings_for_display();
     1385    $slide    = $settings['slide'];
     1386
    13721387    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    13731388      $this->add_render_attribute(
     
    13901405    }
    13911406
    1392     if ($settings['slide']) {
     1407    if ($slide) {
    13931408      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    13941409        <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      ?>
    13961418
    13971419      <section class="swiper mySwiper myEmployees <?php if (
     
    14001422      ) { ?>slider-arrows-disabled<?php } ?>">
    14011423        <div class="swiper-wrapper content">
    1402           <?php foreach ($settings['slide'] as $item) { ?>
     1424          <?php foreach ($slide as $item) { ?>
    14031425            <div class="swiper-slide card">
    14041426              <div class="card-content">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-gallery-coverflow.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3333 * TestimonialsCarousel_Coverflow widget class.
    3434 *
    35  * @since 11.4.0
     35 * @since 11.5.0
    3636 */
    3737class TestimonialsCarousel_Gallery_Coverflow extends Widget_Base
     
    6969   *
    7070   * @return string Widget name.
    71    * @since  11.4.0
     71   * @since  11.5.0
    7272   *
    7373   * @access public
     
    8383   *
    8484   * @return string Widget title.
    85    * @since  11.4.0
     85   * @since  11.5.0
    8686   *
    8787   * @access public
     
    9797   *
    9898   * @return string Widget icon.
    99    * @since  11.4.0
     99   * @since  11.5.0
    100100   *
    101101   * @access public
     
    116116   *
    117117   * @return array Widget categories.
    118    * @since  11.4.0
     118   * @since  11.5.0
    119119   *
    120120   * @access public
     
    166166   * Adds different input fields to allow the user to change and customize the widget settings.
    167167   *
    168    * @since  11.4.0
     168   * @since  11.5.0
    169169   *
    170170   * @access protected
    171171   */
    172   protected function _register_controls()
     172  protected function register_controls()
    173173  {
    174174    // Content Section
     
    447447    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    448448
     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
    449462    $this->add_responsive_control(
    450463      'slides_to_show',
     
    16601673      Group_Control_Background::get_type(),
    16611674      [
    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',
    16651678        'separator' => 'before',
    16661679      ]
     
    21052118   * Written in PHP and used to generate the final HTML.
    21062119   *
    2107    * @since  11.4.0
     2120   * @since  11.5.0
    21082121   *
    21092122   * @access protected
     
    21122125  {
    21132126    $settings = $this->get_settings_for_display();
     2127    $slide    = $settings['slide'];
     2128
    21142129    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    21152130      $this->add_render_attribute(
     
    21392154    }
    21402155
    2141     if ($settings['slide']) {
     2156    if ($slide) {
    21422157      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    21432158        <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      ?>
    21452167
    21462168      <section class="swiper mySwiper myGallery mySwiperGalleryCoverflow <?php if (
     
    21582180            <div class="swiper-container gallery-thumbs">
    21592181              <div class="swiper-wrapper">
    2160                 <?php foreach ($settings['slide'] as $item) { ?>
     2182                <?php foreach ($slide as $item) { ?>
    21612183                  <div class="swiper-slide">
    21622184                    <?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') { ?>
     
    21732195              <div class="swiper-wrapper ">
    21742196                <!-- Slides -->
    2175                 <?php foreach ($settings['slide'] as $item) {
     2197                <?php foreach ($slide as $item) {
    21762198                  $this->add_link_attributes('slide_icon_link', $item['slide_icon_link'] ?? [], true); ?>
    21772199                  <div class="swiper-slide">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-logo.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel_Logo widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel_Logo extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.4.0
     68   * @since  11.5.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.4.0
     82   * @since  11.5.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.4.0
     96   * @since  11.5.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.4.0
     115   * @since  11.5.0
    116116   *
    117117   * @access public
     
    166166   * Adds different input fields to allow the user to change and customize the widget settings.
    167167   *
    168    * @since  11.4.0
     168   * @since  11.5.0
    169169   *
    170170   * @access protected
    171171   */
    172   protected function _register_controls()
     172  protected function register_controls()
    173173  {
    174174    // Content Section
     
    392392    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    393393
     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
    394407    $this->add_responsive_control(
    395408      'slides_to_show',
     
    19751988   * Written in PHP and used to generate the final HTML.
    19761989   *
    1977    * @since  11.4.0
     1990   * @since  11.5.0
    19781991   *
    19791992   * @access protected
     
    19821995  {
    19831996    $settings = $this->get_settings_for_display();
     1997    $slide    = $settings['slide'];
    19841998
    19851999    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
     
    20042018    }
    20052019
    2006     if ($settings['slide']) {
     2020    if ($slide) {
    20072021      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    20082022        <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      ?>
    20102031
    20112032      <section class="swiper mySwiper myTestimonials mySwiperLogo <?php if (
     
    20132034        || esc_attr($settings['navigation']) === "none"
    20142035      ) { ?>slider-arrows-disabled<?php } ?>">
    2015         <ul class="swiper-wrapper">
     2036        <ul class="swiper-wrapper" role="list">
    20162037          <?php
    2017           foreach ($settings['slide'] as $item) { ?>
     2038          foreach ($slide as $item) { ?>
    20182039            <li class="swiper-slide slider-container-background slider-logo-container-background slider-logo-container">
    20192040              <div class="slide-logo-block">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel-thumbnails.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3232 * TestimonialsCarousel_Creative widget class.
    3333 *
    34  * @since 11.4.0
     34 * @since 11.5.0
    3535 */
    3636class TestimonialsCarousel_Thumbnails extends Widget_Base
     
    6767   *
    6868   * @return string Widget name.
    69    * @since  11.4.0
     69   * @since  11.5.0
    7070   *
    7171   * @access public
     
    8181   *
    8282   * @return string Widget title.
    83    * @since  11.4.0
     83   * @since  11.5.0
    8484   *
    8585   * @access public
     
    9595   *
    9696   * @return string Widget icon.
    97    * @since  11.4.0
     97   * @since  11.5.0
    9898   *
    9999   * @access public
     
    114114   *
    115115   * @return array Widget categories.
    116    * @since  11.4.0
     116   * @since  11.5.0
    117117   *
    118118   * @access public
     
    162162   * Adds different input fields to allow the user to change and customize the widget settings.
    163163   *
    164    * @since  11.4.0
     164   * @since  11.5.0
    165165   *
    166166   * @access protected
    167167   */
    168   protected function _register_controls()
     168  protected function register_controls()
    169169  {
    170170    // Content Section
     
    359359
    360360    $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(
    361374      'slider_loop',
    362375      [
     
    17731786   * Written in PHP and used to generate the final HTML.
    17741787   *
    1775    * @since  11.4.0
     1788   * @since  11.5.0
    17761789   *
    17771790   * @access protected
     
    17801793  {
    17811794    $settings = $this->get_settings_for_display();
     1795    $slide    = $settings['slide'];
     1796
    17821797    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    17831798      $this->add_render_attribute(
     
    17961811    }
    17971812
    1798     if ($settings['slide']) {
     1813    if ($slide) {
    17991814      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    18001815        <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      ?>
    18021824
    18031825      <section id="thumbnails" class="testimonials-thumbnails myTestimonialsThumbnail mySwiper <?php if (
     
    18111833            || esc_attr($settings['navigation']) === "arrows") { ?>thumbnail__slider_1-width<?php } ?>">
    18121834            <div class="swiper-wrapper">
    1813               <?php foreach ($settings['slide'] as $item) {
     1835              <?php foreach ($slide as $item) {
    18141836                if (esc_url($item['slide_image']['url'])) { ?>
    18151837                  <div class="swiper-slide">
     
    18681890            ) { ?>d-none<?php } ?>">
    18691891              <div class="swiper-wrapper">
    1870                 <?php foreach ($settings['slide'] as $item) {
     1892                <?php foreach ($slide as $item) {
    18711893                  if (isset($item['slide_image'], $item['slide_image']['url']) && !empty($item['slide_image']['url'])) { ?>
    18721894                    <div class="swiper-slide">
  • testimonials-carousel-elementor/trunk/widgets/testimonials-carousel/class-testimonialscarousel.php

    r3221633 r3249685  
    1010 * @license    https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
    1111 * @link
    12  * @since      11.4.0
     12 * @since      11.5.0
    1313 * php version 7.4.1
    1414 */
     
    3131 * TestimonialsCarousel widget class.
    3232 *
    33  * @since 11.4.0
     33 * @since 11.5.0
    3434 */
    3535class TestimonialsCarousel extends Widget_Base
     
    6666   *
    6767   * @return string Widget name.
    68    * @since  11.4.0
     68   * @since  11.5.0
    6969   *
    7070   * @access public
     
    8080   *
    8181   * @return string Widget title.
    82    * @since  11.4.0
     82   * @since  11.5.0
    8383   *
    8484   * @access public
     
    9494   *
    9595   * @return string Widget icon.
    96    * @since  11.4.0
     96   * @since  11.5.0
    9797   *
    9898   * @access public
     
    113113   *
    114114   * @return array Widget categories.
    115    * @since  11.4.0
     115   * @since  11.5.0
    116116   *
    117117   * @access public
     
    163163   * Adds different input fields to allow the user to change and customize the widget settings.
    164164   *
    165    * @since  11.4.0
     165   * @since  11.5.0
    166166   *
    167167   * @access protected
    168168   */
    169   protected function _register_controls()
     169  protected function register_controls()
    170170  {
    171171    // Content Section
     
    391391    $slides_to_show = array_combine($slides_to_show, $slides_to_show);
    392392
     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
    393406    $this->add_responsive_control(
    394407      'slides_to_show',
     
    20722085   * Written in PHP and used to generate the final HTML.
    20732086   *
    2074    * @since  11.4.0
     2087   * @since  11.5.0
    20752088   *
    20762089   * @access protected
     
    20792092  {
    20802093    $settings = $this->get_settings_for_display();
     2094    $slide    = $settings['slide'];
     2095
    20812096    if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") {
    20822097      $this->add_render_attribute(
     
    21002115    }
    21012116
    2102     if ($settings['slide']) {
     2117    if ($slide) {
    21032118      if (get_plugin_data(ELEMENTOR__FILE__)['Version'] < "3.5.0") { ?>
    21042119        <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      ?>
    21062128
    21072129      <section class="swiper mySwiper myTestimonials <?php if (
     
    21092131        || esc_attr($settings['navigation']) === "none"
    21102132      ) { ?>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) { ?>
    21142135            <li class="swiper-slide slider-container-background">
    21152136              <div class="block-shadow slider-container-block-background">
Note: See TracChangeset for help on using the changeset viewer.