Version Description
- Feature (Option): Hide brand's description in archive page
- Fix: "pwb-all-brands" and "pwb-brand" show the content before they should
- Clean database on uninstallation
- Minor code improvements and fixes
Download this release
Release Info
Developer | titodevera |
Plugin | Perfect Brands for WooCommerce |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- classes/class-perfect-woocommerce-brands.php +35 -29
- classes/class-pwb-admin-tab.php +7 -0
- classes/shortcodes/class-pwb-all-brands-shortcode.php +4 -0
- classes/shortcodes/class-pwb-brand-shortcode.php +3 -0
- classes/shortcodes/class-pwb-product-carousel-shortcode.php +5 -4
- lang/perfect-woocommerce-brands-es_ES.mo +0 -0
- lang/perfect-woocommerce-brands-es_ES.po +84 -76
- main.php +4 -7
- readme.txt +6 -1
- uninstall.php +15 -0
classes/class-perfect-woocommerce-brands.php
CHANGED
@@ -6,35 +6,41 @@
|
|
6 |
class Perfect_Woocommerce_Brands{
|
7 |
|
8 |
function __construct(){
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
public function show_brand_description(){
|
|
|
36 |
$queried_object = get_queried_object();
|
37 |
-
if(is_a($queried_object,'WP_Term') && $queried_object->taxonomy == 'pwb-brand' && $queried_object->description != ''){
|
38 |
echo '<div class="pwb-brand-description">';
|
39 |
echo $queried_object->description;
|
40 |
echo '</div>';
|
@@ -313,7 +319,7 @@
|
|
313 |
'pwb_frontend_styles',
|
314 |
PWB_PLUGIN . '/assets/css/styles-frontend.css',
|
315 |
array('pwb_slick_lib'),
|
316 |
-
|
317 |
'all'
|
318 |
);
|
319 |
|
@@ -321,7 +327,7 @@
|
|
321 |
'pwb_frontend_functions',
|
322 |
PWB_PLUGIN . '/assets/js/pwb_frontend_functions.js',
|
323 |
array('jquery','pwb_slick_lib'),
|
324 |
-
|
325 |
true
|
326 |
);
|
327 |
wp_enqueue_script('pwb_frontend_functions');
|
@@ -331,8 +337,8 @@
|
|
331 |
public function register_admin_scripts($hook){
|
332 |
$screen = get_current_screen();
|
333 |
|
334 |
-
wp_register_style('pwb_styles_brands', plugins_url('perfect-woocommerce-brands/assets/css/styles-admin.css'), array(),
|
335 |
-
wp_register_script('pwb_brands_js', plugins_url('perfect-woocommerce-brands/assets/js/pwb_admin_functions.js'), array('jquery'),
|
336 |
|
337 |
if ($hook == 'edit-tags.php' && $screen->taxonomy == 'pwb-brand' || $hook == 'term.php' && $screen->taxonomy == 'pwb-brand') {
|
338 |
wp_enqueue_style('pwb_styles_brands');
|
6 |
class Perfect_Woocommerce_Brands{
|
7 |
|
8 |
function __construct(){
|
9 |
+
add_action('plugins_loaded', array($this,'load_textdomain'));
|
10 |
+
add_action('woocommerce_init', array($this,'register_brands_taxonomy'), 10, 0);
|
11 |
+
add_action('init',array($this,'add_brands_metafields'));
|
12 |
+
add_action('pwb-brand_add_form_fields', array($this,'add_brands_metafields_form') );
|
13 |
+
add_action('pwb-brand_edit_form_fields', array($this,'add_brands_metafields_form_edit') );
|
14 |
+
add_action('edit_pwb-brand', array($this,'add_brands_metafields_save') );
|
15 |
+
add_action('create_pwb-brand', array($this,'add_brands_metafields_save') );
|
16 |
+
add_filter('manage_edit-pwb-brand_columns', array($this,'brand_taxonomy_columns_head'));
|
17 |
+
add_filter('manage_pwb-brand_custom_column', array($this,'brand_taxonomy_columns' ), 10, 3);
|
18 |
+
add_action('admin_enqueue_scripts', array($this,'register_admin_scripts'));
|
19 |
+
$this->brand_logo_position();
|
20 |
+
add_action('woocommerce_before_shop_loop', array($this,'archive_page_banner'), 9);
|
21 |
+
add_action('woocommerce_before_shop_loop', array($this,'show_brand_description'), 9);
|
22 |
+
add_action('widgets_init', function(){register_widget('\Perfect_Woocommerce_Brands\Pwb_Dropdown_Widget');});
|
23 |
+
add_action('widgets_init', function(){register_widget('\Perfect_Woocommerce_Brands\Pwb_List_Widget');});
|
24 |
+
if ( !is_admin() ) {
|
25 |
+
add_action('init', array($this,'register_frontend_scripts'));
|
26 |
+
}
|
27 |
+
add_shortcode( 'pwb-carousel', array('\Perfect_Woocommerce_Brands\Pwb_Carousel_Shortcode','carousel_shortcode') );
|
28 |
+
add_shortcode( 'pwb-product-carousel', array('\Perfect_Woocommerce_Brands\Pwb_Product_Carousel_Shortcode','product_carousel_shortcode') );
|
29 |
+
add_shortcode( 'pwb-all-brands', array('\Perfect_Woocommerce_Brands\Pwb_All_Brands_Shortcode','all_brands_shortcode') );
|
30 |
+
add_shortcode( 'pwb-brand', array('\Perfect_Woocommerce_Brands\Pwb_Brand_Shortcode','brand_shortcode') );
|
31 |
+
if(is_plugin_active('js_composer/js_composer.php')){
|
32 |
+
add_action('vc_before_init', array($this,'vc_map_shortcodes') );
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
public function load_textdomain() {
|
37 |
+
load_plugin_textdomain( 'perfect-woocommerce-brands', false, PWB_PLUGIN_PATH . '/lang' );
|
38 |
}
|
39 |
|
40 |
public function show_brand_description(){
|
41 |
+
$show_desc = get_option('wc_pwb_admin_tab_brand_desc');
|
42 |
$queried_object = get_queried_object();
|
43 |
+
if(is_a($queried_object,'WP_Term') && $queried_object->taxonomy == 'pwb-brand' && $queried_object->description != '' && $show_desc !== 'no'){
|
44 |
echo '<div class="pwb-brand-description">';
|
45 |
echo $queried_object->description;
|
46 |
echo '</div>';
|
319 |
'pwb_frontend_styles',
|
320 |
PWB_PLUGIN . '/assets/css/styles-frontend.css',
|
321 |
array('pwb_slick_lib'),
|
322 |
+
PWB_PLUGIN_VERSION,
|
323 |
'all'
|
324 |
);
|
325 |
|
327 |
'pwb_frontend_functions',
|
328 |
PWB_PLUGIN . '/assets/js/pwb_frontend_functions.js',
|
329 |
array('jquery','pwb_slick_lib'),
|
330 |
+
PWB_PLUGIN_VERSION,
|
331 |
true
|
332 |
);
|
333 |
wp_enqueue_script('pwb_frontend_functions');
|
337 |
public function register_admin_scripts($hook){
|
338 |
$screen = get_current_screen();
|
339 |
|
340 |
+
wp_register_style('pwb_styles_brands', plugins_url('perfect-woocommerce-brands/assets/css/styles-admin.css'), array(), PWB_PLUGIN_VERSION);
|
341 |
+
wp_register_script('pwb_brands_js', plugins_url('perfect-woocommerce-brands/assets/js/pwb_admin_functions.js'), array('jquery'), PWB_PLUGIN_VERSION, true);
|
342 |
|
343 |
if ($hook == 'edit-tags.php' && $screen->taxonomy == 'pwb-brand' || $hook == 'term.php' && $screen->taxonomy == 'pwb-brand') {
|
344 |
wp_enqueue_style('pwb_styles_brands');
|
classes/class-pwb-admin-tab.php
CHANGED
@@ -103,6 +103,13 @@
|
|
103 |
'after_sharing' => __( 'After sharing', 'perfect-woocommerce-brands' )
|
104 |
)
|
105 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
'section_end' => array(
|
107 |
'type' => 'sectionend',
|
108 |
'id' => 'wc_pwb_admin_tab_section_end'
|
103 |
'after_sharing' => __( 'After sharing', 'perfect-woocommerce-brands' )
|
104 |
)
|
105 |
),
|
106 |
+
'brand_description' => array(
|
107 |
+
'name' => __( 'Show brand description', 'perfect-woocommerce-brands' ),
|
108 |
+
'type' => 'checkbox',
|
109 |
+
'default' => 'yes',
|
110 |
+
'desc' => __( 'Show brand description (if is set) on brand archive page', 'perfect-woocommerce-brands' ),
|
111 |
+
'id' => 'wc_pwb_admin_tab_brand_desc'
|
112 |
+
),
|
113 |
'section_end' => array(
|
114 |
'type' => 'sectionend',
|
115 |
'id' => 'wc_pwb_admin_tab_section_end'
|
classes/shortcodes/class-pwb-all-brands-shortcode.php
CHANGED
@@ -11,6 +11,8 @@
|
|
11 |
'image_size' => "thumbnail"
|
12 |
), $atts, 'pwb-all-brands' );
|
13 |
|
|
|
|
|
14 |
$brands = Perfect_Woocommerce_Brands::get_brands();
|
15 |
|
16 |
?>
|
@@ -18,6 +20,8 @@
|
|
18 |
<?php static::pagination($brands, $atts['per_page'], $atts['image_size']);?>
|
19 |
</div>
|
20 |
<?php
|
|
|
|
|
21 |
}
|
22 |
|
23 |
public static function pagination($display_array, $show_per_page, $image_size) {
|
11 |
'image_size' => "thumbnail"
|
12 |
), $atts, 'pwb-all-brands' );
|
13 |
|
14 |
+
ob_start();
|
15 |
+
|
16 |
$brands = Perfect_Woocommerce_Brands::get_brands();
|
17 |
|
18 |
?>
|
20 |
<?php static::pagination($brands, $atts['per_page'], $atts['image_size']);?>
|
21 |
</div>
|
22 |
<?php
|
23 |
+
|
24 |
+
return ob_get_clean();
|
25 |
}
|
26 |
|
27 |
public static function pagination($display_array, $show_per_page, $image_size) {
|
classes/shortcodes/class-pwb-brand-shortcode.php
CHANGED
@@ -11,6 +11,8 @@
|
|
11 |
'image_size' => 'thumbnail'
|
12 |
), $atts, 'pwb-brand' );
|
13 |
|
|
|
|
|
14 |
$brands = wp_get_post_terms( $atts['product_id'], 'pwb-brand');
|
15 |
|
16 |
foreach($brands as $brand){
|
@@ -23,6 +25,7 @@
|
|
23 |
}
|
24 |
}
|
25 |
|
|
|
26 |
|
27 |
}
|
28 |
|
11 |
'image_size' => 'thumbnail'
|
12 |
), $atts, 'pwb-brand' );
|
13 |
|
14 |
+
ob_start();
|
15 |
+
|
16 |
$brands = wp_get_post_terms( $atts['product_id'], 'pwb-brand');
|
17 |
|
18 |
foreach($brands as $brand){
|
25 |
}
|
26 |
}
|
27 |
|
28 |
+
return ob_get_clean();
|
29 |
|
30 |
}
|
31 |
|
classes/shortcodes/class-pwb-product-carousel-shortcode.php
CHANGED
@@ -23,12 +23,13 @@
|
|
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 |
|
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;?>}'>
|
29 |
+
<?php echo Perfect_Woocommerce_Brands::get_products_by_brand($atts['brand'], (int)$atts['products']); ?>
|
30 |
+
</div>
|
31 |
+
|
32 |
+
<?php
|
33 |
return ob_get_clean();
|
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-
|
5 |
-
"PO-Revision-Date: 2016-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: es_ES\n"
|
@@ -20,233 +20,233 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
|
23 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
24 |
msgid "PWB Product carousel"
|
25 |
msgstr "PWB Carrusel de productos"
|
26 |
|
27 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
32 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
33 |
msgid "Brand"
|
34 |
msgstr "Marca"
|
35 |
|
36 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
37 |
msgid "Products"
|
38 |
msgstr "Productos"
|
39 |
|
40 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
41 |
msgid "Number of products to load"
|
42 |
msgstr "Número de productos que cargar"
|
43 |
|
44 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
45 |
msgid "Products to show"
|
46 |
msgstr "Productos a mostrar"
|
47 |
|
48 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
49 |
msgid "Number of products to show"
|
50 |
msgstr "Número de productos que mostrar"
|
51 |
|
52 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
53 |
msgid "Products to scroll"
|
54 |
msgstr "Número de productos por scroll"
|
55 |
|
56 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
57 |
msgid "Number of products to scroll"
|
58 |
msgstr "Número de productos por cada scroll"
|
59 |
|
60 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
61 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
62 |
msgid "Autoplay"
|
63 |
msgstr "Modo automático"
|
64 |
|
65 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
66 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
67 |
msgid "Autoplay carousel"
|
68 |
msgstr "Modo automático para el carrusel"
|
69 |
|
70 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
71 |
msgid "PWB Brands carousel"
|
72 |
msgstr "PWB Carrusel de marcas"
|
73 |
|
74 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
75 |
msgid "Brands carousel"
|
76 |
msgstr "Carrusel de marcas"
|
77 |
|
78 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
79 |
msgid "Items"
|
80 |
msgstr "Elementos"
|
81 |
|
82 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
83 |
msgid "Number of items to load"
|
84 |
msgstr "Número de elementos que cargar"
|
85 |
|
86 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
87 |
msgid "Items to show"
|
88 |
msgstr "Elementos a mostrar"
|
89 |
|
90 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
91 |
msgid "Number of items to show"
|
92 |
msgstr "Número de elementos a mostrar"
|
93 |
|
94 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
95 |
msgid "Items to scroll"
|
96 |
msgstr "Número de elementos por scroll"
|
97 |
|
98 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
99 |
msgid "Number of items to scroll"
|
100 |
msgstr "Número de elementos por cada scroll"
|
101 |
|
102 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
103 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
104 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
110 |
msgid "PWB All brands"
|
111 |
msgstr "PWB Todas las marcas"
|
112 |
|
113 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
114 |
msgid "Show all brands"
|
115 |
msgstr "Mostrar todas las marcas"
|
116 |
|
117 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
118 |
msgid "Brands per page"
|
119 |
msgstr "Marcas por página"
|
120 |
|
121 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
122 |
msgid "Show x brands per page"
|
123 |
msgstr "Mostrar x marcas por página"
|
124 |
|
125 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
126 |
msgid "PWB brand"
|
127 |
msgstr "PWB Marca"
|
128 |
|
129 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
134 |
msgid "Product id"
|
135 |
msgstr "Id del producto"
|
136 |
|
137 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
138 |
msgid "Product id (post id)"
|
139 |
msgstr "Id del producto (id del post)"
|
140 |
|
141 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
142 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
143 |
-
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:
|
144 |
-
#: classes/shortcodes/class-pwb-brand-shortcode.php:
|
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:
|
150 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
157 |
msgid "All Brands"
|
158 |
msgstr "Todas las marcas"
|
159 |
|
160 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
161 |
msgid "Edit Brand"
|
162 |
msgstr "Editar marca"
|
163 |
|
164 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
165 |
msgid "View Brand"
|
166 |
msgstr "Ver marca"
|
167 |
|
168 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
169 |
msgid "Update Brand"
|
170 |
msgstr "Actualizar marca"
|
171 |
|
172 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
173 |
msgid "Add New Brand"
|
174 |
msgstr "Añadir nueva marca"
|
175 |
|
176 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
177 |
msgid "New Brand Name"
|
178 |
msgstr "Nuevo nombre de marca"
|
179 |
|
180 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
181 |
msgid "Parent Brand"
|
182 |
msgstr "Marca Padre"
|
183 |
|
184 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
185 |
msgid "Parent Brand:"
|
186 |
msgstr "Marca Padre:"
|
187 |
|
188 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
189 |
msgid "Search Brands"
|
190 |
msgstr "Buscar Marcas"
|
191 |
|
192 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
193 |
msgid "Popular Brands"
|
194 |
msgstr "Marcas Populares"
|
195 |
|
196 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
197 |
msgid "Separate brands with commas"
|
198 |
msgstr "Separar marcas con comas"
|
199 |
|
200 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
201 |
msgid "Add or remove brands"
|
202 |
msgstr "Añadir o eliminar marcas"
|
203 |
|
204 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
209 |
msgid "No brands found"
|
210 |
msgstr "No se han encontrado marcas"
|
211 |
|
212 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
213 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
214 |
msgid "Brand logo"
|
215 |
msgstr "Logo de la marca"
|
216 |
|
217 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
218 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
219 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
220 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
221 |
msgid "Select image"
|
222 |
msgstr "Seleccionar imagen"
|
223 |
|
224 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
225 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
226 |
msgid "Brand banner"
|
227 |
msgstr "Banner de la marca"
|
228 |
|
229 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
234 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
235 |
msgid "Brand banner link"
|
236 |
msgstr "Enlace para el banner de la marca"
|
237 |
|
238 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
239 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
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:
|
246 |
msgid "Logo"
|
247 |
msgstr "Logo"
|
248 |
|
249 |
-
#: classes/class-perfect-woocommerce-brands.php:
|
250 |
msgid "No products found"
|
251 |
msgstr "No se han encontrado productos"
|
252 |
|
@@ -302,23 +302,31 @@ msgstr "Después del meta"
|
|
302 |
msgid "After sharing"
|
303 |
msgstr "Después de compartir"
|
304 |
|
305 |
-
#: classes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
msgid "First page"
|
307 |
msgstr "Primera página"
|
308 |
|
309 |
-
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:
|
310 |
msgid "Previous page"
|
311 |
msgstr "Página anterior"
|
312 |
|
313 |
-
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:
|
314 |
msgid "Next page"
|
315 |
msgstr "Siguiente página"
|
316 |
|
317 |
-
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:
|
318 |
msgid "Last page"
|
319 |
msgstr "Última página"
|
320 |
|
321 |
-
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:
|
322 |
msgid "No results"
|
323 |
msgstr "No se han encontrado resultados"
|
324 |
|
@@ -352,7 +360,7 @@ msgstr "Lista de marcas"
|
|
352 |
msgid "Go to"
|
353 |
msgstr "Ir a"
|
354 |
|
355 |
-
#: main.php:
|
356 |
msgid ""
|
357 |
"Perfect WooCommerce Brands needs WooCommerce to run. Please, install and "
|
358 |
"active WooCommerce plugin."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Perfect WooCommerce Brands\n"
|
4 |
+
"POT-Creation-Date: 2016-08-16 18:23+0200\n"
|
5 |
+
"PO-Revision-Date: 2016-08-16 18:24+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:110
|
24 |
msgid "PWB Product carousel"
|
25 |
msgstr "PWB Carrusel de productos"
|
26 |
|
27 |
+
#: classes/class-perfect-woocommerce-brands.php:111
|
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:119
|
32 |
+
#: classes/class-perfect-woocommerce-brands.php:356
|
33 |
msgid "Brand"
|
34 |
msgstr "Marca"
|
35 |
|
36 |
+
#: classes/class-perfect-woocommerce-brands.php:127
|
37 |
msgid "Products"
|
38 |
msgstr "Productos"
|
39 |
|
40 |
+
#: classes/class-perfect-woocommerce-brands.php:130
|
41 |
msgid "Number of products to load"
|
42 |
msgstr "Número de productos que cargar"
|
43 |
|
44 |
+
#: classes/class-perfect-woocommerce-brands.php:135
|
45 |
msgid "Products to show"
|
46 |
msgstr "Productos a mostrar"
|
47 |
|
48 |
+
#: classes/class-perfect-woocommerce-brands.php:138
|
49 |
msgid "Number of products to show"
|
50 |
msgstr "Número de productos que mostrar"
|
51 |
|
52 |
+
#: classes/class-perfect-woocommerce-brands.php:143
|
53 |
msgid "Products to scroll"
|
54 |
msgstr "Número de productos por scroll"
|
55 |
|
56 |
+
#: classes/class-perfect-woocommerce-brands.php:146
|
57 |
msgid "Number of products to scroll"
|
58 |
msgstr "Número de productos por cada scroll"
|
59 |
|
60 |
+
#: classes/class-perfect-woocommerce-brands.php:151
|
61 |
+
#: classes/class-perfect-woocommerce-brands.php:195
|
62 |
msgid "Autoplay"
|
63 |
msgstr "Modo automático"
|
64 |
|
65 |
+
#: classes/class-perfect-woocommerce-brands.php:153
|
66 |
+
#: classes/class-perfect-woocommerce-brands.php:197
|
67 |
msgid "Autoplay carousel"
|
68 |
msgstr "Modo automático para el carrusel"
|
69 |
|
70 |
+
#: classes/class-perfect-woocommerce-brands.php:161
|
71 |
msgid "PWB Brands carousel"
|
72 |
msgstr "PWB Carrusel de marcas"
|
73 |
|
74 |
+
#: classes/class-perfect-woocommerce-brands.php:162
|
75 |
msgid "Brands carousel"
|
76 |
msgstr "Carrusel de marcas"
|
77 |
|
78 |
+
#: classes/class-perfect-woocommerce-brands.php:171
|
79 |
msgid "Items"
|
80 |
msgstr "Elementos"
|
81 |
|
82 |
+
#: classes/class-perfect-woocommerce-brands.php:174
|
83 |
msgid "Number of items to load"
|
84 |
msgstr "Número de elementos que cargar"
|
85 |
|
86 |
+
#: classes/class-perfect-woocommerce-brands.php:179
|
87 |
msgid "Items to show"
|
88 |
msgstr "Elementos a mostrar"
|
89 |
|
90 |
+
#: classes/class-perfect-woocommerce-brands.php:182
|
91 |
msgid "Number of items to show"
|
92 |
msgstr "Número de elementos a mostrar"
|
93 |
|
94 |
+
#: classes/class-perfect-woocommerce-brands.php:187
|
95 |
msgid "Items to scroll"
|
96 |
msgstr "Número de elementos por scroll"
|
97 |
|
98 |
+
#: classes/class-perfect-woocommerce-brands.php:190
|
99 |
msgid "Number of items to scroll"
|
100 |
msgstr "Número de elementos por cada scroll"
|
101 |
|
102 |
+
#: classes/class-perfect-woocommerce-brands.php:201
|
103 |
+
#: classes/class-perfect-woocommerce-brands.php:230
|
104 |
+
#: classes/class-perfect-woocommerce-brands.php:259
|
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:212
|
110 |
msgid "PWB All brands"
|
111 |
msgstr "PWB Todas las marcas"
|
112 |
|
113 |
+
#: classes/class-perfect-woocommerce-brands.php:213
|
114 |
msgid "Show all brands"
|
115 |
msgstr "Mostrar todas las marcas"
|
116 |
|
117 |
+
#: classes/class-perfect-woocommerce-brands.php:223
|
118 |
msgid "Brands per page"
|
119 |
msgstr "Marcas por página"
|
120 |
|
121 |
+
#: classes/class-perfect-woocommerce-brands.php:226
|
122 |
msgid "Show x brands per page"
|
123 |
msgstr "Mostrar x marcas por página"
|
124 |
|
125 |
+
#: classes/class-perfect-woocommerce-brands.php:241
|
126 |
msgid "PWB brand"
|
127 |
msgstr "PWB Marca"
|
128 |
|
129 |
+
#: classes/class-perfect-woocommerce-brands.php:242
|
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:252
|
134 |
msgid "Product id"
|
135 |
msgstr "Id del producto"
|
136 |
|
137 |
+
#: classes/class-perfect-woocommerce-brands.php:255
|
138 |
msgid "Product id (post id)"
|
139 |
msgstr "Id del producto (id del post)"
|
140 |
|
141 |
+
#: classes/class-perfect-woocommerce-brands.php:289
|
142 |
+
#: classes/class-perfect-woocommerce-brands.php:291
|
143 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:70
|
144 |
+
#: classes/shortcodes/class-pwb-brand-shortcode.php:24
|
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:355
|
150 |
+
#: classes/class-perfect-woocommerce-brands.php:357
|
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:358
|
157 |
msgid "All Brands"
|
158 |
msgstr "Todas las marcas"
|
159 |
|
160 |
+
#: classes/class-perfect-woocommerce-brands.php:359
|
161 |
msgid "Edit Brand"
|
162 |
msgstr "Editar marca"
|
163 |
|
164 |
+
#: classes/class-perfect-woocommerce-brands.php:360
|
165 |
msgid "View Brand"
|
166 |
msgstr "Ver marca"
|
167 |
|
168 |
+
#: classes/class-perfect-woocommerce-brands.php:361
|
169 |
msgid "Update Brand"
|
170 |
msgstr "Actualizar marca"
|
171 |
|
172 |
+
#: classes/class-perfect-woocommerce-brands.php:362
|
173 |
msgid "Add New Brand"
|
174 |
msgstr "Añadir nueva marca"
|
175 |
|
176 |
+
#: classes/class-perfect-woocommerce-brands.php:363
|
177 |
msgid "New Brand Name"
|
178 |
msgstr "Nuevo nombre de marca"
|
179 |
|
180 |
+
#: classes/class-perfect-woocommerce-brands.php:364
|
181 |
msgid "Parent Brand"
|
182 |
msgstr "Marca Padre"
|
183 |
|
184 |
+
#: classes/class-perfect-woocommerce-brands.php:365
|
185 |
msgid "Parent Brand:"
|
186 |
msgstr "Marca Padre:"
|
187 |
|
188 |
+
#: classes/class-perfect-woocommerce-brands.php:366
|
189 |
msgid "Search Brands"
|
190 |
msgstr "Buscar Marcas"
|
191 |
|
192 |
+
#: classes/class-perfect-woocommerce-brands.php:367
|
193 |
msgid "Popular Brands"
|
194 |
msgstr "Marcas Populares"
|
195 |
|
196 |
+
#: classes/class-perfect-woocommerce-brands.php:368
|
197 |
msgid "Separate brands with commas"
|
198 |
msgstr "Separar marcas con comas"
|
199 |
|
200 |
+
#: classes/class-perfect-woocommerce-brands.php:369
|
201 |
msgid "Add or remove brands"
|
202 |
msgstr "Añadir o eliminar marcas"
|
203 |
|
204 |
+
#: classes/class-perfect-woocommerce-brands.php:370
|
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:371
|
209 |
msgid "No brands found"
|
210 |
msgstr "No se han encontrado marcas"
|
211 |
|
212 |
+
#: classes/class-perfect-woocommerce-brands.php:415
|
213 |
+
#: classes/class-perfect-woocommerce-brands.php:448
|
214 |
msgid "Brand logo"
|
215 |
msgstr "Logo de la marca"
|
216 |
|
217 |
+
#: classes/class-perfect-woocommerce-brands.php:417
|
218 |
+
#: classes/class-perfect-woocommerce-brands.php:424
|
219 |
+
#: classes/class-perfect-woocommerce-brands.php:452
|
220 |
+
#: classes/class-perfect-woocommerce-brands.php:463
|
221 |
msgid "Select image"
|
222 |
msgstr "Seleccionar imagen"
|
223 |
|
224 |
+
#: classes/class-perfect-woocommerce-brands.php:422
|
225 |
+
#: classes/class-perfect-woocommerce-brands.php:459
|
226 |
msgid "Brand banner"
|
227 |
msgstr "Banner de la marca"
|
228 |
|
229 |
+
#: classes/class-perfect-woocommerce-brands.php:425
|
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:430
|
234 |
+
#: classes/class-perfect-woocommerce-brands.php:470
|
235 |
msgid "Brand banner link"
|
236 |
msgstr "Enlace para el banner de la marca"
|
237 |
|
238 |
+
#: classes/class-perfect-woocommerce-brands.php:432
|
239 |
+
#: classes/class-perfect-woocommerce-brands.php:474
|
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:532
|
246 |
msgid "Logo"
|
247 |
msgstr "Logo"
|
248 |
|
249 |
+
#: classes/class-perfect-woocommerce-brands.php:622
|
250 |
msgid "No products found"
|
251 |
msgstr "No se han encontrado productos"
|
252 |
|
302 |
msgid "After sharing"
|
303 |
msgstr "Después de compartir"
|
304 |
|
305 |
+
#: classes/class-pwb-admin-tab.php:107
|
306 |
+
msgid "Show brand description"
|
307 |
+
msgstr "Mostrar descripción de la marca"
|
308 |
+
|
309 |
+
#: classes/class-pwb-admin-tab.php:110
|
310 |
+
msgid "Show brand description (if is set) on brand archive page"
|
311 |
+
msgstr "Mostrar descripción de la marca en la página de archivo"
|
312 |
+
|
313 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:83
|
314 |
msgid "First page"
|
315 |
msgstr "Primera página"
|
316 |
|
317 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:86
|
318 |
msgid "Previous page"
|
319 |
msgstr "Página anterior"
|
320 |
|
321 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:90
|
322 |
msgid "Next page"
|
323 |
msgstr "Siguiente página"
|
324 |
|
325 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:93
|
326 |
msgid "Last page"
|
327 |
msgstr "Última página"
|
328 |
|
329 |
+
#: classes/shortcodes/class-pwb-all-brands-shortcode.php:98
|
330 |
msgid "No results"
|
331 |
msgstr "No se han encontrado resultados"
|
332 |
|
360 |
msgid "Go to"
|
361 |
msgstr "Ir a"
|
362 |
|
363 |
+
#: main.php:55
|
364 |
msgid ""
|
365 |
"Perfect WooCommerce Brands needs WooCommerce to run. Please, install and "
|
366 |
"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.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
|
@@ -31,17 +31,14 @@ namespace Perfect_Woocommerce_Brands;
|
|
31 |
|
32 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
33 |
|
34 |
-
add_action( 'plugins_loaded', '\Perfect_Woocommerce_Brands\pwb_load_textdomain' );
|
35 |
-
function pwb_load_textdomain() {
|
36 |
-
load_plugin_textdomain( 'perfect-woocommerce-brands', false, plugin_basename( dirname( __FILE__ ) ) . '/lang' );
|
37 |
-
}
|
38 |
-
|
39 |
register_deactivation_hook( __FILE__, function(){update_option( 'old_wc_pwb_admin_tab_slug', 'null' );} );
|
40 |
|
41 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
42 |
if(is_plugin_active('woocommerce/woocommerce.php')){
|
43 |
|
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';
|
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.1
|
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.1, 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
|
31 |
|
32 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
register_deactivation_hook( __FILE__, function(){update_option( 'old_wc_pwb_admin_tab_slug', 'null' );} );
|
35 |
|
36 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
37 |
if(is_plugin_active('woocommerce/woocommerce.php')){
|
38 |
|
39 |
define('PWB_PLUGIN', plugins_url( '', __FILE__ ));
|
40 |
+
define('PWB_PLUGIN_PATH', plugin_basename( dirname( __FILE__ ) ));
|
41 |
+
define('PWB_PLUGIN_VERSION', '1.4.1');
|
42 |
require 'classes/widgets/class-pwb-dropdown-widget.php';
|
43 |
require 'classes/widgets/class-pwb-list-widget.php';
|
44 |
require 'classes/shortcodes/class-pwb-product-carousel-shortcode.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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 |
|
@@ -66,6 +66,11 @@ There are three shortcodes available:
|
|
66 |
|
67 |
|
68 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.4 =
|
70 |
* Feature: Product carousel by brand added
|
71 |
* Minor bug fixes
|
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.1
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
66 |
|
67 |
|
68 |
== Changelog ==
|
69 |
+
= 1.4.1 =
|
70 |
+
* Feature (Option): Hide brand's description in archive page
|
71 |
+
* Fix: "pwb-all-brands" and "pwb-brand" show the content before they should
|
72 |
+
* Clean database on uninstallation
|
73 |
+
* Minor code improvements and fixes
|
74 |
= 1.4 =
|
75 |
* Feature: Product carousel by brand added
|
76 |
* Minor bug fixes
|
uninstall.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace Perfect_Woocommerce_Brands;
|
3 |
+
|
4 |
+
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
5 |
+
|
6 |
+
delete_option('wc_pwb_admin_tab_section_title');
|
7 |
+
delete_option('wc_pwb_admin_tab_slug');
|
8 |
+
delete_option('wc_pwb_admin_tab_brand_logo_size');
|
9 |
+
delete_option('wc_pwb_admin_tab_brand_single_position');
|
10 |
+
delete_option('wc_pwb_admin_tab_brand_desc');
|
11 |
+
delete_option('wc_pwb_admin_tab_section_end');
|
12 |
+
|
13 |
+
//update permalinks and clean cache
|
14 |
+
flush_rewrite_rules();
|
15 |
+
wp_cache_flush();
|