Skip to content

Commit 09610f7

Browse files
committed
Added color setting for Swiper buttons and pagination
1 parent 4256e9e commit 09610f7

16 files changed

+364
-143
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Changelog
22
All notable changes to the Wdevs Tax Switch plugin will be documented in this file.
33

4+
## [1.4.0] - 04-01-2025
5+
### Updated
6+
- Possible breaking change: only render the Swiper HTML if the slider can be displayed
7+
- Possible breaking change: Render the default theme featured image HTML in the first slide
8+
- Updated Swiper from 11.1.9 to 11.2.0
9+
10+
### Added
11+
- Compatibility for Blocksy theme
12+
- Color setting for Swiper buttons and pagination
13+
414
## [1.3.0] - 24-09-2024
515
### Updated
616

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ This plugin is tested and compatible with the following:
5252
### Themes
5353

5454
- [**GeneratePress**](https://generatepress.com): The secondary thumbnail image is disabled.
55+
- Blocksy
5556

5657
### Plugins
5758

README.txt

+30-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: wijnbergdevelopments
33
Tags: woocommerce, product gallery, slider, swiper
44
Requires at least: 6.0
55
Tested up to: 6.6
6-
Stable tag: 1.3.0
6+
Stable tag: 1.4.0
77
Requires PHP: 7.2
88
License: GPL-2.0+
99
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -16,37 +16,54 @@ Product Gallery Swiper for WooCommerce integrates the Swiper library to enhance
1616

1717
This slider is designed for product listing sections where multiple products are displayed, not for single product itself.
1818

19-
Key features:
19+
=== Key features ===
20+
2021
* Responsive and touch-friendly product image slider
2122
* Customizable settings for scrollbar, pagination, and navigation
2223
* Breakpoint options to disable swiper on larger screens
2324
* Seamless integration with WooCommerce
2425

25-
= Requirements =
26+
For more information about this plugin, please visit the [plugin page](https://products.wijnberg.dev/product/wordpress/plugins/product-gallery-swiper-for-woocommerce/).
27+
28+
=== Requirements ===
2629

2730
* WooCommerce plugin installed and activated
2831

29-
= Usage =
32+
=== Usage ===
3033

3134
After installation and activation, Product Gallery Swiper for WooCommerce will automatically apply to your product galleries on listing pages. You can customize the settings in the WooCommerce -> Gallery Slider menu.
3235

36+
=== Compatibility ===
37+
38+
Themes:
39+
* GeneratePress (secondary thumbnail image disabled)
40+
* Blocksy
41+
42+
Plugins:
43+
* YITH Infinite Scrolling (Swiper initializes for AJAX loaded products)
44+
* WooCommerce HPOS
45+
3346
== Installation ==
3447

35-
1. Upload the plugin files to the `/wp-content/plugins/wdevs-gallery-slider` directory, or install the plugin through the WordPress plugins screen directly.
48+
1. Upload the plugin files to the `/wp-content/plugins/product-gallery-swiper-for-woocommerce` directory, or install the plugin through the WordPress plugins screen directly.
3649
2. Activate the plugin through the 'Plugins' screen in WordPress.
3750
3. Use the WooCommerce -> Gallery Swiper screen to configure the plugin.
3851

3952
== Frequently Asked Questions ==
4053

4154
= Are there any known compatibility issues? =
4255

43-
Product Gallery Swiper for WooCommerce has been tested with GeneratePress theme, where the secondary thumbnail image is disabled. It's also compatible with YITH Infinite Scrolling plugin, with Swiper being initialized for AJAX loaded products.
44-
4556
Some WooCommerce Blocks are not fully compatible with this plugin as they do not use standard WooCommerce filters for generating thumbnails. This is a known limitation of WooCommerce Blocks and not specific to this plugin. You can fix this by using WooCommerce shortcodes instead of the WooCommerce Blocks.
4657

47-
If you encounter any conflicts with other themes or plugins, please report them to us.
58+
If you encounter any conflicts with other themes or plugins, please report them to us. We are trying to use all standard WooCommerce filters and hooks, and we want to use the active theme settings and change as little as possible. This approach ensures maximum compatibility with themes and other plugins. However, some themes and plugins might not follow standard WordPress/WooCommerce practices, which can result in compatibility issues out of the box.
4859

4960
== Changelog ==
61+
= 1.4.0 =
62+
* Possible breaking change: only render the Swiper HTML if the slider can be displayed
63+
* Possible breaking change: render the default theme featured image HTML in the first slide
64+
* Updated Swiper from 11.1.9 to 11.2.0
65+
* Added color setting for Swiper buttons and pagination
66+
* Added compatibility for Blocksy theme
5067

5168
= 1.3.0 =
5269
* Renamed 'Product Gallery Slider for WooCommerce' to 'Product Gallery Swiper for WooCommerce'
@@ -65,4 +82,8 @@ If you encounter any conflicts with other themes or plugins, please report them
6582

6683
== Additional Information ==
6784

68-
For more information and other WordPress plugins, visit [Wijnberg Developments](https://products.wijnberg.dev).
85+
For more information and other WordPress plugins, visit [Wijnberg Developments](https://products.wijnberg.dev/product-category/wordpress/plugins/).
86+
87+
== Screenshots ==
88+
89+
1. This GIF demonstrates the main functionality of the plugin.

includes/class-wdevs-gallery-swiper-woocommerce.php

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ public function get_settings() {
128128
),
129129
'default' => ''
130130
),
131+
array(
132+
'name' => __( 'Theme color', 'product-gallery-swiper-for-woocommerce' ),
133+
'type' => 'color',
134+
'desc' => __( 'Choose the Swiper theme color', 'product-gallery-swiper-for-woocommerce' ),
135+
'id' => 'wdevs_gallery_swiper_theme_color',
136+
'default' => '#007aff'
137+
),
131138
array(
132139
'type' => 'sectionend',
133140
'id' => 'wdevs_gallery_swiper_section_end'

includes/class-wdevs-gallery-swiper.php

-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ private function define_admin_hooks() {
175175
private function define_public_hooks() {
176176

177177
$plugin_public = new Wdevs_Gallery_Swiper_Public( $this->get_plugin_name(), $this->get_version() );
178-
179178
$this->loader->add_action( 'woocommerce_init', $plugin_public, 'on_woocommerce_init' );
180179

181180
}
Binary file not shown.

languages/product-gallery-swiper-for-woocommerce-en_US.po

+40-32
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
msgid ""
33
msgstr ""
44
"Project-Id-Version: Product Gallery Swiper for WooCommerce\n"
5-
"POT-Creation-Date: 2024-08-17 17:36+0200\n"
6-
"PO-Revision-Date: 2024-08-17 17:36+0200\n"
5+
"POT-Creation-Date: 2025-01-04 12:09+0100\n"
6+
"PO-Revision-Date: 2025-01-04 12:10+0100\n"
77
"Last-Translator: \n"
88
"Language-Team: \n"
99
"Language: en_US\n"
1010
"MIME-Version: 1.0\n"
1111
"Content-Type: text/plain; charset=UTF-8\n"
1212
"Content-Transfer-Encoding: 8bit\n"
13-
"X-Generator: Poedit 3.4.4\n"
13+
"X-Generator: Poedit 3.5\n"
1414
"X-Poedit-Basepath: ..\n"
1515
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
1616
"X-Poedit-WPHeader: wdevs-gallery-swiper.php\n"
@@ -23,81 +23,89 @@ msgstr ""
2323
"X-Poedit-SearchPathExcluded-1: node_modules\n"
2424
"X-Poedit-SearchPathExcluded-2: public/vendor\n"
2525

26-
#: admin/class-wdevs-gallery-swiper-admin.php:59
26+
#: includes/class-wdevs-gallery-swiper-activator.php:36
27+
msgid ""
28+
"This plugin requires WooCommerce. Please install and activate WooCommerce "
29+
"before activating this plugin."
30+
msgstr ""
31+
"This plugin requires WooCommerce. Please install and activate WooCommerce "
32+
"before activating this plugin."
33+
34+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:78
2735
msgid "Gallery Swiper"
2836
msgstr "Gallery Swiper"
2937

30-
#: admin/class-wdevs-gallery-swiper-admin.php:66
31-
msgid "Gallery Slider settings"
32-
msgstr "Gallery Slider settings"
38+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:91
39+
msgid "Gallery Swiper settings"
40+
msgstr "Gallery Swiper settings"
3341

34-
#: admin/class-wdevs-gallery-swiper-admin.php:68
35-
msgid "Customize the Gallery Swiper settings."
36-
msgstr "Customize the Gallery Swiper settings."
42+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:93
43+
msgid "Customize the Gallery slider settings."
44+
msgstr "Customize the Gallery slider settings."
3745

38-
#: admin/class-wdevs-gallery-swiper-admin.php:72
46+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:97
3947
msgid "Enable scrollbar"
4048
msgstr "Enable scrollbar"
4149

42-
#: admin/class-wdevs-gallery-swiper-admin.php:74
50+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:99
4351
msgid "Enable scrollbar for the slider"
4452
msgstr "Enable scrollbar for the slider"
4553

46-
#: admin/class-wdevs-gallery-swiper-admin.php:79
54+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:104
4755
msgid "Enable pagination"
4856
msgstr "Enable pagination"
4957

50-
#: admin/class-wdevs-gallery-swiper-admin.php:81
58+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:106
5159
msgid "Enable pagination for the slider"
5260
msgstr "Enable pagination for the slider"
5361

54-
#: admin/class-wdevs-gallery-swiper-admin.php:86
62+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:111
5563
msgid "Enable navigation"
5664
msgstr "Enable navigation"
5765

58-
#: admin/class-wdevs-gallery-swiper-admin.php:88
66+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:113
5967
msgid "Enable navigation for the slider"
6068
msgstr "Enable navigation for the slider"
6169

62-
#: admin/class-wdevs-gallery-swiper-admin.php:93
70+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:118
6371
msgid "Disable slider from"
6472
msgstr "Disable slider from"
6573

66-
#: admin/class-wdevs-gallery-swiper-admin.php:95
74+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:120
6775
msgid ""
6876
"When set, the slider will be disabled from the specified breakpoint upwards, "
6977
"and the second product image will be displayed on mouse hover."
7078
msgstr ""
7179
"When set, the slider will be disabled from the specified breakpoint upwards, "
7280
"and the second product image will be displayed on mouse hover."
7381

74-
#: admin/class-wdevs-gallery-swiper-admin.php:98
82+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:123
7583
msgid "Always enabled"
7684
msgstr "Always enabled"
7785

78-
#: admin/class-wdevs-gallery-swiper-admin.php:99
86+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:124
7987
msgid "Disabled from 480px and up"
8088
msgstr "Disabled from 480px and up"
8189

82-
#: admin/class-wdevs-gallery-swiper-admin.php:100
90+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:125
8391
msgid "Disabled from 768px and up"
8492
msgstr "Disabled from 768px and up"
8593

86-
#: admin/class-wdevs-gallery-swiper-admin.php:101
94+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:126
8795
msgid "Disabled from 992px and up"
8896
msgstr "Disabled from 992px and up"
8997

90-
#: admin/class-wdevs-gallery-swiper-admin.php:102
98+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:127
9199
msgid "Disabled from 1200px and up"
92100
msgstr "Disabled from 1200px and up"
93101

94-
#: includes/class-wdevs-gallery-swiper-activator.php:36
95-
msgid ""
96-
"This plugin requires WooCommerce. Please install and activate WooCommerce "
97-
"before activating this plugin."
98-
msgstr ""
99-
"This plugin requires WooCommerce. Please install and activate WooCommerce "
100-
"before activating this plugin."
102+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:132
103+
msgid "Theme color"
104+
msgstr "Theme color"
105+
106+
#: includes/class-wdevs-gallery-swiper-woocommerce.php:134
107+
msgid "Choose the Swiper theme color"
108+
msgstr "Choose the Swiper theme color"
101109

102110
#. Plugin Name of the plugin/theme
103111
msgid "Product Gallery Swiper for WooCommerce"
@@ -110,10 +118,10 @@ msgstr "https://products.wijnberg.dev"
110118
#. Description of the plugin/theme
111119
msgid ""
112120
"Enhances WooCommerce product images display on product listing sections, "
113-
"providing a responsive and touch-friendly slider."
121+
"providing a responsive and touch-friendly swiper."
114122
msgstr ""
115123
"Enhances WooCommerce product images display on product listing sections, "
116-
"providing a responsive and touch-friendly slider."
124+
"providing a responsive and touch-friendly swiper."
117125

118126
#. Author of the plugin/theme
119127
msgid "Wijnberg Developments"
Binary file not shown.

0 commit comments

Comments
 (0)