Changeset 3066158
- Timestamp:
- 04/07/2024 06:28:38 AM (2 years ago)
- Location:
- carousel-slider/trunk
- Files:
-
- 3 edited
-
carousel-slider.php (modified) (2 diffs)
-
modules/ProductCarousel/Module.php (modified) (9 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
carousel-slider/trunk/carousel-slider.php
r3042440 r3066158 4 4 * Plugin URI: https://sayfulislam.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 5 5 * Description: <strong>Carousel Slider</strong> allows you to create beautiful, touch enabled, responsive carousels and sliders. It let you create SEO friendly Image carousel from Media Library or from custom URL, Video carousel using Youtube and Vimeo video, Post carousel, Hero banner slider and various types of WooCommerce products carousels. 6 * Version: 2.2. 86 * Version: 2.2.9 7 7 * Author: Sayful Islam 8 8 * Author URI: https://sayfulislam.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash 9 9 * Requires PHP: 7.0 10 10 * Requires at least: 5.6 11 * Tested up to: 6. 411 * Tested up to: 6.5 12 12 * 13 13 * WC requires at least: 3.0 14 * WC tested up to: 8. 214 * WC tested up to: 8.7 15 15 * 16 16 * Text Domain: carousel-slider … … 53 53 * @var string 54 54 */ 55 private $version = '2.2. 8';55 private $version = '2.2.9'; 56 56 57 57 /** -
carousel-slider/trunk/modules/ProductCarousel/Module.php
r2994748 r3066158 3 3 namespace CarouselSlider\Modules\ProductCarousel; 4 4 5 use Automattic\WooCommerce\Utilities\FeaturesUtil; 5 6 use WC_Product; 6 7 … … 37 38 add_action( 'wp_ajax_nopriv_carousel_slider_quick_view', [ self::$instance, 'quick_view' ] ); 38 39 40 add_action( 'before_woocommerce_init', [ self::$instance, 'declaring_extension_compatibility' ] ); 41 39 42 Admin::init(); 40 43 } … … 44 47 45 48 /** 49 * Declaring extension compatibility 50 */ 51 public function declaring_extension_compatibility() { 52 if ( class_exists( FeaturesUtil::class ) ) { 53 FeaturesUtil::declare_compatibility( 'custom_order_tables', CAROUSEL_SLIDER_FILE, true ); 54 } 55 } 56 57 /** 46 58 * Register view 47 59 * 48 * @param array $viewsRegistered views.60 * @param array $views Registered views. 49 61 * 50 62 * @return array … … 59 71 * Show quick view button on product slider 60 72 * 61 * @param WC_Product $productThe WC_Product object.62 * @param int $slider_idThe slider id.73 * @param WC_Product $product The WC_Product object. 74 * @param int $slider_id The slider id. 63 75 */ 64 76 public static function quick_view_button( $product, $slider_id ) { … … 68 80 wp_enqueue_script( 'magnific-popup' ); 69 81 70 $quick_view_html = '<div style="clear: both;"></div>';82 $quick_view_html = '<div style="clear: both;"></div>'; 71 83 $quick_view_html .= sprintf( 72 84 '<a class="magnific-popup button quick_view" href="%1$s" data-product-id="%2$s">%3$s</a>', … … 83 95 * Show YITH Wishlist button on product slider 84 96 * 85 * @param WC_Product $productThe WC_Product object.86 * @param int $slider_idThe slider id.97 * @param WC_Product $product The WC_Product object. 98 * @param int $slider_id The slider id. 87 99 */ 88 100 public static function wish_list_button( $product, $slider_id ) { … … 116 128 * Get quick view html 117 129 * 118 * @param WC_Product $productThe WC_Product object.130 * @param WC_Product $product The WC_Product object. 119 131 * 120 132 * @return string … … 125 137 $slider_id = isset( $_GET['slide_id'] ) ? intval( $_GET['slide_id'] ) : 0; 126 138 ?> 127 <div id="pmid-<?php echo esc_attr( $slider_id ); ?>" class="product carousel-slider__product-modal">139 <div id="pmid-<?php echo esc_attr( $slider_id ); ?>" class="product carousel-slider__product-modal"> 128 140 129 <div class="images">141 <div class="images"> 130 142 <?php echo get_the_post_thumbnail( $product->get_id(), 'medium_large' ); ?> 131 143 <?php if ( $product->is_on_sale() ) : ?> … … 139 151 ?> 140 152 <?php endif; ?> 141 </div>153 </div> 142 154 143 <div class="summary entry-summary">155 <div class="summary entry-summary"> 144 156 145 <h1 class="product_title entry-title">157 <h1 class="product_title entry-title"> 146 158 <?php echo esc_html( $product->get_title() ); ?> 147 </h1>159 </h1> 148 160 149 <div class="woocommerce-product-rating">161 <div class="woocommerce-product-rating"> 150 162 <?php 151 163 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 152 164 echo wc_get_rating_html( $product->get_average_rating() ); 153 165 ?> 154 </div>166 </div> 155 167 156 <div class="price">168 <div class="price"> 157 169 <?php 158 170 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 159 171 echo $product->get_price_html(); 160 172 ?> 161 </div>173 </div> 162 174 163 <div class="description">164 <div style="clear: both;"></div>175 <div class="description"> 176 <div style="clear: both;"></div> 165 177 <?php 166 178 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 167 179 echo apply_filters( 'woocommerce_short_description', $product->get_description() ); 168 180 ?> 169 </div>181 </div> 170 182 171 <div>172 <div style="clear: both;"></div>183 <div> 184 <div style="clear: both;"></div> 173 185 <?php woocommerce_template_loop_add_to_cart(); ?> 174 </div>186 </div> 175 187 176 </div>177 </div>188 </div> 189 </div> 178 190 <?php 179 191 return ob_get_clean(); -
carousel-slider/trunk/readme.txt
r3042440 r3066158 97 97 == Changelog == 98 98 99 = version 2.2.9 - 2024-04-07 = 100 * Dev - Update compatibility with WooCommerce High-Performance Order Storage. 101 * Dev - Tested with WordPress 6.5 and WooCommerce 8.7 102 99 103 = version 2.2.8 - 2024-02-28 = 100 104 * Fix - Fix slider is not showing on update 2.2.7
Note: See TracChangeset
for help on using the changeset viewer.