← All changes
|
app/Elementor/Widgets/Controls/CheckoutFromSettings.php
+39
-1
2.2.2
→
3.2.6
View file →
| @@ -112,8 +112,33 @@ | ||
| 112 | 112 | 'mode' => 'section_start', |
| 113 | 113 | 'tab' => 'style', |
| 114 | 114 | 'label' => esc_html__( 'Form Fields', 'shopbuilder' ), |
| 115 | 115 | ], |
| 116 | + 'primary_color' => [ | |
| 117 | + 'type' => 'html', | |
| 118 | + 'raw' => sprintf( | |
| 119 | + '<h3 class="rtsb-elementor-group-heading">%s</h3>', | |
| 120 | + esc_html__( 'Primary Settings', 'shopbuilder' ) | |
| 121 | + ), | |
| 122 | + 'content_classes' => 'elementor-panel-heading-title', | |
| 123 | + ], | |
| 124 | + 'fields_primary_color' => [ | |
| 125 | + 'label' => esc_html__( 'Fields Primary Color', 'shopbuilder' ), | |
| 126 | + 'type' => 'color', | |
| 127 | + 'selectors' => [ | |
| 128 | + '{{WRAPPER}} .rtsb-input-field, {{WRAPPER}} #ship-to-different-address' => '--rtsb-fields-primary-color: {{VALUE}}', | |
| 129 | + ], | |
| 130 | + ], | |
| 131 | + | |
| 132 | + 'from_fields_settings' => [ | |
| 133 | + 'type' => 'html', | |
| 134 | + 'raw' => sprintf( | |
| 135 | + '<h3 class="rtsb-elementor-group-heading">%s</h3>', | |
| 136 | + esc_html__( 'From Fields Settings', 'shopbuilder' ) | |
| 137 | + ), | |
| 138 | + 'content_classes' => 'elementor-panel-heading-title', | |
| 139 | + ], | |
| 140 | + | |
| 116 | 141 | 'fields_height' => [ |
| 117 | 142 | 'label' => esc_html__( 'Fields Height', 'shopbuilder' ), |
| 118 | 143 | 'type' => 'slider', |
| 119 | 144 | 'separator' => 'default', |
| @@ -126,9 +151,22 @@ | ||
| 126 | 151 | 'selectors' => [ |
| 127 | 152 | self::$selectors['fields_height'] => 'height: {{SIZE}}{{UNIT}};', |
| 128 | 153 | ], |
| 129 | 154 | ], |
| 130 | - | |
| 155 | + 'textarea_fields_height' => [ | |
| 156 | + 'label' => esc_html__( 'Textarea Fields Height', 'shopbuilder' ), | |
| 157 | + 'type' => 'slider', | |
| 158 | + 'separator' => 'default', | |
| 159 | + 'range' => [ | |
| 160 | + 'px' => [ | |
| 161 | + 'min' => 10, | |
| 162 | + 'max' => 200, | |
| 163 | + ], | |
| 164 | + ], | |
| 165 | + 'selectors' => [ | |
| 166 | + self::$selectors['textarea_fields_height'] => 'height: {{SIZE}}{{UNIT}};', | |
| 167 | + ], | |
| 168 | + ], | |
| 131 | 169 | 'fields_width_100' => [ |
| 132 | 170 | 'label' => esc_html__( 'Full Width Fields?', 'shopbuilder' ), |
| 133 | 171 | 'type' => 'switch', |
| 134 | 172 | 'description' => esc_html__( 'Switch on to set all fields to a 100% width..', 'shopbuilder' ), |