PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.4.2
ShopBuilder – WooCommerce Builder For Elementor v3.4.2
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 / ProductTaxSettings.php

ProductTaxSettings.php in ShopBuilder – WooCommerce Builder For Elementor 3.4.2, at app/Elementor/Widgets/Controls/ProductTaxSettings.php

121 lines 3.3 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\Elementor\Helper\ControlHelper;
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 ProductTaxSettings {
22 /**
23 * Widget Field
24 *
25 * @param object $widget Widget.
26 *
27 * @return array
28 */
29 public static function widget_fields( $widget ) {
30 $alignment = ControlHelper::alignment();
31 unset( $alignment['justify'] );
32 $fields = [
33 'meta_content' => [
34 'mode' => 'section_start',
35 'label' => esc_html__( 'Styles', 'shopbuilder' ),
36 'tab' => 'content',
37 ],
38 'show_label' => [
39 'label' => esc_html__( 'Label', 'shopbuilder' ),
40 'type' => 'switch',
41 'label_on' => esc_html__( 'Show', 'shopbuilder' ),
42 'label_off' => esc_html__( 'Hide', 'shopbuilder' ),
43 'default' => 'yes',
44 'return_value' => 'yes',
45 'separator' => 'default',
46 ],
47 'align' => [
48 'mode' => 'responsive',
49 'label' => esc_html__( 'Alignment', 'shopbuilder' ),
50 'type' => 'choose',
51 'options' => $alignment,
52 'selectors' => [
53 $widget->selectors['align'] => 'text-align: {{VALUE}};',
54 ],
55 ],
56 'meta_label_heading' => [
57 'type' => 'html',
58 'raw' => sprintf(
59 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
60 esc_html__( 'Label', 'shopbuilder' )
61 ),
62 'content_classes' => 'elementor-panel-heading-title',
63 'separator' => 'before',
64 'condition' => [
65 'show_label' => 'yes',
66 ],
67 ],
68 'label_typo' => [
69 'mode' => 'group',
70 'type' => 'typography',
71 'selector' => $widget->selectors['label_typo'],
72 'condition' => [
73 'show_label' => 'yes',
74 ],
75 ],
76 'meta_label_color' => [
77 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
78 'type' => 'color',
79 'condition' => [
80 'show_label' => 'yes',
81 ],
82 'selectors' => [
83 $widget->selectors['meta_label_color'] => 'color: {{VALUE}};',
84 ],
85 ],
86 'shopbuilder_meta_value_heading' => [
87 'type' => 'html',
88 'raw' => sprintf(
89 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
90 esc_html__( 'Value', 'shopbuilder' )
91 ),
92 'content_classes' => 'elementor-panel-heading-title',
93 'separator' => 'before',
94 ],
95 'value_typo' => [
96 'mode' => 'group',
97 'type' => 'typography',
98 'selector' => $widget->selectors['value_typo'],
99 ],
100 'meta_value_color' => [
101 'label' => esc_html__( 'Color', 'shopbuilder' ),
102 'type' => 'color',
103 'selectors' => [
104 $widget->selectors['meta_value_color'] => 'color: {{VALUE}};',
105 ],
106 ],
107 'meta_value_hover_color' => [
108 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
109 'type' => 'color',
110 'selectors' => [
111 $widget->selectors['meta_value_hover_color'] => 'color: {{VALUE}};',
112 ],
113 ],
114 'sec_general_end' => [
115 'mode' => 'section_end',
116 ],
117 ];
118 return $fields;
119 }
120 }
121