PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
← All changes | includes/ui_modal__shortcodes/sh_tpl_booking_timeline.php +15 -15 10.1.3 → 11.9 View file →
@@ -11,9 +11,9 @@
11 11 *
12 12 * @modified 2024-02-17
13 13 */
14 14
15 -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly //FixIn: 9.9.0.15
15 +if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly // FixIn: 9.9.0.15.
16 16
17 17 // =====================================================================================================================
18 18 // Shortcode [bookingtimeline ... ]
19 19 // =====================================================================================================================
@@ -26,9 +26,9 @@
26 26 function wpbc_shortcode_config__content__bookingtimeline() {
27 27
28 28 $shortcode_name = 'bookingtimeline';
29 29
30 - ?><div id="wpbc_sc_container__shortcode_<?php echo $shortcode_name; ?>" class="wpbc_sc_container__shortcode wpbc_sc_container__shortcode_<?php echo $shortcode_name; ?>"><?php
30 + ?><div id="wpbc_sc_container__shortcode_<?php echo esc_attr( $shortcode_name ); ?>" class="wpbc_sc_container__shortcode wpbc_sc_container__shortcode_<?php echo esc_attr( $shortcode_name ); ?>"><?php
31 31
32 32 wpbc_shortcode_config__bookingtimeline__top_tabs();
33 33
34 34 // 'General' --------------------------------------------------------------------------------------------------
@@ -105,9 +105,9 @@
105 105 'title' => __('TimeLine', 'booking')
106 106 , 'text_css' => 'line-height: 18px;vertical-align: text-top;'
107 107 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
108 108 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__general').show();"
109 - , 'font_icon' => 'menu_icon icon-1x wpbc-bi-bar-chart-steps NOwpbc-bi-diagram-3'
109 + , 'font_icon' => 'menu_icon icon-1x wpbc_icn_rotate_90 wpbc_icn_align_vertical_bottom NOwpbc-bi-bar-chart-steps0 NOwpbc-bi-diagram-3'
110 110 , 'default' => true
111 111 ) );
112 112 // wpbc_bs_display_tab( array(
113 113 // 'title' => __('View Options', 'booking')
@@ -268,10 +268,10 @@
268 268
269 269 ////////////////////////////////////////////////////////////////////
270 270 // Start Month
271 271 ////////////////////////////////////////////////////////////////////
272 - ?><tr valign="top" class="<?php echo $group_key . '_standard_section'; ?> wpbc_sub_settings_grayed0">
273 - <th scope="row" style="vertical-align: middle;"><label for="<?php echo $id; ?>_active" class="wpbc-form-text"><?php _e('Start date:', 'booking'); ?></label></th>
272 + ?><tr valign="top" class="<?php echo esc_attr( $group_key . '_standard_section' ); ?> wpbc_sub_settings_grayed0">
273 + <th scope="row" style="vertical-align: middle;"><label for="<?php echo esc_attr( $id ); ?>_active" class="wpbc-form-text"><?php esc_html_e('Start date:', 'booking'); ?></label></th>
274 274 <td class=""><fieldset><?php
275 275
276 276 WPBC_Settings_API::field_checkbox_row_static( $id . '_active'
277 277 , array(
@@ -303,10 +303,10 @@
303 303 , 'class' => ''
304 304 , 'css' => 'width:5em;'
305 305 , 'only_field' => true
306 306 , 'attr' => array()
307 - , 'value' => date( 'Y' )
308 - , 'options' => array_combine( range( ( date('Y') - 1 ), ( date('Y') + 10 ) ), range( ( date('Y') - 1 ), ( date('Y') + 10 ) ) )
307 + , 'value' => gmdate( 'Y' )
308 + , 'options' => array_combine( range( ( gmdate('Y') - 1 ), ( gmdate('Y') + 10 ) ), range( ( gmdate('Y') - 1 ), ( gmdate('Y') + 10 ) ) )
309 309 )
310 310 );
311 311
312 312 ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> / </span><?php
@@ -323,9 +323,9 @@
323 323 , 'class' => ''
324 324 , 'css' => 'width:4em;'
325 325 , 'only_field' => true
326 326 , 'attr' => array()
327 - , 'value' => date('n')
327 + , 'value' => gmdate('n')
328 328 , 'options' => array_combine( range( 1, 12 ), range( 1, 12 ) )
329 329 )
330 330 );
331 331
@@ -343,14 +343,14 @@
343 343 , 'class' => ''
344 344 , 'css' => 'width:4em;'
345 345 , 'only_field' => true
346 346 , 'attr' => array()
347 - , 'value' => date('j')
347 + , 'value' => gmdate('j')
348 348 , 'options' => array_combine( range( 1, 31 ), range( 1, 31 ) )
349 349 )
350 350 );
351 351
352 - ?><span class="description"> <?php _e('Select start date' ,'booking'); ?></span></fieldset></td>
352 + ?><span class="description"> <?php esc_html_e('Select start date' ,'booking'); ?></span></fieldset></td>
353 353 </tr><?php
354 354
355 355 }
356 356
@@ -367,13 +367,13 @@
367 367
368 368 ////////////////////////////////////////////////////////////////////
369 369 // Start Month
370 370 ////////////////////////////////////////////////////////////////////
371 - ?><tr valign="top" class="<?php echo $group_key . '_standard_section'; ?> wpbc_sub_settings_grayed0 bookingtimeline_view_times">
372 - <th scope="row" style="vertical-align: middle;"><label for="<?php echo $id; ?>_active" class="wpbc-form-text"><?php _e('Show:', 'booking'); ?></label></th>
371 + ?><tr valign="top" class="<?php echo esc_attr( $group_key . '_standard_section' ); ?> wpbc_sub_settings_grayed0 bookingtimeline_view_times">
372 + <th scope="row" style="vertical-align: middle;"><label for="<?php echo esc_attr( $id ); ?>_active" class="wpbc-form-text"><?php esc_html_e('Show:', 'booking'); ?></label></th>
373 373 <td class=""><fieldset><?php
374 374
375 - ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php _e('from','booking') ?> </span><?php
375 + ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php esc_html_e('from', 'booking' ); ?> </span><?php
376 376
377 377 WPBC_Settings_API::field_select_row_static( $id . '_starttime'
378 378 , array(
379 379 'type' => 'select'
@@ -391,9 +391,9 @@
391 391 , 'options' => array_combine( range( 0, 23 ), range( 0, 23 ) )
392 392 )
393 393 );
394 394
395 - ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php _e('to','booking') ?> </span><?php
395 + ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php esc_html_e('to', 'booking' ); ?> </span><?php
396 396
397 397 WPBC_Settings_API::field_select_row_static( $id . '_endtime'
398 398 , array(
399 399 'type' => 'select'
@@ -411,9 +411,9 @@
411 411 , 'options' => array_combine( range( 1, 24 ), range( 1, 24 ) )
412 412 )
413 413 );
414 414
415 - ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php _e('hours','booking') ?> </span><?php
415 + ?><span class="description" style="font-weight:600;flex:0;margin: 3px 0.5em 0.5em 0;"> <?php esc_html_e('hours', 'booking' ); ?> </span><?php
416 416
417 417 ?></fieldset></td>
418 418 </tr><?php
419 419