Skip to content

Commit 18dfeba

Browse files
committed
fixed parsing of class in img
1 parent 1a87da3 commit 18dfeba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/class-product-brand-shortcode.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function product_brand_list_shortcode($atts)
3636
$output = '';
3737

3838
if (!empty($brands)) {
39-
$output .= '<div class="fd-product-brand brand-gallery main-carousel">';
39+
$output .= '<div class="fd-product-brand brand-gallery main-carousel row">';
4040

4141
foreach ($brands as $brand) {
4242
$brand_id = $brand->term_id;
@@ -45,9 +45,9 @@ public function product_brand_list_shortcode($atts)
4545
$brand_image_id = get_term_meta($brand_id, 'product_brand_logo', true);
4646
$brand_image_url = wp_get_attachment_url($brand_image_id);
4747

48-
$output .= '<div class="brand-item carousel-cell">';
48+
$output .= '<div class="brand-item carousel-cell col">';
4949
$output .= '<a href="' . esc_url(add_query_arg('product_brand', $brand_slug, get_permalink(wc_get_page_id('shop')))) . '">';
50-
$output .= '<img '. $atts['image_class'] . 'src="' . $brand_image_url . '" alt="' . $brand_name . '" style="max-width: '. $atts['width'] .';" />';
50+
$output .= '<img class="'. $atts['image_class'] . '" src="' . $brand_image_url . '" alt="' . $brand_name . '" style="max-width: '. $atts['width'] .';" />';
5151
$output .= '</a>';
5252
$output .= '</div>';
5353
}

0 commit comments

Comments
 (0)