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
← All changes | app/Elementor/Widgets/Controls/AddInfoSettings.php +121 -121 2.1.111.1.4 View file →
@@ -1,121 +1,121 @@
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 AddInfoSettings {
22 - /**
23 - * Widget Field
24 - *
25 - * @return array
26 - */
27 - public static function widget_fields( $widget ) {
28 - $alignment = ControlHelper::alignment();
29 - unset( $alignment['justify'] );
30 - $fields = [
31 - 'general_section' => [
32 - 'mode' => 'section_start',
33 - 'label' => esc_html__( 'General Section', 'shopbuilder' ),
34 - 'tab' => 'content',
35 - ],
36 - 'show_title' => [
37 - 'label' => esc_html__( 'Show Title?', 'shopbuilder' ),
38 - 'type' => 'switch',
39 - 'description' => esc_html__( 'Switch on to show Title.', 'shopbuilder' ),
40 - 'default' => 'yes',
41 - 'separator' => 'default',
42 - ],
43 - 'general_section_end' => [
44 - 'mode' => 'section_end',
45 - ],
46 - 'style_section' => [
47 - 'mode' => 'section_start',
48 - 'label' => esc_html__( 'Heading Style', 'shopbuilder' ),
49 - 'tab' => 'style',
50 - 'condition' => [
51 - 'show_title' => 'yes',
52 - ],
53 - ],
54 - 'heading_typography' => [
55 - 'mode' => 'group',
56 - 'type' => 'typography',
57 - 'label' => esc_html__( 'Typography', 'shopbuilder' ),
58 - 'selector' => $widget->selectors['heading_typography'],
59 - ],
60 - 'heading_color' => [
61 - 'label' => esc_html__( 'Color', 'shopbuilder' ),
62 - 'type' => 'color',
63 - 'selectors' => [
64 - $widget->selectors['heading_color'] => 'color: {{VALUE}}',
65 - ],
66 - ],
67 - 'heading_margin' => [
68 - 'mode' => 'responsive',
69 - 'label' => esc_html__( 'Margin', 'shopbuilder' ),
70 - 'type' => 'dimensions',
71 - 'size_units' => [ 'px', '%', 'em' ],
72 - 'selectors' => [
73 - $widget->selectors['heading_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
74 - ],
75 - ],
76 - 'style_section_end' => [
77 - 'mode' => 'section_end',
78 - ],
79 - 'content_section' => [
80 - 'mode' => 'section_start',
81 - 'label' => esc_html__( 'Content', 'shopbuilder' ),
82 - 'tab' => 'style',
83 - ],
84 - 'content_typography' => [
85 - 'mode' => 'group',
86 - 'type' => 'typography',
87 - 'label' => esc_html__( 'Typography', 'shopbuilder' ),
88 - 'selector' => $widget->selectors['content_typography'],
89 - ],
90 - 'content_color' => [
91 - 'label' => esc_html__( 'Color', 'shopbuilder' ),
92 - 'type' => 'color',
93 - 'selectors' => [
94 - $widget->selectors['content_color'] => 'color: {{VALUE}}',
95 - ],
96 - ],
97 - 'content_border' => [
98 - 'mode' => 'group',
99 - 'type' => 'border',
100 - 'selector' => $widget->selectors['content_border'],
101 - 'size_units' => [ 'px' ],
102 - ],
103 - 'content_padding' => [
104 - 'mode' => 'responsive',
105 - 'label' => esc_html__( 'Padding', 'shopbuilder' ),
106 - 'type' => 'dimensions',
107 - 'size_units' => [ 'px', '%', 'em' ],
108 - 'selectors' => [
109 - $widget->selectors['content_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
110 - ],
111 - ],
112 - 'content_section_end' => [
113 - 'mode' => 'section_end',
114 - ],
115 - ];
116 -
117 - return $fields;
118 - }
119 -
120 -
121 -}
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 AddInfoSettings {
22 + /**
23 + * Widget Field
24 + *
25 + * @return array
26 + */
27 + public static function widget_fields( $widget ) {
28 + $alignment = ControlHelper::alignment();
29 + unset( $alignment['justify'] );
30 + $fields = [
31 + 'general_section' => [
32 + 'mode' => 'section_start',
33 + 'label' => esc_html__( 'General Section', 'shopbuilder' ),
34 + 'tab' => 'content',
35 + ],
36 + 'show_title' => [
37 + 'label' => esc_html__( 'Show Title?', 'shopbuilder' ),
38 + 'type' => 'switch',
39 + 'description' => esc_html__( 'Switch on to show Title.', 'shopbuilder' ),
40 + 'default' => 'yes',
41 + 'separator' => 'default',
42 + ],
43 + 'general_section_end' => [
44 + 'mode' => 'section_end',
45 + ],
46 + 'style_section' => [
47 + 'mode' => 'section_start',
48 + 'label' => esc_html__( 'Heading Style', 'shopbuilder' ),
49 + 'tab' => 'style',
50 + 'condition' => [
51 + 'show_title' => 'yes',
52 + ],
53 + ],
54 + 'heading_typography' => [
55 + 'mode' => 'group',
56 + 'type' => 'typography',
57 + 'label' => esc_html__( 'Typography', 'shopbuilder' ),
58 + 'selector' => $widget->selectors['heading_typography'],
59 + ],
60 + 'heading_color' => [
61 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
62 + 'type' => 'color',
63 + 'selectors' => [
64 + $widget->selectors['heading_color'] => 'color: {{VALUE}}',
65 + ],
66 + ],
67 + 'heading_margin' => [
68 + 'mode' => 'responsive',
69 + 'label' => esc_html__( 'Margin', 'shopbuilder' ),
70 + 'type' => 'dimensions',
71 + 'size_units' => [ 'px', '%', 'em' ],
72 + 'selectors' => [
73 + $widget->selectors['heading_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
74 + ],
75 + ],
76 + 'style_section_end' => [
77 + 'mode' => 'section_end',
78 + ],
79 + 'content_section' => [
80 + 'mode' => 'section_start',
81 + 'label' => esc_html__( 'Content', 'shopbuilder' ),
82 + 'tab' => 'style',
83 + ],
84 + 'content_typography' => [
85 + 'mode' => 'group',
86 + 'type' => 'typography',
87 + 'label' => esc_html__( 'Typography', 'shopbuilder' ),
88 + 'selector' => $widget->selectors['content_typography'],
89 + ],
90 + 'content_color' => [
91 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
92 + 'type' => 'color',
93 + 'selectors' => [
94 + $widget->selectors['content_color'] => 'color: {{VALUE}}',
95 + ],
96 + ],
97 + 'content_border' => [
98 + 'mode' => 'group',
99 + 'type' => 'border',
100 + 'selector' => $widget->selectors['content_border'],
101 + 'size_units' => [ 'px' ],
102 + ],
103 + 'content_padding' => [
104 + 'mode' => 'responsive',
105 + 'label' => esc_html__( 'Padding', 'shopbuilder' ),
106 + 'type' => 'dimensions',
107 + 'size_units' => [ 'px', '%', 'em' ],
108 + 'selectors' => [
109 + $widget->selectors['content_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
110 + ],
111 + ],
112 + 'content_section_end' => [
113 + 'mode' => 'section_end',
114 + ],
115 + ];
116 +
117 + return $fields;
118 + }
119 +
120 +
121 +}