Changeset 2964073
- Timestamp:
- 09/07/2023 11:00:14 AM (3 years ago)
- Location:
- woo-variation-gallery
- Files:
-
- 68 added
- 13 edited
-
tags/1.3.20 (added)
-
tags/1.3.20/README.txt (added)
-
tags/1.3.20/assets (added)
-
tags/1.3.20/assets/css (added)
-
tags/1.3.20/assets/css/admin.css (added)
-
tags/1.3.20/assets/css/admin.min.css (added)
-
tags/1.3.20/assets/css/frontend.css (added)
-
tags/1.3.20/assets/css/frontend.min.css (added)
-
tags/1.3.20/assets/css/slick.css (added)
-
tags/1.3.20/assets/css/slick.min.css (added)
-
tags/1.3.20/assets/js (added)
-
tags/1.3.20/assets/js/admin.js (added)
-
tags/1.3.20/assets/js/admin.min.js (added)
-
tags/1.3.20/assets/js/frontend.js (added)
-
tags/1.3.20/assets/js/frontend.min.js (added)
-
tags/1.3.20/assets/js/slick.js (added)
-
tags/1.3.20/assets/js/slick.min.js (added)
-
tags/1.3.20/fonts (added)
-
tags/1.3.20/fonts/slick (added)
-
tags/1.3.20/fonts/slick/slick.eot (added)
-
tags/1.3.20/fonts/slick/slick.svg (added)
-
tags/1.3.20/fonts/slick/slick.ttf (added)
-
tags/1.3.20/fonts/slick/slick.woff (added)
-
tags/1.3.20/images (added)
-
tags/1.3.20/images/slick (added)
-
tags/1.3.20/images/slick/ajax-loader.gif (added)
-
tags/1.3.20/includes (added)
-
tags/1.3.20/includes/admin-template-js.php (added)
-
tags/1.3.20/includes/admin-template.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-backend.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-compatibility.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-deactivate-feedback.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-export-import.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-frontend.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-migrate-request.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-migrate.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-migration.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-rest-api.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery-settings.php (added)
-
tags/1.3.20/includes/class-woo-variation-gallery.php (added)
-
tags/1.3.20/includes/getwooplugins (added)
-
tags/1.3.20/includes/getwooplugins/class-getwooplugins-admin-menus.php (added)
-
tags/1.3.20/includes/getwooplugins/class-getwooplugins-admin-settings.php (added)
-
tags/1.3.20/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php (added)
-
tags/1.3.20/includes/getwooplugins/class-getwooplugins-settings-page.php (added)
-
tags/1.3.20/includes/getwooplugins/css (added)
-
tags/1.3.20/includes/getwooplugins/css/getwooplugins-settings.css (added)
-
tags/1.3.20/includes/getwooplugins/html (added)
-
tags/1.3.20/includes/getwooplugins/html/deactive-feedback-dialog.php (added)
-
tags/1.3.20/includes/getwooplugins/html/dialog.php (added)
-
tags/1.3.20/includes/getwooplugins/html/settings-page.php (added)
-
tags/1.3.20/includes/getwooplugins/js (added)
-
tags/1.3.20/includes/getwooplugins/js/getwooplugins-form-field-dependency.js (added)
-
tags/1.3.20/includes/getwooplugins/js/getwooplugins-settings.js (added)
-
tags/1.3.20/includes/getwooplugins/js/jquery.tipTip.js (added)
-
tags/1.3.20/includes/getwooplugins/js/wp-color-picker-alpha.js (added)
-
tags/1.3.20/includes/html-migrations.php (added)
-
tags/1.3.20/includes/html-settings-sidebar.php (added)
-
tags/1.3.20/includes/html-tutorials.php (added)
-
tags/1.3.20/includes/slider-template-js.php (added)
-
tags/1.3.20/includes/stylesheet.php (added)
-
tags/1.3.20/languages (added)
-
tags/1.3.20/languages/woo-variation-gallery.pot (added)
-
tags/1.3.20/templates (added)
-
tags/1.3.20/templates/product-images.php (added)
-
tags/1.3.20/templates/product-thumbnails.php (added)
-
tags/1.3.20/woo-variation-gallery.php (added)
-
tags/1.3.20/wpml-config.xml (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/css/frontend.css (modified) (1 diff)
-
trunk/assets/css/slick.css (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/assets/js/slick.js (modified) (1 diff)
-
trunk/includes/admin-template-js.php (modified) (1 diff)
-
trunk/includes/admin-template.php (modified) (1 diff)
-
trunk/includes/class-woo-variation-gallery-compatibility.php (modified) (2 diffs)
-
trunk/includes/class-woo-variation-gallery-frontend.php (modified) (2 diffs)
-
trunk/languages/woo-variation-gallery.pot (modified) (1 diff)
-
trunk/woo-variation-gallery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-variation-gallery/trunk/README.txt
r2927496 r2964073 3 3 Tags: 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 4 4 Requires PHP: 7.4 5 Stable tag: 1.3. 196 Requires at least: 5. 57 Tested up to: 6. 28 WC requires at least: 5. 39 WC tested up to: 7.85 Stable tag: 1.3.20 6 Requires at least: 5.7 7 Tested up to: 6.3 8 WC requires at least: 5.8 9 WC tested up to: 8.0 10 10 License: GPLv3 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 378 378 == Changelog == 379 379 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 380 386 = 1.3.19 - 18-06-2023 = 381 387 -
woo-variation-gallery/trunk/assets/css/admin.css
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/assets/css/frontend.css
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/assets/css/slick.css
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/assets/js/admin.js
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/assets/js/frontend.js
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/assets/js/slick.js
r2927496 r2964073 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 6/18/2023, 4:47:29PM5 * Date: 9/7/2023, 4:56:22 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-gallery/trunk/includes/admin-template-js.php
r2473274 r2964073 6 6 <li class="image"> 7 7 <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}}"> 9 9 <a href="#" class="delete remove-woo-variation-gallery-image"><span class="dashicons dashicons-dismiss"></span></a> 10 10 </li> -
woo-variation-gallery/trunk/includes/admin-template.php
r2473274 r2964073 1 1 <?php 2 defined( 'ABSPATH' ) or die( 'Keep Quit' );3 4 5 /**6 * @var $gallery_images7 * @var $variation_id8 */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; ?>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 $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 31 31 add_action( 'woocommerce_init', array( $this, 'theme_compatibility' ), 20 ); 32 32 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 ); 34 34 35 35 add_action( 'woo_variation_duplicator_variation_save', array( $this, 'duplicator_variation_save' ), 10, 2 ); 36 36 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 ); 40 46 41 47 // Dokan Support … … 81 87 82 88 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 83 98 // Avada Theme 84 99 if ( class_exists( 'Avada' ) ) { -
woo-variation-gallery/trunk/includes/class-woo-variation-gallery-frontend.php
r2915862 r2964073 172 172 $thumbnail_position = sanitize_text_field( woo_variation_gallery()->get_option( 'position', 'bottom', 'woo_variation_gallery_thumbnail_position' ) ); 173 173 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 ); 176 177 177 178 wp_enqueue_style( 'woo-variation-gallery-slider', esc_url( woo_variation_gallery()->assets_url( "/css/slick{$suffix}.css" ) ), array(), '1.8.1' ); … … 183 184 'imagesloaded', 184 185 '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 ); 186 187 187 188 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 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 "Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n" 10 "POT-Creation-Date: 2023-0 6-18 10:47+0000\n"10 "POT-Creation-Date: 2023-09-07 10:56+0000\n" 11 11 "X-Poedit-Basepath: ..\n" 12 12 "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 5 5 * Description: Allows inserting multiple images for per variation to let visitors see a different images when WooCommerce product variations are switched. 6 6 * Author: Emran Ahmed 7 * Version: 1.3. 197 * Version: 1.3.20 8 8 * Domain Path: /languages 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.7 11 * Tested up to: 6. 211 * Tested up to: 6.3 12 12 * WC requires at least: 5.8 13 * WC tested up to: 7.813 * WC tested up to: 8.0 14 14 * Text Domain: woo-variation-gallery 15 15 * Author URI: https://getwooplugins.com/ … … 23 23 24 24 if ( ! 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' ); 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.