Perfect Brands for WooCommerce - Version 1.4

Version Description

  • Feature: Product carousel by brand added
  • Minor bug fixes
Download this release

Release Info

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

Code changes from version 1.3 to 1.4

assets/css/styles-frontend.css CHANGED
@@ -7,14 +7,14 @@
7
  /* ----------------------- /Global ----------------------- */
8
 
9
  /* ----------------------- PWB Carousel ----------------------- */
10
- .pwb-carousel .slick-loading .slick-list{
11
  background: #fff url('./ajax-loader.gif') center center no-repeat;
12
  }
13
- .pwb-carousel .slick-slide{
14
  margin: 0 10px;
15
  }
16
- .pwb-carousel .slick-prev,
17
- .pwb-carousel .slick-next{
18
  font-size: 0;
19
 
20
  position: absolute;
@@ -43,8 +43,8 @@
43
  -o-transition: opacity 0.3s ease-in-out;
44
 
45
  }
46
- .pwb-carousel .slick-prev > span,
47
- .pwb-carousel .slick-next > span{
48
  display: inline-block;
49
  height: 20px;
50
  width: 20px;
@@ -58,18 +58,28 @@
58
  .pwb-carousel .slick-prev:hover,
59
  .pwb-carousel .slick-prev:focus,
60
  .pwb-carousel .slick-next:hover,
61
- .pwb-carousel .slick-next:focus{
 
 
 
 
62
  outline: none;
63
  }
64
- .pwb-carousel .slick-prev{
65
  left: 0;
66
  }
67
- .pwb-carousel .slick-next{
68
  right: 0;
69
  }
70
- .pwb-carousel:hover .slick-next,.pwb-carousel:hover .slick-prev{
 
71
  opacity: 0.8;
72
  }
 
 
 
 
 
73
  /* ----------------------- /PWB Carousel ----------------------- */
74
 
75
  /* ----------------------- PWB All Brands ----------------------- */
7
  /* ----------------------- /Global ----------------------- */
8
 
9
  /* ----------------------- PWB Carousel ----------------------- */
10
+ .pwb-carousel .slick-loading .slick-list, .pwb-product-carousel .slick-loading .slick-list{
11
  background: #fff url('./ajax-loader.gif') center center no-repeat;
12
  }
13
+ .pwb-carousel .slick-slide, .pwb-product-carousel .slick-slide{
14
  margin: 0 10px;
15
  }
16
+ .pwb-carousel .slick-prev, .pwb-carousel .slick-next,
17
+ .pwb-product-carousel .slick-prev, .pwb-product-carousel .slick-next{
18
  font-size: 0;
19
 
20
  position: absolute;
43
  -o-transition: opacity 0.3s ease-in-out;
44
 
45
  }
46
+ .pwb-carousel .slick-prev > span, .pwb-carousel .slick-next > span,
47
+ .pwb-product-carousel .slick-prev > span, .pwb-product-carousel .slick-next > span{
48
  display: inline-block;
49
  height: 20px;
50
  width: 20px;
58
  .pwb-carousel .slick-prev:hover,
59
  .pwb-carousel .slick-prev:focus,
60
  .pwb-carousel .slick-next:hover,
61
+ .pwb-carousel .slick-next:focus,
62
+ .pwb-product-carousel .slick-prev:hover,
63
+ .pwb-product-carousel .slick-prev:focus,
64
+ .pwb-product-carousel .slick-next:hover,
65
+ .pwb-product-carousel .slick-next:focus{
66
  outline: none;
67
  }
68
+ .pwb-carousel .slick-prev, .pwb-product-carousel .slick-prev{
69
  left: 0;
70
  }
71
+ .pwb-carousel .slick-next, .pwb-product-carousel .slick-next{
72
  right: 0;
73
  }
74
+ .pwb-carousel:hover .slick-next,.pwb-carousel:hover .slick-prev,
75
+ .pwb-product-carousel:hover .slick-next,.pwb-product-carousel:hover .slick-prev{
76
  opacity: 0.8;
77
  }
78
+ .pwb-product-carousel .pwb-amount{
79
+ display: block;
80
+ width: 100%;
81
+ margin-bottom: 12px;
82
+ }
83
  /* ----------------------- /PWB Carousel ----------------------- */
84
 
85
  /* ----------------------- PWB All Brands ----------------------- */
assets/js/pwb_frontend_functions.js CHANGED
@@ -39,4 +39,38 @@ jQuery(document).ready(function( $ ) {
39
  }
40
  ]
41
  });
42
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  }
40
  ]
41
  });
42
+
43
+ $('.pwb-product-carousel').slick({
44
+ infinite: true,
45
+ draggable: false,
46
+ prevArrow: '<div class="slick-prev"><span title="Prev">&lt;</span></div>',
47
+ nextArrow: '<div class="slick-next"><span title="Next">&gt;</span></div>',
48
+ speed: 300,
49
+ responsive: [
50
+ {
51
+ breakpoint: 1024,
52
+ settings: {
53
+ slidesToShow: 3,
54
+ draggable: true,
55
+ arrows: false
56
+ }
57
+ },
58
+ {
59
+ breakpoint: 600,
60
+ settings: {
61
+ slidesToShow: 2,
62
+ draggable: true,
63
+ arrows: false
64
+ }
65
+ },
66
+ {
67
+ breakpoint: 480,
68
+ settings: {
69
+ slidesToShow: 1,
70
+ draggable: true,
71
+ arrows: false
72
+ }
73
+ }
74
+ ]
75
+ });
76
+ });
classes/class-perfect-woocommerce-brands.php CHANGED
@@ -24,6 +24,7 @@
24
  add_action('init', array($this,'register_frontend_scripts'));
25
  }
26
  add_shortcode( 'pwb-carousel', array('\Perfect_Woocommerce_Brands\Pwb_Carousel_Shortcode','carousel_shortcode') );
 
27
  add_shortcode( 'pwb-all-brands', array('\Perfect_Woocommerce_Brands\Pwb_All_Brands_Shortcode','all_brands_shortcode') );
28
  add_shortcode( 'pwb-brand', array('\Perfect_Woocommerce_Brands\Pwb_Brand_Shortcode','brand_shortcode') );
29
  if(is_plugin_active('js_composer/js_composer.php')){
@@ -99,6 +100,57 @@
99
  $available_image_sizes_adapted[$image_size] = $image_size;
100
  }
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  vc_map(array(
103
  "name" => __( "PWB Brands carousel", "perfect-woocommerce-brands" ),
104
  "description" => __( "Brands carousel", "perfect-woocommerce-brands" ),
@@ -504,6 +556,71 @@
504
 
505
  }
506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  public function archive_page_banner(){
508
  $queried_object = get_queried_object();
509
 
24
  add_action('init', array($this,'register_frontend_scripts'));
25
  }
26
  add_shortcode( 'pwb-carousel', array('\Perfect_Woocommerce_Brands\Pwb_Carousel_Shortcode','carousel_shortcode') );
27
+ add_shortcode( 'pwb-product-carousel', array('\Perfect_Woocommerce_Brands\Pwb_Product_Carousel_Shortcode','product_carousel_shortcode') );
28
  add_shortcode( 'pwb-all-brands', array('\Perfect_Woocommerce_Brands\Pwb_All_Brands_Shortcode','all_brands_shortcode') );
29
  add_shortcode( 'pwb-brand', array('\Perfect_Woocommerce_Brands\Pwb_Brand_Shortcode','brand_shortcode') );
30
  if(is_plugin_active('js_composer/js_composer.php')){
100
  $available_image_sizes_adapted[$image_size] = $image_size;
101
  }
102
 
103
+ vc_map(array(
104
+ "name" => __( "PWB Product carousel", "perfect-woocommerce-brands" ),
105
+ "description" => __( "Product carousel by brand or by category", "perfect-woocommerce-brands" ),
106
+ "base" => "pwb-product-carousel",
107
+ "class" => "",
108
+ "icon" => PWB_PLUGIN.'/assets/img/icon_pwb.jpg',
109
+ "category" => "WooCommerce",
110
+ "params" => array(
111
+ array(
112
+ "type" => "dropdown",
113
+ "heading" => __( "Brand", "perfect-woocommerce-brands" ),
114
+ "param_name" => "brand",
115
+ "admin_label" => true,
116
+ "value" => $this->get_brands_array()
117
+ ),
118
+ array(
119
+ "type" => "textfield",
120
+ "holder" => "div",
121
+ "heading" => __( "Products", "perfect-woocommerce-brands" ),
122
+ "param_name" => "products",
123
+ "value" => "10",
124
+ "description" => __( "Number of products to load", "perfect-woocommerce-brands" )
125
+ ),
126
+ array(
127
+ "type" => "textfield",
128
+ "holder" => "div",
129
+ "heading" => __( "Products to show", "perfect-woocommerce-brands" ),
130
+ "param_name" => "products_to_show",
131
+ "value" => "5",
132
+ "description" => __( "Number of products to show", "perfect-woocommerce-brands" )
133
+ ),
134
+ array(
135
+ "type" => "textfield",
136
+ "holder" => "div",
137
+ "heading" => __( "Products to scroll", "perfect-woocommerce-brands" ),
138
+ "param_name" => "products_to_scroll",
139
+ "value" => "1",
140
+ "description" => __( "Number of products to scroll", "perfect-woocommerce-brands" )
141
+ ),
142
+ array(
143
+ "type" => "checkbox",
144
+ "holder" => "div",
145
+ "heading" => __( "Autoplay", "perfect-woocommerce-brands" ),
146
+ "param_name" => "autoplay",
147
+ "description" => __( "Autoplay carousel", "perfect-woocommerce-brands" )
148
+ )
149
+ )
150
+
151
+
152
+ ));
153
+
154
  vc_map(array(
155
  "name" => __( "PWB Brands carousel", "perfect-woocommerce-brands" ),
156
  "description" => __( "Brands carousel", "perfect-woocommerce-brands" ),
556
 
557
  }
558
 
559
+ public static function get_brands_array(){
560
+ $result = array();
561
+ $result[0] = 'all';
562
+
563
+ $brands = get_terms('pwb-brand',array(
564
+ 'hide_empty' => false
565
+ ));
566
+
567
+ foreach ($brands as $brand) {
568
+ $result[$brand->term_id] = $brand->slug;
569
+ }
570
+
571
+ return $result;
572
+
573
+ }
574
+
575
+ public static function get_products_by_brand($brand_id, $count){
576
+
577
+ if($brand_id === 'all'){
578
+ $args = array(
579
+ 'post_type' => 'product',
580
+ 'posts_per_page' => $count,
581
+ 'paged' => false
582
+ );
583
+ }else{
584
+ $args = array(
585
+ 'post_type' => 'product',
586
+ 'tax_query' => array(
587
+ array(
588
+ 'taxonomy' => 'pwb-brand',
589
+ 'field' => 'slug',
590
+ 'terms' => $brand_id,
591
+ )
592
+ ),
593
+ 'posts_per_page' => $count,
594
+ 'paged' => false
595
+ );
596
+ }
597
+
598
+ ob_start();
599
+
600
+ $loop = new \WP_Query( $args );
601
+ if ( $loop->have_posts() && function_exists('get_product') && function_exists('woocommerce_template_loop_add_to_cart') && function_exists('woocommerce_get_product_thumbnail') ) {
602
+ while ( $loop->have_posts() ) : $loop->the_post();
603
+ $product = get_product( get_the_ID() );
604
+
605
+ echo '<div>';
606
+ echo '<a href="'.get_the_permalink().'">';
607
+ echo woocommerce_get_product_thumbnail();
608
+ echo '<h3>'.$product->post->post_title.'</h3>';
609
+ echo '<span class="pwb-amount">'.$product->get_price_html().'</span>';
610
+ woocommerce_template_loop_add_to_cart();
611
+ echo '</a>';
612
+ echo '</div>';
613
+
614
+ endwhile;
615
+ } else {
616
+ echo __( 'No products found', 'perfect-woocommerce-brands' );
617
+ }
618
+ wp_reset_postdata();
619
+
620
+ return ob_get_clean();
621
+
622
+ }
623
+
624
  public function archive_page_banner(){
625
  $queried_object = get_queried_object();
626
 
classes/shortcodes/class-pwb-product-carousel-shortcode.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Perfect_Woocommerce_Brands;
3
+
4
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
5
+
6
+ class Pwb_Product_Carousel_Shortcode{
7
+
8
+ public static function product_carousel_shortcode( $atts ) {
9
+ $atts = shortcode_atts( array(
10
+ 'brand' => "all",
11
+ 'products' => "10",
12
+ 'products_to_show' => "5",
13
+ 'products_to_scroll' => "1",
14
+ 'autoplay' => "true"
15
+ ), $atts, 'pwb-product-carousel' );
16
+
17
+ ob_start();
18
+
19
+ $foreach_iterator = 0;
20
+
21
+ $autoplay = 'true';
22
+ if($atts['autoplay']!='true'){
23
+ $autoplay = 'false';
24
+ }
25
+
26
+
27
+ ?>
28
+ <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;?>}'><?php
29
+ echo Perfect_Woocommerce_Brands::get_products_by_brand($atts['brand'], (int)$atts['products']);
30
+ echo '</div>';
31
+
32
+ return ob_get_clean();
33
+ }
34
+
35
+ }
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: 2016-07-05 19:37+0200\n"
5
- "PO-Revision-Date: 2016-07-05 19:39+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
@@ -20,197 +20,236 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: classes/class-perfect-woocommerce-brands.php:103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  msgid "PWB Brands carousel"
25
  msgstr "PWB Carrusel de marcas"
26
 
27
- #: classes/class-perfect-woocommerce-brands.php:104
28
  msgid "Brands carousel"
29
  msgstr "Carrusel de marcas"
30
 
31
- #: classes/class-perfect-woocommerce-brands.php:113
32
  msgid "Items"
33
  msgstr "Elementos"
34
 
35
- #: classes/class-perfect-woocommerce-brands.php:116
36
  msgid "Number of items to load"
37
  msgstr "Número de elementos que cargar"
38
 
39
- #: classes/class-perfect-woocommerce-brands.php:121
40
  msgid "Items to show"
41
- msgstr "Elementos que mostrar"
42
 
43
- #: classes/class-perfect-woocommerce-brands.php:124
44
  msgid "Number of items to show"
45
  msgstr "Número de elementos a mostrar"
46
 
47
- #: classes/class-perfect-woocommerce-brands.php:129
48
  msgid "Items to scroll"
49
  msgstr "Número de elementos por scroll"
50
 
51
- #: classes/class-perfect-woocommerce-brands.php:132
52
  msgid "Number of items to scroll"
53
  msgstr "Número de elementos por cada scroll"
54
 
55
- #: classes/class-perfect-woocommerce-brands.php:137
56
- msgid "Autoplay"
57
- msgstr "Modo automático"
58
-
59
- #: classes/class-perfect-woocommerce-brands.php:139
60
- msgid "Autoplay carousel"
61
- msgstr "Modo automático para el carrusel"
62
-
63
- #: classes/class-perfect-woocommerce-brands.php:143
64
- #: classes/class-perfect-woocommerce-brands.php:172
65
- #: classes/class-perfect-woocommerce-brands.php:201
66
  #: classes/class-pwb-admin-tab.php:85
67
  msgid "Brand logo size"
68
  msgstr "Tamaño del logo de la marca"
69
 
70
- #: classes/class-perfect-woocommerce-brands.php:154
71
  msgid "PWB All brands"
72
- msgstr "PWC Todas las marcas"
73
 
74
- #: classes/class-perfect-woocommerce-brands.php:155
75
  msgid "Show all brands"
76
  msgstr "Mostrar todas las marcas"
77
 
78
- #: classes/class-perfect-woocommerce-brands.php:165
79
  msgid "Brands per page"
80
  msgstr "Marcas por página"
81
 
82
- #: classes/class-perfect-woocommerce-brands.php:168
83
  msgid "Show x brands per page"
84
  msgstr "Mostrar x marcas por página"
85
 
86
- #: classes/class-perfect-woocommerce-brands.php:183
87
  msgid "PWB brand"
88
- msgstr "PWB marca"
89
 
90
- #: classes/class-perfect-woocommerce-brands.php:184
91
  msgid "Show brand for a specific product"
92
  msgstr "Ver marcas de un producto específico"
93
 
94
- #: classes/class-perfect-woocommerce-brands.php:194
95
  msgid "Product id"
96
  msgstr "Id del producto"
97
 
98
- #: classes/class-perfect-woocommerce-brands.php:197
99
  msgid "Product id (post id)"
100
  msgstr "Id del producto (id del post)"
101
 
102
- #: classes/class-perfect-woocommerce-brands.php:231
103
- #: classes/class-perfect-woocommerce-brands.php:233
104
  #: classes/shortcodes/class-pwb-all-brands-shortcode.php:66
105
  #: classes/shortcodes/class-pwb-brand-shortcode.php:22
106
  #: classes/shortcodes/class-pwb-carousel-shortcode.php:42
107
  msgid "View brand"
108
  msgstr "Ver marca"
109
 
110
- #: classes/class-perfect-woocommerce-brands.php:297
111
- #: classes/class-perfect-woocommerce-brands.php:299
112
  #: classes/class-pwb-admin-tab.php:22
113
  #: classes/widgets/class-pwb-dropdown-widget.php:56
114
  msgid "Brands"
115
  msgstr "Marcas"
116
 
117
- #: classes/class-perfect-woocommerce-brands.php:298
118
- msgid "Brand"
119
- msgstr "Marca"
120
-
121
- #: classes/class-perfect-woocommerce-brands.php:300
122
  msgid "All Brands"
123
  msgstr "Todas las marcas"
124
 
125
- #: classes/class-perfect-woocommerce-brands.php:301
126
  msgid "Edit Brand"
127
  msgstr "Editar marca"
128
 
129
- #: classes/class-perfect-woocommerce-brands.php:302
130
  msgid "View Brand"
131
  msgstr "Ver marca"
132
 
133
- #: classes/class-perfect-woocommerce-brands.php:303
134
  msgid "Update Brand"
135
  msgstr "Actualizar marca"
136
 
137
- #: classes/class-perfect-woocommerce-brands.php:304
138
  msgid "Add New Brand"
139
  msgstr "Añadir nueva marca"
140
 
141
- #: classes/class-perfect-woocommerce-brands.php:305
142
  msgid "New Brand Name"
143
  msgstr "Nuevo nombre de marca"
144
 
145
- #: classes/class-perfect-woocommerce-brands.php:306
146
  msgid "Parent Brand"
147
  msgstr "Marca Padre"
148
 
149
- #: classes/class-perfect-woocommerce-brands.php:307
150
  msgid "Parent Brand:"
151
  msgstr "Marca Padre:"
152
 
153
- #: classes/class-perfect-woocommerce-brands.php:308
154
  msgid "Search Brands"
155
  msgstr "Buscar Marcas"
156
 
157
- #: classes/class-perfect-woocommerce-brands.php:309
158
  msgid "Popular Brands"
159
  msgstr "Marcas Populares"
160
 
161
- #: classes/class-perfect-woocommerce-brands.php:310
162
  msgid "Separate brands with commas"
163
  msgstr "Separar marcas con comas"
164
 
165
- #: classes/class-perfect-woocommerce-brands.php:311
166
  msgid "Add or remove brands"
167
  msgstr "Añadir o eliminar marcas"
168
 
169
- #: classes/class-perfect-woocommerce-brands.php:312
170
  msgid "Choose from the most used brands"
171
  msgstr "Seleccionar de las marcas más utilizadas"
172
 
173
- #: classes/class-perfect-woocommerce-brands.php:313
174
  msgid "No brands found"
175
  msgstr "No se han encontrado marcas"
176
 
177
- #: classes/class-perfect-woocommerce-brands.php:357
178
- #: classes/class-perfect-woocommerce-brands.php:390
179
  msgid "Brand logo"
180
  msgstr "Logo de la marca"
181
 
182
- #: classes/class-perfect-woocommerce-brands.php:359
183
- #: classes/class-perfect-woocommerce-brands.php:366
184
- #: classes/class-perfect-woocommerce-brands.php:394
185
- #: classes/class-perfect-woocommerce-brands.php:405
186
  msgid "Select image"
187
  msgstr "Seleccionar imagen"
188
 
189
- #: classes/class-perfect-woocommerce-brands.php:364
190
- #: classes/class-perfect-woocommerce-brands.php:401
191
  msgid "Brand banner"
192
  msgstr "Banner de la marca"
193
 
194
- #: classes/class-perfect-woocommerce-brands.php:367
195
  msgid "This image will be shown on brand page"
196
  msgstr "Esta imagen se mostrará en la página de la marca"
197
 
198
- #: classes/class-perfect-woocommerce-brands.php:372
199
- #: classes/class-perfect-woocommerce-brands.php:412
200
  msgid "Brand banner link"
201
  msgstr "Enlace para el banner de la marca"
202
 
203
- #: classes/class-perfect-woocommerce-brands.php:374
204
- #: classes/class-perfect-woocommerce-brands.php:416
205
  msgid "This link should be relative to site url. Example: product/product-name"
206
  msgstr ""
207
  "Este enlace ha de ser relativo a la url del sitio web. Ejemplo: producto/"
208
  "nombre-del-producto"
209
 
210
- #: classes/class-perfect-woocommerce-brands.php:474
211
  msgid "Logo"
212
  msgstr "Logo"
213
 
 
 
 
 
214
  #: classes/class-pwb-admin-tab.php:72
215
  msgid "Brands settings"
216
  msgstr "Ajustes de las marcas"
@@ -313,7 +352,7 @@ msgstr "Lista de marcas"
313
  msgid "Go to"
314
  msgstr "Ir a"
315
 
316
- #: main.php:57
317
  msgid ""
318
  "Perfect WooCommerce Brands needs WooCommerce to run. Please, install and "
319
  "active WooCommerce plugin."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Perfect WooCommerce Brands\n"
4
+ "POT-Creation-Date: 2016-07-20 23:46+0200\n"
5
+ "PO-Revision-Date: 2016-07-20 23:47+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: classes/class-perfect-woocommerce-brands.php:104
24
+ msgid "PWB Product carousel"
25
+ msgstr "PWB Carrusel de productos"
26
+
27
+ #: classes/class-perfect-woocommerce-brands.php:105
28
+ msgid "Product carousel by brand or by category"
29
+ msgstr "Carrusel de productos por marca o categoría"
30
+
31
+ #: classes/class-perfect-woocommerce-brands.php:113
32
+ #: classes/class-perfect-woocommerce-brands.php:350
33
+ msgid "Brand"
34
+ msgstr "Marca"
35
+
36
+ #: classes/class-perfect-woocommerce-brands.php:121
37
+ msgid "Products"
38
+ msgstr "Productos"
39
+
40
+ #: classes/class-perfect-woocommerce-brands.php:124
41
+ msgid "Number of products to load"
42
+ msgstr "Número de productos que cargar"
43
+
44
+ #: classes/class-perfect-woocommerce-brands.php:129
45
+ msgid "Products to show"
46
+ msgstr "Productos a mostrar"
47
+
48
+ #: classes/class-perfect-woocommerce-brands.php:132
49
+ msgid "Number of products to show"
50
+ msgstr "Número de productos que mostrar"
51
+
52
+ #: classes/class-perfect-woocommerce-brands.php:137
53
+ msgid "Products to scroll"
54
+ msgstr "Número de productos por scroll"
55
+
56
+ #: classes/class-perfect-woocommerce-brands.php:140
57
+ msgid "Number of products to scroll"
58
+ msgstr "Número de productos por cada scroll"
59
+
60
+ #: classes/class-perfect-woocommerce-brands.php:145
61
+ #: classes/class-perfect-woocommerce-brands.php:189
62
+ msgid "Autoplay"
63
+ msgstr "Modo automático"
64
+
65
+ #: classes/class-perfect-woocommerce-brands.php:147
66
+ #: classes/class-perfect-woocommerce-brands.php:191
67
+ msgid "Autoplay carousel"
68
+ msgstr "Modo automático para el carrusel"
69
+
70
+ #: classes/class-perfect-woocommerce-brands.php:155
71
  msgid "PWB Brands carousel"
72
  msgstr "PWB Carrusel de marcas"
73
 
74
+ #: classes/class-perfect-woocommerce-brands.php:156
75
  msgid "Brands carousel"
76
  msgstr "Carrusel de marcas"
77
 
78
+ #: classes/class-perfect-woocommerce-brands.php:165
79
  msgid "Items"
80
  msgstr "Elementos"
81
 
82
+ #: classes/class-perfect-woocommerce-brands.php:168
83
  msgid "Number of items to load"
84
  msgstr "Número de elementos que cargar"
85
 
86
+ #: classes/class-perfect-woocommerce-brands.php:173
87
  msgid "Items to show"
88
+ msgstr "Elementos a mostrar"
89
 
90
+ #: classes/class-perfect-woocommerce-brands.php:176
91
  msgid "Number of items to show"
92
  msgstr "Número de elementos a mostrar"
93
 
94
+ #: classes/class-perfect-woocommerce-brands.php:181
95
  msgid "Items to scroll"
96
  msgstr "Número de elementos por scroll"
97
 
98
+ #: classes/class-perfect-woocommerce-brands.php:184
99
  msgid "Number of items to scroll"
100
  msgstr "Número de elementos por cada scroll"
101
 
102
+ #: classes/class-perfect-woocommerce-brands.php:195
103
+ #: classes/class-perfect-woocommerce-brands.php:224
104
+ #: classes/class-perfect-woocommerce-brands.php:253
 
 
 
 
 
 
 
 
105
  #: classes/class-pwb-admin-tab.php:85
106
  msgid "Brand logo size"
107
  msgstr "Tamaño del logo de la marca"
108
 
109
+ #: classes/class-perfect-woocommerce-brands.php:206
110
  msgid "PWB All brands"
111
+ msgstr "PWB Todas las marcas"
112
 
113
+ #: classes/class-perfect-woocommerce-brands.php:207
114
  msgid "Show all brands"
115
  msgstr "Mostrar todas las marcas"
116
 
117
+ #: classes/class-perfect-woocommerce-brands.php:217
118
  msgid "Brands per page"
119
  msgstr "Marcas por página"
120
 
121
+ #: classes/class-perfect-woocommerce-brands.php:220
122
  msgid "Show x brands per page"
123
  msgstr "Mostrar x marcas por página"
124
 
125
+ #: classes/class-perfect-woocommerce-brands.php:235
126
  msgid "PWB brand"
127
+ msgstr "PWB Marca"
128
 
129
+ #: classes/class-perfect-woocommerce-brands.php:236
130
  msgid "Show brand for a specific product"
131
  msgstr "Ver marcas de un producto específico"
132
 
133
+ #: classes/class-perfect-woocommerce-brands.php:246
134
  msgid "Product id"
135
  msgstr "Id del producto"
136
 
137
+ #: classes/class-perfect-woocommerce-brands.php:249
138
  msgid "Product id (post id)"
139
  msgstr "Id del producto (id del post)"
140
 
141
+ #: classes/class-perfect-woocommerce-brands.php:283
142
+ #: classes/class-perfect-woocommerce-brands.php:285
143
  #: classes/shortcodes/class-pwb-all-brands-shortcode.php:66
144
  #: classes/shortcodes/class-pwb-brand-shortcode.php:22
145
  #: classes/shortcodes/class-pwb-carousel-shortcode.php:42
146
  msgid "View brand"
147
  msgstr "Ver marca"
148
 
149
+ #: classes/class-perfect-woocommerce-brands.php:349
150
+ #: classes/class-perfect-woocommerce-brands.php:351
151
  #: classes/class-pwb-admin-tab.php:22
152
  #: classes/widgets/class-pwb-dropdown-widget.php:56
153
  msgid "Brands"
154
  msgstr "Marcas"
155
 
156
+ #: classes/class-perfect-woocommerce-brands.php:352
 
 
 
 
157
  msgid "All Brands"
158
  msgstr "Todas las marcas"
159
 
160
+ #: classes/class-perfect-woocommerce-brands.php:353
161
  msgid "Edit Brand"
162
  msgstr "Editar marca"
163
 
164
+ #: classes/class-perfect-woocommerce-brands.php:354
165
  msgid "View Brand"
166
  msgstr "Ver marca"
167
 
168
+ #: classes/class-perfect-woocommerce-brands.php:355
169
  msgid "Update Brand"
170
  msgstr "Actualizar marca"
171
 
172
+ #: classes/class-perfect-woocommerce-brands.php:356
173
  msgid "Add New Brand"
174
  msgstr "Añadir nueva marca"
175
 
176
+ #: classes/class-perfect-woocommerce-brands.php:357
177
  msgid "New Brand Name"
178
  msgstr "Nuevo nombre de marca"
179
 
180
+ #: classes/class-perfect-woocommerce-brands.php:358
181
  msgid "Parent Brand"
182
  msgstr "Marca Padre"
183
 
184
+ #: classes/class-perfect-woocommerce-brands.php:359
185
  msgid "Parent Brand:"
186
  msgstr "Marca Padre:"
187
 
188
+ #: classes/class-perfect-woocommerce-brands.php:360
189
  msgid "Search Brands"
190
  msgstr "Buscar Marcas"
191
 
192
+ #: classes/class-perfect-woocommerce-brands.php:361
193
  msgid "Popular Brands"
194
  msgstr "Marcas Populares"
195
 
196
+ #: classes/class-perfect-woocommerce-brands.php:362
197
  msgid "Separate brands with commas"
198
  msgstr "Separar marcas con comas"
199
 
200
+ #: classes/class-perfect-woocommerce-brands.php:363
201
  msgid "Add or remove brands"
202
  msgstr "Añadir o eliminar marcas"
203
 
204
+ #: classes/class-perfect-woocommerce-brands.php:364
205
  msgid "Choose from the most used brands"
206
  msgstr "Seleccionar de las marcas más utilizadas"
207
 
208
+ #: classes/class-perfect-woocommerce-brands.php:365
209
  msgid "No brands found"
210
  msgstr "No se han encontrado marcas"
211
 
212
+ #: classes/class-perfect-woocommerce-brands.php:409
213
+ #: classes/class-perfect-woocommerce-brands.php:442
214
  msgid "Brand logo"
215
  msgstr "Logo de la marca"
216
 
217
+ #: classes/class-perfect-woocommerce-brands.php:411
218
+ #: classes/class-perfect-woocommerce-brands.php:418
219
+ #: classes/class-perfect-woocommerce-brands.php:446
220
+ #: classes/class-perfect-woocommerce-brands.php:457
221
  msgid "Select image"
222
  msgstr "Seleccionar imagen"
223
 
224
+ #: classes/class-perfect-woocommerce-brands.php:416
225
+ #: classes/class-perfect-woocommerce-brands.php:453
226
  msgid "Brand banner"
227
  msgstr "Banner de la marca"
228
 
229
+ #: classes/class-perfect-woocommerce-brands.php:419
230
  msgid "This image will be shown on brand page"
231
  msgstr "Esta imagen se mostrará en la página de la marca"
232
 
233
+ #: classes/class-perfect-woocommerce-brands.php:424
234
+ #: classes/class-perfect-woocommerce-brands.php:464
235
  msgid "Brand banner link"
236
  msgstr "Enlace para el banner de la marca"
237
 
238
+ #: classes/class-perfect-woocommerce-brands.php:426
239
+ #: classes/class-perfect-woocommerce-brands.php:468
240
  msgid "This link should be relative to site url. Example: product/product-name"
241
  msgstr ""
242
  "Este enlace ha de ser relativo a la url del sitio web. Ejemplo: producto/"
243
  "nombre-del-producto"
244
 
245
+ #: classes/class-perfect-woocommerce-brands.php:526
246
  msgid "Logo"
247
  msgstr "Logo"
248
 
249
+ #: classes/class-perfect-woocommerce-brands.php:616
250
+ msgid "No products found"
251
+ msgstr "No se han encontrado productos"
252
+
253
  #: classes/class-pwb-admin-tab.php:72
254
  msgid "Brands settings"
255
  msgstr "Ajustes de las marcas"
352
  msgid "Go to"
353
  msgstr "Ir a"
354
 
355
+ #: main.php:58
356
  msgid ""
357
  "Perfect WooCommerce Brands needs WooCommerce to run. Please, install and "
358
  "active WooCommerce plugin."
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.3
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.3, 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
@@ -44,6 +44,7 @@ if(is_plugin_active('woocommerce/woocommerce.php')){
44
  define('PWB_PLUGIN', plugins_url( '', __FILE__ ));
45
  require 'classes/widgets/class-pwb-dropdown-widget.php';
46
  require 'classes/widgets/class-pwb-list-widget.php';
 
47
  require 'classes/shortcodes/class-pwb-carousel-shortcode.php';
48
  require 'classes/shortcodes/class-pwb-all-brands-shortcode.php';
49
  require 'classes/shortcodes/class-pwb-brand-shortcode.php';
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
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, 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
44
  define('PWB_PLUGIN', plugins_url( '', __FILE__ ));
45
  require 'classes/widgets/class-pwb-dropdown-widget.php';
46
  require 'classes/widgets/class-pwb-list-widget.php';
47
+ require 'classes/shortcodes/class-pwb-product-carousel-shortcode.php';
48
  require 'classes/shortcodes/class-pwb-carousel-shortcode.php';
49
  require 'classes/shortcodes/class-pwb-all-brands-shortcode.php';
50
  require 'classes/shortcodes/class-pwb-brand-shortcode.php';
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Perfect WooCommerce Brands ===
2
  Contributors: titodevera
3
  Donate link: mailto:albertodeverasevilla@gmail.com
4
- Tags: woocommerce, brands, brand taxonomy, product brands, woocommerce manufaturer, woocommerce supplier, e-commerce
5
  Requires at least: 4.4
6
- Tested up to: 4.5.2
7
- Stable tag: 1.3
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -28,6 +28,7 @@ With this extension you can add product brands to your WooCommerce site.
28
  > * Translation-ready (English and Spanish included)
29
  > * Shortcode: Display all brands
30
  > * Shortcode: Display brands carousel
 
31
  > * Shortcode: Display brands for a specific product
32
  > * Visual Composer support
33
  > * Widget: Display brands as dropdown
@@ -54,6 +55,7 @@ There are three shortcodes available:
54
  > * Display all brands: [pwb-all-brands per_page="10" image_size="thumbnail"]
55
  > * Display brands carousel: [pwb-carousel items="10" items_to_show="5" items_to_scroll="1" image_size="thumbnail" autoplay="true"]
56
  > * Display brands for a specific product: [pwb-brand product_id="5" image_size="thumbnail"]
 
57
 
58
 
59
  == Screenshots ==
@@ -64,6 +66,9 @@ There are three shortcodes available:
64
 
65
 
66
  == Changelog ==
 
 
 
67
  = 1.3 =
68
  * Feature: If is set, show brand description in brand page
69
  * Feature: Change brands position in single product
1
  === Perfect WooCommerce Brands ===
2
  Contributors: titodevera
3
  Donate link: mailto:albertodeverasevilla@gmail.com
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.5.3
7
+ Stable tag: 1.4
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
10
 
28
  > * Translation-ready (English and Spanish included)
29
  > * Shortcode: Display all brands
30
  > * Shortcode: Display brands carousel
31
+ > * Shortcode: Display product carousel by brand
32
  > * Shortcode: Display brands for a specific product
33
  > * Visual Composer support
34
  > * Widget: Display brands as dropdown
55
  > * Display all brands: [pwb-all-brands per_page="10" image_size="thumbnail"]
56
  > * Display brands carousel: [pwb-carousel items="10" items_to_show="5" items_to_scroll="1" image_size="thumbnail" autoplay="true"]
57
  > * Display brands for a specific product: [pwb-brand product_id="5" image_size="thumbnail"]
58
+ > * 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"]
59
 
60
 
61
  == Screenshots ==
66
 
67
 
68
  == Changelog ==
69
+ = 1.4 =
70
+ * Feature: Product carousel by brand added
71
+ * Minor bug fixes
72
  = 1.3 =
73
  * Feature: If is set, show brand description in brand page
74
  * Feature: Change brands position in single product