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 / BreadcrumbsSettings.php

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

157 lines 4.1 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
12 // Do not allow directly accessing this file.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit( 'This script cannot be accessed directly.' );
15 }
16
17 /**
18 * Product Description class
19 */
20 class BreadcrumbsSettings {
21 /**
22 * Widget Field
23 *
24 * @param object $widget object.
25 * @return array
26 */
27 public static function widget_fields( $widget ) {
28 $fields = [
29 'section_general' => [
30 'mode' => 'section_start',
31 'label' => esc_html__( 'General', 'shopbuilder' ),
32 ],
33 'breadcrumbs_icon' => [
34 'label' => esc_html__( 'Separator Icon', 'shopbuilder' ),
35 'type' => 'icons',
36 'fa4compatibility' => 'breadcrumbsicon',
37 'separator' => 'default',
38 'default' => [
39 'value' => 'fas fa-angle-right',
40 'library' => 'fa-solid',
41 ],
42 ],
43 'section_general_end' => [
44 'mode' => 'section_end',
45 ],
46 'section_style' => [
47 'mode' => 'section_start',
48 'tab' => 'style',
49 'label' => esc_html__( 'Style', 'shopbuilder' ),
50 ],
51 'breadcrumbs_typography' => [
52 'mode' => 'group',
53 'type' => 'typography',
54 'label' => esc_html__( 'Typography', 'shopbuilder' ),
55 'selector' => $widget->selectors['breadcrumbs_typography'],
56 ],
57 'breadcrumbs_align' => [
58 'label' => esc_html__( 'Alignment', 'shopbuilder' ),
59 'type' => 'choose',
60 'separator' => 'default',
61 'options' => [
62 'left' => [
63 'title' => esc_html__( 'Left', 'shopbuilder' ),
64 'icon' => 'eicon-text-align-left',
65 ],
66 'center' => [
67 'title' => esc_html__( 'Center', 'shopbuilder' ),
68 'icon' => 'eicon-text-align-center',
69 ],
70 'right' => [
71 'title' => esc_html__( 'Right', 'shopbuilder' ),
72 'icon' => 'eicon-text-align-right',
73 ],
74 ],
75 'prefix_class' => 'elementor-align-%s',
76 'selectors_dictionary' => [
77 'left' => 'flex-start',
78 'center' => 'center',
79 'right' => 'flex-end',
80 ],
81 'selectors' => [
82 $widget->selectors['breadcrumbs_align'] => 'justify-content: {{VALUE}};',
83 ],
84 ],
85 'text_color' => [
86 'label' => esc_html__( 'Active Color', 'shopbuilder' ),
87 'type' => 'color',
88 'selectors' => [
89 '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb' => 'color: {{VALUE}}',
90 ],
91 ],
92 'link_color' => [
93 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
94 'type' => 'color',
95 'selectors' => [
96 $widget->selectors['link_color'] => 'color: {{VALUE}}',
97 ],
98 ],
99
100 'link_hover_color' =>
101 [
102 'label' => esc_html__( 'Link Hover Color', 'shopbuilder' ),
103 'type' => 'color',
104 'selectors' => [
105 $widget->selectors['link_hover_color'] => 'color: {{VALUE}}',
106 ],
107 ],
108 'item_spacing' => [
109 'label' => esc_html__( 'Space between', 'shopbuilder' ),
110 'type' => 'slider',
111 'separator' => 'before',
112 'range' => [
113 'px' => [
114 'min' => 0,
115 'max' => 500,
116 ],
117 ],
118 'default' => [
119 'size' => 10,
120 ],
121 'selectors' => [
122 $widget->selectors['item_spacing'] => 'margin:0 {{SIZE}}{{UNIT}};',
123 ],
124 ],
125 'icon_size' => [
126 'label' => esc_html__( 'Icon Size', 'shopbuilder' ),
127 'type' => 'slider',
128 'range' => [
129 'px' => [
130 'min' => 0,
131 'max' => 500,
132 ],
133 ],
134 'default' => [
135 'size' => 16,
136 ],
137 'selectors' => [
138 $widget->selectors['icon_size']['icon'] => 'font-size:{{SIZE}}{{UNIT}};',
139 $widget->selectors['icon_size']['svg'] => 'width:{{SIZE}}{{UNIT}};height:{{SIZE}}{{UNIT}};',
140 ],
141 ],
142 'icon_color' => [
143 'label' => esc_html__( 'Icon Color', 'shopbuilder' ),
144 'type' => 'color',
145 'selectors' => [
146 $widget->selectors['icon_color'] => 'color: {{VALUE}}',
147 ],
148 ],
149 'section_style_end' => [
150 'mode' => 'section_end',
151 ],
152
153 ];
154 return $fields;
155 }
156 }
157