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_search.php +9 -7 10.1.3 → 11.9 View file →
@@ -11,9 +11,9 @@
11 11 *
12 12 * @modified 2024-03-05
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
19 19 // =====================================================================================================================
@@ -28,9 +28,9 @@
28 28 function wpbc_shortcode_config__content__bookingsearch() {
29 29
30 30 $shortcode_name = 'bookingsearch';
31 31
32 - ?><div id="wpbc_sc_container__shortcode_<?php echo $shortcode_name; ?>" class="wpbc_sc_container__shortcode wpbc_sc_container__shortcode_<?php echo $shortcode_name; ?>"><?php
32 + ?><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
33 33
34 34 wpbc_shortcode_config__bookingsearch__top_tabs();
35 35
36 36 // 'General' --------------------------------------------------------------------------------------------------
@@ -47,8 +47,9 @@
47 47 'upgrade_link' => array( 'title' => 'Upgrade to Pro', 'relative_url' => 'features/#bk_news_section' ),
48 48 'versions' => 'Business Large, MultiUser versions',
49 49 'css' => 'transform: translate(0) translateY(120px);'
50 50 ) );
51 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
51 52 echo $upgrade_content_arr['content'];
52 53
53 54 //--------------------------------------------------------------------------------------------------------------
54 55 // Real Content
@@ -60,9 +61,9 @@
60 61 wpbc_shortcode_config_fields__searchform__searchresults( $shortcode_name . '_wpbc_search_form_results', $shortcode_name );
61 62
62 63 wpbc_shortcode_config_fields__searchresults_new_page( $shortcode_name . '_wpbc_search_new_page', $shortcode_name );
63 64
64 - //FixIn: 10.0.0.41
65 + // FixIn: 10.0.0.41.
65 66 // wpbc_shortcode_config_fields__searchavailability_text_header( $shortcode_name . '_wpbc_search_header', $shortcode_name );
66 67 // wpbc_shortcode_config_fields__searchavailability_text_nothing_found( $shortcode_name . '_wpbc_search_nothing_found', $shortcode_name );
67 68
68 69 wpbc_shortcode_config_fields__searchavailability_only_for_users( $shortcode_name . '_wpbc_search_for_users', $shortcode_name );
@@ -179,8 +180,9 @@
179 180 , array(
180 181 'type' => 'text'
181 182 , 'placeholder' => __( 'Example', 'booking' ). ': ' . '{searchresults} ' . __('Result(s) Found','booking')
182 183 , 'title' => __( 'Title of Search results', 'booking' )
184 + /* translators: 1: ... */
183 185 , 'description' => sprintf( __( 'Type the title of Search results. %s - show number of search results', 'booking' ) , '<code>{searchresults}</code>' )
184 186 , 'description_tag' => 'span'
185 187 , 'label' => ''
186 188 , 'class' => ''
@@ -256,11 +258,11 @@
256 258 )
257 259 );
258 260
259 261
260 - ?><tr valign="top" class="<?php echo $group_key . '_standard_section'; ?> wpbc_sub_settings_grayed wpbc_search_availability_form <?php echo $id; ?>_wpbc_sc_searchresults_new_page">
262 + ?><tr valign="top" class="<?php echo esc_attr( $group_key . '_standard_section' ); ?> wpbc_sub_settings_grayed wpbc_search_availability_form <?php echo esc_attr( $id ); ?>_wpbc_sc_searchresults_new_page">
261 263 <th scope="row" style="vertical-align: middle;">
262 - <label for="wpbc_booking_width" class="wpbc-form-text"><?php _e('URL of search results:', 'booking'); ?></label>
264 + <label for="wpbc_booking_width" class="wpbc-form-text"><?php esc_html_e('URL of search results:', 'booking'); ?></label>
263 265 </th>
264 266 <td class=""><fieldset><?php
265 267
266 268 WPBC_Settings_API::field_text_row_static( $id . '_url'
@@ -273,12 +275,12 @@
273 275 , 'attr' => array()
274 276 , 'value' => ''
275 277 )
276 278 );
277 - ?><span class="description"> <?php _e('Type the URL of search results page.' ,'booking'); ?></span></fieldset></td>
279 + ?><span class="description"> <?php esc_html_e('Type the URL of search results page.' ,'booking'); ?></span></fieldset></td>
278 280 </tr><?php
279 281
280 - ?><tr style="height:20px;border-bottom: 0px solid #eee;" class="<?php echo $group_key . '_standard_section'; ?> wpbc_search_availability_form <?php echo $id; ?>_wpbc_sc_searchresults_new_page"><td colspan="2"></td></tr><?php
282 + ?><tr style="height:20px;border-bottom: 0px solid #eee;" class="<?php echo esc_attr( $group_key . '_standard_section' ); ?> wpbc_search_availability_form <?php echo esc_attr( $id ); ?>_wpbc_sc_searchresults_new_page"><td colspan="2"></td></tr><?php
281 283 }
282 284
283 285
284 286 /**