| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | $showTotalPrice = filter_var(Arr::get($atts, 'show_total_price', true), FILTER_VALIDATE_BOOLEAN); |
| 32 | 32 | $iconColor = Arr::get($atts, 'icon_color', ''); |
| 33 | 33 | $priceColor = Arr::get($atts, 'price_color', ''); |
| 34 | 34 | $productCountColor = Arr::get($atts, 'product_count_color', ''); |
| 35 | - $buttonClass = Arr::get($atts, 'button_class', ''); | |
| 35 | + $buttonClass = (string) Arr::get($atts, 'button_class', ''); | |
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | // Build style attribute |
| 39 | 39 | $iconStyle = $iconColor ? 'style="color: ' . esc_attr($iconColor) . ';"' : ''; |
| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | ?> |
| 67 | 67 | <div <?php echo $wrapperAttributes; ?>> |
| 68 | - <button class="fct-mini-cart-button <?php echo $buttonClass ?>" data-fluent-cart-cart-expand-button | |
| 68 | + <button class="fct-mini-cart-button <?php echo esc_attr($buttonClass); ?>" data-fluent-cart-cart-expand-button | |
| 69 | 69 | aria-label="<?php esc_attr_e('Open Shopping Cart', 'fluent-cart'); ?>"> |
| 70 | 70 | <span class="fct-mini-cart-wrap" <?php echo $iconStyle; ?>> |
| 71 | 71 | <?php $this->renderCartIcon($cartIcon); ?> |
| 72 | 72 | |