PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.0.2
ShopBuilder – WooCommerce Builder For Elementor v2.0.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 2.0.2, at app/Elementor/Widgets/Controls/BreadcrumbsSettings.php

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