Plugin Directory

Changeset 2964073


Ignore:
Timestamp:
09/07/2023 11:00:14 AM (3 years ago)
Author:
EmranAhmed
Message:

Update to 1.3.20

Location:
woo-variation-gallery
Files:
68 added
13 edited

Legend:

Unmodified
Added
Removed
  • woo-variation-gallery/trunk/README.txt

    r2927496 r2964073  
    33Tags: woocommerce variation image gallery, additional variation image gallery, product variation image gallery, product variation image, variation images gallery, additional image, additional variation image, WooCommerce variation product thumbnail gallery
    44Requires PHP: 7.4
    5 Stable tag: 1.3.19
    6 Requires at least: 5.5
    7 Tested up to: 6.2
    8 WC requires at least: 5.3
    9 WC tested up to: 7.8
     5Stable tag: 1.3.20
     6Requires at least: 5.7
     7Tested up to: 6.3
     8WC requires at least: 5.8
     9WC tested up to: 8.0
    1010License: GPLv3
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    378378== Changelog ==
    379379
     380= 1.3.20 - 07-09-2023 =
     381
     382* Add: twentytwentythree theme support.
     383* Add: WordPress 6.3+ compatibility.
     384* Add: WordPress 6.3+ compatibility.
     385
    380386= 1.3.19 - 18-06-2023 =
    381387
  • woo-variation-gallery/trunk/assets/css/admin.css

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/assets/css/frontend.css

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/assets/css/slick.css

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/assets/js/admin.js

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/assets/js/frontend.js

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/assets/js/slick.js

    r2927496 r2964073  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 6/18/2023, 4:47:29 PM
     5 * Date: 9/7/2023, 4:56:22 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-gallery/trunk/includes/admin-template-js.php

    r2473274 r2964073  
    66    <li class="image">
    77        <input class="wvg_variation_id_input" type="hidden" name="woo_variation_gallery[{{data.product_variation_id}}][]" value="{{data.id}}">
    8         <img src="{{data.url}}">
     8        <img data-id="{{data.id}}" src="{{data.url}}">
    99        <a href="#" class="delete remove-woo-variation-gallery-image"><span class="dashicons dashicons-dismiss"></span></a>
    1010    </li>
  • woo-variation-gallery/trunk/includes/admin-template.php

    r2473274 r2964073  
    11<?php
    2     defined( 'ABSPATH' ) or die( 'Keep Quit' );
    3    
    4    
    5     /**
    6     * @var $gallery_images
    7     * @var $variation_id
    8     */
    9     //print_r( $gallery_images);
    10    
    11     foreach ( $gallery_images as $image_id ):
    12        
    13         $image = wp_get_attachment_image_src( $image_id );
    14        
    15         ?>
    16         <li class="image">
    17             <input class="wvg_variation_id_input" type="hidden" name="woo_variation_gallery[<?php echo esc_attr( $variation_id ) ?>][]" value="<?php echo $image_id ?>">
    18             <img src="<?php echo esc_url( $image[ 0 ] ) ?>">
    19             <a href="#" class="delete remove-woo-variation-gallery-image"><span class="dashicons dashicons-dismiss"></span></a>
    20         </li>
    21    
    22     <?php endforeach; ?>
     2defined( 'ABSPATH' ) or die( 'Keep Quit' );
     3
     4
     5/**
     6 * @var $gallery_images
     7 * @var $variation_id
     8 */
     9//print_r( $gallery_images);
     10
     11foreach ( $gallery_images as $image_id ):
     12
     13    $image = wp_get_attachment_image_src( $image_id );
     14    $input_name = sprintf( 'woo_variation_gallery[%d][]', $variation_id );
     15    ?>
     16    <li class="image">
     17        <input class="wvg_variation_id_input" type="hidden" name="<?php echo esc_attr( $input_name ) ?>" value="<?php echo absint( $image_id ) ?>">
     18        <img data-id="<?php echo absint( $image_id ) ?>" src="<?php echo esc_url( $image[0] ) ?>">
     19        <a href="#" class="delete remove-woo-variation-gallery-image"><span class="dashicons dashicons-dismiss"></span></a>
     20    </li>
     21
     22<?php endforeach; ?>
  • woo-variation-gallery/trunk/includes/class-woo-variation-gallery-compatibility.php

    r2731920 r2964073  
    3131            add_action( 'woocommerce_init', array( $this, 'theme_compatibility' ), 20 );
    3232            add_action( 'woocommerce_init', array( $this, 'oxygen_theme_compatibility' ), 9 );
    33             add_action( 'woo_variation_gallery_default_width', array( $this, 'set_default_width_based_on_theme' ), 8 );
     33            add_filter( 'woo_variation_gallery_default_width', array( $this, 'set_default_width_based_on_theme' ), 8 );
    3434
    3535            add_action( 'woo_variation_duplicator_variation_save', array( $this, 'duplicator_variation_save' ), 10, 2 );
    3636            add_action( 'woo_variation_duplicator_image_saved_to', array( $this, 'duplicator_image_saved_to' ), 10, 2 );
    37             add_action( 'woo_variation_duplicator_image_saved_from', array( $this, 'duplicator_image_saved_from' ), 10, 2 );
    38 
    39             add_filter( 'woo_variation_swatches_get_available_preview_variation', array( $this, 'get_available_preview_variation' ), 10, 3 );
     37            add_action( 'woo_variation_duplicator_image_saved_from', array(
     38                $this,
     39                'duplicator_image_saved_from'
     40            ), 10, 2 );
     41
     42            add_filter( 'woo_variation_swatches_get_available_preview_variation', array(
     43                $this,
     44                'get_available_preview_variation'
     45            ), 10, 3 );
    4046
    4147            // Dokan Support
     
    8187
    8288        public function set_default_width_based_on_theme( $width ) {
     89
     90            // Twenty twenty three
     91
     92            $twentythree_theme = wp_get_theme( 'twentytwentythree' );
     93            if ( $twentythree_theme->exists() ) {
     94                $width = 100;
     95            }
     96
     97
    8398            // Avada Theme
    8499            if ( class_exists( 'Avada' ) ) {
  • woo-variation-gallery/trunk/includes/class-woo-variation-gallery-frontend.php

    r2915862 r2964073  
    172172            $thumbnail_position               = sanitize_text_field( woo_variation_gallery()->get_option( 'position', 'bottom', 'woo_variation_gallery_thumbnail_position' ) );
    173173
    174 
    175             wp_enqueue_script( 'woo-variation-gallery-slider', esc_url( woo_variation_gallery()->assets_url( "/js/slick{$suffix}.js" ) ), array( 'jquery' ), '1.8.1', true );
     174            $is_defer = is_wp_version_compatible( '6.3' ) ? array( 'strategy' => 'defer' ) : true;
     175
     176            wp_enqueue_script( 'woo-variation-gallery-slider', esc_url( woo_variation_gallery()->assets_url( "/js/slick{$suffix}.js" ) ), array( 'jquery' ), '1.8.1', $is_defer );
    176177
    177178            wp_enqueue_style( 'woo-variation-gallery-slider', esc_url( woo_variation_gallery()->assets_url( "/css/slick{$suffix}.css" ) ), array(), '1.8.1' );
     
    183184                'imagesloaded',
    184185                'wc-add-to-cart-variation'
    185             ), woo_variation_gallery()->assets_version( "/js/frontend{$suffix}.js" ), true );
     186            ), woo_variation_gallery()->assets_version( "/js/frontend{$suffix}.js" ), $is_defer );
    186187
    187188            wp_localize_script( 'woo-variation-gallery', 'woo_variation_gallery_options', apply_filters( 'woo_variation_gallery_js_options', array(
  • woo-variation-gallery/trunk/languages/woo-variation-gallery.pot

    r2927496 r2964073  
    88"Content-Transfer-Encoding: 8bit\n"
    99"Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n"
    10 "POT-Creation-Date: 2023-06-18 10:47+0000\n"
     10"POT-Creation-Date: 2023-09-07 10:56+0000\n"
    1111"X-Poedit-Basepath: ..\n"
    1212"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
  • woo-variation-gallery/trunk/woo-variation-gallery.php

    r2927496 r2964073  
    55 * Description: Allows inserting multiple images for per variation to let visitors see a different images when WooCommerce product variations are switched.
    66 * Author: Emran Ahmed
    7  * Version: 1.3.19
     7 * Version: 1.3.20
    88 * Domain Path: /languages
    99 * Requires PHP: 7.4
    1010 * Requires at least: 5.7
    11  * Tested up to: 6.2
     11 * Tested up to: 6.3
    1212 * WC requires at least: 5.8
    13  * WC tested up to: 7.8
     13 * WC tested up to: 8.0
    1414 * Text Domain: woo-variation-gallery
    1515 * Author URI: https://getwooplugins.com/
     
    2323
    2424if ( ! defined( 'WOO_VARIATION_GALLERY_PLUGIN_VERSION' ) ) {
    25     define( 'WOO_VARIATION_GALLERY_PLUGIN_VERSION', '1.3.19' );
     25    define( 'WOO_VARIATION_GALLERY_PLUGIN_VERSION', '1.3.20' );
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.