← All changes
|
includes/elementor/modules/checkout/widgets/settings-controls.php
+25
-11
1.2.3
→
2.7.0
View file →
| @@ -177,15 +177,16 @@ | ||
| 177 | 177 | |
| 178 | 178 | $this->add_control( |
| 179 | 179 | 'show_sticky_cart_details', |
| 180 | 180 | [ |
| 181 | - 'label' => esc_html__( 'Checkout Sticky Cart', 'sellkit' ), | |
| 182 | - 'type' => 'switcher', | |
| 183 | - 'label_on' => esc_html__( 'Show', 'sellkit' ), | |
| 184 | - 'label_off' => esc_html__( 'Hide', 'sellkit' ), | |
| 181 | + 'label' => esc_html__( 'Checkout Sticky Cart', 'sellkit' ), | |
| 182 | + 'type' => 'switcher', | |
| 183 | + 'frontend_available' => true, | |
| 184 | + 'label_on' => esc_html__( 'Show', 'sellkit' ), | |
| 185 | + 'label_off' => esc_html__( 'Hide', 'sellkit' ), | |
| 185 | 186 | 'return_value' => 'yes', |
| 186 | - 'default' => 'yes', | |
| 187 | - 'condition' => [ | |
| 187 | + 'default' => 'yes', | |
| 188 | + 'condition' => [ | |
| 188 | 189 | 'layout-type' => 'multi-step', |
| 189 | 190 | ], |
| 190 | 191 | ] |
| 191 | 192 | ); |
| @@ -190,8 +191,21 @@ | ||
| 190 | 191 | ] |
| 191 | 192 | ); |
| 192 | 193 | |
| 193 | 194 | $this->add_control( |
| 195 | + 'sticky_cart_offset', | |
| 196 | + [ | |
| 197 | + 'label' => esc_html__( 'Offset', 'sellkit' ), | |
| 198 | + 'type' => 'number', | |
| 199 | + 'frontend_available' => true, | |
| 200 | + 'condition' => [ | |
| 201 | + 'layout-type' => 'multi-step', | |
| 202 | + 'show_sticky_cart_details' => 'yes', | |
| 203 | + ], | |
| 204 | + ] | |
| 205 | + ); | |
| 206 | + | |
| 207 | + $this->add_control( | |
| 194 | 208 | 'place_order_btn_txt', |
| 195 | 209 | [ |
| 196 | 210 | 'label' => esc_html__( 'Place Order Button Text', 'sellkit' ), |
| 197 | 211 | 'type' => 'text', |
| @@ -207,11 +221,11 @@ | ||
| 207 | 221 | ob_start(); |
| 208 | 222 | ?> |
| 209 | 223 | <div class="elementor-nerd-box"> |
| 210 | 224 | <span class="sellkit-checkout-promotion-rocket"></span> |
| 211 | - <div class="sellkit-checkout-autocomplete-promotion-title"><?php echo $texts['title']; ?></div> | |
| 225 | + <div class="sellkit-checkout-autocomplete-promotion-title"><?php echo esc_html( $texts['title'] ); ?></div> | |
| 212 | 226 | <?php foreach ( $texts['messages'] as $message ) { ?> |
| 213 | - <div class="sellkit-checkout-promotion-message"><?php echo $message; ?></div> | |
| 227 | + <div class="sellkit-checkout-promotion-message"><?php echo wp_kses_post( $message ); ?></div> | |
| 214 | 228 | <?php } |
| 215 | 229 | |
| 216 | 230 | // Show a `Go Pro` button only if the user doesn't have Pro. |
| 217 | 231 | if ( $texts['link'] ) { ?> |
| @@ -239,9 +253,9 @@ | ||
| 239 | 253 | sprintf( |
| 240 | 254 | /* translators: 1: bold tag 2: bold tag */ |
| 241 | 255 | esc_html__( 'You are using a free version of Sellkit. Upgrade to %1$s Sellkit Pro %2$s to use this feature.', 'sellkit' ), |
| 242 | 256 | '<b>', |
| 243 | - '</b>', | |
| 257 | + '</b>' | |
| 244 | 258 | ), |
| 245 | 259 | ]; |
| 246 | 260 | |
| 247 | 261 | $this->start_controls_section( |
| @@ -603,9 +617,9 @@ | ||
| 603 | 617 | 'shipping_list_required' => 'no', |
| 604 | 618 | 'shipping_list_clear' => 'no', |
| 605 | 619 | ], |
| 606 | 620 | ], |
| 607 | - 'title_field' => '{{{ shipping_list_field }}}', | |
| 621 | + 'title_field' => '{{{ shipping_list_placeholder }}}', | |
| 608 | 622 | ] |
| 609 | 623 | ); |
| 610 | 624 | |
| 611 | 625 | $this->end_controls_section(); |
| @@ -913,9 +927,9 @@ | ||
| 913 | 927 | 'billing_list_required' => 'no', |
| 914 | 928 | 'billing_list_clear' => 'no', |
| 915 | 929 | ], |
| 916 | 930 | ], |
| 917 | - 'title_field' => '{{{ billing_list_field }}}', | |
| 931 | + 'title_field' => '{{{ billing_list_placeholder }}}', | |
| 918 | 932 | ] |
| 919 | 933 | ); |
| 920 | 934 | |
| 921 | 935 | $this->end_controls_section(); |