Changeset 3484604
- Timestamp:
- 03/17/2026 09:28:32 AM (2 weeks ago)
- Location:
- guestapp
- Files:
-
- 8 edited
- 1 copied
-
tags/2.2.9 (copied) (copied from guestapp/trunk)
-
tags/2.2.9/README.txt (modified) (2 diffs)
-
tags/2.2.9/assets/js/gs-reviews.js (modified) (1 diff)
-
tags/2.2.9/guest-suite.php (modified) (1 diff)
-
tags/2.2.9/includes/shortcodes/carousel.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/js/gs-reviews.js (modified) (1 diff)
-
trunk/guest-suite.php (modified) (1 diff)
-
trunk/includes/shortcodes/carousel.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
guestapp/tags/2.2.9/README.txt
r3484574 r3484604 4 4 Tested up to: 6.9 5 5 Requires PHP: 5.6 6 Stable tag: 2.2. 86 Stable tag: 2.2.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 == Changelog == 62 = 2.2.9 = 63 * Corrige le carousel qui ne s'initialise pas lorsque le thème utilise un chargeur de scripts personnalisé 62 64 = 2.2.8 = 63 65 * Corrige la pagination des avis lorsque le thème utilise un chargeur de scripts personnalisé -
guestapp/tags/2.2.9/assets/js/gs-reviews.js
r3484574 r3484604 115 115 } 116 116 ); 117 // 118 // 117 // Initialize Slick carousel from data-* attributes. 118 // Fallback for custom script loaders that strip wp_add_inline_script output. 119 // Uses a retry mechanism because Slick may load after this script. 120 function initCarouselFromData() { 121 var $carousel = $("#gs-carousel"); 122 if (!$carousel.length || $carousel.hasClass("slick-initialized")) return; 123 if (typeof $.fn.slick === "undefined") return false; 124 var slides = parseInt($carousel.data("slides")) || 2; 125 $carousel.slick({ 126 slidesToShow: slides, 127 dots: $carousel.data("dots") !== false, 128 autoplay: $carousel.data("autoplay") !== false, 129 vertical: $carousel.data("vertical") === true, 130 arrows: $carousel.data("arrows") === true, 131 infinite: $carousel.data("infinite") !== false, 132 centerMode: false, 133 autoplaySpeed: 3000, 134 centerPadding: "0px", 135 speed: 1500, 136 draggable: false, 137 pauseOnHover: true, 138 pauseOnDotsHover: true, 139 swipeToSlide: false, 140 adaptiveHeight: false, 141 variableWidth: false, 142 slidesToScroll: 1, 143 initialSlide: 0, 144 rows: 1, 145 responsive: [ 146 { breakpoint: 1200, settings: { slidesToShow: 2, slidesToScroll: 1, dots: true } }, 147 { breakpoint: 1199, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: true } }, 148 { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false } }, 149 { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false } }, 150 ], 151 }); 152 return true; 153 } 154 155 if (!initCarouselFromData()) { 156 // Slick not loaded yet (custom script loader may load it later), retry 157 var retries = 0; 158 var carouselInterval = setInterval(function () { 159 if (initCarouselFromData() || ++retries >= 50) { 160 clearInterval(carouselInterval); 161 } 162 }, 100); 163 } 119 164 }); -
guestapp/tags/2.2.9/guest-suite.php
r3484574 r3484604 4 4 * Plugin URI: https://www.guest-suite.com/ 5 5 * Description: Afficher la satisfaction de vos clients sur votre site avec le plugin Guest Suite pour Wordpress. 6 * Version: 2.2. 86 * Version: 2.2.9 7 7 * Requires at least: 4.6.1 8 8 * Requires PHP: 5.6 -
guestapp/tags/2.2.9/includes/shortcodes/carousel.php
r3374894 r3484604 237 237 ?> 238 238 <div class="gs-slick-slider-wrapper"> 239 <ul id="gs-carousel" class="gscolumns"> 239 <ul id="gs-carousel" class="gscolumns" 240 data-slides="<?php echo esc_attr($atts['slides']); ?>" 241 data-dots="<?php echo esc_attr(filter_var($atts['dots'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 242 data-arrows="<?php echo esc_attr(filter_var($atts['arrows'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 243 data-vertical="<?php echo esc_attr(filter_var($atts['display'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 244 data-autoplay="<?php echo esc_attr(filter_var($atts['autoplay'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 245 data-infinite="<?php echo esc_attr(filter_var($atts['infinite'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 246 > 240 247 <?php 241 248 // Loop on the query results -
guestapp/trunk/README.txt
r3484574 r3484604 4 4 Tested up to: 6.9 5 5 Requires PHP: 5.6 6 Stable tag: 2.2. 86 Stable tag: 2.2.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 == Changelog == 62 = 2.2.9 = 63 * Corrige le carousel qui ne s'initialise pas lorsque le thème utilise un chargeur de scripts personnalisé 62 64 = 2.2.8 = 63 65 * Corrige la pagination des avis lorsque le thème utilise un chargeur de scripts personnalisé -
guestapp/trunk/assets/js/gs-reviews.js
r3484574 r3484604 115 115 } 116 116 ); 117 // 118 // 117 // Initialize Slick carousel from data-* attributes. 118 // Fallback for custom script loaders that strip wp_add_inline_script output. 119 // Uses a retry mechanism because Slick may load after this script. 120 function initCarouselFromData() { 121 var $carousel = $("#gs-carousel"); 122 if (!$carousel.length || $carousel.hasClass("slick-initialized")) return; 123 if (typeof $.fn.slick === "undefined") return false; 124 var slides = parseInt($carousel.data("slides")) || 2; 125 $carousel.slick({ 126 slidesToShow: slides, 127 dots: $carousel.data("dots") !== false, 128 autoplay: $carousel.data("autoplay") !== false, 129 vertical: $carousel.data("vertical") === true, 130 arrows: $carousel.data("arrows") === true, 131 infinite: $carousel.data("infinite") !== false, 132 centerMode: false, 133 autoplaySpeed: 3000, 134 centerPadding: "0px", 135 speed: 1500, 136 draggable: false, 137 pauseOnHover: true, 138 pauseOnDotsHover: true, 139 swipeToSlide: false, 140 adaptiveHeight: false, 141 variableWidth: false, 142 slidesToScroll: 1, 143 initialSlide: 0, 144 rows: 1, 145 responsive: [ 146 { breakpoint: 1200, settings: { slidesToShow: 2, slidesToScroll: 1, dots: true } }, 147 { breakpoint: 1199, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: true } }, 148 { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false } }, 149 { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false } }, 150 ], 151 }); 152 return true; 153 } 154 155 if (!initCarouselFromData()) { 156 // Slick not loaded yet (custom script loader may load it later), retry 157 var retries = 0; 158 var carouselInterval = setInterval(function () { 159 if (initCarouselFromData() || ++retries >= 50) { 160 clearInterval(carouselInterval); 161 } 162 }, 100); 163 } 119 164 }); -
guestapp/trunk/guest-suite.php
r3484574 r3484604 4 4 * Plugin URI: https://www.guest-suite.com/ 5 5 * Description: Afficher la satisfaction de vos clients sur votre site avec le plugin Guest Suite pour Wordpress. 6 * Version: 2.2. 86 * Version: 2.2.9 7 7 * Requires at least: 4.6.1 8 8 * Requires PHP: 5.6 -
guestapp/trunk/includes/shortcodes/carousel.php
r3374894 r3484604 237 237 ?> 238 238 <div class="gs-slick-slider-wrapper"> 239 <ul id="gs-carousel" class="gscolumns"> 239 <ul id="gs-carousel" class="gscolumns" 240 data-slides="<?php echo esc_attr($atts['slides']); ?>" 241 data-dots="<?php echo esc_attr(filter_var($atts['dots'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 242 data-arrows="<?php echo esc_attr(filter_var($atts['arrows'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 243 data-vertical="<?php echo esc_attr(filter_var($atts['display'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 244 data-autoplay="<?php echo esc_attr(filter_var($atts['autoplay'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 245 data-infinite="<?php echo esc_attr(filter_var($atts['infinite'], FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'); ?>" 246 > 240 247 <?php 241 248 // Loop on the query results
Note: See TracChangeset
for help on using the changeset viewer.