Plugin Directory

Changeset 3066158

Timestamp:
04/07/2024 06:28:38 AM (4 months ago)
Author:
sayful
Message:

Add new version 2.2.9 of Carousel Slider

Location:
carousel-slider/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • carousel-slider/trunk/carousel-slider.php

    r3042440 r3066158  
    44 * Plugin URI: https://sayfulislam.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    55 * 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.8
     6 * Version: 2.2.
    77 * Author: Sayful Islam
    88 * Author URI: https://sayfulislam.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
    99 * Requires PHP: 7.0
    1010 * Requires at least: 5.6
    11  * Tested up to: 6.4
     11 * Tested up to: 6.
    1212 *
    1313 * WC requires at least: 3.0
    14  * WC tested up to: 8.2
     14 * WC tested up to: 8.
    1515 *
    1616 * Text Domain: carousel-slider
     
    5353         * @var string
    5454         */
    55         private $version = '2.2.8';
     55        private $version = '2.2.';
    5656
    5757        /**
  • carousel-slider/trunk/modules/ProductCarousel/Module.php

    r2994748 r3066158  
    33namespace CarouselSlider\Modules\ProductCarousel;
    44
     5
    56use WC_Product;
    67
     
    3738            add_action( 'wp_ajax_nopriv_carousel_slider_quick_view', [ self::$instance, 'quick_view' ] );
    3839
     40
     41
    3942            Admin::init();
    4043        }
     
    4447
    4548    /**
     49
     50
     51
     52
     53
     54
     55
     56
     57
    4658     * Register view
    4759     *
    48      * @param array $views Registered views.
     60     * @param Registered views.
    4961     *
    5062     * @return array
     
    5971     * Show quick view button on product slider
    6072     *
    61      * @param WC_Product $product The WC_Product object.
    62      * @param int        $slider_id The slider id.
     73     * @param The WC_Product object.
     74     * @param The slider id.
    6375     */
    6476    public static function quick_view_button( $product, $slider_id ) {
     
    6880            wp_enqueue_script( 'magnific-popup' );
    6981
    70             $quick_view_html  = '<div style="clear: both;"></div>';
     82            $quick_view_html = '<div style="clear: both;"></div>';
    7183            $quick_view_html .= sprintf(
    7284                '<a class="magnific-popup button quick_view" href="%1$s" data-product-id="%2$s">%3$s</a>',
     
    8395     * Show YITH Wishlist button on product slider
    8496     *
    85      * @param WC_Product $product The WC_Product object.
    86      * @param int        $slider_id The slider id.
     97     * @param The WC_Product object.
     98     * @param The slider id.
    8799     */
    88100    public static function wish_list_button( $product, $slider_id ) {
     
    116128     * Get quick view html
    117129     *
    118      * @param WC_Product $product The WC_Product object.
     130     * @param The WC_Product object.
    119131     *
    120132     * @return string
     
    125137        $slider_id = isset( $_GET['slide_id'] ) ? intval( $_GET['slide_id'] ) : 0;
    126138        ?>
    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">
    128140
    129             <div class="images">
     141<div class="images">
    130142                <?php echo get_the_post_thumbnail( $product->get_id(), 'medium_large' ); ?>
    131143                <?php if ( $product->is_on_sale() ) : ?>
     
    139151                    ?>
    140152                <?php endif; ?>
    141             </div>
     153</div>
    142154
    143             <div class="summary entry-summary">
     155<div class="summary entry-summary">
    144156
    145                 <h1 class="product_title entry-title">
     157<h1 class="product_title entry-title">
    146158                    <?php echo esc_html( $product->get_title() ); ?>
    147                 </h1>
     159</h1>
    148160
    149                 <div class="woocommerce-product-rating">
     161<div class="woocommerce-product-rating">
    150162                    <?php
    151163                    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    152164                    echo wc_get_rating_html( $product->get_average_rating() );
    153165                    ?>
    154                 </div>
     166</div>
    155167
    156                 <div class="price">
     168<div class="price">
    157169                    <?php
    158170                    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    159171                    echo $product->get_price_html();
    160172                    ?>
    161                 </div>
     173</div>
    162174
    163                 <div class="description">
    164                     <div style="clear: both;"></div>
     175<div class="description">
     176<div style="clear: both;"></div>
    165177                    <?php
    166178                    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    167179                    echo apply_filters( 'woocommerce_short_description', $product->get_description() );
    168180                    ?>
    169                 </div>
     181</div>
    170182
    171                 <div>
    172                     <div style="clear: both;"></div>
     183<div>
     184<div style="clear: both;"></div>
    173185                    <?php woocommerce_template_loop_add_to_cart(); ?>
    174                 </div>
     186</div>
    175187
    176             </div>
    177         </div>
     188</div>
     189</div>
    178190        <?php
    179191        return ob_get_clean();
  • carousel-slider/trunk/readme.txt

    r3042440 r3066158  
    9797== Changelog ==
    9898
     99
     100
     101
     102
    99103= version 2.2.8 - 2024-02-28 =
    100104* Fix - Fix slider is not showing on update 2.2.7
Note: See TracChangeset for help on using the changeset viewer.