PluginProbe
Booking Calendar / 10.11
Booking Calendar v10.11
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 10.11, at includes/ui_modal__shortcodes/sh_tpl_booking_calendar.php

127 lines 5.1 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 wpbc_shortcode_config_fields__start_month( $shortcode_name . '_wpbc_startmonth', $shortcode_name );
61 ?></tbody></table><?php
62 ?></div><?php
63
64
65
66 ?>
67 <div class="wpbc_shortcode_config_content_toolbar__next_prior">
68 <a href="javascript:void(0)" onclick="javascript:wpbc_shortcode_config_content_toolbar__next_prior(this,'prior');" class="button">
69 <span class="in-button-text">&lsaquo;</span>
70 </a>
71 <a href="javascript:void(0)" onclick="javascript:wpbc_shortcode_config_content_toolbar__next_prior(this,'next');" class="button">
72 <span class="in-button-text">&rsaquo;</span>
73 </a>
74 </div>
75 <?php
76
77 ?></div><?php
78
79 wpbc_clear_div();
80 }
81
82
83
84 /**
85 * Top Tabs for shortcode [booking ...]
86 * @return void
87 */
88 function wpbc_shortcode_config__bookingcalendar__top_tabs(){
89
90 $shortcode_name = 'bookingcalendar';
91
92 wpbc_bs_toolbar_tabs_html_container_start();
93
94 $js = "jQuery(this).parents( '.wpbc_sc_container__shortcode' ).find( '.nav-tab' ).removeClass('nav-tab-active');"
95 . "jQuery(this).addClass('nav-tab-active');"
96 . "jQuery('.nav-tab i.icon-white').removeClass('icon-white');"
97 . "jQuery('.nav-tab-active i').addClass('icon-white');"
98 . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section').hide();";
99
100 wpbc_bs_display_tab( array(
101 'title' => __('Availability Calendar', 'booking')
102 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
103 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__general').show();"
104 , 'font_icon' => 'wpbc-bi-calendar'
105 , 'default' => true
106 ) );
107 wpbc_bs_display_tab( array(
108 'title' => __('Aggregate', 'booking')
109 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
110 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__aggregate').show();"
111 , 'font_icon' => 'wpbc-bi-calendar-plus'
112 , 'default' => false
113 , 'css_classes' => 'wpbc_dismiss__booking_param_aggregate'
114 ) );
115 wpbc_bs_display_tab( array(
116 'title' => __('Advanced', 'booking')
117 // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' )
118 , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__other').show();"
119 , 'font_icon' => 'wpbc_icn_tune'
120 , 'default' => false
121
122 ) );
123
124 wpbc_bs_toolbar_tabs_html_container_end();
125 }
126
127