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/TitleSettings.php +116 -121 2.1.11 → 1.1.4 View file →
@@ -1,121 +1,116 @@
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 TitleSettings {
22 - /**
23 - * Widget Field
24 - *
25 - * @return array
26 - */
27 - public static function general_settings() {
28 - return [
29 - 'general_style' => [
30 - 'mode' => 'section_start',
31 - 'label' => esc_html__( 'Visibility', 'shopbuilder' ),
32 - ],
33 - 'show_title' => [
34 - 'label' => esc_html__( 'Show Title?', 'shopbuilder' ),
35 - 'type' => 'switch',
36 - 'description' => esc_html__( 'Switch on to show title.', 'shopbuilder' ),
37 - 'separator' => 'default',
38 - 'default' => 'yes',
39 - ],
40 - 'general_style_end' => [
41 - 'mode' => 'section_end',
42 - ],
43 - ];
44 - }
45 - /**
46 - * Widget Field
47 - *
48 - * @return array
49 - */
50 - public static function title_settings( $widget ) {
51 - return [
52 - 'title_style_start' => [
53 - 'mode' => 'section_start',
54 - 'tab' => 'style',
55 - 'label' => esc_html__( 'Title', 'shopbuilder' ),
56 - 'condition' => [
57 - 'show_title!' => '',
58 - ],
59 - ],
60 -
61 - 'title_typo' => [
62 - 'mode' => 'group',
63 - 'type' => 'typography',
64 - 'label' => esc_html__( 'Typography', 'shopbuilder' ),
65 - 'selector' => $widget->selectors['title_typo'],
66 - ],
67 - 'title_align' => [
68 - 'mode' => 'responsive',
69 - 'label' => esc_html__( 'Alignment', 'shopbuilder' ),
70 - 'type' => 'choose',
71 - 'options' => ControlHelper::alignment(),
72 - 'selectors' => [
73 - $widget->selectors['title_align'] => 'text-align: {{VALUE}};',
74 - ],
75 - ],
76 - 'title_color' => [
77 - 'label' => esc_html__( 'Title Color', 'shopbuilder' ),
78 - 'type' => 'color',
79 - 'selectors' => [
80 - $widget->selectors['title_color'] => 'color: {{VALUE}} !important;',
81 - ],
82 - ],
83 - 'title_text_stroke' => [
84 - 'mode' => 'group',
85 - 'type' => 'text-stroke',
86 - 'selector' => $widget->selectors['title_text_stroke'],
87 - ],
88 - 'title_text_shadow' => [
89 - 'mode' => 'group',
90 - 'type' => 'text-shadow',
91 - 'selector' => $widget->selectors['title_text_shadow'],
92 - ],
93 - 'title_border' => [
94 - 'mode' => 'group',
95 - 'type' => 'border',
96 - 'selector' => $widget->selectors['title_border'],
97 - 'size_units' => [ 'px' ],
98 - ],
99 - 'title_margin' => [
100 - 'label' => esc_html__( 'Margin (px)', 'shopbuilder' ),
101 - 'type' => 'dimensions',
102 - 'mode' => 'responsive',
103 - 'size_units' => [ 'px' ],
104 - 'selectors' => [
105 - $widget->selectors['title_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
106 - ],
107 - ],
108 - 'title_padding' => [
109 - 'label' => esc_html__( 'Padding (px)', 'shopbuilder' ),
110 - 'type' => 'dimensions',
111 - 'size_units' => [ 'px' ],
112 - 'selectors' => [
113 - $widget->selectors['title_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
114 - ],
115 - ],
116 - 'title_style_end' => [
117 - 'mode' => 'section_end',
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 TitleSettings {
22 + /**
23 + * Widget Field
24 + *
25 + * @return array
26 + */
27 + public static function general_settings() {
28 + return [
29 + 'general_style' => [
30 + 'mode' => 'section_start',
31 + 'label' => esc_html__( 'Visibility', 'shopbuilder' ),
32 + ],
33 + 'show_title' => [
34 + 'label' => esc_html__( 'Show Title?', 'shopbuilder' ),
35 + 'type' => 'switch',
36 + 'description' => esc_html__( 'Switch on to show title.', 'shopbuilder' ),
37 + 'separator' => 'default',
38 + 'default' => 'yes'
39 + ],
40 + 'general_style_end' => [
41 + 'mode' => 'section_end',
42 + ],
43 + ];
44 + }
45 + /**
46 + * Widget Field
47 + *
48 + * @return array
49 + */
50 + public static function title_settings( $widget ) {
51 + return [
52 + 'title_style_start' => [
53 + 'mode' => 'section_start',
54 + 'tab' => 'style',
55 + 'label' => esc_html__( 'Title', 'shopbuilder' ),
56 + 'condition' => [
57 + 'show_title!' => '',
58 + ],
59 + ],
60 +
61 + 'title_typo' => [
62 + 'mode' => 'group',
63 + 'type' => 'typography',
64 + 'label' => esc_html__( 'Typography', 'shopbuilder' ),
65 + 'selector' => $widget->selectors['title_typo'],
66 + ],
67 + 'title_align' => [
68 + 'mode' => 'responsive',
69 + 'label' => esc_html__( 'Alignment', 'shopbuilder' ),
70 + 'type' => 'choose',
71 + 'options' => ControlHelper::alignment(),
72 + 'selectors' => [
73 + $widget->selectors['title_align'] => 'text-align: {{VALUE}};',
74 + ],
75 + ],
76 + 'title_color' => [
77 + 'label' => esc_html__( 'Title Color', 'shopbuilder' ),
78 + 'type' => 'color',
79 + 'selectors' => [
80 + $widget->selectors['title_color'] => 'color: {{VALUE}} !important;',
81 + ],
82 + ],
83 + 'title_text_stroke' => [
84 + 'mode' => 'group',
85 + 'type' => 'text-stroke',
86 + 'selector' => $widget->selectors['title_text_stroke'],
87 + ],
88 + 'title_text_shadow' => [
89 + 'mode' => 'group',
90 + 'type' => 'text-shadow',
91 + 'selector' => $widget->selectors['title_text_shadow'],
92 + ],
93 + 'title_margin' => [
94 + 'label' => esc_html__( 'Margin (px)', 'shopbuilder' ),
95 + 'type' => 'dimensions',
96 + 'size_units' => [ 'px' ],
97 + 'selectors' => [
98 + $widget->selectors['title_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
99 + ],
100 + ],
101 + 'title_padding' => [
102 + 'label' => esc_html__( 'Padding (px)', 'shopbuilder' ),
103 + 'type' => 'dimensions',
104 + 'size_units' => [ 'px' ],
105 + 'selectors' => [
106 + $widget->selectors['title_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
107 + ],
108 + ],
109 + 'title_style_end' => [
110 + 'mode' => 'section_end',
111 + ],
112 + ];
113 +
114 + }
115 +
116 +}