Skip to content

Commit

Permalink
Release new version 2.2.0
Browse files Browse the repository at this point in the history
= 2.2.0 - 2023/09/07 =
* This feature release adds a "Products Slider" Block for use with Gutenberg templates. Also compatibility with WooCommerce 8.0.3 and WordPress 6.3
* Feature - Define new "Products Slider" block to show product slider on Gutenberg Block templates pages.
* Tweak - Test for compatibility with WooCommerce 8.0.3
* Tweak - Test for compatibility with WordPress 6.3.0
* Fix - New Product Slider Block resolves issues that the product slider shortcode has with Gutenberg templates.
  • Loading branch information
alextuan committed Sep 7, 2023
1 parent eedf1e0 commit cb89033
Show file tree
Hide file tree
Showing 22 changed files with 554 additions and 7 deletions.
6 changes: 3 additions & 3 deletions classes/class-slider-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public static function dispay_slider_widget( $slider_id = '', $slider_settings =
data-cycle-delay=<?php echo $delay; ?>
data-cycle-swipe=true

data-cycle-prev="> .a3-cycle-controls .cycle-prev"
data-cycle-next="> .a3-cycle-controls .cycle-next"
data-cycle-pager="> .cycle-pager-container .cycle-pager-inside .cycle-pager"
data-cycle-prev=".a3-cycle-controls .cycle-prev"
data-cycle-next=".a3-cycle-controls .cycle-next"
data-cycle-pager=".cycle-pager-container .cycle-pager-inside .cycle-pager"

<?php if ( $is_slider_tall_dynamic == 0 ) { ?>
data-cycle-center-vert=true
Expand Down
1 change: 1 addition & 0 deletions dist/blocks.build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added dist/blocks.editor.build.css
Empty file.
Empty file added dist/blocks.style.build.css
Empty file.
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "woocommerce-product-slider",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "cgb-scripts start",
"build": "cgb-scripts build",
"eject": "cgb-scripts eject"
},
"dependencies": {
"cgb-scripts": "^1.23.1"
},
"devDependencies": {
"@svgr/webpack": "^4.3.3"
}
}
15 changes: 12 additions & 3 deletions product-image-gallery-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
/*
Plugin Name: Product Widget Slider for WooCommerce
Description: Adds visually stunning WooCommerce product sliders to any widgeted area. Fully customizable, Widget Skin. Fully mobile responsive. Show any number of products from a selected product category.
Version: 2.1.0
Version: 2.2.0
Author: a3rev Software
Author URI: https://a3rev.com/
Requires at least: 6.0
Tested up to: 6.3
Text Domain: woo-widget-product-slideshow
Domain Path: /languages
WC requires at least: 3.0
WC tested up to: 7.9
WC tested up to: 8.0.3
License: GPLv2 or later
WooCommerce Widget Product Slider Lite plugin.
Expand Down Expand Up @@ -41,7 +41,7 @@

define( 'WC_PRODUCT_SLIDER_KEY', 'woo_gallery_widget' );
define( 'WC_PRODUCT_SLIDER_PREFIX', 'wc_product_slider_' );
define( 'WC_PRODUCT_SLIDER_VERSION', '2.1.0' );
define( 'WC_PRODUCT_SLIDER_VERSION', '2.2.0' );
define( 'WC_PRODUCT_SLIDER_G_FONTS', true );

// declare compatibility with new HPOS of WooCommerce
Expand Down Expand Up @@ -80,6 +80,15 @@
global $wc_product_slider_hook_backbone;
$wc_product_slider_hook_backbone = new \A3Rev\WCPSlider\Backbone();

global $wp_version;
if ( version_compare( $wp_version, '5.5', '>=' ) ) {
// Gutenberg Blocks init
global $wc_pslider_blocks;
$wc_pslider_blocks = new \A3Rev\WCPSlider\Blocks();

require 'src/blocks/slider/block.php';
}

} else {
return;
}
Expand Down
12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: a3rev, nguyencongtuan
Tags: WooCommerce widgets, WooCommerce, WooCommerce widget product slideshow, WooCommerce Product images, woothemes, wordpress ecommerce
Requires at least: 6.0
Tested up to: 6.3
Stable tag: 2.1.0
Stable tag: 2.2.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -95,6 +95,13 @@ You can use this plugin only when you have installed the WooCommerce plugin.

== Changelog ==

= 2.2.0 - 2023/09/07 =
* This feature release adds a "Products Slider" Block for use with Gutenberg templates. Also compatibility with WooCommerce 8.0.3 and WordPress 6.3
* Feature - Define new "Products Slider" block to show product slider on Gutenberg Block templates pages.
* Tweak - Test for compatibility with WooCommerce 8.0.3
* Tweak - Test for compatibility with WordPress 6.3.0
* Fix - New Product Slider Block resolves issues that the product slider shortcode has with Gutenberg templates.

= 2.1.0 - 2023/04/25 =
* This release has compatibility with WordPress 6.2.0, WooCommerce 7.6.0 plus declared compatibility with WooCommerce HPOS.
* Tweak - Test for compatibility with WordPress 6.2
Expand Down Expand Up @@ -578,6 +585,9 @@ You can use this plugin only when you have installed the WooCommerce plugin.

== Upgrade Notice ==

= 2.2.0 =
This feature release adds a "Products Slider" Block for use with Gutenberg templates. Also compatibility with WooCommerce 8.0.3 and WordPress 6.3

= 2.1.0 =
This release has compatibility with WordPress 6.2.0, WooCommerce 7.6.0 plus declared compatibility with WooCommerce HPOS.

Expand Down
1 change: 1 addition & 0 deletions src/assets/icons/a3blockpress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/blocks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Gutenberg Blocks
*
* All blocks related JavaScript files should be imported here.
* You can create a new block folder in this dir and include code
* for that block here as well.
*
* All blocks should be included here since this is the file that
* Webpack is compiling as the input file.
*/
const { updateCategory } = wp.blocks;

import a3revBlocksIcon from './assets/icons/a3blockpress.svg';

/**
* Add category icon.
*/
updateCategory('a3rev-blocks', {
icon: a3revBlocksIcon,
});

import './blocks/slider/block';
Loading

0 comments on commit cb89033

Please sign in to comment.