Changeset 3333160
- Timestamp:
- 07/23/2025 08:38:35 PM (8 months ago)
- Location:
- product-gallery-swiper-for-woocommerce
- Files:
-
- 41 added
- 11 edited
-
tags/1.5.7 (added)
-
tags/1.5.7/LICENSE.txt (added)
-
tags/1.5.7/README.txt (added)
-
tags/1.5.7/admin (added)
-
tags/1.5.7/admin/class-wdevs-gallery-swiper-admin.php (added)
-
tags/1.5.7/admin/index.php (added)
-
tags/1.5.7/admin/js (added)
-
tags/1.5.7/admin/js/wdevs-gallery-swiper-admin.js (added)
-
tags/1.5.7/includes (added)
-
tags/1.5.7/includes/class-wdevs-gallery-swiper-activator.php (added)
-
tags/1.5.7/includes/class-wdevs-gallery-swiper-deactivator.php (added)
-
tags/1.5.7/includes/class-wdevs-gallery-swiper-loader.php (added)
-
tags/1.5.7/includes/class-wdevs-gallery-swiper-woocommerce.php (added)
-
tags/1.5.7/includes/class-wdevs-gallery-swiper.php (added)
-
tags/1.5.7/includes/index.php (added)
-
tags/1.5.7/languages (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-en_US.l10n.php (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-en_US.mo (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-en_US.po (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-nl_NL.mo (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce-nl_NL.po (added)
-
tags/1.5.7/languages/product-gallery-swiper-for-woocommerce.pot (added)
-
tags/1.5.7/public (added)
-
tags/1.5.7/public/class-wdevs-gallery-swiper-public.php (added)
-
tags/1.5.7/public/css (added)
-
tags/1.5.7/public/css/wdevs-gallery-swiper-public.css (added)
-
tags/1.5.7/public/index.php (added)
-
tags/1.5.7/public/js (added)
-
tags/1.5.7/public/js/wdevs-gallery-swiper-public.js (added)
-
tags/1.5.7/public/js/woo-product-filter-by-wbw.js (added)
-
tags/1.5.7/public/js/xstore-theme.js (added)
-
tags/1.5.7/public/js/yith-infinite-scrolling.js (added)
-
tags/1.5.7/public/vendor (added)
-
tags/1.5.7/public/vendor/swiper (added)
-
tags/1.5.7/public/vendor/swiper/swiper-bundle.min.css (added)
-
tags/1.5.7/public/vendor/swiper/swiper-bundle.min.js (added)
-
tags/1.5.7/uninstall.php (added)
-
tags/1.5.7/wdevs-gallery-swiper.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-wdevs-gallery-swiper-admin.php (modified) (1 diff)
-
trunk/admin/js (added)
-
trunk/admin/js/wdevs-gallery-swiper-admin.js (added)
-
trunk/includes/class-wdevs-gallery-swiper-woocommerce.php (modified) (3 diffs)
-
trunk/includes/class-wdevs-gallery-swiper.php (modified) (1 diff)
-
trunk/languages/product-gallery-swiper-for-woocommerce-en_US.l10n.php (modified) (1 diff)
-
trunk/languages/product-gallery-swiper-for-woocommerce-en_US.mo (modified) (previous)
-
trunk/languages/product-gallery-swiper-for-woocommerce-en_US.po (modified) (4 diffs)
-
trunk/languages/product-gallery-swiper-for-woocommerce.pot (modified) (4 diffs)
-
trunk/public/class-wdevs-gallery-swiper-public.php (modified) (2 diffs)
-
trunk/public/js/wdevs-gallery-swiper-public.js (modified) (4 diffs)
-
trunk/wdevs-gallery-swiper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-gallery-swiper-for-woocommerce/trunk/README.txt
r3332885 r3333160 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1.5. 66 Stable tag: 1.5.7 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 48 48 * WooCommerce HPOS 49 49 * Product Filter by WBW (Swiper initializes for AJAX loaded products) 50 * GeneratePress Premium 50 51 51 52 == Installation == … … 64 65 65 66 == Changelog == 67 = 1.5.7 = 68 * Added option to enable/disable hover functionality when slider is disabled above breakpoint 69 * Updated breakpoint functionality to work properly with mobile-first approach 70 66 71 = 1.5.6 = 67 72 * Added compatibility for GeneratePress Premium -
product-gallery-swiper-for-woocommerce/trunk/admin/class-wdevs-gallery-swiper-admin.php
r3313906 r3333160 56 56 57 57 /** 58 * Register the JavaScript for the admin area. 59 * 60 * @since 1.5.7 61 */ 62 public function enqueue_scripts() { 63 // Only load on WooCommerce settings page with our tab 64 $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; 65 $tab = isset( $_GET['tab'] ) ? sanitize_text_field( $_GET['tab'] ) : ''; 66 67 if ( $page === 'wc-settings' && $tab === 'wdevs_gallery_swiper' ) { 68 wp_enqueue_script( 69 $this->plugin_name . '-admin', 70 plugin_dir_url( __FILE__ ) . 'js/wdevs-gallery-swiper-admin.js', 71 array( 'jquery' ), 72 $this->version, 73 true 74 ); 75 } 76 } 77 78 /** 58 79 * @since 1.5.3 59 80 */ -
product-gallery-swiper-for-woocommerce/trunk/includes/class-wdevs-gallery-swiper-woocommerce.php
r3313906 r3333160 66 66 $this->current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : ''; 67 67 68 if ( is_admin() && isset( $_GET['page'] ) && $_GET['page'] === 'wc-settings' && isset( $_GET['tab'] ) && $_GET['tab'] === 'wdevs_gallery_swiper' ) { 68 $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; 69 $tab = isset( $_GET['tab'] ) ? sanitize_text_field( $_GET['tab'] ) : ''; 70 71 if ( is_admin() && $page === 'wc-settings' && $tab === 'wdevs_gallery_swiper' ) { 69 72 $this->handle_sections(); 70 73 } … … 141 144 'name' => __( 'Disable slider from', 'product-gallery-swiper-for-woocommerce' ), 142 145 'type' => 'select', 143 'desc' => __( 'When set, the slider will be disabled from the specified breakpoint upwards , and the second product image will be displayed on mouse hover.', 'product-gallery-swiper-for-woocommerce' ),146 'desc' => __( 'When set, the slider will be disabled from the specified breakpoint upwards.', 'product-gallery-swiper-for-woocommerce' ), 144 147 'id' => 'wdevs_gallery_swiper_breakpoint', 145 148 'options' => array( … … 151 154 ), 152 155 'default' => '' 156 ), 157 array( 158 'name' => __( 'Enable hover on disabled slider', 'product-gallery-swiper-for-woocommerce' ), 159 'type' => 'checkbox', 160 'desc' => __( 'When the slider is disabled (above breakpoint), show the second image on mouse hover.', 'product-gallery-swiper-for-woocommerce' ), 161 'id' => 'wdevs_gallery_swiper_hover_enabled', 162 'default' => 'yes', 163 'class' => 'wdevs-gallery-swiper-hover-field' 153 164 ), 154 165 array( -
product-gallery-swiper-for-woocommerce/trunk/includes/class-wdevs-gallery-swiper.php
r3330676 r3333160 139 139 $plugin_admin = new Wdevs_Gallery_Swiper_Admin( $this->get_plugin_name(), $this->get_version() ); 140 140 $this->loader->add_filter( 'plugin_action_links_' . plugin_basename( dirname( __DIR__ ) . '/' . $this->plugin_name . '.php' ), $plugin_admin, 'add_action_links' ); 141 //$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );141 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); 142 142 } 143 143 -
product-gallery-swiper-for-woocommerce/trunk/languages/product-gallery-swiper-for-woocommerce-en_US.l10n.php
r3313906 r3333160 1 1 <?php 2 2 // generated by Poedit from product-gallery-swiper-for-woocommerce-en_US.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2025-0 6-18 15:48+0200','po-revision-date'=>'2025-06-18 15:49+0200','translation-revision-date'=>'2025-06-18 15:49+0200','project-id-version'=>'Product Gallery Swiper for WooCommerce','x-generator'=>'Poedit 3.6','messages'=>['Settings'=>'Settings','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Gallery Swiper'=>'Gallery Swiper','Gallery Swiper settings'=>'Gallery Swiper settings','Customize the Gallery slider settings.'=>'Customize the Gallery slider settings.','Enable scrollbar'=>'Enable scrollbar','Enable scrollbar for the slider'=>'Enable scrollbar for the slider','Enable pagination'=>'Enable pagination','Enable pagination for the slider'=>'Enable pagination for the slider','Enable navigation'=>'Enable navigation','Enable navigation for the slider'=>'Enable navigation for the slider','Enable variation images'=>'Enable variation images','Display variation images in the slider'=>'Display variation images in the slider','Disable slider from'=>'Disable slider from','When set, the slider will be disabled from the specified breakpoint upwards, and the second product image will be displayed on mouse hover.'=>'When set, the slider will be disabled from the specified breakpoint upwards, and the second product image will be displayed on mouse hover.','Always enabled'=>'Always enabled','Disabled from 480px and up'=>'Disabled from 480px and up','Disabled from 768px and up'=>'Disabled from 768px and up','Disabled from 992px and up'=>'Disabled from 992px and up','Disabled from 1200px and up'=>'Disabled from 1200px and up','Theme color'=>'Theme color','Choose the Swiper theme color'=>'Choose the Swiper theme color','Product Gallery Swiper for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Product Gallery Swiper for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Documentation'=>'Documentation','Product Gallery Swiper for WooCommerce'=>'Product Gallery Swiper for WooCommerce','https://products.wijnberg.dev'=>'https://products.wijnberg.dev','Enhances WooCommerce product images display on product listing sections, providing a responsive and touch-friendly swiper.'=>'Enhances WooCommerce product images display on product listing sections, providing a responsive and touch-friendly swiper.','Wijnberg Developments'=>'Wijnberg Developments']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2025-07-23 22:28+0200','po-revision-date'=>'2025-07-23 22:29+0200','translation-revision-date'=>'2025-07-23 22:29+0200','project-id-version'=>'Product Gallery Swiper for WooCommerce','x-generator'=>'Poedit 3.6','messages'=>['Settings'=>'Settings','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Gallery Swiper'=>'Gallery Swiper','Gallery Swiper settings'=>'Gallery Swiper settings','Customize the Gallery slider settings.'=>'Customize the Gallery slider settings.','Enable scrollbar'=>'Enable scrollbar','Enable scrollbar for the slider'=>'Enable scrollbar for the slider','Enable pagination'=>'Enable pagination','Enable pagination for the slider'=>'Enable pagination for the slider','Enable navigation'=>'Enable navigation','Enable navigation for the slider'=>'Enable navigation for the slider','Enable variation images'=>'Enable variation images','Display variation images in the slider'=>'Display variation images in the slider','Disable slider from'=>'Disable slider from','When set, the slider will be disabled from the specified breakpoint upwards.'=>'When set, the slider will be disabled from the specified breakpoint upwards.','Always enabled'=>'Always enabled','Disabled from 480px and up'=>'Disabled from 480px and up','Disabled from 768px and up'=>'Disabled from 768px and up','Disabled from 992px and up'=>'Disabled from 992px and up','Disabled from 1200px and up'=>'Disabled from 1200px and up','Enable hover on disabled slider'=>'Enable hover on disabled slider','When the slider is disabled (above breakpoint), show the second image on mouse hover.'=>'When the slider is disabled (above breakpoint), show the second image on mouse hover.','Theme color'=>'Theme color','Choose the Swiper theme color'=>'Choose the Swiper theme color','Product Gallery Swiper for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Product Gallery Swiper for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Documentation'=>'Documentation','Product Gallery Swiper for WooCommerce'=>'Product Gallery Swiper for WooCommerce','https://products.wijnberg.dev'=>'https://products.wijnberg.dev','Enhances WooCommerce product images display on product listing sections, providing a responsive and touch-friendly swiper.'=>'Enhances WooCommerce product images display on product listing sections, providing a responsive and touch-friendly swiper.','Wijnberg Developments'=>'Wijnberg Developments']]; -
product-gallery-swiper-for-woocommerce/trunk/languages/product-gallery-swiper-for-woocommerce-en_US.po
r3313906 r3333160 3 3 msgstr "" 4 4 "Project-Id-Version: Product Gallery Swiper for WooCommerce\n" 5 "POT-Creation-Date: 2025-0 6-18 15:48+0200\n"6 "PO-Revision-Date: 2025-0 6-18 15:49+0200\n"5 "POT-Creation-Date: 2025-07-23 22:28+0200\n" 6 "PO-Revision-Date: 2025-07-23 22:29+0200\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 23 23 "X-Poedit-SearchPathExcluded-2: public/vendor\n" 24 24 25 #: admin/class-wdevs-gallery-swiper-admin.php: 6226 #: includes/class-wdevs-gallery-swiper-woocommerce.php:2 7125 #: admin/class-wdevs-gallery-swiper-admin.php:83 26 #: includes/class-wdevs-gallery-swiper-woocommerce.php:282 27 27 msgid "Settings" 28 28 msgstr "Settings" … … 36 36 "before activating this plugin." 37 37 38 #: includes/class-wdevs-gallery-swiper-woocommerce.php:9 338 #: includes/class-wdevs-gallery-swiper-woocommerce.php:96 39 39 msgid "Gallery Swiper" 40 40 msgstr "Gallery Swiper" 41 41 42 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 0742 #: includes/class-wdevs-gallery-swiper-woocommerce.php:110 43 43 msgid "Gallery Swiper settings" 44 44 msgstr "Gallery Swiper settings" 45 45 46 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 0946 #: includes/class-wdevs-gallery-swiper-woocommerce.php:112 47 47 msgid "Customize the Gallery slider settings." 48 48 msgstr "Customize the Gallery slider settings." 49 49 50 #: includes/class-wdevs-gallery-swiper-woocommerce.php:11 350 #: includes/class-wdevs-gallery-swiper-woocommerce.php:116 51 51 msgid "Enable scrollbar" 52 52 msgstr "Enable scrollbar" 53 53 54 #: includes/class-wdevs-gallery-swiper-woocommerce.php:11 554 #: includes/class-wdevs-gallery-swiper-woocommerce.php:118 55 55 msgid "Enable scrollbar for the slider" 56 56 msgstr "Enable scrollbar for the slider" 57 57 58 #: includes/class-wdevs-gallery-swiper-woocommerce.php:12 058 #: includes/class-wdevs-gallery-swiper-woocommerce.php:123 59 59 msgid "Enable pagination" 60 60 msgstr "Enable pagination" 61 61 62 #: includes/class-wdevs-gallery-swiper-woocommerce.php:12 262 #: includes/class-wdevs-gallery-swiper-woocommerce.php:125 63 63 msgid "Enable pagination for the slider" 64 64 msgstr "Enable pagination for the slider" 65 65 66 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 2766 #: includes/class-wdevs-gallery-swiper-woocommerce.php:130 67 67 msgid "Enable navigation" 68 68 msgstr "Enable navigation" 69 69 70 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 2970 #: includes/class-wdevs-gallery-swiper-woocommerce.php:132 71 71 msgid "Enable navigation for the slider" 72 72 msgstr "Enable navigation for the slider" 73 73 74 #: includes/class-wdevs-gallery-swiper-woocommerce.php:13 474 #: includes/class-wdevs-gallery-swiper-woocommerce.php:137 75 75 msgid "Enable variation images" 76 76 msgstr "Enable variation images" 77 77 78 #: includes/class-wdevs-gallery-swiper-woocommerce.php:13 678 #: includes/class-wdevs-gallery-swiper-woocommerce.php:139 79 79 msgid "Display variation images in the slider" 80 80 msgstr "Display variation images in the slider" 81 81 82 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 182 #: includes/class-wdevs-gallery-swiper-woocommerce.php:144 83 83 msgid "Disable slider from" 84 84 msgstr "Disable slider from" 85 85 86 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 386 #: includes/class-wdevs-gallery-swiper-woocommerce.php:146 87 87 msgid "" 88 "When set, the slider will be disabled from the specified breakpoint upwards, " 89 "and the second product image will be displayed on mouse hover." 88 "When set, the slider will be disabled from the specified breakpoint upwards." 90 89 msgstr "" 91 "When set, the slider will be disabled from the specified breakpoint upwards, " 92 "and the second product image will be displayed on mouse hover." 90 "When set, the slider will be disabled from the specified breakpoint upwards." 93 91 94 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 692 #: includes/class-wdevs-gallery-swiper-woocommerce.php:149 95 93 msgid "Always enabled" 96 94 msgstr "Always enabled" 97 95 98 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 4796 #: includes/class-wdevs-gallery-swiper-woocommerce.php:150 99 97 msgid "Disabled from 480px and up" 100 98 msgstr "Disabled from 480px and up" 101 99 102 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 48100 #: includes/class-wdevs-gallery-swiper-woocommerce.php:151 103 101 msgid "Disabled from 768px and up" 104 102 msgstr "Disabled from 768px and up" 105 103 106 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 49104 #: includes/class-wdevs-gallery-swiper-woocommerce.php:152 107 105 msgid "Disabled from 992px and up" 108 106 msgstr "Disabled from 992px and up" 109 107 110 #: includes/class-wdevs-gallery-swiper-woocommerce.php:15 0108 #: includes/class-wdevs-gallery-swiper-woocommerce.php:153 111 109 msgid "Disabled from 1200px and up" 112 110 msgstr "Disabled from 1200px and up" 113 111 114 #: includes/class-wdevs-gallery-swiper-woocommerce.php:155 112 #: includes/class-wdevs-gallery-swiper-woocommerce.php:158 113 msgid "Enable hover on disabled slider" 114 msgstr "Enable hover on disabled slider" 115 116 #: includes/class-wdevs-gallery-swiper-woocommerce.php:160 117 msgid "" 118 "When the slider is disabled (above breakpoint), show the second image on " 119 "mouse hover." 120 msgstr "" 121 "When the slider is disabled (above breakpoint), show the second image on " 122 "mouse hover." 123 124 #: includes/class-wdevs-gallery-swiper-woocommerce.php:166 115 125 msgid "Theme color" 116 126 msgstr "Theme color" 117 127 118 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 57128 #: includes/class-wdevs-gallery-swiper-woocommerce.php:168 119 129 msgid "Choose the Swiper theme color" 120 130 msgstr "Choose the Swiper theme color" 121 131 122 132 #. translators: %s: Link to author site. 123 #: includes/class-wdevs-gallery-swiper-woocommerce.php: 196133 #: includes/class-wdevs-gallery-swiper-woocommerce.php:207 124 134 #, php-format 125 135 msgid "" … … 130 140 "WordPress & WooCommerce plugin partner from the Netherlands." 131 141 132 #: includes/class-wdevs-gallery-swiper-woocommerce.php:2 45142 #: includes/class-wdevs-gallery-swiper-woocommerce.php:256 133 143 msgid "Documentation" 134 144 msgstr "Documentation" -
product-gallery-swiper-for-woocommerce/trunk/languages/product-gallery-swiper-for-woocommerce.pot
r3313906 r3333160 3 3 msgstr "" 4 4 "Project-Id-Version: Product Gallery Slider for WooCommerce\n" 5 "POT-Creation-Date: 2025-0 6-18 15:48+0200\n"5 "POT-Creation-Date: 2025-07-23 22:28+0200\n" 6 6 "PO-Revision-Date: 2024-08-17 16:29+0200\n" 7 7 "Last-Translator: \n" … … 23 23 "X-Poedit-SearchPathExcluded-2: public/vendor\n" 24 24 25 #: admin/class-wdevs-gallery-swiper-admin.php: 6226 #: includes/class-wdevs-gallery-swiper-woocommerce.php:2 7125 #: admin/class-wdevs-gallery-swiper-admin.php:83 26 #: includes/class-wdevs-gallery-swiper-woocommerce.php:282 27 27 msgid "Settings" 28 28 msgstr "" … … 34 34 msgstr "" 35 35 36 #: includes/class-wdevs-gallery-swiper-woocommerce.php:9 336 #: includes/class-wdevs-gallery-swiper-woocommerce.php:96 37 37 msgid "Gallery Swiper" 38 38 msgstr "" 39 39 40 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 0740 #: includes/class-wdevs-gallery-swiper-woocommerce.php:110 41 41 msgid "Gallery Swiper settings" 42 42 msgstr "" 43 43 44 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 0944 #: includes/class-wdevs-gallery-swiper-woocommerce.php:112 45 45 msgid "Customize the Gallery slider settings." 46 46 msgstr "" 47 47 48 #: includes/class-wdevs-gallery-swiper-woocommerce.php:11 348 #: includes/class-wdevs-gallery-swiper-woocommerce.php:116 49 49 msgid "Enable scrollbar" 50 50 msgstr "" 51 51 52 #: includes/class-wdevs-gallery-swiper-woocommerce.php:11 552 #: includes/class-wdevs-gallery-swiper-woocommerce.php:118 53 53 msgid "Enable scrollbar for the slider" 54 54 msgstr "" 55 55 56 #: includes/class-wdevs-gallery-swiper-woocommerce.php:12 056 #: includes/class-wdevs-gallery-swiper-woocommerce.php:123 57 57 msgid "Enable pagination" 58 58 msgstr "" 59 59 60 #: includes/class-wdevs-gallery-swiper-woocommerce.php:12 260 #: includes/class-wdevs-gallery-swiper-woocommerce.php:125 61 61 msgid "Enable pagination for the slider" 62 62 msgstr "" 63 63 64 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 2764 #: includes/class-wdevs-gallery-swiper-woocommerce.php:130 65 65 msgid "Enable navigation" 66 66 msgstr "" 67 67 68 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 2968 #: includes/class-wdevs-gallery-swiper-woocommerce.php:132 69 69 msgid "Enable navigation for the slider" 70 70 msgstr "" 71 71 72 #: includes/class-wdevs-gallery-swiper-woocommerce.php:13 472 #: includes/class-wdevs-gallery-swiper-woocommerce.php:137 73 73 msgid "Enable variation images" 74 74 msgstr "" 75 75 76 #: includes/class-wdevs-gallery-swiper-woocommerce.php:13 676 #: includes/class-wdevs-gallery-swiper-woocommerce.php:139 77 77 msgid "Display variation images in the slider" 78 78 msgstr "" 79 79 80 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 180 #: includes/class-wdevs-gallery-swiper-woocommerce.php:144 81 81 msgid "Disable slider from" 82 82 msgstr "" 83 83 84 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 384 #: includes/class-wdevs-gallery-swiper-woocommerce.php:146 85 85 msgid "" 86 "When set, the slider will be disabled from the specified breakpoint upwards, " 87 "and the second product image will be displayed on mouse hover." 86 "When set, the slider will be disabled from the specified breakpoint upwards." 88 87 msgstr "" 89 88 90 #: includes/class-wdevs-gallery-swiper-woocommerce.php:14 689 #: includes/class-wdevs-gallery-swiper-woocommerce.php:149 91 90 msgid "Always enabled" 92 91 msgstr "" 93 92 94 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 4793 #: includes/class-wdevs-gallery-swiper-woocommerce.php:150 95 94 msgid "Disabled from 480px and up" 96 95 msgstr "" 97 96 98 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 4897 #: includes/class-wdevs-gallery-swiper-woocommerce.php:151 99 98 msgid "Disabled from 768px and up" 100 99 msgstr "" 101 100 102 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 49101 #: includes/class-wdevs-gallery-swiper-woocommerce.php:152 103 102 msgid "Disabled from 992px and up" 104 103 msgstr "" 105 104 106 #: includes/class-wdevs-gallery-swiper-woocommerce.php:15 0105 #: includes/class-wdevs-gallery-swiper-woocommerce.php:153 107 106 msgid "Disabled from 1200px and up" 108 107 msgstr "" 109 108 110 #: includes/class-wdevs-gallery-swiper-woocommerce.php:155 109 #: includes/class-wdevs-gallery-swiper-woocommerce.php:158 110 msgid "Enable hover on disabled slider" 111 msgstr "" 112 113 #: includes/class-wdevs-gallery-swiper-woocommerce.php:160 114 msgid "" 115 "When the slider is disabled (above breakpoint), show the second image on " 116 "mouse hover." 117 msgstr "" 118 119 #: includes/class-wdevs-gallery-swiper-woocommerce.php:166 111 120 msgid "Theme color" 112 121 msgstr "" 113 122 114 #: includes/class-wdevs-gallery-swiper-woocommerce.php:1 57123 #: includes/class-wdevs-gallery-swiper-woocommerce.php:168 115 124 msgid "Choose the Swiper theme color" 116 125 msgstr "" 117 126 118 127 #. translators: %s: Link to author site. 119 #: includes/class-wdevs-gallery-swiper-woocommerce.php: 196128 #: includes/class-wdevs-gallery-swiper-woocommerce.php:207 120 129 #, php-format 121 130 msgid "" … … 124 133 msgstr "" 125 134 126 #: includes/class-wdevs-gallery-swiper-woocommerce.php:2 45135 #: includes/class-wdevs-gallery-swiper-woocommerce.php:256 127 136 msgid "Documentation" 128 137 msgstr "" -
product-gallery-swiper-for-woocommerce/trunk/public/class-wdevs-gallery-swiper-public.php
r3332885 r3333160 109 109 'navigation' => get_option( 'wdevs_gallery_swiper_navigation', 'no' ) === 'yes', 110 110 'breakpoint' => $this->parse_breakpoint( get_option( 'wdevs_gallery_swiper_breakpoint', '' ) ), 111 'hoverEnabled' => get_option( 'wdevs_gallery_swiper_hover_enabled', 'yes' ) === 'yes', 111 112 ] 112 113 ]; … … 202 203 // GeneratePress Premium compatibility. Adjust gallery rendering timing for image wrapper conflict 203 204 if ( function_exists( 'generatepress_wc_image_wrapper_close' ) ) { 205 remove_action( 'woocommerce_before_shop_loop_item_title', [ $this, 'start_gallery_rendering' ], PHP_INT_MIN ); 206 add_action( 'woocommerce_before_shop_loop_item_title', [ $this, 'start_gallery_rendering' ], 9 ); 204 207 remove_action( 'woocommerce_before_shop_loop_item_title', [ $this, 'finish_gallery_rendering' ], PHP_INT_MAX ); 205 add_action( 'woocommerce_shop_loop_item_title', [ $this, 'finish_gallery_rendering' ], 9);208 add_action( 'woocommerce_shop_loop_item_title', [ $this, 'finish_gallery_rendering' ], 7 ); 206 209 } 207 210 } -
product-gallery-swiper-for-woocommerce/trunk/public/js/wdevs-gallery-swiper-public.js
r3164436 r3333160 27 27 [ window.wgsSettings.swiper.breakpoint ]: { 28 28 enabled: false, 29 scrollbar: { enabled: false }, 30 pagination: { enabled: false }, 31 navigation: { enabled: false }, 29 32 }, 30 33 }; … … 33 36 const swiper = new Swiper( swiperElement, swiperOptions ); 34 37 35 if ( window.wgsSettings.swiper.breakpoint ) { 38 if ( 39 window.wgsSettings.swiper.breakpoint && 40 window.wgsSettings.swiper.hoverEnabled && 41 swiper.slides.length > 1 42 ) { 36 43 swiperElement.addEventListener( 'mouseenter', function () { 37 44 if ( 38 swiper.activeIndex === 0 && 39 swiper.slides.length > 1 45 window.innerWidth >= 46 window.wgsSettings.swiper.breakpoint && 47 swiper.activeIndex === 0 40 48 ) { 41 49 const defaultStatus = swiper.enabled; … … 43 51 swiper.enabled = true; 44 52 swiper.slideTo( 1, 0 ); 45 46 53 swiper.enabled = defaultStatus; 47 54 } 48 55 } ); 49 56 swiperElement.addEventListener( 'mouseleave', function () { 50 if ( swiper.activeIndex !== 0 ) { 57 if ( 58 window.innerWidth >= 59 window.wgsSettings.swiper.breakpoint && 60 swiper.activeIndex !== 0 61 ) { 51 62 const defaultStatus = swiper.enabled; 52 63 53 64 swiper.enabled = true; 54 65 swiper.slideTo( 0, 0 ); 55 56 66 swiper.enabled = defaultStatus; 57 67 } … … 77 87 navigation: false, 78 88 breakpoint: null, 89 hoverEnabled: true, 79 90 }, 80 91 }; -
product-gallery-swiper-for-woocommerce/trunk/wdevs-gallery-swiper.php
r3332885 r3333160 17 17 * Plugin URI: https://products.wijnberg.dev 18 18 * Description: Enhances WooCommerce product images display on product listing sections, providing a responsive and touch-friendly swiper. 19 * Version: 1.5. 619 * Version: 1.5.7 20 20 * Author: Wijnberg Developments 21 21 * License: GPL-2.0+ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WDEVS_GALLERY_SWIPER_VERSION', '1.5. 6' );43 define( 'WDEVS_GALLERY_SWIPER_VERSION', '1.5.7' ); 44 44 45 45 /**
Note: See TracChangeset
for help on using the changeset viewer.