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_select.php +20 -12 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 [bookingselect ... ]
19 19 // =====================================================================================================================
@@ -26,9 +26,9 @@
26 26 function wpbc_shortcode_config__content__bookingselect() {
27 27
28 28 $shortcode_name = 'bookingselect';
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 //--------------------------------------------------------------------------------------------------------------
33 33 // 'Upgrade to Pro' widget
34 34 //--------------------------------------------------------------------------------------------------------------
@@ -40,8 +40,9 @@
40 40 'upgrade_link' => array( 'title' => 'Upgrade to Pro', 'relative_url' => 'features/#bk_news_section' ),
41 41 'versions' => 'paid versions',
42 42 'css' => 'transform: translate(0) translateY(190px);'
43 43 ) );
44 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
44 45 echo $upgrade_content_arr['content'];
45 46
46 47 //--------------------------------------------------------------------------------------------------------------
47 48 // Real Content
@@ -84,10 +85,12 @@
84 85 if ( class_exists( 'wpdev_bk_biz_m' ) ){
85 86 ?>
86 87 <tr><td></td><td>
87 88 <div class="wpbc-settings-notice notice-warning">
88 - <span><?php printf(__( 'If you choose the %s form, the system will load either the standard form or the default custom booking form (configured on the Resources page). Alternatively, selecting a specific custom booking form here will ensure that all booking resources use only the form you have chosen.', 'booking' ),
89 - '<strong>\'Standard\'</strong>' ); ?></span>
89 + <span><?php
90 + /* translators: 1: ... */
91 + echo wp_kses_post( sprintf( __( 'If you choose the %s form, the system will load either the standard form or the default custom booking form (configured on the Resources page). Alternatively, selecting a specific custom booking form here will ensure that all booking resources use only the form you have chosen.', 'booking' ),
92 + '<strong>\'Standard\'</strong>' ) ); ?></span>
90 93 </div>
91 94 </td></tr>
92 95 <?php
93 96 }
@@ -141,8 +144,13 @@
141 144
142 145 // 'START MONTH' -----------------------------------------------------------------------------------------------
143 146 ?><div class="wpbc_sc_container__shortcode_section wpbc_sc_container__shortcode_section__other"><?php
144 147 ?><table class="form-table"><tbody><?php
148 +
149 +// wpbc_shortcode_config_fields__calendar_dates_start( $shortcode_name . '_wpbc_calendar_dates_start', $shortcode_name );
150 +//
151 +// wpbc_shortcode_config_fields__calendar_dates_end( $shortcode_name . '_wpbc_calendar_dates_end', $shortcode_name );
152 +
145 153 wpbc_shortcode_config_fields__start_month( $shortcode_name . '_wpbc_startmonth', $shortcode_name );
146 154 ?></tbody></table><?php
147 155 ?></div><?php
148 156
@@ -291,9 +299,9 @@
291 299
292 300 ?>
293 301 <div class="clear"></div>
294 302 <div class="wpbc-settings-notice0 notice-info notice-header" style="font-size: 15px;font-weight: 600;margin: 15px 0 15px 15px;">
295 - <label for="<?php echo esc_attr($id); ?>"><?php _e( 'Set Up Booking Resource(s)', 'booking' ); ?></label>
303 + <label for="<?php echo esc_attr($id); ?>"><?php esc_html_e( 'Set Up Booking Resource(s)', 'booking' ); ?></label>
296 304 </div>
297 305
298 306 <div class="wpbc_shortcode_config__rules_container">
299 307 <div class="wpbc_shortcode_config__rules__params_section wpbc_aggregate">
@@ -328,22 +336,22 @@
328 336 </div>
329 337 <div class="wpbc_shortcode_config__rules__help_section" style="margin-top: 8px;">
330 338 <div class="wpbc-settings-notice notice-info notice-list">
331 339 <ol>
332 - <li>
333 - <?php _e( 'Configure the shortcode to show Timeline.', 'booking' ); ?>
340 + <li> <?php esc_html_e( 'Configure the shortcode to show Timeline.', 'booking' ); ?>
334 341 </li>
335 342 <li>
336 - <?php echo __( 'To set this up, choose all or multiple booking resources in the multi-select box.', 'booking' )
343 + <?php echo esc_html__( 'To set this up, choose all or multiple booking resources in the multi-select box.', 'booking' )
337 344 . '<br>'
338 - . __( 'Hold down the Ctrl button to make multiple selections.', 'booking' );
345 + . esc_html__( 'Hold down the Ctrl button to make multiple selections.', 'booking' );
339 346 ?>
340 347 </li>
341 348 <li>
342 349 <?php
343 - printf( __( 'Refer to the FAQ for detailed information on %sshortcode configuration%s.', 'booking' )
350 + /* translators: 1: ... */
351 + echo wp_kses_post( sprintf( __( 'Refer to the FAQ for detailed information on %1$sshortcode configuration%2$s.', 'booking' )
344 352 , '<a href="https://wpbookingcalendar.com/faq/shortcode-timeline/" target="_blank">', '</a>'
345 - );
353 + ) );
346 354 ?>
347 355 </li>
348 356 </ol>
349 357 </div>
@@ -400,9 +408,9 @@
400 408 , array(
401 409 'type' => 'text'
402 410 , 'placeholder' => __( 'Example', 'booking' ). ': ' . __( 'Please select', 'booking' )
403 411 , 'title' => __('Title for first option', 'booking')
404 - , 'description' => __('The first option in the dropdown list.' ,'booking') . ' <span>' . __('Please leave it empty if you want to skip it.' ,'booking') . '</span>'
412 + , 'description' => __('The first option in the dropdown list.' ,'booking') . ' <span>' . esc_html__('Please leave it empty if you want to skip it.' ,'booking') . '</span>'
405 413
406 414 , 'description_tag' => 'span'
407 415 , 'label' => ''
408 416 , 'class' => ''