PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Elementor/Widgets/Controls/AddToCartSettings.php +26 -10 2.1.133.2.6 View file →
@@ -34,8 +34,9 @@
34 34 private static $selectors = [];
35 35 /**
36 36 * Widget Field
37 37 *
38 + * @param object $widget object.
38 39 * @return array
39 40 */
40 41 public static function widget_fields( $widget ) {
41 42 self::$widget = $widget;
@@ -83,9 +84,10 @@
83 84 'condition' => [
84 85 'quantity_style!' => 'default',
85 86 ],
86 87 'selectors' => [
87 - self::$selectors['cart_icon_align'] => 'order: {{VALUE}};',
88 + self::$selectors['cart_icon_align']['icon'] => 'order: {{VALUE}};',
89 + self::$selectors['cart_icon_align']['svg'] => 'order: {{VALUE}};',
88 90 ],
89 91 ],
90 92 'cart_icon_gap' => [
91 93 'label' => esc_html__( 'Gap', 'shopbuilder' ),
@@ -125,9 +127,10 @@
125 127 'max' => 50,
126 128 ],
127 129 ],
128 130 'selectors' => [
129 - self::$selectors['cart_icon_size'] => 'font-size: {{SIZE}}{{UNIT}};',
131 + self::$selectors['cart_icon_size']['icon'] => 'font-size: {{SIZE}}{{UNIT}};',
132 + self::$selectors['cart_icon_size']['svg'] => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
130 133 ],
131 134 ],
132 135 ];
133 136 $fields = Fns::insert_controls( 'button_padding', $fields, $insert_array );
@@ -369,14 +372,19 @@
369 372 'min' => 10,
370 373 'max' => 200,
371 374 ],
372 375 ],
376 + 'default' => [
377 + 'unit' => 'px',
378 + 'size' => '30',
379 + ],
373 380 'selectors' => [
374 381 self::$selectors['variation_height'] => 'height: {{SIZE}}{{UNIT}};',
382 + ':root' => '--details-page-attr-height:{{SIZE}}{{UNIT}};',
375 383 ],
376 384 ],
377 385 'variation_width' => [
378 - 'label' => esc_html__( 'Width', 'shopbuilder' ),
386 + 'label' => esc_html__( 'Min Width', 'shopbuilder' ),
379 387 'size_units' => [ 'px', '%' ],
380 388 'type' => 'slider',
381 389 'range' => [
382 390 'px' => [
@@ -387,10 +395,15 @@
387 395 'min' => 0,
388 396 'max' => 100,
389 397 ],
390 398 ],
399 + 'default' => [
400 + 'unit' => 'px',
401 + 'size' => '30',
402 + ],
391 403 'selectors' => [
392 - self::$selectors['variation_width'] => 'width: {{SIZE}}{{UNIT}};',
404 + self::$selectors['variation_width'] => 'min-width: {{SIZE}}{{UNIT}};',
405 + ':root' => '--details-page-attr-width:{{SIZE}}{{UNIT}};',
393 406 ],
394 407 ],
395 408 'variation_border' => [
396 409 'mode' => 'group',
@@ -403,15 +416,17 @@
403 416 'size_units' => [ 'px', '%' ],
404 417 'type' => 'slider',
405 418 'selectors' => [
406 419 self::$selectors['variation_border_radius'] => 'border-radius: {{SIZE}}{{UNIT}};',
420 + ':root' => '--variation-attr-border-radius:{{SIZE}}{{UNIT}};',
407 421 ],
408 422 ],
409 423 'variation_padding' => [
410 - 'label' => esc_html__( 'Padding', 'shopbuilder' ),
411 - 'type' => 'dimensions',
412 - 'size_units' => [ 'px' ],
413 - 'default' => [
424 + 'label' => esc_html__( 'Padding ', 'shopbuilder' ),
425 + 'description' => esc_html__( 'Note: Only for Select And Button Field.', 'shopbuilder' ),
426 + 'type' => 'dimensions',
427 + 'size_units' => [ 'px' ],
428 + 'default' => [
414 429 'top' => '10',
415 430 'right' => '10',
416 431 'bottom' => '10',
417 432 'left' => '10',
@@ -417,11 +432,12 @@
417 432 'left' => '10',
418 433 'unit' => 'px',
419 434 'isLinked' => true,
420 435 ],
421 - 'separator' => 'default',
422 - 'selectors' => [
436 + 'separator' => 'default',
437 + 'selectors' => [
423 438 self::$selectors['variation_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
439 + ':root' => '--variation-padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
424 440 ],
425 441 ],
426 442 'variation_label_margin' => [
427 443 'label' => esc_html__( 'Label Margin', 'shopbuilder' ),