PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.0.0
ShopBuilder – WooCommerce Builder For Elementor v1.0.0
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 / CheckoutPaymentSettings.php

CheckoutPaymentSettings.php in ShopBuilder – WooCommerce Builder For Elementor 1.0.0, at app/Elementor/Widgets/Controls/CheckoutPaymentSettings.php

128 lines 3.9 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\Widgets\Controls\ButtonSettings;
12
13
14 // Do not allow directly accessing this file.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit( 'This script cannot be accessed directly.' );
17 }
18
19 /**
20 * Product Description class
21 */
22 class CheckoutPaymentSettings {
23 /**
24 * Widget Control Selectors
25 *
26 * @var array
27 */
28 private static $selector = [];
29 /**
30 * Widget Field
31 *
32 * @return array
33 */
34 public static function widget_fields( $widget ) {
35 self::$selector = $widget->selectors;
36 return self::general_settings() + ButtonSettings::style_settings( $widget );
37 }
38
39 /**
40 * Widget Field
41 *
42 * @return array
43 */
44 public static function general_settings(){
45 return [
46 'payment_method_start' => [
47 'mode' => 'section_start',
48 'label' => esc_html__( 'Payment Method', 'shopbuilder' ),
49 'tab' => 'style',
50 ],
51 'payment_label_typography' => [
52 'mode' => 'group',
53 'type' => 'typography',
54 'label' => esc_html__( 'Label Typography', 'shopbuilder' ),
55 'selector' => self::$selector['payment_label_typography'],
56 ],
57 'payment_description_typography' => [
58 'mode' => 'group',
59 'type' => 'typography',
60 'separator' => 'before',
61 'label' => esc_html__( 'Description Typography', 'shopbuilder' ),
62 'selector' => self::$selector['payment_description_typography'],
63 ],
64
65 'payment_tabs_start' => [
66 'mode' => 'tabs_start',
67 ],
68 'payment_normal' => [
69 'mode' => 'tab_start',
70 'label' => esc_html__('Normal', 'shopbuilder'),
71 ],
72 'payment_label_color' => [
73 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
74 'type' => 'color',
75 'separator' => 'default',
76 'selectors' => [
77 self::$selector['payment_label_color'] => 'color: {{VALUE}};',
78 ],
79 ],
80 'payment_link_color' => [
81 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
82 'type' => 'color',
83 'selectors' => [
84 self::$selector['payment_link_color'] => 'color: {{VALUE}};',
85 ],
86 ],
87 'payment_normal_end' => [
88 'mode' => 'tab_end',
89 ],
90 'payment_hover' => [
91 'mode' => 'tab_start',
92 'label' => esc_html__('Hover', 'shopbuilder'),
93 ],
94 'payment_label_hover_color' => [
95 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
96 'type' => 'color',
97 'separator' => 'default',
98 'selectors' => [
99 self::$selector['payment_label_hover_color'] => 'color: {{VALUE}};',
100 ],
101 ],
102 'payment_link_hover_color' => [
103 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
104 'type' => 'color',
105 'selectors' => [
106 self::$selector['payment_link_hover_color'] => 'color: {{VALUE}};',
107 ],
108 ],
109 'payment_hover_end' => [
110 'mode' => 'tab_end',
111 ],
112 'payment_tabs_end' => [
113 'mode' => 'tabs_end',
114 ],
115
116
117 'paymeny_method_end' => [
118 'mode' => 'section_end',
119 ],
120 ];
121 }
122
123
124
125 }
126
127
128