PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.0.0
ShopBuilder – WooCommerce Builder For Elementor v1.0.0
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 / OrderReviewSettings.php

OrderReviewSettings.php in ShopBuilder – WooCommerce Builder For Elementor 1.0.0, at app/Elementor/Widgets/Controls/OrderReviewSettings.php

199 lines 7.1 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 use Elementor\Controls_Manager;
11 use RadiusTheme\SB\Helpers\Fns;
12
13 // Do not allow directly accessing this file.
14 if (!defined('ABSPATH')) {
15 exit('This script cannot be accessed directly.');
16 }
17
18 /**
19 * Product Description class
20 */
21 class OrderReviewSettings
22 {
23 /**
24 * Widget Control Selectors
25 *
26 * @var object
27 */
28 private static $widget = [];
29 /**
30 * Widget Control Selectors
31 *
32 * @var array
33 */
34 private static $selectors = [];
35
36 /**
37 * Controls Settings
38 *
39 * @param object $widget widget object.
40 * @return array
41 */
42 public static function widget_fields($widget)
43 {
44 self::$widget = $widget;
45 self::$selectors = self::$widget->selectors;
46 return self::general_settings() + TitleSettings::title_settings( self::$widget ) + self::review_tables();
47 }
48
49 /**
50 * Widget Field
51 *
52 * @return array
53 */
54 public static function general_settings()
55 {
56 // The function will Overwrite.
57 return TitleSettings::general_settings();
58 }
59
60 /**
61 * Widget Field
62 *
63 * @return array
64 */
65 public static function review_tables(): array
66 {
67 // The function will Overwrite.
68 return [
69 'review_table_start' => [
70 'mode' => 'section_start',
71 'tab' => 'style',
72 'label' => esc_html__( 'Review Table', 'shopbuilder' ),
73 ],
74 'table_border' => [
75 'mode' => 'group',
76 'type' => 'border',
77 'selector' => self::$selectors['table_border'],
78 'size_units' => [ 'px' ],
79 'separator' => 'default',
80
81 ],
82
83 'table_label' => [
84 'type' => 'html',
85 'raw' => sprintf(
86 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
87 esc_html__( 'Label', 'shopbuilder' )
88 ),
89 'content_classes' => 'elementor-panel-heading-title',
90 'separator' => 'default',
91 ],
92 'label_typo' => [
93 'mode' => 'group',
94 'type' => 'typography',
95 'label' => esc_html__( 'Label Typography', 'shopbuilder' ),
96 'selector' => self::$selectors['label_typo'],
97 ],
98 'label_color' => [
99 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
100 'type' => 'color',
101 'selectors' => [
102 self::$selectors['label_color'] => 'color: {{VALUE}} !important;',
103 ],
104 ],
105
106 'label_item_padding' => [
107 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
108 'type' => 'dimensions',
109 'size_units' => [ 'px' ],
110 'selectors' => [
111 self::$selectors['label_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
112 ],
113 ],
114
115 'label_bg_color' => [
116 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
117 'type' => 'color',
118 'alpha' => true,
119 'selectors' => [
120 self::$selectors['label_bg_color'] => 'background-color: {{VALUE}};',
121 ],
122 ],
123 'table_body' => [
124 'type' => 'html',
125 'raw' => sprintf(
126 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
127 esc_html__( 'Table Body', 'shopbuilder' )
128 ),
129 'content_classes' => 'elementor-panel-heading-title',
130 'separator' => 'default',
131 ],
132 'body_text_typo' => [
133 'mode' => 'group',
134 'type' => 'typography',
135 'label' => esc_html__( 'Label Typography', 'shopbuilder' ),
136 'selector' => self::$selectors['body_text_typo'],
137 ],
138 'table_text_color' => [
139 'label' => esc_html__( 'Body Text Color', 'shopbuilder' ),
140 'type' => 'color',
141 'selectors' => [
142 self::$selectors['body_text_color'] => 'color: {{VALUE}} !important;',
143 ],
144 ],
145 'body_item_padding' => [
146 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
147 'type' => 'dimensions',
148 'size_units' => [ 'px' ],
149 'selectors' => [
150 self::$selectors['body_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
151 ],
152 ],
153 'table_footer' => [
154 'type' => 'html',
155 'raw' => sprintf(
156 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
157 esc_html__( 'Table Footer', 'shopbuilder' )
158 ),
159 'content_classes' => 'elementor-panel-heading-title',
160 'separator' => 'default',
161 ],
162 'table_footer_label_typo' => [
163 'mode' => 'group',
164 'type' => 'typography',
165 'label' => esc_html__( 'Label Typography', 'shopbuilder' ),
166 'selector' => self::$selectors['table_footer_label_typo'],
167 ],
168 'table_footer_label_color' => [
169 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
170 'type' => 'color',
171 'selectors' => [
172 self::$selectors['table_footer_label_color'] => 'color: {{VALUE}} !important;',
173 ],
174 ],
175
176 'table_footer_text_color' => [
177 'label' => esc_html__( 'Text Color', 'shopbuilder' ),
178 'type' => 'color',
179 'selectors' => [
180 self::$selectors['table_footer_text_color'] => 'color: {{VALUE}} !important;',
181 ],
182 ],
183 'table_footer_item_padding' => [
184 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
185 'type' => 'dimensions',
186 'size_units' => [ 'px' ],
187 'selectors' => [
188 self::$selectors['table_footer_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
189 ],
190 ],
191 'review_table_end' => [
192 'mode' => 'section_end',
193 ],
194 ];
195
196 }
197
198 }
199