← All changes
|
includes/ui_modal__shortcodes/sh_tpl_booking_calendar.php
+7
-2
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 [bookingcalendar ... ] |
| 19 | 19 | // ===================================================================================================================== |
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | function wpbc_shortcode_config__content__bookingcalendar() { |
| 27 | 27 | |
| 28 | 28 | $shortcode_name = 'bookingcalendar'; |
| 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__bookingcalendar__top_tabs(); |
| 33 | 33 | |
| 34 | 34 | // 'General' -------------------------------------------------------------------------------------------------- |
| @@ -56,8 +56,13 @@ | ||
| 56 | 56 | |
| 57 | 57 | // 'START MONTH' ----------------------------------------------------------------------------------------------- |
| 58 | 58 | ?><div class="wpbc_sc_container__shortcode_section wpbc_sc_container__shortcode_section__other"><?php |
| 59 | 59 | ?><table class="form-table"><tbody><?php |
| 60 | + | |
| 61 | + wpbc_shortcode_config_fields__calendar_dates_start( $shortcode_name . '_wpbc_calendar_dates_start', $shortcode_name ); | |
| 62 | + | |
| 63 | + wpbc_shortcode_config_fields__calendar_dates_end( $shortcode_name . '_wpbc_calendar_dates_end', $shortcode_name ); | |
| 64 | + | |
| 60 | 65 | wpbc_shortcode_config_fields__start_month( $shortcode_name . '_wpbc_startmonth', $shortcode_name ); |
| 61 | 66 | ?></tbody></table><?php |
| 62 | 67 | ?></div><?php |
| 63 | 68 | |