Version Description
- Fix issue of showing the warning message "mktime() expects parameter 1 to be long, string given in" if the time is not selected.
- Fix issue of showing the "You do not have sufficient permissions to access this page" error.
Download this release
Release Info
Developer | wpdevelop |
Plugin | Booking Calendar |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.1 to 4.1.1
- css/admin.css +3 -0
- lib/wpdev-bk-lib.php +3 -2
- lib/wpdev-booking-class.php +1 -1
- lib/wpdev-booking-functions.php +1 -1
- readme.txt +4 -2
- wpdev-booking.php +8 -2
css/admin.css
CHANGED
@@ -1452,6 +1452,9 @@ html[xmlns] .clearfix-height.hidden_items {
|
|
1452 |
height:24px;
|
1453 |
line-height: 22px;
|
1454 |
}
|
|
|
|
|
|
|
1455 |
.booking-submenu-tab input, .wpdevbk .booking-submenu-tab input{
|
1456 |
line-height:1px;
|
1457 |
margin:-2px 0px 0px 8px;
|
1452 |
height:24px;
|
1453 |
line-height: 22px;
|
1454 |
}
|
1455 |
+
.wpdevbk .btn-group .btn.active {
|
1456 |
+
z-index:1;
|
1457 |
+
}
|
1458 |
.booking-submenu-tab input, .wpdevbk .booking-submenu-tab input{
|
1459 |
line-height:1px;
|
1460 |
margin:-2px 0px 0px 8px;
|
lib/wpdev-bk-lib.php
CHANGED
@@ -48,8 +48,9 @@
|
|
48 |
// Transform the REQESTS parameters (GET and POST) into URL
|
49 |
function get_params_in_url( $exclude_prms = array(), $only_these_parameters = false ){
|
50 |
|
51 |
-
|
52 |
-
|
|
|
53 |
foreach ($_REQUEST as $prm_key => $prm_value) {
|
54 |
if ( ! in_array($prm_key, $exclude_prms ) )
|
55 |
if ( ($only_these_parameters === false) || ( in_array($prm_key, $only_these_parameters ) ) )
|
48 |
// Transform the REQESTS parameters (GET and POST) into URL
|
49 |
function get_params_in_url( $exclude_prms = array(), $only_these_parameters = false ){
|
50 |
|
51 |
+
//$url_start = 'admin.php?'; //$url_start = 'admin.php?page='. WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME. 'wpdev-booking';
|
52 |
+
$url_start = 'admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking&' ;
|
53 |
+
$exclude_prms[]='page';
|
54 |
foreach ($_REQUEST as $prm_key => $prm_value) {
|
55 |
if ( ! in_array($prm_key, $exclude_prms ) )
|
56 |
if ( ($only_these_parameters === false) || ( in_array($prm_key, $only_these_parameters ) ) )
|
lib/wpdev-booking-class.php
CHANGED
@@ -1821,6 +1821,7 @@ class wpdev_booking {
|
|
1821 |
• <strong>Multiple booking at the same day.</strong> Day will be availbale untill all items (rooms) are not reserved.<br/>
|
1822 |
• <strong>"Capacity" of day depends from number of visitors</strong> Selection of visitor number will apply to the capacity of selected day(s).<br/>
|
1823 |
</p>
|
|
|
1824 |
<?php if( strpos( strtolower(WPDEV_BK_VERSION) , 'multisite') !== false ) {
|
1825 |
$multiv = '-multi';
|
1826 |
} else {
|
@@ -3193,7 +3194,6 @@ if ( jQuery('#togle_settings_range_times').length > 0 ) { jQuery('#togle_set
|
|
3193 |
?> <script type="text/javascript" src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/js/datepick/jquery.datepick-<?php echo substr($locale,0,2); ?>.js"></script> <?php
|
3194 |
}
|
3195 |
?> <script type="text/javascript" src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/js/wpdev.bk.js"></script> <?php
|
3196 |
-
/*?> <script type="text/javascript" src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/js/wpdev.calendar.js"></script> <?php/**/
|
3197 |
|
3198 |
do_action('wpdev_bk_js_write_files')
|
3199 |
?> <!-- End Booking Calendar Scripts --> <?php
|
1821 |
• <strong>Multiple booking at the same day.</strong> Day will be availbale untill all items (rooms) are not reserved.<br/>
|
1822 |
• <strong>"Capacity" of day depends from number of visitors</strong> Selection of visitor number will apply to the capacity of selected day(s).<br/>
|
1823 |
</p>
|
1824 |
+
<p>Please read more detail info about versions <a href="http://wpbookingcalendar.com/help/versions-overview/" target="_blank" class="btn">here</a></p>
|
1825 |
<?php if( strpos( strtolower(WPDEV_BK_VERSION) , 'multisite') !== false ) {
|
1826 |
$multiv = '-multi';
|
1827 |
} else {
|
3194 |
?> <script type="text/javascript" src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/js/datepick/jquery.datepick-<?php echo substr($locale,0,2); ?>.js"></script> <?php
|
3195 |
}
|
3196 |
?> <script type="text/javascript" src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/js/wpdev.bk.js"></script> <?php
|
|
|
3197 |
|
3198 |
do_action('wpdev_bk_js_write_files')
|
3199 |
?> <!-- End Booking Calendar Scripts --> <?php
|
lib/wpdev-booking-functions.php
CHANGED
@@ -430,7 +430,7 @@
|
|
430 |
$end_time = explode(':',$end_time);
|
431 |
|
432 |
// Here we are get start time and add duration for end time
|
433 |
-
$new_end_time = mktime($start_time[0], $start_time[1]);
|
434 |
$new_end_time = $new_end_time + $end_time[0]*60*60 + $end_time[1]*60;
|
435 |
$end_time = date('H:i',$new_end_time);
|
436 |
$end_time = explode(':',$end_time);
|
430 |
$end_time = explode(':',$end_time);
|
431 |
|
432 |
// Here we are get start time and add duration for end time
|
433 |
+
$new_end_time = mktime(intval($start_time[0]), intval($start_time[1]));
|
434 |
$new_end_time = $new_end_time + $end_time[0]*60*60 + $end_time[1]*60;
|
435 |
$end_time = date('H:i',$new_end_time);
|
436 |
$end_time = explode(':',$end_time);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpbookingcalendar.com/buy/
|
|
4 |
Tags: booking calendar, booking, bookings, to book, calendar, reservation, calendar, hotel, rooms, rent, appointment, scheduling, availability, availability calendar, event, events, event calendar, resource scheduling, rental, meeting scheduling, reservation plugin, accommodations, bookable, bookable events
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.5.2
|
7 |
-
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -65,7 +65,9 @@ If you have any further questions, please fill free to <a href="mailto:info@wpbo
|
|
65 |
9. General Booking Settings page.
|
66 |
10. Booking Listing (Filters tab) admin panel. Apply filter, for looking of your required bookings.
|
67 |
== Changelog ==
|
68 |
-
|
|
|
|
|
69 |
= 4.1 =
|
70 |
* Features and issue fixings in All versions:
|
71 |
* New Calendar Overview page (1 month/ 3 month / Year view mode) for the booking listing in the admin panel.
|
4 |
Tags: booking calendar, booking, bookings, to book, calendar, reservation, calendar, hotel, rooms, rent, appointment, scheduling, availability, availability calendar, event, events, event calendar, resource scheduling, rental, meeting scheduling, reservation plugin, accommodations, bookable, bookable events
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.5.2
|
7 |
+
Stable tag: 4.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
9. General Booking Settings page.
|
66 |
10. Booking Listing (Filters tab) admin panel. Apply filter, for looking of your required bookings.
|
67 |
== Changelog ==
|
68 |
+
= 4.1.1 =
|
69 |
+
* Fix issue of showing the warning message "mktime() expects parameter 1 to be long, string given in" if the time is not selected.
|
70 |
+
* Fix issue of showing the "You do not have sufficient permissions to access this page" error.
|
71 |
= 4.1 =
|
72 |
* Features and issue fixings in All versions:
|
73 |
* New Calendar Overview page (1 month/ 3 month / Year view mode) for the booking listing in the admin panel.
|
wpdev-booking.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Booking Calendar
|
4 |
Plugin URI: http://wpbookingcalendar.com/demo/
|
5 |
Description: Online reservation and availability checking service for your site.
|
6 |
-
Version: 4.1
|
7 |
Author: wpdevelop
|
8 |
Author URI: http://wpbookingcalendar.com/
|
9 |
Tested WordPress Versions: 2.8.3 - 3.5.2
|
@@ -33,6 +33,12 @@ Tested WordPress Versions: 2.8.3 - 3.5.2
|
|
33 |
-----------------------------------------------
|
34 |
Change Log and Features for Future Releases :
|
35 |
-----------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
= 4.1 =
|
37 |
* Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
|
38 |
* Check-in and check-out days visible like in the other booking systems (mark half of day, instead of the clock icon). This feature is active if the "Use check-in/out time" option is checked at the General Booking Settings page (Business Small/Medium/Large, MultiUser)
|
@@ -153,5 +159,5 @@ Change Log and Features for Future Releases :
|
|
153 |
if (file_exists(WPDEV_BK_PLUGIN_DIR. '/lib/wpdev-booking-ajax.php')) { require_once(WPDEV_BK_PLUGIN_DIR. '/lib/wpdev-booking-ajax.php' ); }
|
154 |
|
155 |
// RUN //
|
156 |
-
$wpdev_bk = new wpdev_booking();
|
157 |
?>
|
3 |
Plugin Name: Booking Calendar
|
4 |
Plugin URI: http://wpbookingcalendar.com/demo/
|
5 |
Description: Online reservation and availability checking service for your site.
|
6 |
+
Version: 4.1.1
|
7 |
Author: wpdevelop
|
8 |
Author URI: http://wpbookingcalendar.com/
|
9 |
Tested WordPress Versions: 2.8.3 - 3.5.2
|
33 |
-----------------------------------------------
|
34 |
Change Log and Features for Future Releases :
|
35 |
-----------------------------------------------
|
36 |
+
= 4.1.1 =
|
37 |
+
* Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
|
38 |
+
* Fix issue of showing the warning message "mktime() expects parameter 1 to be long, string given in" if the time is not selected.
|
39 |
+
* Features and issue fixings in All versions:
|
40 |
+
* Fix issue of showing the "You do not have sufficient permissions to access this page." error.
|
41 |
+
|
42 |
= 4.1 =
|
43 |
* Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
|
44 |
* Check-in and check-out days visible like in the other booking systems (mark half of day, instead of the clock icon). This feature is active if the "Use check-in/out time" option is checked at the General Booking Settings page (Business Small/Medium/Large, MultiUser)
|
159 |
if (file_exists(WPDEV_BK_PLUGIN_DIR. '/lib/wpdev-booking-ajax.php')) { require_once(WPDEV_BK_PLUGIN_DIR. '/lib/wpdev-booking-ajax.php' ); }
|
160 |
|
161 |
// RUN //
|
162 |
+
$wpdev_bk = new wpdev_booking();
|
163 |
?>
|