Version Description
- February 15, 2018 =
- Fix: Issue where navigation to next month would be disabled when multi-day events extended to future months.
Download this release
Release Info
Developer | simplecalendar |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 3.1.14 |
Comparing to | |
See all releases |
Code changes from version 3.1.13 to 3.1.14
- assets/css/admin-add-calendar.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/default-calendar-grid.min.css +1 -1
- assets/css/default-calendar-list.min.css +1 -1
- assets/js/admin-add-calendar.min.js +1 -1
- assets/js/admin.min.js +1 -1
- assets/js/default-calendar.min.js +1 -1
- google-calendar-events.php +2 -2
- includes/abstracts/calendar.php +13 -2
- readme.txt +4 -1
assets/css/admin-add-calendar.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/css/default-calendar-grid.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/css/default-calendar-list.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/js/admin-add-calendar.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/js/admin.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
assets/js/default-calendar.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.1.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.14
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2018
|
4 |
* Licensed GPLv2+ */
|
google-calendar-events.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
|
6 |
* Author: Simple Calendar
|
7 |
* Author URI: https://simplecalendar.io
|
8 |
-
* Version: 3.1.
|
9 |
* Text Domain: google-calendar-events
|
10 |
* Domain Path: /i18n
|
11 |
*
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
22 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
23 |
$this_plugin_constants = array(
|
24 |
-
'SIMPLE_CALENDAR_VERSION' => '3.1.
|
25 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
26 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
27 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
5 |
* Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
|
6 |
* Author: Simple Calendar
|
7 |
* Author URI: https://simplecalendar.io
|
8 |
+
* Version: 3.1.14
|
9 |
* Text Domain: google-calendar-events
|
10 |
* Domain Path: /i18n
|
11 |
*
|
21 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
22 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
23 |
$this_plugin_constants = array(
|
24 |
+
'SIMPLE_CALENDAR_VERSION' => '3.1.14',
|
25 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
26 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
27 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
includes/abstracts/calendar.php
CHANGED
@@ -284,8 +284,13 @@ abstract class Calendar {
|
|
284 |
|
285 |
// Set earliest and latest event timestamps.
|
286 |
if ( $this->events && is_array( $this->events ) ) {
|
287 |
-
$
|
288 |
-
$
|
|
|
|
|
|
|
|
|
|
|
289 |
}
|
290 |
|
291 |
// Set calendar end.
|
@@ -432,6 +437,12 @@ abstract class Calendar {
|
|
432 |
}
|
433 |
}
|
434 |
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
$this->events = $events;
|
436 |
}
|
437 |
|
284 |
|
285 |
// Set earliest and latest event timestamps.
|
286 |
if ( $this->events && is_array( $this->events ) ) {
|
287 |
+
$start_event = current( $this->events );
|
288 |
+
$start_event_item = ! empty( $start_event[0]->start ) ? $start_event[0]->start : 0;
|
289 |
+
$this->earliest_event = intval( $start_event_item );
|
290 |
+
|
291 |
+
$last_event = current( array_slice( $this->events, - 1, 1, true ) );
|
292 |
+
$last_event_item = ! empty( $last_event[0]->end ) ? $last_event[0]->end : 0;
|
293 |
+
$this->latest_event = intval( $last_event_item );
|
294 |
}
|
295 |
|
296 |
// Set calendar end.
|
437 |
}
|
438 |
}
|
439 |
|
440 |
+
// Sort by end date so that navigation buttons are displayed
|
441 |
+
// correctly for events spanning multiple days.
|
442 |
+
uasort( $events, function( $a, $b ) {
|
443 |
+
return ( $a[0]->end - $b[0]->end );
|
444 |
+
} );
|
445 |
+
|
446 |
$this->events = $events;
|
447 |
}
|
448 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: google calendar, calendar, calendars, google, event calendar, custom calen
|
|
4 |
Requires at least: 4.2
|
5 |
Requires PHP: 5.3+
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,6 +97,9 @@ We'd love your help! Here's a few things you can do:
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
100 |
= 3.1.13 - February 5, 2018 =
|
101 |
* Fix: Issue where calendar event pop-ups would display without content.
|
102 |
|
4 |
Requires at least: 4.2
|
5 |
Requires PHP: 5.3+
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 3.1.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 3.1.14 - February 15, 2018 =
|
101 |
+
* Fix: Issue where navigation to next month would be disabled when multi-day events extended to future months.
|
102 |
+
|
103 |
= 3.1.13 - February 5, 2018 =
|
104 |
* Fix: Issue where calendar event pop-ups would display without content.
|
105 |
|