PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.3
ShopBuilder – WooCommerce Builder For Elementor v3.2.3
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
shopbuilder / app / Elementor / Widgets / Controls / ProductFlashSale.php

ProductFlashSale.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.3, at app/Elementor/Widgets/Controls/ProductFlashSale.php

113 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main ProductDescription class.
4 *
5 * @package RadiusTheme\SB
6 */
7
8 namespace RadiusTheme\SB\Elementor\Widgets\Controls;
9
10
11
12 // Do not allow directly accessing this file.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit( 'This script cannot be accessed directly.' );
15 }
16
17 /**
18 * Product Description class
19 */
20 class ProductFlashSale {
21 /**
22 * Widget Field
23 *
24 * @return array
25 */
26
27 /**
28 * Widget Field
29 *
30 * @return array
31 */
32 public static function flash_sale($widget) {
33 return [
34 'flash_sale_section_start' => [
35 'mode' => 'section_start',
36 'label' => esc_html__( 'Flash Sale', 'shopbuilder' ),
37 'tab' => 'style',
38 ],
39 'flash_sale_typography' => [
40 'mode' => 'group',
41 'type' => 'typography',
42 'label' => esc_html__( 'Typography', 'shopbuilder' ),
43 'selector' => $widget->selectors['flash_sale_typography'],
44 ],
45 'product_flash_sale_color' => [
46 'label' => esc_html__( 'Color', 'shopbuilder' ),
47 'type' => 'color',
48 'selectors' => [
49 $widget->selectors['product_flash_sale_color'] => 'color: {{VALUE}};',
50 ],
51 ],
52 'flash_sale_bg_color' => [
53 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
54 'type' => 'color',
55 'selectors' => [
56 $widget->selectors['flash_sale_bg_color'] => 'background-color: {{VALUE}};',
57 ],
58 ],
59 'flash_sale_badge_width' => [
60 'label' => esc_html__( 'Badge Width (px)', 'shopbuilder' ),
61 'type' => 'slider',
62 'size_units' => [ 'px' ],
63 'range' => [
64 'px' => [
65 'min' => 15,
66 'max' => 500,
67 'step' => 1,
68 ],
69 ],
70 'selectors' => [
71 $widget->selectors['flash_sale_badge_width'] => 'width: {{SIZE}}{{UNIT}};min-width: initial;',
72 ],
73 'separator' => 'before',
74 ],
75 'flash_sale_badge_height' => [
76 'label' => esc_html__( 'Badge Height (px)', 'shopbuilder' ),
77 'type' => 'slider',
78 'size_units' => [ 'px' ],
79 'range' => [
80 'px' => [
81 'min' => 15,
82 'max' => 200,
83 'step' => 1,
84 ],
85 ],
86 'selectors' => [
87 $widget->selectors['flash_sale_badge_height'] => 'height: {{SIZE}}{{UNIT}};min-height: initial;',
88 ],
89 ],
90 'flash_sale_badge_border_radius' => [
91 'label' => esc_html__( 'Badge Border Radius (px)', 'shopbuilder' ),
92 'type' => 'slider',
93 'size_units' => [ 'px' ],
94 'range' => [
95 'px' => [
96 'min' => 0,
97 'max' => 100,
98 'step' => 1,
99 ],
100 ],
101 'selectors' => [
102 $widget->selectors['flash_sale_badge_border_radius'] => 'border-radius: {{SIZE}}{{UNIT}};',
103 ],
104 ],
105
106 'flash_sale_section_end' => [
107 'mode' => 'section_end',
108 ],
109 ];
110 }
111
112 }
113