WP Simple Booking Calendar - Version 1.5

Version Description

  • The admin panel is now fully responsive
  • Updated the Premium features list
Download this release

Release Info

Developer bryght
Plugin Icon 128x128 WP Simple Booking Calendar
Version 1.5
Comparing to
See all releases

Code changes from version 1.4.1 to 1.5

css/sbc-controller.css CHANGED
@@ -3,8 +3,9 @@
3
  #sbc-wrapper div.postbox-container {
4
  float: none;
5
  padding: 0;
6
- min-width: 440px;
7
- width: 440px;
 
8
  }
9
 
10
  #sbc-calendar {
@@ -13,17 +14,22 @@ margin: 0 3px 30px 0;
13
  }
14
 
15
  #sbc-wrapper div.postbox div.inside {
16
- margin: 14px 18px 18px;
17
  position: relative;
18
  }
19
 
 
 
 
 
20
  #sbc-wrapper div.postbox-container p {
21
  margin: 20px 0;
 
22
  }
23
 
24
  #sbc-wrapper div.postbox-container label {
25
  display: block;
26
- font-size: 12px;
27
  font-weight: bold;
28
  margin: 0 0 3px;
29
  }
@@ -67,12 +73,12 @@ margin: 0 3px 30px 0;
67
  div.buy-full h1 {font-weight:bold; font-size:20px; line-height:30px; margin-top:30px;}
68
  div.buy-full .box {float:left; padding:15px 15px 7px 15px; width:255px; border:1px solid #cccccc; margin-right:15px; background-color:#fff;}
69
  div.buy-full .box h1 {padding:0px; margin:0px; border-bottom:1px solid #cccccc; color:#0084ff; font-weight:normal; font-size:26px; display:block; text-align:center; padding:11px 0 26px 0;}
70
- div.buy-full .box ul {list-style:none; padding-top:9px; display:block; height:290px;}
71
 
72
  div.buy-full .box ul li {background: transparent url(../images/checked-icon.jpg) no-repeat left 6px; color:#666666; font-size:14px; padding:6px 0 5px 21px;}
73
- div.buy-full .box h2 {font-weight:normal; display:block; text-align:center; color:#0084ff; font-size:30px; float:left; margin:0 0 0 25px;}
74
- div.buy-full .box small {color:#0084ff; font-size:14px; display:block; margin:7px 0 0 -7px; float:left;}
75
- div.buy-full .box span {display:block; height:30px; line-height:30px; text-align:center;}
76
  div.buy-full .box p {font-size:14px; color:#666666; padding:13px 20px 6px 20px;}
77
  div.buy-full .box strong {font-weight:normal; color:#0084ff;}
78
  div.buy-full .box a.button {-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;font-size:18px; color:#ffffff; text-shadow:0px 2px 2px rgba(0, 0, 0, 0.4); display:block; height:45px; line-height:45px; text-align:center; background: transparent url(../images/button-bg.png) repeat-x left top; border:none; text-decoration:none; clear:both;}
3
  #sbc-wrapper div.postbox-container {
4
  float: none;
5
  padding: 0;
6
+
7
+ /*width: 440px;*/
8
+ position:relative;
9
  }
10
 
11
  #sbc-calendar {
14
  }
15
 
16
  #sbc-wrapper div.postbox div.inside {
17
+ margin: 14px 10px;
18
  position: relative;
19
  }
20
 
21
+ #sbc-wrapper .wpsbc-buttons-container {
22
+ position: absolute; top: -30px; right: 0;
23
+ }
24
+
25
  #sbc-wrapper div.postbox-container p {
26
  margin: 20px 0;
27
+ padding-top:0px;
28
  }
29
 
30
  #sbc-wrapper div.postbox-container label {
31
  display: block;
32
+ /*font-size: 12px;*/
33
  font-weight: bold;
34
  margin: 0 0 3px;
35
  }
73
  div.buy-full h1 {font-weight:bold; font-size:20px; line-height:30px; margin-top:30px;}
74
  div.buy-full .box {float:left; padding:15px 15px 7px 15px; width:255px; border:1px solid #cccccc; margin-right:15px; background-color:#fff;}
75
  div.buy-full .box h1 {padding:0px; margin:0px; border-bottom:1px solid #cccccc; color:#0084ff; font-weight:normal; font-size:26px; display:block; text-align:center; padding:11px 0 26px 0;}
76
+ div.buy-full .box ul {list-style:none; padding-top:9px; display:block; height:456px;}
77
 
78
  div.buy-full .box ul li {background: transparent url(../images/checked-icon.jpg) no-repeat left 6px; color:#666666; font-size:14px; padding:6px 0 5px 21px;}
79
+ div.buy-full .box h2 {font-weight:normal; display:block; text-align:center; color:#0084ff; font-size:30px; float:left; margin:0 0 0 25px; padding:19px 0 0 0;}
80
+ div.buy-full .box small {color:#0084ff; font-size:14px; display:block; margin:8px 0 0 6px; float:left;}
81
+ div.buy-full .box span {display:block; height:50px; line-height:50px; text-align:center;}
82
  div.buy-full .box p {font-size:14px; color:#666666; padding:13px 20px 6px 20px;}
83
  div.buy-full .box strong {font-weight:normal; color:#0084ff;}
84
  div.buy-full .box a.button {-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;font-size:18px; color:#ffffff; text-shadow:0px 2px 2px rgba(0, 0, 0, 0.4); display:block; height:45px; line-height:45px; text-align:center; background: transparent url(../images/button-bg.png) repeat-x left top; border:none; text-decoration:none; clear:both;}
images/Thumbs.db DELETED
Binary file
readme.txt CHANGED
@@ -1,49 +1,56 @@
1
  === WP Simple Booking Calendar ===
2
- Contributors: Bryght, BestWebSoft
3
- Tags: booking calendar, bookings, booking, bookable, calendar, availability calendar, availability, reservation calendar, reservations, scheduling, schedule, rooms, hotel, holiday home, accommodations, dateblocker, date blocker, bed and breakfast, belegungsplan, beschikbaarheidskalender
4
  Requires at least: 3.0
5
- Tested up to: 4.4
6
- Stable tag: 1.4.1
7
 
8
  This booking calendar shows when something is booked or available. Use it to show when your holiday home is available for rent, for example.
9
 
10
  == Description ==
11
 
12
- Create a booking calendar for your website! Do you want to show people when your holiday home (or something else) is available for rent? You can create, edit and publish a booking calendar with just a few clicks with the WP Simple Booking Calendar. This booking calendar is very easy to use! You can manage the bookings (availability) on a daily basis and embedding the booking calendar on a page takes only one mouse click. You can also use the WP Simple Booking Calendar Widget to show a booking calendar on your WordPress website. Check out http://www.wpsimplebookingcalendar.com for more information about this booking calendar.
13
 
14
- You can use this booking calendar as:
 
15
 
16
- * Booking calendar / availability calendar for a holiday home, bed & breakfast, condo or hotel
17
- * Booking calendar / availability calendar for a room or office
18
- * Booking calendar / availability calendar for a car or boat
19
- * A booking calendar for equipment
20
- * A shift calendar
21
- * Whatever you like!
22
 
23
- Features of the Free version:
 
 
 
24
 
25
- * Create a booking calendar and set a status per date
26
- * Generate a token to insert the booking calendar in a page or post
27
- * WP Simple Booking Calendar Widget (booking calendar as widget)
28
- * Can be translated into other languages using PO files
29
-
30
- Features of the Premium version:
31
 
 
32
  * Create an unlimited number of booking calendars
33
  * Display multiple months
34
  * Edit multiple dates with one click
35
  * Display a legend near the calendar
36
- * Create your own legend (apply your own colours and translations)
37
  * Change the first day of the week
38
- * Change the start month / year
39
  * Add and save booking information for each day on each of your booking calendars
40
- * User management: assign users to calendars
41
  * Display a tooltip with info (you can enter info for each day)
42
- * Show the week's number
43
- * Generate a token to insert the booking calendar in a page or post
44
- * WP Simple Booking Calendar Widget (booking calendar as widget)
45
- * Easy to translate into your own language
46
- * Download the Premium version at: http://www.wpsimplebookingcalendar.com
 
 
 
 
 
 
 
 
47
 
48
 
49
  == Installation ==
@@ -52,10 +59,10 @@ Features of the Premium version:
52
  2. Activate the plugin through the 'Plugins' menu in WordPress
53
  3. Click on the menu entry 'WP Simple Booking Calendar'
54
  4. Click on 'Add New' at the top of the page to create a calendar
55
- 5. Click 'Save Changes' at the bottom of the page to save the calendar
56
  6. Embed the calendar on any page or post using the shortcode **[sbc title="yes"]** or **[sbc title="no"]**
57
 
58
- A sidebar widget is also available
59
 
60
 
61
  == Frequently Asked Questions ==
@@ -70,17 +77,21 @@ Edit the shortcode: title="no".
70
 
71
  = I have another question =
72
 
73
- Please see http://www.wpsimplebookingcalendar.com for more information and ask your questions there!
74
 
75
 
76
  == Screenshots ==
77
 
78
- 1. Two month view of the booking calendar (free version supports one month view only)
79
- 2. The booking calendar in a sidebar as widget
80
  3. Editing the booking calendar
81
 
82
  == Changelog ==
83
 
 
 
 
 
84
  = 1.4.1 =
85
  * Small hash tweak
86
 
@@ -102,6 +113,10 @@ Please see http://www.wpsimplebookingcalendar.com for more information and ask y
102
 
103
  == Upgrade Notice ==
104
 
 
 
 
 
105
  = 1.4.1 =
106
  * Small hash tweak
107
 
1
  === WP Simple Booking Calendar ===
2
+ Contributors: simplebookingcalendar
3
+ Tags: booking calendar, availability calendar, belegungsplan, bookings, calendar
4
  Requires at least: 3.0
5
+ Tested up to: 4.8
6
+ Stable tag: 1.5
7
 
8
  This booking calendar shows when something is booked or available. Use it to show when your holiday home is available for rent, for example.
9
 
10
  == Description ==
11
 
12
+ Do you need a booking calendar to show the availability of your holiday home? If you are renting your holiday home to tourists from around the world, you should use this Free plugin on your website! This booking calendar comes in handy any time you want to display the availability of a holiday home, room, bed & breakfast, office or even a piece of equipment.
13
 
14
+ = Installing and embedding the booking calendar on your page only takes a couple of minutes =
15
+ Thanks to the latest updates, this availability calendar is now easier to use than ever. What WP Simple Booking Calendar does is allow your website visitors to check the availability of your holiday home with just a few clicks. Plus, it gives you complete editing freedom!
16
 
17
+ The Free version gives you access to all the basic features you might need to keep track of your bookings. For advanced features such as custom legend items and advanced editing and publishing options, you can always upgrade to the Premium Version. By ordering the calendar's Premium version, you'll gain access to a wide range of customization options and editing features.
 
 
 
 
 
18
 
19
+ = How does WP Simple Booking Calendar come in handy? =
20
+ * Displaying the availability dates of your holiday home
21
+ * Showing people when your new holiday home is available for rent, thus reducing the time spent communicating with them via phone, chat or email.
22
+ * Can also be used as a shift calendar or for displaying the availability for a room, office or piece of equipment
23
 
24
+ = Features of the Free version =
25
+ * Create one calendar
26
+ * Simple user-friendly interface
27
+ * Displays availability
28
+ * Language translation options using PO files
 
29
 
30
+ = Features of the Premium version =
31
  * Create an unlimited number of booking calendars
32
  * Display multiple months
33
  * Edit multiple dates with one click
34
  * Display a legend near the calendar
35
+ * Create your own legend (apply your own colors and languages)
36
  * Change the first day of the week
37
+ * Change the start month/year
38
  * Add and save booking information for each day on each of your booking calendars
39
+ * User management: assign specific users to specific calendars
40
  * Display a tooltip with info (you can enter info for each day)
41
+ * Show the week's number (from 1 to 52)
42
+ * Hide booking history from your visitors
43
+ * Enjoy a variety of language preferences that are simple to use and display
44
+ * Generate a shortcode to display the booking calendar on a page or post
45
+ * WP Simple Booking Calendar Widget (booking calendar as a widget)
46
+ * Sync your calendars to Airbnb, FlipKey and other VR sites (iCalendar)
47
+ * Professional support
48
+
49
+ = Exporting to Booking.com, Airbnb, FlipKey =
50
+ Do you feature your holiday home on multiple websites and need to sync availability data from one website to the other? With WP Simple Booking Calendar you can easily export the data from your calendars to Airbnb, FlipKey, Google Calendar and other websites.
51
+
52
+ = Download =
53
+ Download the Premium version at http://www.wpsimplebookingcalendar.com to discover its unlimited advantages.
54
 
55
 
56
  == Installation ==
59
  2. Activate the plugin through the 'Plugins' menu in WordPress
60
  3. Click on the menu entry 'WP Simple Booking Calendar'
61
  4. Click on 'Add New' at the top of the page to create a calendar
62
+ 5. Click 'Save Changes' to save the calendar
63
  6. Embed the calendar on any page or post using the shortcode **[sbc title="yes"]** or **[sbc title="no"]**
64
 
65
+ A widget of the booking calendar is also available
66
 
67
 
68
  == Frequently Asked Questions ==
77
 
78
  = I have another question =
79
 
80
+ Please check http://www.wpsimplebookingcalendar.com for more information.
81
 
82
 
83
  == Screenshots ==
84
 
85
+ 1. The booking calendar in a sidebar as a widget
86
+ 2. Different styling
87
  3. Editing the booking calendar
88
 
89
  == Changelog ==
90
 
91
+ = 1.5 =
92
+ * The admin panel is now fully responsive
93
+ * Updated the Premium features list
94
+
95
  = 1.4.1 =
96
  * Small hash tweak
97
 
113
 
114
  == Upgrade Notice ==
115
 
116
+ = 1.5 =
117
+ * The admin panel is now fully responsive
118
+ * Updated the Premium features list
119
+
120
  = 1.4.1 =
121
  * Small hash tweak
122
 
screenshot-1.jpg CHANGED
Binary file
screenshot-3.jpg CHANGED
Binary file
views/controller/edit.phtml CHANGED
@@ -8,20 +8,23 @@
8
 
9
  <div id="sbc-wrapper" class="wrap">
10
  <div id="icon-options-general" class="icon32"><br /></div>
11
- <h2><a href="<?php echo $this->controllerUrl ?>"><?php esc_html_e('WP Simple Booking Calendar', 'sbc') ?></a></h2>
12
 
13
  <div class="postbox-container">
14
  <div class="metabox-holder">
15
  <div class="meta-box-sortables ui-sortable">
16
 
17
  <form id="edit-calendar" method="post" action="">
18
-
 
 
 
19
  <div class="postbox">
20
- <div class="handlediv" title="<?php esc_attr_e('Click to toggle', 'sbc') ?>"><br /></div>
21
- <h3 class="hndle"><span><?php echo esc_html($this->actionName) ?></span></h3>
22
  <div class="inside">
23
  <p>
24
- <label for="calendarName"><?php esc_html_e('Calendar Name', 'sbc') ?></label>
25
  <input type="text" id="calendarName" name="calendarName" class="required widefat" value="<?php echo esc_attr($this->calendarName) ?>" minlength="3" maxlength="200" />
26
  </p>
27
  <div id="sbc-calendar-wrapper">
@@ -33,7 +36,8 @@
33
  <p class="submit">
34
  <?php wp_nonce_field($this->nonceAction) ?>
35
  <input type="hidden" name="calendarData" value="" />
36
- <input class="button-primary" type="submit" name="submit" value="<?php esc_attr_e('Save Changes', 'sbc') ?>" />
 
37
  </p>
38
 
39
  </form>
8
 
9
  <div id="sbc-wrapper" class="wrap">
10
  <div id="icon-options-general" class="icon32"><br /></div>
11
+ <h2><?php esc_html_e('Edit Calendar', 'sbc') ?></h2>
12
 
13
  <div class="postbox-container">
14
  <div class="metabox-holder">
15
  <div class="meta-box-sortables ui-sortable">
16
 
17
  <form id="edit-calendar" method="post" action="">
18
+ <div class="wpsbc-buttons-container">
19
+ <button class="button-secondary button-large button" onclick="window.location='<?php echo $this->controllerUrl;?>'">Back</button>
20
+ <input class="button button-primary button-large" type="submit" name="submit" value="<?php esc_attr_e('Save Changes', 'sbc') ?>" />
21
+ </div>
22
  <div class="postbox">
23
+
24
+
25
  <div class="inside">
26
  <p>
27
+ <label for="calendarName"><?php esc_html_e('Calendar Title', 'sbc') ?></label>
28
  <input type="text" id="calendarName" name="calendarName" class="required widefat" value="<?php echo esc_attr($this->calendarName) ?>" minlength="3" maxlength="200" />
29
  </p>
30
  <div id="sbc-calendar-wrapper">
36
  <p class="submit">
37
  <?php wp_nonce_field($this->nonceAction) ?>
38
  <input type="hidden" name="calendarData" value="" />
39
+ <input class="button button-primary button-large" type="submit" name="submit" value="<?php esc_attr_e('Save Changes', 'sbc') ?>" />
40
+ <button class="button button-large button-secondary" onclick="window.location='<?php echo $this->controllerUrl;?>'">Back</button>
41
  </p>
42
 
43
  </form>
views/controller/index.phtml CHANGED
@@ -8,11 +8,11 @@
8
 
9
  <div id="sbc-wrapper" class="wrap">
10
  <div id="icon-options-general" class="icon32"><br /></div>
11
- <h2><?php esc_html_e('WP Simple Booking Calendar', 'sbc') ?>
12
  <?php if (!is_array($this->calendar) || count($this->calendar) == 0): ?>
13
- <a class="button add-new-h2" href="<?php echo $this->addControllerUrl ?>"><?php esc_html_e('Add New', 'sbc') ?></a>
14
  <?php endif; ?>
15
- </h2>
16
 
17
  <?php if (is_array($this->calendar) && count($this->calendar)): ?>
18
  <table class="widefat post fixed" cellspacing="0">
@@ -49,7 +49,7 @@
49
  </p>
50
  </div>
51
  <div class="buy-full">
52
- <h1>Need more calendars? Want a better booking calendar?</h1>
53
  <div class="box first">
54
  <h1>Free</h1>
55
  <ul>
@@ -68,12 +68,17 @@
68
  <li>Create unlimited calendars</li>
69
  <li>Display multiple months</li>
70
  <li>Edit multiple dates with one click</li>
71
- <li>Display a legend</li>
72
  <li>Create your own legend</li>
73
  <li>Change the first day of week</li>
74
  <li>Change the start month &amp; year</li>
75
  <li>Save booking information</li>
 
76
  <li>Assign users to calendars</li>
 
 
 
 
77
  </ul>
78
  <span><h2>&dollar;29 </h2><small>one-time payment</small></span>
79
  <div class="bottom">
@@ -84,6 +89,6 @@
84
 
85
  </div>
86
  <?php else: ?>
87
- <p><?php esc_html_e('No calendar found.', 'sbc') ?></p>
88
  <?php endif ?>
89
  </div>
8
 
9
  <div id="sbc-wrapper" class="wrap">
10
  <div id="icon-options-general" class="icon32"><br /></div>
11
+ <h1><?php esc_html_e('WP Simple Booking Calendar', 'sbc') ?>
12
  <?php if (!is_array($this->calendar) || count($this->calendar) == 0): ?>
13
+ <a class="page-title-action" href="<?php echo $this->addControllerUrl ?>"><?php esc_html_e('Add New', 'sbc') ?></a>
14
  <?php endif; ?>
15
+ </h1>
16
 
17
  <?php if (is_array($this->calendar) && count($this->calendar)): ?>
18
  <table class="widefat post fixed" cellspacing="0">
49
  </p>
50
  </div>
51
  <div class="buy-full">
52
+ <h1>Upgrade to the Premium version</h1>
53
  <div class="box first">
54
  <h1>Free</h1>
55
  <ul>
68
  <li>Create unlimited calendars</li>
69
  <li>Display multiple months</li>
70
  <li>Edit multiple dates with one click</li>
71
+ <li>Display a legend near the calendar</li>
72
  <li>Create your own legend</li>
73
  <li>Change the first day of week</li>
74
  <li>Change the start month &amp; year</li>
75
  <li>Save booking information</li>
76
+ <li>Display tooltips with info</li>
77
  <li>Assign users to calendars</li>
78
+ <li>Show the week's number</li>
79
+ <li>Hide booking history</li>
80
+ <li>Sync your calendars (iCalendar)</li>
81
+ <li>Professional support</li>
82
  </ul>
83
  <span><h2>&dollar;29 </h2><small>one-time payment</small></span>
84
  <div class="bottom">
89
 
90
  </div>
91
  <?php else: ?>
92
+ <p><?php esc_html_e('No calendars found.', 'sbc') ?> <a href="<?php echo $this->addControllerUrl ?>"><?php esc_html_e('Click here to create a new calendar.', 'sbc') ?></a></p>
93
  <?php endif ?>
94
  </div>
wp-simple-booking-calendar.php CHANGED
@@ -3,15 +3,15 @@
3
  * Plugin Name: WP Simple Booking Calendar
4
  * Plugin URI: http://www.wpsimplebookingcalendar.com
5
  * Description: WP Simple Booking Calendar - Free Version.
6
- * Version: 1.4.1
7
  * Author: WP Simple Booking Calendar
8
  * Author URI: http://www.wpsimplebookingcalendar.com
9
  * License: GPL2
10
  *
11
- * Copyright (c) 2011 WP Simple Booking Calendar
12
  */
13
 
14
- /* Copyright 2011 WP Simple Booking Calendar
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
3
  * Plugin Name: WP Simple Booking Calendar
4
  * Plugin URI: http://www.wpsimplebookingcalendar.com
5
  * Description: WP Simple Booking Calendar - Free Version.
6
+ * Version: 1.5
7
  * Author: WP Simple Booking Calendar
8
  * Author URI: http://www.wpsimplebookingcalendar.com
9
  * License: GPL2
10
  *
11
+ * Copyright (c) 2015 WP Simple Booking Calendar
12
  */
13
 
14
+ /* Copyright 2015 WP Simple Booking Calendar
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as