PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.4
ShopBuilder – WooCommerce Builder For Elementor v1.1.4
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.1.4, at app/Elementor/Widgets/Controls/OrderReviewSettings.php

198 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 'label_item_padding' => [
106 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
107 'type' => 'dimensions',
108 'size_units' => [ 'px' ],
109 'selectors' => [
110 self::$selectors['label_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
111 ],
112 ],
113
114 'label_bg_color' => [
115 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
116 'type' => 'color',
117 'alpha' => true,
118 'selectors' => [
119 self::$selectors['label_bg_color'] => 'background-color: {{VALUE}};',
120 ],
121 ],
122 'table_body' => [
123 'type' => 'html',
124 'raw' => sprintf(
125 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
126 esc_html__( 'Table Body', 'shopbuilder' )
127 ),
128 'content_classes' => 'elementor-panel-heading-title',
129 'separator' => 'default',
130 ],
131 'body_text_typo' => [
132 'mode' => 'group',
133 'type' => 'typography',
134 'label' => esc_html__( 'Typography', 'shopbuilder' ),
135 'selector' => self::$selectors['body_text_typo'],
136 ],
137 'table_text_color' => [
138 'label' => esc_html__( 'Body Text Color', 'shopbuilder' ),
139 'type' => 'color',
140 'selectors' => [
141 self::$selectors['body_text_color'] => 'color: {{VALUE}} !important;',
142 ],
143 ],
144 'body_item_padding' => [
145 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
146 'type' => 'dimensions',
147 'size_units' => [ 'px' ],
148 'selectors' => [
149 self::$selectors['body_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
150 ],
151 ],
152 'table_footer' => [
153 'type' => 'html',
154 'raw' => sprintf(
155 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
156 esc_html__( 'Table Footer', 'shopbuilder' )
157 ),
158 'content_classes' => 'elementor-panel-heading-title',
159 'separator' => 'default',
160 ],
161 'table_footer_label_typo' => [
162 'mode' => 'group',
163 'type' => 'typography',
164 'label' => esc_html__( 'Footer Typography', 'shopbuilder' ),
165 'selector' => self::$selectors['table_footer_label_typo'],
166 ],
167 'table_footer_label_color' => [
168 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
169 'type' => 'color',
170 'selectors' => [
171 self::$selectors['table_footer_label_color'] => 'color: {{VALUE}} !important;',
172 ],
173 ],
174
175 'table_footer_text_color' => [
176 'label' => esc_html__( 'Value Color', 'shopbuilder' ),
177 'type' => 'color',
178 'selectors' => [
179 self::$selectors['table_footer_text_color'] => 'color: {{VALUE}} !important;',
180 ],
181 ],
182 'table_footer_item_padding' => [
183 'label' => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
184 'type' => 'dimensions',
185 'size_units' => [ 'px' ],
186 'selectors' => [
187 self::$selectors['table_footer_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
188 ],
189 ],
190 'review_table_end' => [
191 'mode' => 'section_end',
192 ],
193 ];
194
195 }
196
197 }
198