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/AddInfoSettings.php +6 -40 3.4.23.2.6 View file →
@@ -21,10 +21,8 @@
21 21 class AddInfoSettings {
22 22 /**
23 23 * Widget Field
24 24 *
25 - * @param object $widget Widget instance.
26 - *
27 25 * @return array
28 26 */
29 27 public static function widget_fields( $widget ) {
30 28 $alignment = ControlHelper::alignment();
@@ -70,16 +68,8 @@
70 68 'mode' => 'responsive',
71 69 'label' => esc_html__( 'Margin', 'shopbuilder' ),
72 70 'type' => 'dimensions',
73 71 'size_units' => [ 'px', '%', 'em' ],
74 - 'default' => [
75 - 'top' => '0',
76 - 'right' => '0',
77 - 'bottom' => '20',
78 - 'left' => '0',
79 - 'unit' => 'px',
80 - 'isLinked' => false,
81 - ],
82 72 'selectors' => [
83 73 $widget->selectors['heading_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
84 74 ],
85 75 ],
@@ -104,30 +94,12 @@
104 94 $widget->selectors['content_color'] => 'color: {{VALUE}}',
105 95 ],
106 96 ],
107 97 'content_border' => [
108 - 'mode' => 'group',
109 - 'type' => 'border',
110 - 'selector' => $widget->selectors['content_border'],
111 - 'size_units' => [ 'px' ],
112 - 'fields_options' => [
113 - 'border' => [
114 - 'default' => 'solid',
115 - ],
116 - 'width' => [
117 - 'default' => [
118 - 'top' => '1',
119 - 'right' => '1',
120 - 'bottom' => '1',
121 - 'left' => '1',
122 - 'unit' => 'px',
123 - 'isLinked' => true,
124 - ],
125 - ],
126 - 'color' => [
127 - 'default' => '#e5e7eb',
128 - ],
129 - ],
98 + 'mode' => 'group',
99 + 'type' => 'border',
100 + 'selector' => $widget->selectors['content_border'],
101 + 'size_units' => [ 'px' ],
130 102 ],
131 103 'content_padding' => [
132 104 'mode' => 'responsive',
133 105 'label' => esc_html__( 'Padding', 'shopbuilder' ),
@@ -132,16 +104,8 @@
132 104 'mode' => 'responsive',
133 105 'label' => esc_html__( 'Padding', 'shopbuilder' ),
134 106 'type' => 'dimensions',
135 107 'size_units' => [ 'px', '%', 'em' ],
136 - 'default' => [
137 - 'top' => '12',
138 - 'right' => '18',
139 - 'bottom' => '12',
140 - 'left' => '18',
141 - 'unit' => 'px',
142 - 'isLinked' => false,
143 - ],
144 108 'selectors' => [
145 109 $widget->selectors['content_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
146 110 ],
147 111 ],
@@ -151,5 +115,7 @@
151 115 ];
152 116
153 117 return $fields;
154 118 }
119 +
120 +
155 121 }