| 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 CheckoutPaymentSettings { |
| 19 |
|
| 20 |
/** |
| 21 |
* Widget Field |
| 22 |
* |
| 23 |
* @return array |
| 24 |
*/ |
| 25 |
public static function widget_fields( $widget ) { |
| 26 |
return self::general_settings( $widget ) + ButtonSettings::style_settings( $widget ); |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* Widget Field |
| 31 |
* |
| 32 |
* @return array |
| 33 |
*/ |
| 34 |
public static function general_settings( $widget ){ |
| 35 |
$selector = $widget->selectors; |
| 36 |
return [ |
| 37 |
'payment_method_start' => [ |
| 38 |
'mode' => 'section_start', |
| 39 |
'label' => esc_html__( 'Payment Method', 'shopbuilder' ), |
| 40 |
'tab' => 'style', |
| 41 |
], |
| 42 |
'payment_label_typography' => [ |
| 43 |
'mode' => 'group', |
| 44 |
'type' => 'typography', |
| 45 |
'label' => esc_html__( 'Label Typography', 'shopbuilder' ), |
| 46 |
'selector' => $selector['payment_label_typography'], |
| 47 |
], |
| 48 |
'payment_description_typography' => [ |
| 49 |
'mode' => 'group', |
| 50 |
'type' => 'typography', |
| 51 |
'separator' => 'before', |
| 52 |
'label' => esc_html__( 'Description Typography', 'shopbuilder' ), |
| 53 |
'selector' => $selector['payment_description_typography'], |
| 54 |
], |
| 55 |
|
| 56 |
'payment_tabs_start' => [ |
| 57 |
'mode' => 'tabs_start', |
| 58 |
], |
| 59 |
'payment_normal' => [ |
| 60 |
'mode' => 'tab_start', |
| 61 |
'label' => esc_html__('Normal', 'shopbuilder'), |
| 62 |
], |
| 63 |
'payment_label_color' => [ |
| 64 |
'label' => esc_html__( 'Label Color', 'shopbuilder' ), |
| 65 |
'type' => 'color', |
| 66 |
'separator' => 'default', |
| 67 |
'selectors' => [ |
| 68 |
$selector['payment_label_color'] => 'color: {{VALUE}};', |
| 69 |
], |
| 70 |
], |
| 71 |
'payment_link_color' => [ |
| 72 |
'label' => esc_html__( 'Link Color', 'shopbuilder' ), |
| 73 |
'type' => 'color', |
| 74 |
'selectors' => [ |
| 75 |
$selector['payment_link_color'] => 'color: {{VALUE}};', |
| 76 |
], |
| 77 |
], |
| 78 |
'payment_normal_end' => [ |
| 79 |
'mode' => 'tab_end', |
| 80 |
], |
| 81 |
'payment_hover' => [ |
| 82 |
'mode' => 'tab_start', |
| 83 |
'label' => esc_html__('Hover', 'shopbuilder'), |
| 84 |
], |
| 85 |
'payment_label_hover_color' => [ |
| 86 |
'label' => esc_html__( 'Label Color', 'shopbuilder' ), |
| 87 |
'type' => 'color', |
| 88 |
'separator' => 'default', |
| 89 |
'selectors' => [ |
| 90 |
$selector['payment_label_hover_color'] => 'color: {{VALUE}};', |
| 91 |
], |
| 92 |
], |
| 93 |
'payment_link_hover_color' => [ |
| 94 |
'label' => esc_html__( 'Link Color', 'shopbuilder' ), |
| 95 |
'type' => 'color', |
| 96 |
'selectors' => [ |
| 97 |
$selector['payment_link_hover_color'] => 'color: {{VALUE}};', |
| 98 |
], |
| 99 |
], |
| 100 |
'payment_hover_end' => [ |
| 101 |
'mode' => 'tab_end', |
| 102 |
], |
| 103 |
'payment_tabs_end' => [ |
| 104 |
'mode' => 'tabs_end', |
| 105 |
], |
| 106 |
|
| 107 |
'paymeny_method_end' => [ |
| 108 |
'mode' => 'section_end', |
| 109 |
], |
| 110 |
]; |
| 111 |
} |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
} |
| 116 |
|
| 117 |
|
| 118 |
|