PluginProbe
Booking Calendar / 11.4
Booking Calendar v11.4
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 10.11 All 204 releases
booking / includes / ui_modal__shortcodes / sh_tpl_booking_calendar.php

sh_tpl_booking_calendar.php in Booking Calendar 11.4, at includes/ui_modal__shortcodes/sh_tpl_booking_calendar.php

132 lines 5.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @version 1.0
4 * @package Booking Calendar Shortcodes Config
5 * @subpackage Shortcodes Content
6 * @category Shortcodes
7 *
8 * @author wpdevelop
9 * @link https://wpbookingcalendar.com/
10 * @email info@wpbookingcalendar.com
11 *
12 * @modified 2024-02-17
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly // FixIn: 9.9.0.15.
16
17 // =====================================================================================================================
18 // Shortcode [bookingcalendar ... ]
19 // =====================================================================================================================
20
21 /**
22 * Content of PopUp - for shortcode [booking ...]
23 *
24 * @return void
25 */
26 function wpbc_shortcode_config__content__bookingcalendar() {
27
28 $shortcode_name = 'bookingcalendar';
29
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
32 wpbc_shortcode_config__bookingcalendar__top_tabs();
33
34 // 'General' --------------------------------------------------------------------------------------------------
35 ?><div class="wpbc_sc_container__shortcode_section wpbc_sc_container__shortcode_section__general">
36 <table class="form-table"><tbody><?php
37
38 // Booking Resource
39 wpbc_shortcode_config_fields__select_resource( $shortcode_name . '_wpbc_resource_id', $shortcode_name );
40
41 // Number of Months
42 wpbc_shortcode_config_fields__select_nummonths( $shortcode_name . '_wpbc_nummonths', $shortcode_name );
43
44 // Calendar Size
45 wpbc_shortcode_config_fields__calendar_size( $shortcode_name . '_wpbc_size', $shortcode_name );
46
47 ?></tbody></table>
48 </div><?php
49
50 // 'AGGREGATE' -------------------------------------------------------------------------------------------------
51 ?><div class="wpbc_sc_container__shortcode_section wpbc_sc_container__shortcode_section__aggregate"><?php
52
53 wpbc_shortcode_config_fields__aggregate( $shortcode_name . '_wpbc_aggregate', $shortcode_name );
54
55 ?></div><?php
56
57 // 'START MONTH' -----------------------------------------------------------------------------------------------
58 ?><div class="wpbc_sc_container__shortcode_section wpbc_sc_container__shortcode_section__other"><?php
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
65 wpbc_shortcode_config_fields__start_month( $shortcode_name . '_wpbc_startmonth', $shortcode_name );
66 ?></tbody></table><?php
67 ?></div><?php
68
69
70
71 ?>
72 <div class="wpbc_shortcode_config_content_toolbar__next_prior">
73 <a href="javascript:void(0)" onclick="javascript:wpbc_shortcode_config_content_toolbar__next_prior(this,'prior');" class="button">
74 <span class="in-button-text">&lsaquo;</span>
75 </a>
76 <a href="javascript:void(0)" onclick="javascript:wpbc_shortcode_config_content_toolbar__next_prior(this,'next');" class="button">
77 <span class="in-button-text">&rsaquo;</span>
78 </a>
79 </div>
80 <?php
81
82 ?></div><?php
83
84 wpbc_clear_div();
85 }
86
87
88
89 /**
90 * Top Tabs for shortcode [booking ...]
91 * @return void
92 */
93 function wpbc_shortcode_config__bookingcalendar__top_tabs(){
94
95 $shortcode_name = 'bookingcalendar';
96
97 wpbc_bs_toolbar_tabs_html_container_start();
98
99 $js = "jQuery(this).parents( '.wpbc_sc_container__shortcode' ).find( '.nav-tab' ).removeClass('nav-tab-active');"
100 . "jQuery(this).addClass('nav-tab-active');"
101 . "jQuery('.nav-tab i.icon-white').removeClass('icon-white');"
102 . "jQuery('.nav-tab-active i').addClass('icon-white');"
103 . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section').hide();";
104
105 wpbc_bs_display_tab( array(
106 'title' => __('Availability Calendar', 'booking')
107 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
108 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__general').show();"
109 , 'font_icon' => 'wpbc-bi-calendar'
110 , 'default' => true
111 ) );
112 wpbc_bs_display_tab( array(
113 'title' => __('Aggregate', 'booking')
114 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
115 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__aggregate').show();"
116 , 'font_icon' => 'wpbc-bi-calendar-plus'
117 , 'default' => false
118 , 'css_classes' => 'wpbc_dismiss__booking_param_aggregate'
119 ) );
120 wpbc_bs_display_tab( array(
121 'title' => __('Advanced', 'booking')
122 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
123 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__other').show();"
124 , 'font_icon' => 'wpbc_icn_tune'
125 , 'default' => false
126
127 ) );
128
129 wpbc_bs_toolbar_tabs_html_container_end();
130 }
131
132