PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.15
ShopBuilder – WooCommerce Builder For Elementor v2.1.15
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 / InfoboxSettings.php

InfoboxSettings.php in ShopBuilder – WooCommerce Builder For Elementor 2.1.15, at app/Elementor/Widgets/Controls/InfoboxSettings.php

170 lines 4.8 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 // Do not allow directly accessing this file.
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit( 'This script cannot be accessed directly.' );
13 }
14
15 /**
16 * Product Description class
17 */
18 class InfoboxSettings {
19
20 /**
21 * Widget Field
22 *
23 * @return array
24 */
25 public static function style_settings( $widget ) {
26 $fields = [
27 'infobox_style' => [
28 'mode' => 'section_start',
29 'tab' => 'style',
30 'label' => esc_html__( 'Infobox style', 'shopbuilder' ),
31 ],
32 'notice_infobox' => [
33 'type' => 'html',
34 'raw' => sprintf(
35 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
36 esc_html__( 'Infobox', 'shopbuilder' )
37 ),
38 'content_classes' => 'elementor-panel-heading-title',
39 ],
40
41 'infobox_typography' => [
42 'mode' => 'group',
43 'type' => 'typography',
44 'label' => esc_html__( 'Typography', 'shopbuilder' ),
45 'selector' => $widget->selectors['infobox_typography'],
46 ],
47 'infobox_bg_color' => [
48 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
49 'type' => 'color',
50
51 'selectors' => [
52 $widget->selectors['infobox_bg_color'] => 'background-color: {{VALUE}};',
53 ],
54 ],
55 'infobox_text_color' => [
56 'label' => esc_html__( 'Color', 'shopbuilder' ),
57 'type' => 'color',
58
59 'selectors' => [
60 $widget->selectors['infobox_text_color'] => 'color: {{VALUE}};',
61 ],
62 ],
63 'infobox_text_link_color' => [
64 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
65 'type' => 'color',
66
67 'selectors' => [
68 $widget->selectors['infobox_text_link_color'] => 'color: {{VALUE}};',
69 ],
70 ],
71 'infobox_border_color' => [
72 'label' => esc_html__( 'Infobox Border', 'shopbuilder' ),
73 'mode' => 'group',
74 'type' => 'border',
75 'fields_options' => [
76 'border' => [
77 'label' => esc_html__( 'Infobox Border', 'shopbuilder' ),
78 ],
79 'color' => [
80 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
81 ],
82 ],
83 'selector' => $widget->selectors['infobox_border_color'],
84 ],
85
86 'infobox_border_radius' => [
87 'label' => esc_html__( 'Border Radius (px)', 'shopbuilder' ),
88 'type' => 'dimensions',
89 'mode' => 'responsive',
90 'size_units' => [ 'px' ],
91 'selectors' => [
92 $widget->selectors['infobox_border_radius'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
93 ],
94 ],
95 'infobox_padding' => [
96 'label' => esc_html__( 'Padding (px)', 'shopbuilder' ),
97 'type' => 'dimensions',
98 'mode' => 'responsive',
99 'size_units' => [ 'px' ],
100 'selectors' => [
101 $widget->selectors['infobox_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
102 ],
103 'separator' => 'before',
104 ],
105 'infobox_wrapper_border' => [
106 'label' => esc_html__( 'Infobox Wrapper Border', 'shopbuilder' ),
107 'mode' => 'group',
108 'type' => 'border',
109 'fields_options' => [
110 'border' => [
111 'label' => esc_html__( 'Infobox Wrapper Border', 'shopbuilder' ),
112 ],
113 'color' => [
114 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
115 ],
116 ],
117 'selector' => $widget->selectors['infobox_wrapper_border'],
118 ],
119
120 'notice_icon_box' => [
121 'type' => 'html',
122 'raw' => sprintf(
123 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
124 esc_html__( 'Icon Box', 'shopbuilder' )
125 ),
126 'content_classes' => 'elementor-panel-heading-title',
127 ],
128 'infobox_icon_size' => [
129 'label' => esc_html__( 'Icon Size', 'shopbuilder' ),
130 'type' => 'slider',
131 'range' => [
132 'px' => [
133 'min' => 10,
134 'max' => 100,
135 ],
136 ],
137 'selectors' => [
138 $widget->selectors['infobox_icon_size']['icon'] => 'font-size: {{SIZE}}{{UNIT}};',
139 $widget->selectors['infobox_icon_size']['svg'] => 'width: {{SIZE}}{{UNIT}};',
140 ],
141 ],
142 'infobox_icon_margin' => [
143 'label' => esc_html__( 'Icon Margin (px)', 'shopbuilder' ),
144 'type' => 'dimensions',
145 'mode' => 'responsive',
146 'size_units' => [ 'px' ],
147 'selectors' => [
148 $widget->selectors['infobox_icon_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
149 ],
150 ],
151 'infobox_icon_color' => [
152 'label' => esc_html__( 'Icon Color', 'shopbuilder' ),
153 'type' => 'color',
154 'selectors' => [
155 $widget->selectors['infobox_icon_color'] => 'color: {{VALUE}};',
156 ],
157 'condition' => [
158 'show_info_icon' => [ 'yes' ],
159 ],
160 ],
161
162 'infobox_style_end' => [
163 'mode' => 'section_end',
164 ],
165 ];
166
167 return $fields;
168 }
169 }
170