PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Services/Integrations/Elementor/Widgets/FcalCalendarEvent.php +22 -22 1.7.0 → 2.5.0 View file →
@@ -23,9 +23,9 @@
23 23 * @return string Widget title.
24 24 */
25 25 public function get_title()
26 26 {
27 - return esc_html__('Calendar Event', 'fluent-booking-pro');
27 + return esc_html__('Calendar Event', 'fluent-booking');
28 28 }
29 29
30 30 /**
31 31 * Get widget icon.
@@ -67,9 +67,9 @@
67 67
68 68 $this->start_controls_section(
69 69 'content_section',
70 70 [
71 - 'label' => esc_html__('Content', 'fluent-booking-pro'),
71 + 'label' => esc_html__('Content', 'fluent-booking'),
72 72 'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
73 73 ]
74 74 );
75 75
@@ -75,9 +75,9 @@
75 75
76 76 $this->add_control(
77 77 'selected_event',
78 78 [
79 - 'label' => __('Select Event', 'fluent-booking-pro'),
79 + 'label' => __('Select Event', 'fluent-booking'),
80 80 'type' => 'fcal_group_select',
81 81 'options' => $this->getCalendarEvents()
82 82 ]
83 83 );
@@ -92,12 +92,12 @@
92 92
93 93 $this->add_control(
94 94 'show_host_info',
95 95 [
96 - 'label' => __('Show Host Info', 'fluent-booking-pro'),
96 + 'label' => __('Show Host Info', 'fluent-booking'),
97 97 'type' => \Elementor\Controls_Manager::SWITCHER,
98 - 'label_on' => __('Show', 'fluent-booking-pro'),
99 - 'label_off' => __('Hide', 'fluent-booking-pro'),
98 + 'label_on' => __('Show', 'fluent-booking'),
99 + 'label_off' => __('Hide', 'fluent-booking'),
100 100 'return_value' => 'yes',
101 101 'default' => 'yes',
102 102 ]
103 103 );
@@ -104,15 +104,15 @@
104 104
105 105 $this->add_control(
106 106 'select_theme',
107 107 [
108 - 'label' => __('Color Schema', 'fluent-booking-pro'),
108 + 'label' => __('Color Schema', 'fluent-booking'),
109 109 'type' => \Elementor\Controls_Manager::SELECT,
110 110 'default' => 'light',
111 111 'options' => [
112 - 'light' => __('Light', 'fluent-booking-pro'),
113 - 'dark' => __('dark', 'fluent-booking-pro'),
114 - 'system-default' => __('System Default', 'fluent-booking-pro'),
112 + 'light' => __('Light', 'fluent-booking'),
113 + 'dark' => __('dark', 'fluent-booking'),
114 + 'system-default' => __('System Default', 'fluent-booking'),
115 115 ],
116 116 ]
117 117 );
118 118
@@ -126,15 +126,15 @@
126 126 {
127 127 $this->start_controls_section(
128 128 'content_style',
129 129 [
130 - 'label' => esc_html__('Style', 'fluent-booking-pro'),
130 + 'label' => esc_html__('Style', 'fluent-booking'),
131 131 'tab' => \Elementor\Controls_Manager::TAB_STYLE,
132 132 ]
133 133 );
134 134 $this->add_control('fcal_primary_color',
135 135 [
136 - 'label' => esc_html__('Primary Color', 'fluent-booking-pro'),
136 + 'label' => esc_html__('Primary Color', 'fluent-booking'),
137 137 'type' => \Elementor\Controls_Manager::COLOR,
138 138 'selectors' => [
139 139 '{{WRAPPER}} .fcal_calendar_inner .fcal_date_wrapper .calendar .day .is-today,
140 140 {{WRAPPER}} .fcal_slot_picker .fcal_spot_lists .fcal_spot.fcal_spot_selected .fcal_spot_name' => 'color: {{VALUE}}',
@@ -171,9 +171,9 @@
171 171 ]
172 172 );
173 173 $this->add_control('fcal_border_color',
174 174 [
175 - 'label' => esc_html__('Border Color', 'fluent-booking-pro'),
175 + 'label' => esc_html__('Border Color', 'fluent-booking'),
176 176 'type' => \Elementor\Controls_Manager::COLOR,
177 177 'selectors' => [
178 178 '{{WRAPPER}} .fcal_calendar_inner .fcal_side' => 'border-right-color: {{VALUE}}',
179 179 '{{WRAPPER}} .fcal_calendar_inner .fcal_date_wrapper .fcal_date_event_details .fcal_date_event_details_header' => 'border-bottom-color: {{VALUE}}',
@@ -194,9 +194,9 @@
194 194 );
195 195 $this->add_control(
196 196 'avatar-radius',
197 197 [
198 - 'label' => esc_html__('Avatar Radius', 'fluent-booking-pro'),
198 + 'label' => esc_html__('Avatar Radius', 'fluent-booking'),
199 199 'type' => \Elementor\Controls_Manager::DIMENSIONS,
200 200 'size_units' => ['px', '%', 'em', 'rem', 'custom'],
201 201 'default' => [
202 202 'top' => 8,
@@ -217,9 +217,9 @@
217 217
218 218 $this->add_control(
219 219 'date-radius',
220 220 [
221 - 'label' => esc_html__('Date Radius', 'fluent-booking-pro'),
221 + 'label' => esc_html__('Date Radius', 'fluent-booking'),
222 222 'type' => \Elementor\Controls_Manager::DIMENSIONS,
223 223 'size_units' => ['px', '%', 'em', 'rem', 'custom'],
224 224 'default' => [
225 225 'top' => 4,
@@ -236,9 +236,9 @@
236 236 );
237 237
238 238 $this->add_control('enabled_date_background',
239 239 [
240 - 'label' => esc_html__('Enabled Date Background', 'fluent-booking-pro'),
240 + 'label' => esc_html__('Enabled Date Background', 'fluent-booking'),
241 241 'type' => \Elementor\Controls_Manager::COLOR,
242 242 'selectors' => [
243 243 '{{WRAPPER}} .fcal_payment_items table thead th' => 'background-color: {{VALUE}}',
244 244 '{{WRAPPER}} .fcal_calendar_inner .fcal_date_wrapper .calendar .day.day-enabled span' => 'background-color: {{VALUE}}',
@@ -247,9 +247,9 @@
247 247 ]
248 248 );
249 249 $this->add_control('enabled_date_color',
250 250 [
251 - 'label' => esc_html__('Enabled Date Color', 'fluent-booking-pro'),
251 + 'label' => esc_html__('Enabled Date Color', 'fluent-booking'),
252 252 'type' => \Elementor\Controls_Manager::COLOR,
253 253 'selectors' => [
254 254 '{{WRAPPER}} .fcal_calendar_inner .fcal_date_wrapper .calendar .day.day-enabled span' => 'color: {{VALUE}}',
255 255 ],
@@ -256,9 +256,9 @@
256 256 ]
257 257 );
258 258 $this->add_control('disabled_date_color',
259 259 [
260 - 'label' => esc_html__('Disabled Date Color', 'fluent-booking-pro'),
260 + 'label' => esc_html__('Disabled Date Color', 'fluent-booking'),
261 261 'type' => \Elementor\Controls_Manager::COLOR,
262 262 'selectors' => [
263 263 '{{WRAPPER}} .fcal_calendar_inner .fcal_date_wrapper .calendar .day.day-disabled' => 'color: {{VALUE}}',
264 264 ],
@@ -322,9 +322,9 @@
322 322 {
323 323 $settings = $this->get_settings_for_display();
324 324
325 325 if (empty($settings['selected_event']) && empty($settings['event_hash'])) {
326 - echo __('Please select an event', 'fluent-booking-pro');
326 + echo esc_html__('Please select an event', 'fluent-booking');
327 327 return;
328 328 }
329 329
330 330 $selectedEventId = $settings['selected_event'] ?? null;
@@ -333,9 +333,9 @@
333 333
334 334 $selectedEvent = $this->getCalendarEvent($selectedEventId, $eventHash);
335 335
336 336 if (empty($selectedEvent['id'])) {
337 - echo __('Calendar event not found', 'fluent-booking-pro');
337 + echo esc_html__('Calendar event not found', 'fluent-booking');
338 338 return;
339 339 }
340 340
341 341 $hideHost = ($settings['show_host_info'] == 'yes') ? 'no' : 'yes';
@@ -392,9 +392,9 @@
392 392
393 393 <div class="fcal_date_wrapper">
394 394 <div class="fcal_day_picker_wrap">
395 395 <div class="calendar-container">
396 - <img src="<?php echo FLUENT_BOOKING_URL .'/assets/images/fcal-calendar.png' ?>" alt="calendar">
396 + <img src="<?php echo esc_url(FLUENT_BOOKING_URL .'/assets/images/fcal-calendar.png'); ?>" alt="calendar">
397 397 </div>
398 398 </div>
399 399 </div>
400 400 </div>
@@ -399,9 +399,9 @@
399 399 </div>
400 400 </div>
401 401 </div>
402 402 <?php else :
403 - echo $shortcode_output;
403 + echo $shortcode_output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
404 404 endif;
405 405
406 406 }
407 407