← All changes
|
includes/elementor/modules/checkout/widgets/settings-controls.php
+22
-8
1.6.8
→
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'] ) { ?> |