Version Description
- Features and issue fixings in All versions:
- Fix CSS reseting padding and maring in calendar.css file for the calendar table to prevent conflicts with some WP themes.
- Fix issue of possible JavaScript error "SyntaxError: symbol is not a legal ECMA-262 octal constant", when selecting the start month of availability calendar for the booking shortcode lower then 10.
- Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
- Set day titles in Calendar Overview mode as links for setting start date of booking listing. (Personal, Business Small/Medium/Large, MultiUser)
- Edit booking link in mouse over tooltip at Calendar Overview admin page. (Personal, Business Small/Medium/Large, MultiUser)
- Redirect to the exact previous page, after booking editing, where user was before. (Personal, Business Small/Medium/Large, MultiUser)
- Fix issue of submitting booking form for the several calendars of different booking resources. (Business Medium/Large, MultiUser)
- Fix issue of showing sometimes Warning: Invalid argument supplied for foreach() in ../biz_m.php on line 638 (Business Medium/Large, MultiUser)
- Fix issue of not showing the booking dates in calendar, if booking shortcode is contain empty "agregate" parameter, like this: agregate='' (Personal, Business Small/Medium/Large, MultiUser)
Download this release
Release Info
Developer | wpdevelop |
Plugin | Booking Calendar |
Version | 5.0.2 |
Comparing to | |
See all releases |
Code changes from version 5.0.1 to 5.0.2
- css/admin.css +12 -0
- css/calendar.css +5 -0
- lib/wpdev-bk-timeline.php +19 -4
- lib/wpdev-booking-ajax.php +3 -1
- lib/wpdev-booking-class.php +15 -18
- lib/wpdev-booking-functions.php +21 -0
- lib/wpdev-settings-general.php +8 -8
- readme.txt +14 -2
- wpdev-booking.php +15 -5
css/admin.css
CHANGED
@@ -1920,6 +1920,18 @@ input.filter_avalaibility {
|
|
1920 |
color: #E33;
|
1921 |
font-weight: bold;
|
1922 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1923 |
.calendar_timeline_frame .calendar_overview_cell.cell_header .day_num,
|
1924 |
.calendar_timeline_frame .calendar_overview_cell.cell_header .day_week {
|
1925 |
width: auto;
|
1920 |
color: #E33;
|
1921 |
font-weight: bold;
|
1922 |
}
|
1923 |
+
.calendar_timeline_frame .calendar_overview_cell.cell_header a,
|
1924 |
+
.calendar_timeline_frame .calendar_overview_cell.cell_header a:hover{
|
1925 |
+
color: #777;
|
1926 |
+
text-decoration: none;
|
1927 |
+
cursor: pointer;
|
1928 |
+
}
|
1929 |
+
.calendar_timeline_frame .calendar_overview_cell.weekday6 a,
|
1930 |
+
.calendar_timeline_frame .calendar_overview_cell.weekday7 a,
|
1931 |
+
.calendar_timeline_frame .calendar_overview_cell.weekday6 a:hover,
|
1932 |
+
.calendar_timeline_frame .calendar_overview_cell.weekday7 a:hover {
|
1933 |
+
color: #C33;
|
1934 |
+
}
|
1935 |
.calendar_timeline_frame .calendar_overview_cell.cell_header .day_num,
|
1936 |
.calendar_timeline_frame .calendar_overview_cell.cell_header .day_week {
|
1937 |
width: auto;
|
css/calendar.css
CHANGED
@@ -51,6 +51,11 @@ div.date-content-bottom{
|
|
51 |
border: 0 none;
|
52 |
vertical-align: baseline;
|
53 |
}
|
|
|
|
|
|
|
|
|
|
|
54 |
/* RESET: width to 100% */
|
55 |
.datepick-inline .datepick,
|
56 |
.datepick-inline .datepick-header{
|
51 |
border: 0 none;
|
52 |
vertical-align: baseline;
|
53 |
}
|
54 |
+
#content .datepick-days-cell, /* Reset the padding in TD and TH elements of calendar to prevent conflict with some WP themes */
|
55 |
+
#content .datepick-title-row th{
|
56 |
+
padding: 0px;
|
57 |
+
margin: 0px;
|
58 |
+
}
|
59 |
/* RESET: width to 100% */
|
60 |
.datepick-inline .datepick,
|
61 |
.datepick-inline .datepick-header{
|
lib/wpdev-bk-timeline.php
CHANGED
@@ -506,13 +506,14 @@ function wpdev_bk_timeline_header_row( $start_date = false ) {
|
|
506 |
<?php
|
507 |
|
508 |
$previous_month = '';
|
|
|
509 |
for ($d_inc = 0; $d_inc < $days_num; $d_inc++) {
|
510 |
|
511 |
$real_date = mktime(0, 0, 0, $start_month, ($start_day+$d_inc) , $start_year);
|
512 |
|
513 |
if (date('m.d.Y') == date("m.d.Y", $real_date) ) $is_today = ' today_date ';
|
514 |
else $is_today = '';
|
515 |
-
|
516 |
$yy = date("Y", $real_date); //2012
|
517 |
$mm = date("m", $real_date); //09
|
518 |
$dd = date("d", $real_date); //31
|
@@ -589,9 +590,16 @@ function wpdev_bk_timeline_header_row( $start_date = false ) {
|
|
589 |
|
590 |
<?php if ($month_title != '') { ?>
|
591 |
<div class="month_year"><?php echo $month_title .', ' . $yy ;?></div>
|
592 |
-
<?php }
|
593 |
-
|
594 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
// T i m e c e l l s
|
596 |
$tm = floor(24 / $time_selles_num);
|
597 |
for ($tt = 0; $tt < $time_selles_num; $tt++) { ?>
|
@@ -945,6 +953,13 @@ function get_booking_info_4_tooltip( $bk_id, $bookings, $booking_types, $title_i
|
|
945 |
// $reload_time = 2000;
|
946 |
// setTimeout(function ( ) {location.reload(true);} ,'.$reload_time.');
|
947 |
$title_hint .= '<div style=\'text-align:right;\'>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
948 |
$title_hint .= '<a style=\'margin:-40px 0 0 0;position:absolute;\' href=\'javascript:;\' onclick=\'javascript:approve_unapprove_booking('. $bk_id.',1, '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/accept-24x24.gif\' style=\'width:14px; height:14px;\'></a>';
|
949 |
$title_hint .= '<a style=\'margin:-22px 0 0 -6px;position:absolute;\' href=\'javascript:;\' onclick=\'javascript:approve_unapprove_booking('. $bk_id.',0, '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/remove-16x16.png\' style=\'margin:0px 5px;width:15px; height:15px;\'></a>';
|
950 |
$title_hint .= '<a href=\'javascript:;\' onclick=\'javascript:delete_booking('. $bk_id.', '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/delete_type.png\' style=\'width:13px; height:13px;\'></a>';
|
506 |
<?php
|
507 |
|
508 |
$previous_month = '';
|
509 |
+
$bk_admin_url_today = get_params_in_url( array('scroll_month', 'scroll_day', 'scroll_start_date') );
|
510 |
for ($d_inc = 0; $d_inc < $days_num; $d_inc++) {
|
511 |
|
512 |
$real_date = mktime(0, 0, 0, $start_month, ($start_day+$d_inc) , $start_year);
|
513 |
|
514 |
if (date('m.d.Y') == date("m.d.Y", $real_date) ) $is_today = ' today_date ';
|
515 |
else $is_today = '';
|
516 |
+
|
517 |
$yy = date("Y", $real_date); //2012
|
518 |
$mm = date("m", $real_date); //09
|
519 |
$dd = date("d", $real_date); //31
|
590 |
|
591 |
<?php if ($month_title != '') { ?>
|
592 |
<div class="month_year"><?php echo $month_title .', ' . $yy ;?></div>
|
593 |
+
<?php }
|
594 |
+
if ( ( $view_days_num==30 ) || ( $view_days_num == 60) ) {
|
595 |
+
?><a href='<?php echo $bk_admin_url_today . '&scroll_start_date=' . $yy . '-' . $mm . '-' . $dd ; ?>'><?php
|
596 |
+
}
|
597 |
+
|
598 |
+
?><div class="day_num"><?php echo $day_title;?></div><?php
|
599 |
+
|
600 |
+
if ( ( $view_days_num==30 ) || ( $view_days_num == 60) ) {
|
601 |
+
?></a><?php
|
602 |
+
}
|
603 |
// T i m e c e l l s
|
604 |
$tm = floor(24 / $time_selles_num);
|
605 |
for ($tt = 0; $tt < $time_selles_num; $tt++) { ?>
|
953 |
// $reload_time = 2000;
|
954 |
// setTimeout(function ( ) {location.reload(true);} ,'.$reload_time.');
|
955 |
$title_hint .= '<div style=\'text-align:right;\'>';
|
956 |
+
if ( class_exists('wpdev_bk_personal') ) {
|
957 |
+
$bk_url_add = 'admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking-reservation' ;
|
958 |
+
$bk_hash = (isset($bookings[$bk_id]->hash))?$bookings[$bk_id]->hash:'';
|
959 |
+
$bk_booking_type = $bookings[$bk_id]->booking_type;
|
960 |
+
$edit_booking_url = $bk_url_add . '&booking_type='.$bk_booking_type.'&booking_hash='.$bk_hash.'&parent_res=1' ;
|
961 |
+
$title_hint .= '<a style=\'margin:-60px 0 0 2px;position:absolute;\' href=\''.$edit_booking_url .'\' onclick=\'\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/edit_type.png\' style=\'width:12px; height:13px;\'></a>';
|
962 |
+
}
|
963 |
$title_hint .= '<a style=\'margin:-40px 0 0 0;position:absolute;\' href=\'javascript:;\' onclick=\'javascript:approve_unapprove_booking('. $bk_id.',1, '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/accept-24x24.gif\' style=\'width:14px; height:14px;\'></a>';
|
964 |
$title_hint .= '<a style=\'margin:-22px 0 0 -6px;position:absolute;\' href=\'javascript:;\' onclick=\'javascript:approve_unapprove_booking('. $bk_id.',0, '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/remove-16x16.png\' style=\'margin:0px 5px;width:15px; height:15px;\'></a>';
|
965 |
$title_hint .= '<a href=\'javascript:;\' onclick=\'javascript:delete_booking('. $bk_id.', '. $user_bk_id .', "'. getBookingLocale() .'" , 1 );\' ><img src=\'' . WPDEV_BK_PLUGIN_URL .'/img/delete_type.png\' style=\'width:13px; height:13px;\'></a>';
|
lib/wpdev-booking-ajax.php
CHANGED
@@ -548,7 +548,9 @@ function wpdev_bk_insert_new_booking(){ global $wpdb;
|
|
548 |
document.getElementById('ajax_message').innerHTML = '<?php echo __('Updated successfully', 'wpdev-booking'); ?>';
|
549 |
jQuery('#ajax_message').fadeOut(1000);
|
550 |
document.getElementById('submiting<?php echo $bktype; ?>').innerHTML = '<div style="height:20px;width:100%;text-align:center;margin:15px auto;"><?php echo __('Updated successfully', 'wpdev-booking'); ?></div>';
|
551 |
-
|
|
|
|
|
552 |
<?php } ?>
|
553 |
</script> <?php
|
554 |
|
548 |
document.getElementById('ajax_message').innerHTML = '<?php echo __('Updated successfully', 'wpdev-booking'); ?>';
|
549 |
jQuery('#ajax_message').fadeOut(1000);
|
550 |
document.getElementById('submiting<?php echo $bktype; ?>').innerHTML = '<div style="height:20px;width:100%;text-align:center;margin:15px auto;"><?php echo __('Updated successfully', 'wpdev-booking'); ?></div>';
|
551 |
+
if ( jQuery('#wpdev_http_referer').length > 0 ) {
|
552 |
+
location.href=jQuery('#wpdev_http_referer').val();
|
553 |
+
} else location.href='admin.php?page=<?php echo WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME ;?>wpdev-booking&view_mode=vm_listing&tab=actions&wh_booking_id=<?php echo $my_booking_id;?>';
|
554 |
<?php } ?>
|
555 |
</script> <?php
|
556 |
|
lib/wpdev-booking-class.php
CHANGED
@@ -1033,6 +1033,7 @@ class wpdev_booking {
|
|
1033 |
make_bk_action('write_content_for_popups' );
|
1034 |
//debugq();
|
1035 |
wpdevbk_show_booking_page();
|
|
|
1036 |
//debugq(); ?>
|
1037 |
</div><?php
|
1038 |
//debugq();
|
@@ -1354,10 +1355,6 @@ class wpdev_booking {
|
|
1354 |
|
1355 |
// Write copyright notice if its saved
|
1356 |
function wp_footer() {
|
1357 |
-
if ( ( get_bk_option( 'booking_wpdev_copyright' ) == 'On' ) && (! defined('WPDEV_COPYRIGHT')) ) {
|
1358 |
-
printf(__('%sPowered by wordpress plugins developed by %s', 'wpdev-booking'),'<center><span style="font-size:9px;text-align:center;margin:0 auto;">','<a style="font-size:9px;" href="http://www.wpdevelop.com" target="_blank">www.wpdevelop.com</a></span></center>','&');
|
1359 |
-
define('WPDEV_COPYRIGHT', 1 );
|
1360 |
-
}
|
1361 |
}
|
1362 |
|
1363 |
// Print J a v a S cr i p t & C S S scripts for admin and client side.
|
@@ -1603,7 +1600,7 @@ class wpdev_booking {
|
|
1603 |
$start_js_month = ", false " ;
|
1604 |
if ($start_month_calendar !== false)
|
1605 |
if (is_array($start_month_calendar))
|
1606 |
-
$start_js_month = ", [" . $start_month_calendar[0] . "," . $start_month_calendar[1] . "] ";
|
1607 |
|
1608 |
$start_script_code .= $start_js_month . " ); ";
|
1609 |
}
|
@@ -2066,7 +2063,7 @@ class wpdev_booking {
|
|
2066 |
if ( isset( $attr['type'] ) ) { $my_boook_type = $attr['type']; }
|
2067 |
if ( isset( $attr['form_type'] ) ) { $my_booking_form = $attr['form_type']; }
|
2068 |
|
2069 |
-
if ( isset( $attr['agregate'] ) ) {
|
2070 |
$additional_bk_types = $attr['agregate'];
|
2071 |
$my_boook_type .= ';'.$additional_bk_types;
|
2072 |
}
|
@@ -2095,7 +2092,7 @@ class wpdev_booking {
|
|
2095 |
$bk_otions = array();
|
2096 |
if ( isset( $attr['nummonths'] ) ) { $my_boook_count = $attr['nummonths']; }
|
2097 |
if ( isset( $attr['type'] ) ) { $my_boook_type = $attr['type']; }
|
2098 |
-
if ( isset( $attr['agregate'] ) ) {
|
2099 |
$additional_bk_types = $attr['agregate'];
|
2100 |
$my_boook_type .= ';'.$additional_bk_types;
|
2101 |
}
|
@@ -2338,7 +2335,7 @@ class wpdev_booking {
|
|
2338 |
add_bk_option( 'booking_widget_calendar_count', '1');
|
2339 |
add_bk_option( 'booking_widget_last_field','');
|
2340 |
|
2341 |
-
add_bk_option( '
|
2342 |
add_bk_option( 'booking_is_show_powered_by_notice','On' );
|
2343 |
add_bk_option( 'booking_is_use_captcha' , 'Off' );
|
2344 |
add_bk_option( 'booking_is_show_legend' , 'Off' );
|
@@ -2408,7 +2405,7 @@ class wpdev_booking {
|
|
2408 |
|
2409 |
if( $this->wpdev_bk_personal == false ) {
|
2410 |
$wp_queries[] = "INSERT INTO ".$wpdb->prefix ."booking ( form, modification_date ) VALUES (
|
2411 |
-
'text^name1^Jony~text^secondname1^Smith~text^email1^example-free@
|
2412 |
}
|
2413 |
}
|
2414 |
|
@@ -2451,14 +2448,14 @@ class wpdev_booking {
|
|
2451 |
// Examples in demos
|
2452 |
if ( $is_demo ) { $this->createExamples4Demo(); }
|
2453 |
|
2454 |
-
// Fill Development server by initial bookings
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
|
2462 |
|
2463 |
$this->reindex_booking_db();
|
2464 |
|
@@ -2519,7 +2516,7 @@ class wpdev_booking {
|
|
2519 |
delete_bk_option( 'booking_date_format');
|
2520 |
delete_bk_option( 'booking_date_view_type');
|
2521 |
delete_bk_option( 'booking_is_delete_if_deactive' ); // check
|
2522 |
-
delete_bk_option( '
|
2523 |
delete_bk_option( 'booking_is_show_powered_by_notice' ); // check
|
2524 |
delete_bk_option( 'booking_is_use_captcha' );
|
2525 |
delete_bk_option( 'booking_is_show_legend' );
|
1033 |
make_bk_action('write_content_for_popups' );
|
1034 |
//debugq();
|
1035 |
wpdevbk_show_booking_page();
|
1036 |
+
wpdevbk_show_booking_footer();
|
1037 |
//debugq(); ?>
|
1038 |
</div><?php
|
1039 |
//debugq();
|
1355 |
|
1356 |
// Write copyright notice if its saved
|
1357 |
function wp_footer() {
|
|
|
|
|
|
|
|
|
1358 |
}
|
1359 |
|
1360 |
// Print J a v a S cr i p t & C S S scripts for admin and client side.
|
1600 |
$start_js_month = ", false " ;
|
1601 |
if ($start_month_calendar !== false)
|
1602 |
if (is_array($start_month_calendar))
|
1603 |
+
$start_js_month = ", [" . ($start_month_calendar[0]+0) . "," . ($start_month_calendar[1]+0) . "] ";
|
1604 |
|
1605 |
$start_script_code .= $start_js_month . " ); ";
|
1606 |
}
|
2063 |
if ( isset( $attr['type'] ) ) { $my_boook_type = $attr['type']; }
|
2064 |
if ( isset( $attr['form_type'] ) ) { $my_booking_form = $attr['form_type']; }
|
2065 |
|
2066 |
+
if ( isset( $attr['agregate'] ) && (! empty( $attr['agregate'] )) ) {
|
2067 |
$additional_bk_types = $attr['agregate'];
|
2068 |
$my_boook_type .= ';'.$additional_bk_types;
|
2069 |
}
|
2092 |
$bk_otions = array();
|
2093 |
if ( isset( $attr['nummonths'] ) ) { $my_boook_count = $attr['nummonths']; }
|
2094 |
if ( isset( $attr['type'] ) ) { $my_boook_type = $attr['type']; }
|
2095 |
+
if ( isset( $attr['agregate'] ) && (! empty( $attr['agregate'] )) ) {
|
2096 |
$additional_bk_types = $attr['agregate'];
|
2097 |
$my_boook_type .= ';'.$additional_bk_types;
|
2098 |
}
|
2335 |
add_bk_option( 'booking_widget_calendar_count', '1');
|
2336 |
add_bk_option( 'booking_widget_last_field','');
|
2337 |
|
2338 |
+
add_bk_option( 'booking_wpdev_copyright_adminpanel','On' );
|
2339 |
add_bk_option( 'booking_is_show_powered_by_notice','On' );
|
2340 |
add_bk_option( 'booking_is_use_captcha' , 'Off' );
|
2341 |
add_bk_option( 'booking_is_show_legend' , 'Off' );
|
2405 |
|
2406 |
if( $this->wpdev_bk_personal == false ) {
|
2407 |
$wp_queries[] = "INSERT INTO ".$wpdb->prefix ."booking ( form, modification_date ) VALUES (
|
2408 |
+
'text^name1^Jony~text^secondname1^Smith~text^email1^example-free@wpbookingcalendar.com~text^phone1^8(038)458-77-77~textarea^details1^Reserve a room with sea view', NOW() );";
|
2409 |
}
|
2410 |
}
|
2411 |
|
2448 |
// Examples in demos
|
2449 |
if ( $is_demo ) { $this->createExamples4Demo(); }
|
2450 |
|
2451 |
+
// // Fill Development server by initial bookings
|
2452 |
+
// if ( $_SERVER['HTTP_HOST'] === 'dev' ) {
|
2453 |
+
// for ($i = 0; $i < 5; $i++) {
|
2454 |
+
// //if (!class_exists('wpdev_bk_personal'))
|
2455 |
+
// $this->createExamples4Demo( array(1,2,3,4,5,6,7,8,9,10,11,12) );
|
2456 |
+
// }
|
2457 |
+
// }
|
2458 |
+
// $this->setDefaultInitialValues();
|
2459 |
|
2460 |
$this->reindex_booking_db();
|
2461 |
|
2516 |
delete_bk_option( 'booking_date_format');
|
2517 |
delete_bk_option( 'booking_date_view_type');
|
2518 |
delete_bk_option( 'booking_is_delete_if_deactive' ); // check
|
2519 |
+
delete_bk_option( 'booking_wpdev_copyright_adminpanel' ); // check
|
2520 |
delete_bk_option( 'booking_is_show_powered_by_notice' ); // check
|
2521 |
delete_bk_option( 'booking_is_use_captcha' );
|
2522 |
delete_bk_option( 'booking_is_show_legend' );
|
lib/wpdev-booking-functions.php
CHANGED
@@ -1858,4 +1858,25 @@
|
|
1858 |
}
|
1859 |
}
|
1860 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1861 |
?>
|
1858 |
}
|
1859 |
}
|
1860 |
|
1861 |
+
function wpdevbk_show_booking_footer(){
|
1862 |
+
$wpdev_copyright_adminpanel = get_bk_option( 'booking_wpdev_copyright_adminpanel' ); // check
|
1863 |
+
if ( ( $wpdev_copyright_adminpanel !== 'Off' ) && ( ! wpdev_bk_is_this_demo() ) ) {
|
1864 |
+
$message = '';
|
1865 |
+
$message .= '<a target="_blank" href="http://wpbookingcalendar.com/">Booking Calendar</a> ' . __('version','wpdev-booking') . ' ' . WP_BK_VERSION_NUM ;
|
1866 |
+
|
1867 |
+
$message .= ' | '. sprintf(__('Add your %s on %swordpress.org%s, if you enjoyed by this plugin.','wpdev-booking'),
|
1868 |
+
'<a target="_blank" href="http://goo.gl/tcrrpK" >★★★★★</a>',
|
1869 |
+
'<a target="_blank" href="http://goo.gl/tcrrpK" >',
|
1870 |
+
'</a>' );
|
1871 |
+
|
1872 |
+
echo '<div id="wpbc-footer" style="position:absolute;bottom:40px;text-align:left;width:100%;font-size:10px;text-shadow:0 1px 0 #fff;margin:0;color:#888;">' . $message . '</div>';
|
1873 |
+
?>
|
1874 |
+
<script type="text/javascript">
|
1875 |
+
jQuery(document).ready(function(){
|
1876 |
+
jQuery('#wpfooter').append( jQuery('#wpbc-footer') );
|
1877 |
+
});
|
1878 |
+
</script>
|
1879 |
+
<?php
|
1880 |
+
}
|
1881 |
+
}
|
1882 |
?>
|
lib/wpdev-settings-general.php
CHANGED
@@ -41,7 +41,7 @@
|
|
41 |
|
42 |
|
43 |
if (isset($_POST['is_delete_if_deactive'])) $is_delete_if_deactive = $_POST['is_delete_if_deactive']; // check
|
44 |
-
if (isset($_POST['
|
45 |
if (isset($_POST['booking_is_show_powered_by_notice'])) $booking_is_show_powered_by_notice = $_POST['booking_is_show_powered_by_notice']; // check
|
46 |
|
47 |
if (isset($_POST['is_use_captcha'])) $is_use_captcha = $_POST['is_use_captcha']; // check
|
@@ -172,9 +172,9 @@
|
|
172 |
if (isset( $booking_is_show_powered_by_notice )) $booking_is_show_powered_by_notice = 'On';
|
173 |
else $booking_is_show_powered_by_notice = 'Off';
|
174 |
update_bk_option( 'booking_is_show_powered_by_notice' , $booking_is_show_powered_by_notice );
|
175 |
-
if (isset( $
|
176 |
-
else $
|
177 |
-
update_bk_option( '
|
178 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
179 |
if (isset( $is_use_captcha )) $is_use_captcha = 'On';
|
180 |
else $is_use_captcha = 'Off';
|
@@ -225,7 +225,7 @@
|
|
225 |
|
226 |
|
227 |
$is_delete_if_deactive = get_bk_option( 'booking_is_delete_if_deactive' ); // check
|
228 |
-
$
|
229 |
$booking_is_show_powered_by_notice = get_bk_option( 'booking_is_show_powered_by_notice' ); // check
|
230 |
$is_use_captcha = get_bk_option( 'booking_is_use_captcha' ); // check
|
231 |
$is_use_autofill_4_logged_user = get_bk_option( 'booking_is_use_autofill_4_logged_user' ); // check
|
@@ -342,9 +342,9 @@
|
|
342 |
|
343 |
|
344 |
<tr valign="top">
|
345 |
-
<th scope="row"><label for="
|
346 |
-
<td><input id="
|
347 |
-
<span class="description"><?php printf(__(' Turn On/Off
|
348 |
</td>
|
349 |
</tr>
|
350 |
|
41 |
|
42 |
|
43 |
if (isset($_POST['is_delete_if_deactive'])) $is_delete_if_deactive = $_POST['is_delete_if_deactive']; // check
|
44 |
+
if (isset($_POST['wpdev_copyright_adminpanel'])) $wpdev_copyright_adminpanel = $_POST['wpdev_copyright_adminpanel']; // check
|
45 |
if (isset($_POST['booking_is_show_powered_by_notice'])) $booking_is_show_powered_by_notice = $_POST['booking_is_show_powered_by_notice']; // check
|
46 |
|
47 |
if (isset($_POST['is_use_captcha'])) $is_use_captcha = $_POST['is_use_captcha']; // check
|
172 |
if (isset( $booking_is_show_powered_by_notice )) $booking_is_show_powered_by_notice = 'On';
|
173 |
else $booking_is_show_powered_by_notice = 'Off';
|
174 |
update_bk_option( 'booking_is_show_powered_by_notice' , $booking_is_show_powered_by_notice );
|
175 |
+
if (isset( $wpdev_copyright_adminpanel )) $wpdev_copyright_adminpanel = 'On';
|
176 |
+
else $wpdev_copyright_adminpanel = 'Off';
|
177 |
+
update_bk_option( 'booking_wpdev_copyright_adminpanel' , $wpdev_copyright_adminpanel );
|
178 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
179 |
if (isset( $is_use_captcha )) $is_use_captcha = 'On';
|
180 |
else $is_use_captcha = 'Off';
|
225 |
|
226 |
|
227 |
$is_delete_if_deactive = get_bk_option( 'booking_is_delete_if_deactive' ); // check
|
228 |
+
$wpdev_copyright_adminpanel = get_bk_option( 'booking_wpdev_copyright_adminpanel' ); // check
|
229 |
$booking_is_show_powered_by_notice = get_bk_option( 'booking_is_show_powered_by_notice' ); // check
|
230 |
$is_use_captcha = get_bk_option( 'booking_is_use_captcha' ); // check
|
231 |
$is_use_autofill_4_logged_user = get_bk_option( 'booking_is_use_autofill_4_logged_user' ); // check
|
342 |
|
343 |
|
344 |
<tr valign="top">
|
345 |
+
<th scope="row"><label for="wpdev_copyright_adminpanel" ><?php _e('Copyright notice', 'wpdev-booking'); ?>:</label></th>
|
346 |
+
<td><input id="wpdev_copyright_adminpanel" type="checkbox" <?php if ($wpdev_copyright_adminpanel == 'On') echo "checked"; ?> value="<?php echo $wpdev_copyright_adminpanel; ?>" name="wpdev_copyright_adminpanel"/>
|
347 |
+
<span class="description"><?php printf(__(' Turn On/Off version notice at footer of booking admin panel.', 'wpdev-booking'),'wpbookingcalendar.com');?></span>
|
348 |
</td>
|
349 |
</tr>
|
350 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdevelop
|
|
3 |
Donate link: http://wpbookingcalendar.com/buy/
|
4 |
Tags: booking, booking calendar, accommodations, appointment, availability, availability calendar, bed and breakfast, booking form, booking system, bookings, calendar, contact form, event, event calendar, events, hotel, meeting, online booking calendar, online reservation, reservation, reservation plugin, rooms, schedule, scheduling
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 3.6
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -148,6 +148,18 @@ If you have any further questions, please fill free to <a href="mailto:support@w
|
|
148 |
10. **Calendar Skins**. Select calendar skin for better fitting to your site design.
|
149 |
|
150 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
= 5.0.1 =
|
152 |
* Fixed of incorrect saving checkbox data.
|
153 |
* Customization of booking shortcode for **setting specific week day(s)** as the **start day of selection in calendar**, for the specific **season filter**. (Business Medium/Large, MultiUser)
|
3 |
Donate link: http://wpbookingcalendar.com/buy/
|
4 |
Tags: booking, booking calendar, accommodations, appointment, availability, availability calendar, bed and breakfast, booking form, booking system, bookings, calendar, contact form, event, event calendar, events, hotel, meeting, online booking calendar, online reservation, reservation, reservation plugin, rooms, schedule, scheduling
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 3.6.1
|
7 |
+
Stable tag: 5.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
148 |
10. **Calendar Skins**. Select calendar skin for better fitting to your site design.
|
149 |
|
150 |
== Changelog ==
|
151 |
+
= 5.0.2 =
|
152 |
+
* Features and issue fixings in All versions:
|
153 |
+
* Fix CSS reseting padding and maring in calendar.css file for the calendar table to prevent conflicts with some WP themes.
|
154 |
+
* Fix issue of possible JavaScript error "SyntaxError: symbol is not a legal ECMA-262 octal constant", when selecting the start month of availability calendar for the booking shortcode lower then 10.
|
155 |
+
* Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
|
156 |
+
* Set **day titles** in Calendar Overview mode as **links for setting start date** of booking listing. (Personal, Business Small/Medium/Large, MultiUser)
|
157 |
+
* **Edit booking link** in mouse over tooltip at Calendar Overview admin page. (Personal, Business Small/Medium/Large, MultiUser)
|
158 |
+
* Redirect to the exact previous page, after booking editing, where user was before. (Personal, Business Small/Medium/Large, MultiUser)
|
159 |
+
* Fix issue of submitting booking form for the several calendars of different booking resources. (Business Medium/Large, MultiUser)
|
160 |
+
* Fix issue of showing sometimes Warning: Invalid argument supplied for foreach() in ../biz_m.php on line 638 (Business Medium/Large, MultiUser)
|
161 |
+
* Fix issue of not showing the booking dates in calendar, if booking shortcode is contain empty "agregate" parameter, like this: agregate='' (Personal, Business Small/Medium/Large, MultiUser)
|
162 |
+
|
163 |
= 5.0.1 =
|
164 |
* Fixed of incorrect saving checkbox data.
|
165 |
* Customization of booking shortcode for **setting specific week day(s)** as the **start day of selection in calendar**, for the specific **season filter**. (Business Medium/Large, MultiUser)
|
wpdev-booking.php
CHANGED
@@ -3,10 +3,10 @@
|
|
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: 5.0.
|
7 |
Author: wpdevelop
|
8 |
Author URI: http://wpbookingcalendar.com/
|
9 |
-
Tested WordPress Versions: 3.3 - 3.6
|
10 |
*/
|
11 |
|
12 |
/* Copyright 2009 - 2013 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|
@@ -40,7 +40,17 @@ Change Log and Features for Future Releases :
|
|
40 |
*
|
41 |
*
|
42 |
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
= 5.0.1 =
|
46 |
* Fixed of incorrect saving checkbox data.
|
@@ -172,9 +182,9 @@ Change Log and Features for Future Releases :
|
|
172 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
173 |
// D e f i n e S T A T I C //////////////////////////////////////////////////////////////////////////////////////////////////
|
174 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
175 |
-
if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '5.0.
|
176 |
if (!defined('WP_BK_SSL')) define('WP_BK_SSL', false );
|
177 |
-
if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE',
|
178 |
if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
|
179 |
if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
|
180 |
if (!defined('WP_BK_SHOW_INFO_IN_FORM')) define('WP_BK_SHOW_INFO_IN_FORM', false ); // This feature can impact to the performace
|
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: 5.0.2
|
7 |
Author: wpdevelop
|
8 |
Author URI: http://wpbookingcalendar.com/
|
9 |
+
Tested WordPress Versions: 3.3 - 3.6.1
|
10 |
*/
|
11 |
|
12 |
/* Copyright 2009 - 2013 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|
40 |
*
|
41 |
*
|
42 |
|
43 |
+
= 5.0.2 =
|
44 |
+
* Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
|
45 |
+
* Set **day titles** in Calendar Overview mode as **links for setting start date** of booking listing. (Personal, Business Small/Medium/Large, MultiUser)
|
46 |
+
* **Edit booking link** in mouse over tooltip at Calendar Overview admin page. (Personal, Business Small/Medium/Large, MultiUser)
|
47 |
+
* Redirect to the exact previous page, after booking editing, where user was before. (Personal, Business Small/Medium/Large, MultiUser)
|
48 |
+
* Fix issue of submitting booking form for the several calendars of different booking resources. (Business Medium/Large, MultiUser)
|
49 |
+
* Fix issue of showing sometimes Warning: Invalid argument supplied for foreach() in ../biz_m.php on line 638
|
50 |
+
* Fix issue of not showing the booking dates in calendar, if booking shortcode is contain empty "agregate" parameter, like this: agregate=''
|
51 |
+
* Features and issue fixings in All versions:
|
52 |
+
* Fix issue of possible JavaScript error "SyntaxError: symbol is not a legal ECMA-262 octal constant", when selecting the start month of availability calendar for the booking shortcode lower then 10.
|
53 |
+
* Fix CSS reseting padding and maring in calendar.css file for the calendar table to prevent conflicts with some WP themes.
|
54 |
|
55 |
= 5.0.1 =
|
56 |
* Fixed of incorrect saving checkbox data.
|
182 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
183 |
// D e f i n e S T A T I C //////////////////////////////////////////////////////////////////////////////////////////////////
|
184 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
185 |
+
if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '5.0.2' );
|
186 |
if (!defined('WP_BK_SSL')) define('WP_BK_SSL', false );
|
187 |
+
if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE', true );
|
188 |
if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
|
189 |
if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
|
190 |
if (!defined('WP_BK_SHOW_INFO_IN_FORM')) define('WP_BK_SHOW_INFO_IN_FORM', false ); // This feature can impact to the performace
|