Perfect Brands for WooCommerce - Version 1.4.5

Version Description

  • Fix carousel shortcodes bugs
  • WooCommerce 2.7 support
Download this release

Release Info

Developer titodevera
Plugin Icon 128x128 Perfect Brands for WooCommerce
Version 1.4.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.5

classes/class-perfect-woocommerce-brands.php CHANGED
@@ -44,7 +44,7 @@
44
  if ( get_option('wc_pwb_notice_plugin_review', true ) ) {
45
  ?>
46
  <div class="notice notice-info pwb-notice-dismissible is-dismissible" data-notice="wc_pwb_notice_plugin_review">
47
- <p><?php echo __('We are offering you maybe the best WooCommerce brands plugin completly free. You can help us making Perfect WooCommerce Brands a bit better. Thanks!', 'perfect-woocommerce-brands' ); ?><span class="dashicons dashicons-heart"></span></p>
48
  <p>
49
  <?php _e( '<a href="https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?rate=5#new-post" target="_blank">Leave a review</a>', 'perfect-woocommerce-brands' ); ?>
50
  <?php _e( '<a href="https://translate.wordpress.org/projects/wp-plugins/perfect-woocommerce-brands" target="_blank">Translate the plugin</a>', 'perfect-woocommerce-brands' ); ?>
44
  if ( get_option('wc_pwb_notice_plugin_review', true ) ) {
45
  ?>
46
  <div class="notice notice-info pwb-notice-dismissible is-dismissible" data-notice="wc_pwb_notice_plugin_review">
47
+ <p><?php echo __('We are offering you maybe the best WooCommerce brands plugin completely free. You can help us making Perfect WooCommerce Brands a bit better. Thanks!', 'perfect-woocommerce-brands' ); ?><span class="dashicons dashicons-heart"></span></p>
48
  <p>
49
  <?php _e( '<a href="https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?rate=5#new-post" target="_blank">Leave a review</a>', 'perfect-woocommerce-brands' ); ?>
50
  <?php _e( '<a href="https://translate.wordpress.org/projects/wp-plugins/perfect-woocommerce-brands" target="_blank">Translate the plugin</a>', 'perfect-woocommerce-brands' ); ?>
classes/shortcodes/class-pwb-carousel.php CHANGED
@@ -19,12 +19,16 @@
19
 
20
  $foreach_iterator = 0;
21
 
22
- $autoplay = 'true';
23
- if($atts['autoplay']!='true'){
24
- $autoplay = 'false';
25
- }
26
-
27
- ?><div class="pwb-carousel" data-slick='{"slidesToShow": <?php echo (int)$atts['items_to_show'];?>, "slidesToScroll": <?php echo (int)$atts['items_to_scroll'];?>, "autoplay": <?php echo $autoplay;?>, "arrows": <?php echo $arrows;?>}'><?php
 
 
 
 
28
  foreach(\Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands() as $brand){
29
  if($foreach_iterator>=(int)$atts['items']){
30
  break;
19
 
20
  $foreach_iterator = 0;
21
 
22
+ $slick_settings = [
23
+ 'slidesToShow' => (int)$atts['items_to_show'],
24
+ 'slidesToScroll' => (int)$atts['items_to_scroll'],
25
+ 'autoplay' => (bool)$atts['autoplay'],
26
+ 'arrows' => (bool)$atts['arrows'],
27
+ ];
28
+ ?>
29
+
30
+ <div class="pwb-carousel" data-slick='<?php echo json_encode($slick_settings); ?>'>
31
+ <?php
32
  foreach(\Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands() as $brand){
33
  if($foreach_iterator>=(int)$atts['items']){
34
  break;
classes/shortcodes/class-pwb-product-carousel.php CHANGED
@@ -17,20 +17,15 @@
17
 
18
  ob_start();
19
 
20
- if($atts['autoplay']){
21
- $autoplay = 'true';
22
- }else{
23
- $autoplay = 'false';
24
- }
25
- if($atts['arrows']){
26
- $arrows = 'true';
27
- }else{
28
- $arrows = 'false';
29
- }
30
-
31
  ?>
32
 
33
- <div class="pwb-product-carousel" data-slick='{"slidesToShow": <?php echo (int)$atts['products_to_show'];?>, "slidesToScroll": <?php echo (int)$atts['products_to_scroll'];?>, "autoplay": <?php echo $autoplay;?>, "arrows": <?php echo $arrows;?>}'>
34
  <?php echo \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_products_by_brand($atts['brand'], (int)$atts['products']); ?>
35
  </div>
36
 
17
 
18
  ob_start();
19
 
20
+ $slick_settings = [
21
+ 'slidesToShow' => (int)$atts['products_to_show'],
22
+ 'slidesToScroll' => (int)$atts['products_to_scroll'],
23
+ 'autoplay' => (bool)$atts['autoplay'],
24
+ 'arrows' => (bool)$atts['arrows'],
25
+ ];
 
 
 
 
 
26
  ?>
27
 
28
+ <div class="pwb-product-carousel" data-slick='<?php echo json_encode($slick_settings); ?>'>
29
  <?php echo \Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_products_by_brand($atts['brand'], (int)$atts['products']); ?>
30
  </div>
31
 
lang/perfect-woocommerce-brands-es_ES.mo CHANGED
Binary file
lang/perfect-woocommerce-brands-es_ES.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Perfect WooCommerce Brands\n"
4
- "POT-Creation-Date: 2017-02-24 22:56+0100\n"
5
- "PO-Revision-Date: 2017-02-24 23:00+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
@@ -22,8 +22,8 @@ msgstr ""
22
 
23
  #: classes/class-perfect-woocommerce-brands.php:47
24
  msgid ""
25
- "We are offering you maybe the best WooCommerce brands plugin completly free. "
26
- "You can help us making Perfect WooCommerce Brands a bit better. Thanks!"
27
  msgstr ""
28
  "Estamos ofreciendo de forma completamente gratuita el que probablemente sea "
29
  "el mejor plugin de marcas para WooCommerce. Puedes ayudarnos haciendo "
@@ -198,7 +198,7 @@ msgstr "Id del producto (id del post)"
198
  #: classes/shortcodes/class-pwb-all-brands.php:76
199
  #: classes/shortcodes/class-pwb-brand.php:29
200
  #: classes/shortcodes/class-pwb-brand.php:31
201
- #: classes/shortcodes/class-pwb-carousel.php:43
202
  msgid "View brand"
203
  msgstr "Ver marca"
204
 
@@ -540,6 +540,15 @@ msgstr "Alberto de Vera Sevilla"
540
  msgid "https://profiles.wordpress.org/titodevera/"
541
  msgstr "https://profiles.wordpress.org/titodevera/"
542
 
 
 
 
 
 
 
 
 
 
543
  #~ msgid "Import brands from old plugin installation"
544
  #~ msgstr "Importar marcas de otro plugin"
545
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Perfect WooCommerce Brands\n"
4
+ "POT-Creation-Date: 2017-03-11 20:47+0100\n"
5
+ "PO-Revision-Date: 2017-03-11 20:47+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
22
 
23
  #: classes/class-perfect-woocommerce-brands.php:47
24
  msgid ""
25
+ "We are offering you maybe the best WooCommerce brands plugin completely "
26
+ "free. You can help us making Perfect WooCommerce Brands a bit better. Thanks!"
27
  msgstr ""
28
  "Estamos ofreciendo de forma completamente gratuita el que probablemente sea "
29
  "el mejor plugin de marcas para WooCommerce. Puedes ayudarnos haciendo "
198
  #: classes/shortcodes/class-pwb-all-brands.php:76
199
  #: classes/shortcodes/class-pwb-brand.php:29
200
  #: classes/shortcodes/class-pwb-brand.php:31
201
+ #: classes/shortcodes/class-pwb-carousel.php:47
202
  msgid "View brand"
203
  msgstr "Ver marca"
204
 
540
  msgid "https://profiles.wordpress.org/titodevera/"
541
  msgstr "https://profiles.wordpress.org/titodevera/"
542
 
543
+ #~ msgid ""
544
+ #~ "We are offering you maybe the best WooCommerce brands plugin completly "
545
+ #~ "free. You can help us making Perfect WooCommerce Brands a bit better. "
546
+ #~ "Thanks!"
547
+ #~ msgstr ""
548
+ #~ "Estamos ofreciendo de forma completamente gratuita el que probablemente "
549
+ #~ "sea el mejor plugin de marcas para WooCommerce. Puedes ayudarnos haciendo "
550
+ #~ "Perfect WooCommerce Brands un poco mejor. ¡Gracias!"
551
+
552
  #~ msgid "Import brands from old plugin installation"
553
  #~ msgstr "Importar marcas de otro plugin"
554
 
main.php CHANGED
@@ -3,14 +3,14 @@
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.4.4
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
 
13
- Perfect WooCommerce Brands version 1.4.4, Copyright (C) 2016 Alberto de Vera Sevilla
14
 
15
  Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
35
  define( 'PWB_PLUGIN', plugins_url( '', __FILE__ ) );
36
  define( 'PWB_PLUGIN_PATH', plugin_basename( dirname( __FILE__ ) ) );
37
  define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
38
- define( 'PWB_PLUGIN_VERSION', '1.4.4' );
39
 
40
  //clean brands slug on plugin deactivation
41
  register_deactivation_hook( __FILE__, function(){
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.4.5
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
 
13
+ Perfect WooCommerce Brands version 1.4.5, Copyright (C) 2016 Alberto de Vera Sevilla
14
 
15
  Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
35
  define( 'PWB_PLUGIN', plugins_url( '', __FILE__ ) );
36
  define( 'PWB_PLUGIN_PATH', plugin_basename( dirname( __FILE__ ) ) );
37
  define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
38
+ define( 'PWB_PLUGIN_VERSION', '1.4.5' );
39
 
40
  //clean brands slug on plugin deactivation
41
  register_deactivation_hook( __FILE__, function(){
readme.txt CHANGED
@@ -3,16 +3,16 @@ Contributors: titodevera
3
  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.7.2
7
- Stable tag: 1.4.4
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
10
 
11
  Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store
12
 
13
  == Description ==
14
- Whether we like to admit it or not, we are all influenced by brands. Brands are a guarantee for quality, they assure product recognition in customers.
15
- Is essential to work with product brands for increase sales and generate reliability on your e-commerce site.
16
  With this extension you can add product brands to your WooCommerce site.
17
 
18
  = Requirements =
@@ -57,7 +57,7 @@ Go to `WooCommerce/Settings/` and click on `Brands` tab
57
  There are four shortcodes available:
58
  > * Display all brands: [pwb-all-brands per_page="10" image_size="thumbnail" hide_empty="false"]
59
  > * Display brands carousel: [pwb-carousel items="10" items_to_show="5" items_to_scroll="1" image_size="thumbnail" autoplay="true" arrows="true"]
60
- > * Display product carousel by brand: [pwb-product-carousel brand="all" products="10" products_to_show="4" products_to_scroll="2" image_size="" items_to_show="2" autoplay="true" arrows="true"]
61
  > * Display brands for a specific product: [pwb-brand product_id="5" image_size="thumbnail"]
62
 
63
 
@@ -70,6 +70,9 @@ There are four shortcodes available:
70
 
71
 
72
  == Changelog ==
 
 
 
73
  = 1.4.4 =
74
  * Important improvement of the user experience when assigning images to a brand
75
  * Feature (Option): Hide brands in single product, show as image or show as link
@@ -107,4 +110,4 @@ There are four shortcodes available:
107
  = 1.1 =
108
  * Minor bug fixes
109
  = 1.0 =
110
- * Initial release
3
  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.7.3
7
+ Stable tag: 1.4.5
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
10
 
11
  Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store
12
 
13
  == Description ==
14
+ Whether we like to admit it or not, we are all influenced by brands. Brands are a guarantee for quality, they assure product recognition in customers.
15
+ Is essential to work with product brands for increase sales and generate reliability on your e-commerce site.
16
  With this extension you can add product brands to your WooCommerce site.
17
 
18
  = Requirements =
57
  There are four shortcodes available:
58
  > * Display all brands: [pwb-all-brands per_page="10" image_size="thumbnail" hide_empty="false"]
59
  > * Display brands carousel: [pwb-carousel items="10" items_to_show="5" items_to_scroll="1" image_size="thumbnail" autoplay="true" arrows="true"]
60
+ > * Display product carousel by brand: [pwb-product-carousel brand="all" products="10" products_to_show="4" products_to_scroll="2" image_size="" items_to_show="2" autoplay="true" arrows="true"]
61
  > * Display brands for a specific product: [pwb-brand product_id="5" image_size="thumbnail"]
62
 
63
 
70
 
71
 
72
  == Changelog ==
73
+ = 1.4.5 =
74
+ * Fix carousel shortcodes bugs
75
+ * WooCommerce 2.7 support
76
  = 1.4.4 =
77
  * Important improvement of the user experience when assigning images to a brand
78
  * Feature (Option): Hide brands in single product, show as image or show as link
110
  = 1.1 =
111
  * Minor bug fixes
112
  = 1.0 =
113
+ * Initial release