Version Description
- Fix: Carousels problems on responsive after the last update
Download this release
Release Info
Developer | titodevera |
Plugin | Perfect Brands for WooCommerce |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
assets/js/pwb_frontend_functions.js
CHANGED
@@ -7,7 +7,7 @@ jQuery(document).ready(function( $ ) {
|
|
7 |
});
|
8 |
|
9 |
$('.pwb-carousel').slick({
|
10 |
-
slide: '.slick-slide',
|
11 |
infinite: true,
|
12 |
draggable: false,
|
13 |
prevArrow: '<div class="slick-prev"><span title="Prev"><</span></div>',
|
@@ -43,7 +43,7 @@ jQuery(document).ready(function( $ ) {
|
|
43 |
});
|
44 |
|
45 |
$('.pwb-product-carousel').slick({
|
46 |
-
slide: '.slick-slide',
|
47 |
infinite: true,
|
48 |
draggable: false,
|
49 |
prevArrow: '<div class="slick-prev"><span title="Prev"><</span></div>',
|
7 |
});
|
8 |
|
9 |
$('.pwb-carousel').slick({
|
10 |
+
slide: '.pwb-slick-slide',
|
11 |
infinite: true,
|
12 |
draggable: false,
|
13 |
prevArrow: '<div class="slick-prev"><span title="Prev"><</span></div>',
|
43 |
});
|
44 |
|
45 |
$('.pwb-product-carousel').slick({
|
46 |
+
slide: '.pwb-slick-slide',
|
47 |
infinite: true,
|
48 |
draggable: false,
|
49 |
prevArrow: '<div class="slick-prev"><span title="Prev"><</span></div>',
|
assets/js/pwb_frontend_functions.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.noConflict();jQuery(document).ready(function(e){e(".pwb-dropdown-widget").on("change",function(){var f=e(this).find(":selected").val();location.href=f});e(".pwb-carousel").slick({slide:".slick-slide",infinite:true,draggable:false,prevArrow:'<div class="slick-prev"><span title="Prev"><</span></div>',nextArrow:'<div class="slick-next"><span title="Next">></span></div>',speed:300,lazyLoad:"progressive",responsive:[{breakpoint:1024,settings:{slidesToShow:4,draggable:true,arrows:false}},{breakpoint:600,settings:{slidesToShow:3,draggable:true,arrows:false}},{breakpoint:480,settings:{slidesToShow:2,draggable:true,arrows:false}}]});e(".pwb-product-carousel").slick({slide:".slick-slide",infinite:true,draggable:false,prevArrow:'<div class="slick-prev"><span title="Prev"><</span></div>',nextArrow:'<div class="slick-next"><span title="Next">></span></div>',speed:300,lazyLoad:"progressive",responsive:[{breakpoint:1024,settings:{slidesToShow:3,draggable:true,arrows:false}},{breakpoint:600,settings:{slidesToShow:2,draggable:true,arrows:false}},{breakpoint:480,settings:{slidesToShow:1,draggable:true,arrows:false}}]});var d=PWBgetUrlParameter("pwb-brand-filter");e(".pwb-filter-products button").on("click",function(){var g=window.location.href;var f="";e('.pwb-filter-products input[type="checkbox"]').each(function(h){var i=e(this).prop("checked");if(i){f+=e(this).val();if(e('.pwb-filter-products input[type="checkbox"]').length-1!=h){f+=","}}});g=g.replace(/&?pwb-brand-filter=([^&]$|[^&]*)/i,"");g=g.replace(/\/page\/\d*\//i,"");if(g.indexOf("?")===-1){g=g+"?pwb-brand-filter="+f}else{g=g+"&pwb-brand-filter="+f}location.href=g});if(d!=null){var b=d.split(",");e('.pwb-filter-products input[type="checkbox"]').prop("checked",false);for(var c=0,a=b.length;c<a;c++){e('.pwb-filter-products input[type="checkbox"]').each(function(f){if(e(this).val()){if(b[c]==e(this).val()){e(this).prop("checked",true)}}})}}else{e('.pwb-filter-products input[type="checkbox"]').prop("checked",false)}});var PWBgetUrlParameter=function PWBgetUrlParameter(a){var d=decodeURIComponent(window.location.search.substring(1)),c=d.split("&"),e,b;for(b=0;b<c.length;b++){e=c[b].split("=");if(e[0]===a){return e[1]===undefined?true:e[1]}}};
|
1 |
+
jQuery.noConflict();jQuery(document).ready(function(e){e(".pwb-dropdown-widget").on("change",function(){var f=e(this).find(":selected").val();location.href=f});e(".pwb-carousel").slick({slide:".pwb-slick-slide",infinite:true,draggable:false,prevArrow:'<div class="slick-prev"><span title="Prev"><</span></div>',nextArrow:'<div class="slick-next"><span title="Next">></span></div>',speed:300,lazyLoad:"progressive",responsive:[{breakpoint:1024,settings:{slidesToShow:4,draggable:true,arrows:false}},{breakpoint:600,settings:{slidesToShow:3,draggable:true,arrows:false}},{breakpoint:480,settings:{slidesToShow:2,draggable:true,arrows:false}}]});e(".pwb-product-carousel").slick({slide:".pwb-slick-slide",infinite:true,draggable:false,prevArrow:'<div class="slick-prev"><span title="Prev"><</span></div>',nextArrow:'<div class="slick-next"><span title="Next">></span></div>',speed:300,lazyLoad:"progressive",responsive:[{breakpoint:1024,settings:{slidesToShow:3,draggable:true,arrows:false}},{breakpoint:600,settings:{slidesToShow:2,draggable:true,arrows:false}},{breakpoint:480,settings:{slidesToShow:1,draggable:true,arrows:false}}]});var d=PWBgetUrlParameter("pwb-brand-filter");e(".pwb-filter-products button").on("click",function(){var g=window.location.href;var f="";e('.pwb-filter-products input[type="checkbox"]').each(function(h){var i=e(this).prop("checked");if(i){f+=e(this).val();if(e('.pwb-filter-products input[type="checkbox"]').length-1!=h){f+=","}}});g=g.replace(/&?pwb-brand-filter=([^&]$|[^&]*)/i,"");g=g.replace(/\/page\/\d*\//i,"");if(g.indexOf("?")===-1){g=g+"?pwb-brand-filter="+f}else{g=g+"&pwb-brand-filter="+f}location.href=g});if(d!=null){var b=d.split(",");e('.pwb-filter-products input[type="checkbox"]').prop("checked",false);for(var c=0,a=b.length;c<a;c++){e('.pwb-filter-products input[type="checkbox"]').each(function(f){if(e(this).val()){if(b[c]==e(this).val()){e(this).prop("checked",true)}}})}}else{e('.pwb-filter-products input[type="checkbox"]').prop("checked",false)}});var PWBgetUrlParameter=function PWBgetUrlParameter(a){var d=decodeURIComponent(window.location.search.substring(1)),c=d.split("&"),e,b;for(b=0;b<c.length;b++){e=c[b].split("=");if(e[0]===a){return e[1]===undefined?true:e[1]}}};
|
main.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: Perfect WooCommerce Brands
|
4 |
* Plugin URI: https://wordpress.org/plugins/perfect-woocommerce-brands/
|
5 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
6 |
-
* Version: 1.6.
|
7 |
* Author: Alberto de Vera Sevilla
|
8 |
* Author URI: https://profiles.wordpress.org/titodevera/
|
9 |
* Text Domain: perfect-woocommerce-brands
|
10 |
* Domain Path: /lang
|
11 |
* License: GPL3
|
12 |
-
* Perfect WooCommerce Brands version 1.6.
|
13 |
* Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
|
14 |
* it under the terms of the GNU General Public License as published by
|
15 |
* the Free Software Foundation, either version 3 of the License, or
|
@@ -34,7 +34,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
34 |
define( 'PWB_PLUGIN', plugins_url( '', __FILE__ ) );
|
35 |
define( 'PWB_PLUGIN_PATH', plugin_basename( dirname( __FILE__ ) ) );
|
36 |
define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
37 |
-
define( 'PWB_PLUGIN_VERSION', '1.6.
|
38 |
define( 'PWB_WP_VERSION', get_bloginfo( 'version' ) );
|
39 |
define( 'PWB_WC_VERSION', get_option( 'woocommerce_version' ) );
|
40 |
|
3 |
* Plugin Name: Perfect WooCommerce Brands
|
4 |
* Plugin URI: https://wordpress.org/plugins/perfect-woocommerce-brands/
|
5 |
* Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
|
6 |
+
* Version: 1.6.2
|
7 |
* Author: Alberto de Vera Sevilla
|
8 |
* Author URI: https://profiles.wordpress.org/titodevera/
|
9 |
* Text Domain: perfect-woocommerce-brands
|
10 |
* Domain Path: /lang
|
11 |
* License: GPL3
|
12 |
+
* Perfect WooCommerce Brands version 1.6.2, Copyright (C) 2018 Alberto de Vera Sevilla
|
13 |
* Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
|
14 |
* it under the terms of the GNU General Public License as published by
|
15 |
* the Free Software Foundation, either version 3 of the License, or
|
34 |
define( 'PWB_PLUGIN', plugins_url( '', __FILE__ ) );
|
35 |
define( 'PWB_PLUGIN_PATH', plugin_basename( dirname( __FILE__ ) ) );
|
36 |
define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
37 |
+
define( 'PWB_PLUGIN_VERSION', '1.6.2' );
|
38 |
define( 'PWB_WP_VERSION', get_bloginfo( 'version' ) );
|
39 |
define( 'PWB_WC_VERSION', get_option( 'woocommerce_version' ) );
|
40 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: mailto:hola@albertodevera.es
|
|
4 |
Tags: woocommerce, brands, brand taxonomy, product brands, woocommerce manufacturer, woocommerce supplier, e-commerce
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -78,6 +78,8 @@ Go to `WooCommerce/Settings/` and click on `Brands` tab
|
|
78 |
|
79 |
|
80 |
== Changelog ==
|
|
|
|
|
81 |
= 1.6.1 =
|
82 |
* Feature: Favorite brands
|
83 |
* Fix: Brand logo full size option for single product
|
4 |
Tags: woocommerce, brands, brand taxonomy, product brands, woocommerce manufacturer, woocommerce supplier, e-commerce
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.6.2
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
78 |
|
79 |
|
80 |
== Changelog ==
|
81 |
+
= 1.6.2 =
|
82 |
+
* Fix: Carousels problems on responsive after the last update
|
83 |
= 1.6.1 =
|
84 |
* Feature: Favorite brands
|
85 |
* Fix: Brand logo full size option for single product
|
templates/shortcodes/carousel.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<div class="pwb-carousel" data-slick="<?php echo $slick_settings; ?>">
|
15 |
|
16 |
<?php foreach( $brands as $brand ): ?>
|
17 |
-
<div class="slick-slide">
|
18 |
<a href="<?php echo $brand['link'];?>" title="<?php _e( 'View brand', 'perfect-woocommerce-brands' ); ?>">
|
19 |
<?php echo $brand['attachment_html'];?>
|
20 |
</a>
|
14 |
<div class="pwb-carousel" data-slick="<?php echo $slick_settings; ?>">
|
15 |
|
16 |
<?php foreach( $brands as $brand ): ?>
|
17 |
+
<div class="pwb-slick-slide">
|
18 |
<a href="<?php echo $brand['link'];?>" title="<?php _e( 'View brand', 'perfect-woocommerce-brands' ); ?>">
|
19 |
<?php echo $brand['attachment_html'];?>
|
20 |
</a>
|
templates/shortcodes/product-carousel.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
<div class="pwb-product-carousel" data-slick="<?php echo $slick_settings; ?>">
|
17 |
|
18 |
<?php foreach( $products as $product ): ?>
|
19 |
-
<div class="slick-slide">
|
20 |
<a href="<?php echo $product['permalink']; ?>">
|
21 |
<?php echo $product['thumbnail']; ?>
|
22 |
<h3><?php echo $product['title']; ?></h3>
|
16 |
<div class="pwb-product-carousel" data-slick="<?php echo $slick_settings; ?>">
|
17 |
|
18 |
<?php foreach( $products as $product ): ?>
|
19 |
+
<div class="pwb-slick-slide">
|
20 |
<a href="<?php echo $product['permalink']; ?>">
|
21 |
<?php echo $product['thumbnail']; ?>
|
22 |
<h3><?php echo $product['title']; ?></h3>
|