Changeset 3066158
- Timestamp:
- 04/07/2024 06:28:38 AM (4 months ago)
- Location:
- carousel-slider/trunk
- Files:
-
- 3 edited
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. 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. 12 12 * 13 13 * WC requires at least: 3.0 14 * WC tested up to: 8. 214 * WC tested up to: 8. 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.'; 56 56 57 57 /** -
carousel-slider/trunk/modules/ProductCarousel/Module.php
r2994748 r3066158 3 3 namespace CarouselSlider\Modules\ProductCarousel; 4 4 5 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 41 39 42 Admin::init(); 40 43 } … … 44 47 45 48 /** 49 50 51 52 53 54 55 56 57 46 58 * Register view 47 59 * 48 * @param array $viewsRegistered views.60 * @param 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 The WC_Product object. 74 * @param 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 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 The WC_Product object. 98 * @param 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 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 139 <div id="pmid-<?php echo esc_attr( $slider_id ); ?>" class="product carousel-slider__product-modal"> 128 140 129 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 153 </div> 142 154 143 155 <div class="summary entry-summary"> 144 156 145 157 <h1 class="product_title entry-title"> 146 158 <?php echo esc_html( $product->get_title() ); ?> 147 159 </h1> 148 160 149 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 166 </div> 155 167 156 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 173 </div> 162 174 163 164 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 181 </div> 170 182 171 172 183 <div> 184 <div style="clear: both;"></div> 173 185 <?php woocommerce_template_loop_add_to_cart(); ?> 174 186 </div> 175 187 176 177 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 100 101 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.