Version Description
- Fixed Warning: array_key_exists() error some users experienced
- Fixed enqueue_scripts
Download this release
Release Info
Developer | bryght |
Plugin | WP Simple Booking Calendar |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- css/sbc-controller.css +22 -1
- images/Thumbs.db +0 -0
- images/checked.png +0 -0
- library/WpSimpleBookingCalendar.php +4 -1
- library/WpSimpleBookingCalendar/Model.php +1 -1
- readme.txt +10 -2
- views/controller/index.phtml +59 -12
- wp-simple-booking-calendar.php +1 -1
css/sbc-controller.css
CHANGED
@@ -55,4 +55,25 @@
|
|
55 |
#sbc-wrapper div.loader {
|
56 |
display: none;
|
57 |
height: 55px;
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
#sbc-wrapper div.loader {
|
56 |
display: none;
|
57 |
height: 55px;
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
div.buy-full h1 {font-weight:bold; font-size:20px; line-height:30px; margin-top:30px;}
|
62 |
+
div.buy-full ul {width:466px; border:1px solid #336699; padding:0 6px 6px 6px;}
|
63 |
+
div.buy-full ul li {width:466px; height:30px; background-color:#f9f9f9; margin-bottom:0px !important;}
|
64 |
+
div.buy-full ul li.even {background-color:#ffffff;}
|
65 |
+
div.buy-full ul li span {float:left; display:block; color:#000000; font-size:14px; line-height:30px;}
|
66 |
+
div.buy-full ul li span.col1 {width:216px; padding-left:6px; margin-right:10px;}
|
67 |
+
div.buy-full ul li span.col2 {width:100px; text-align:center; margin-right:20px;}
|
68 |
+
div.buy-full ul li span.col3 {width:100px; text-align:center; position:relative;}
|
69 |
+
div.buy-full ul li span.col3 img {position:absolute; top:7px; left:50%; margin-left:-8px;}
|
70 |
+
|
71 |
+
div.buy-full ul li.title {background-color:#ffffff; border-bottom:1px solid #cccccc;}
|
72 |
+
div.buy-full ul li.title span.col1 {height:2px;}
|
73 |
+
div.buy-full ul li.title span.col2 {font-weight:bold;}
|
74 |
+
div.buy-full ul li.title span.col3 {font-weight:bold; color:#336699;}
|
75 |
+
|
76 |
+
div.buy-full p {border-top:1px solid #cccccc; color:#336699; font-size:14px; line-height:30px; margin:0; padding:15px 0 10px 0;}
|
77 |
+
div.buy-full p strong {font-weight:normal; text-decoration:underline;}
|
78 |
+
|
79 |
+
div.buy-full a.button {margin-left:55px;}
|
images/Thumbs.db
ADDED
Binary file
|
images/checked.png
ADDED
Binary file
|
library/WpSimpleBookingCalendar.php
CHANGED
@@ -23,8 +23,11 @@ class WpSimpleBookingCalendar
|
|
23 |
}
|
24 |
else
|
25 |
{
|
26 |
-
|
|
|
27 |
wp_enqueue_script('sbc', SBC_DIR_URL . 'js/sbc.js', array('jquery'));
|
|
|
|
|
28 |
}
|
29 |
|
30 |
// Register shortcode
|
23 |
}
|
24 |
else
|
25 |
{
|
26 |
+
function enq_styles(){
|
27 |
+
wp_enqueue_style('sbc', SBC_DIR_URL . 'css/sbc.css');
|
28 |
wp_enqueue_script('sbc', SBC_DIR_URL . 'js/sbc.js', array('jquery'));
|
29 |
+
}
|
30 |
+
add_action('init', 'enq_styles');
|
31 |
}
|
32 |
|
33 |
// Register shortcode
|
library/WpSimpleBookingCalendar/Model.php
CHANGED
@@ -79,7 +79,7 @@ class WpSimpleBookingCalendar_Model
|
|
79 |
if (isset($calendar[1])) {
|
80 |
$calendar = $calendar[1];
|
81 |
}
|
82 |
-
return (array_key_exists('calendarName', $calendar) ? $calendar : null);
|
83 |
}
|
84 |
|
85 |
|
79 |
if (isset($calendar[1])) {
|
80 |
$calendar = $calendar[1];
|
81 |
}
|
82 |
+
return @(array_key_exists('calendarName', $calendar) ? $calendar : null);
|
83 |
}
|
84 |
|
85 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: Bryght, BestWebSoft
|
3 |
Tags: availability calendar, booking calendar, reservation calendar, availability, booking, calendar, hotel, holiday home, dateblocker, date blocker, scheme, bed and breakfast
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
Availability calendar / booking calendar to show when something is booked or free, for example your holiday home.
|
9 |
|
@@ -70,9 +70,17 @@ Please see http://www.wpsimplebookingcalendar.com for more information and ask y
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
73 |
= 1.0 =
|
74 |
* First release
|
75 |
|
76 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
77 |
= 1.0 =
|
78 |
* Stable release
|
2 |
Contributors: Bryght, BestWebSoft
|
3 |
Tags: availability calendar, booking calendar, reservation calendar, availability, booking, calendar, hotel, holiday home, dateblocker, date blocker, scheme, bed and breakfast
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 3.5
|
6 |
+
Stable tag: 1.1
|
7 |
|
8 |
Availability calendar / booking calendar to show when something is booked or free, for example your holiday home.
|
9 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.1 =
|
74 |
+
* Fixed Warning: array_key_exists() error some users experienced
|
75 |
+
* Fixed enqueue_scripts
|
76 |
+
|
77 |
= 1.0 =
|
78 |
* First release
|
79 |
|
80 |
== Upgrade Notice ==
|
81 |
+
|
82 |
+
= 1.1 =
|
83 |
+
* Two small fixes
|
84 |
+
|
85 |
= 1.0 =
|
86 |
* Stable release
|
views/controller/index.phtml
CHANGED
@@ -43,18 +43,65 @@
|
|
43 |
</tr>
|
44 |
</tbody>
|
45 |
</table>
|
46 |
-
<div class="
|
47 |
-
<
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</div>
|
59 |
<?php else: ?>
|
60 |
<p><?php esc_html_e('No calendar found.', 'sbc') ?></p>
|
43 |
</tr>
|
44 |
</tbody>
|
45 |
</table>
|
46 |
+
<div class="buy-full">
|
47 |
+
<h1>Download the full version for more nice features!</h1>
|
48 |
+
<ul>
|
49 |
+
<li class="title">
|
50 |
+
<span class="col1"></span>
|
51 |
+
<span class="col2">Free version</span>
|
52 |
+
<span class="col3">Full version</span>
|
53 |
+
<div class="clear"><!-- --></div>
|
54 |
+
</li>
|
55 |
+
<li>
|
56 |
+
<span class="col1">Number of calendars</span>
|
57 |
+
<span class="col2">1</span>
|
58 |
+
<span class="col3">Unlimited</span>
|
59 |
+
<div class="clear"><!-- --></div>
|
60 |
+
</li>
|
61 |
+
<li class="even">
|
62 |
+
<span class="col1">Edit multiple dates in one click</span>
|
63 |
+
<span class="col2">-</span>
|
64 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
65 |
+
<div class="clear"><!-- --></div>
|
66 |
+
</li>
|
67 |
+
<li>
|
68 |
+
<span class="col1">Show multiple months</span>
|
69 |
+
<span class="col2">-</span>
|
70 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
71 |
+
<div class="clear"><!-- --></div>
|
72 |
+
</li>
|
73 |
+
<li class="even">
|
74 |
+
<span class="col1">Show a legend (key)</span>
|
75 |
+
<span class="col2">-</span>
|
76 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
77 |
+
<div class="clear"><!-- --></div>
|
78 |
+
</li>
|
79 |
+
<li>
|
80 |
+
<span class="col1">Months dropdown</span>
|
81 |
+
<span class="col2">-</span>
|
82 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
83 |
+
<div class="clear"><!-- --></div>
|
84 |
+
</li>
|
85 |
+
<li class="even">
|
86 |
+
<span class="col1">Change first day of week</span>
|
87 |
+
<span class="col2">-</span>
|
88 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
89 |
+
<div class="clear"><!-- --></div>
|
90 |
+
</li>
|
91 |
+
<li>
|
92 |
+
<span class="col1">Save notes per date</span>
|
93 |
+
<span class="col2">-</span>
|
94 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
95 |
+
<div class="clear"><!-- --></div>
|
96 |
+
</li>
|
97 |
+
<li class="even">
|
98 |
+
<span class="col1">Money back guarantee!</span>
|
99 |
+
<span class="col2">-</span>
|
100 |
+
<span class="col3"><img src="<?php echo SBC_DIR_URL ;?>images/checked.png" /></span>
|
101 |
+
<div class="clear"><!-- --></div>
|
102 |
+
</li>
|
103 |
+
<p>Just $25, <strong>no</strong> subscription or registration needed! <a class="button-primary button" href="http://www.wpsimplebookingcalendar.com/" target="_blank">Read more</a></p>
|
104 |
+
</ul>
|
105 |
</div>
|
106 |
<?php else: ?>
|
107 |
<p><?php esc_html_e('No calendar found.', 'sbc') ?></p>
|
wp-simple-booking-calendar.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
* Author: WP Simple Booking Calendar
|
8 |
* Author URI: http://www.wpsimplebookingcalendar.com
|
9 |
* License: GPL2
|
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.1
|
7 |
* Author: WP Simple Booking Calendar
|
8 |
* Author URI: http://www.wpsimplebookingcalendar.com
|
9 |
* License: GPL2
|