Version Description
- Fix: WooCommerce Brands carousel
Download this release
Release Info
| Developer | quadlayers |
| Plugin | |
| Version | 2.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.0 to 2.1.1
classes/shortcodes/class-pwb-carousel.php
CHANGED
|
@@ -19,6 +19,8 @@ class PWB_Carousel_Shortcode {
|
|
| 19 |
'autoplay' => 'false',
|
| 20 |
'arrows' => 'false',
|
| 21 |
'hide_empty' => false,
|
|
|
|
|
|
|
| 22 |
),
|
| 23 |
$atts,
|
| 24 |
'pwb-carousel'
|
|
@@ -61,10 +63,13 @@ class PWB_Carousel_Shortcode {
|
|
| 61 |
|
| 62 |
$brands = array();
|
| 63 |
$foreach_i = 0;
|
|
|
|
|
|
|
|
|
|
| 64 |
if ( self::$atts['items'] == 'featured' ) {
|
| 65 |
$brands_array = \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands( self::$atts['items'], 'name', 'ASC', true );
|
| 66 |
} else {
|
| 67 |
-
$brands_array = \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands( self::$atts['
|
| 68 |
}
|
| 69 |
foreach ( $brands_array as $brand ) {
|
| 70 |
if ( self::$atts['items'] != 'featured' && $foreach_i >= (int) self::$atts['items'] ) {
|
| 19 |
'autoplay' => 'false',
|
| 20 |
'arrows' => 'false',
|
| 21 |
'hide_empty' => false,
|
| 22 |
+
'order_by' => 'name',
|
| 23 |
+
'order' => 'ASC',
|
| 24 |
),
|
| 25 |
$atts,
|
| 26 |
'pwb-carousel'
|
| 63 |
|
| 64 |
$brands = array();
|
| 65 |
$foreach_i = 0;
|
| 66 |
+
|
| 67 |
+
$hide_empty = ( self::$atts['hide_empty'] != 'true' ) ? false : true;
|
| 68 |
+
|
| 69 |
if ( self::$atts['items'] == 'featured' ) {
|
| 70 |
$brands_array = \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands( self::$atts['items'], 'name', 'ASC', true );
|
| 71 |
} else {
|
| 72 |
+
$brands_array = \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands( $hide_empty, self::$atts['order_by'], self::$atts['order'] );
|
| 73 |
}
|
| 74 |
foreach ( $brands_array as $brand ) {
|
| 75 |
if ( self::$atts['items'] != 'featured' && $foreach_i >= (int) self::$atts['items'] ) {
|
perfect-woocommerce-brands.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin Name: Perfect Brands for WooCommerce
|
| 5 |
* Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
|
| 6 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
| 7 |
-
* Version: 2.1.
|
| 8 |
* Author: QuadLayers
|
| 9 |
* Author URI: https://quadlayers.com
|
| 10 |
* Text Domain: perfect-woocommerce-brands
|
|
@@ -36,7 +36,7 @@ define( 'PWB_PLUGIN_FILE', __FILE__ );
|
|
| 36 |
define( 'PWB_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
| 37 |
define( 'PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
| 38 |
define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
| 39 |
-
define( 'PWB_PLUGIN_VERSION', '2.1.
|
| 40 |
define( 'PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands' );
|
| 41 |
define( 'PWB_PREFIX', 'pwb' );
|
| 42 |
define( 'PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post' );
|
| 4 |
* Plugin Name: Perfect Brands for WooCommerce
|
| 5 |
* Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
|
| 6 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
| 7 |
+
* Version: 2.1.1
|
| 8 |
* Author: QuadLayers
|
| 9 |
* Author URI: https://quadlayers.com
|
| 10 |
* Text Domain: perfect-woocommerce-brands
|
| 36 |
define( 'PWB_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
| 37 |
define( 'PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
| 38 |
define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
| 39 |
+
define( 'PWB_PLUGIN_VERSION', '2.1.1' );
|
| 40 |
define( 'PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands' );
|
| 41 |
define( 'PWB_PREFIX', 'pwb' );
|
| 42 |
define( 'PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post' );
|
readme.txt
CHANGED
|
@@ -5,9 +5,9 @@ Tags: woocommerce, woocommerce brands, woocommerce product, woocommerce manufact
|
|
| 5 |
Requires at least: 4.7
|
| 6 |
Tested up to: 6.0
|
| 7 |
Requires PHP: 5.6
|
| 8 |
-
Stable tag: 2.1.
|
| 9 |
WC requires at least: 3.0
|
| 10 |
-
WC tested up to: 6.6
|
| 11 |
License: GPLv3
|
| 12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 13 |
|
|
@@ -90,6 +90,8 @@ You can also contribute [translating the plugin](https://translate.wordpress.org
|
|
| 90 |
|
| 91 |
|
| 92 |
== Changelog ==
|
|
|
|
|
|
|
| 93 |
= 2.1.0 =
|
| 94 |
* Fix: Brand description in product tab
|
| 95 |
= 2.0.9 =
|
| 5 |
Requires at least: 4.7
|
| 6 |
Tested up to: 6.0
|
| 7 |
Requires PHP: 5.6
|
| 8 |
+
Stable tag: 2.1.1
|
| 9 |
WC requires at least: 3.0
|
| 10 |
+
WC tested up to: 6.6.1
|
| 11 |
License: GPLv3
|
| 12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 13 |
|
| 90 |
|
| 91 |
|
| 92 |
== Changelog ==
|
| 93 |
+
= 2.1.1 =
|
| 94 |
+
* Fix: WooCommerce Brands carousel
|
| 95 |
= 2.1.0 =
|
| 96 |
* Fix: Brand description in product tab
|
| 97 |
= 2.0.9 =
|
