Version Description
September 19, 2016 =
Fix: "Add to Google Calendar" link now uses source calendar's timezone (except for all-day and UTC timezone events).
Download this release
Release Info
Developer | pderksen |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 3.1.4 |
Comparing to | |
See all releases |
Code changes from version 3.1.3 to 3.1.4
- 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 +19 -7
- readme.txt +7 -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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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 2016
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.1.4
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2016
|
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: Moonstone Media
|
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: Moonstone Media
|
7 |
* Author URI: https://simplecalendar.io
|
8 |
+
* Version: 3.1.4
|
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.4',
|
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
@@ -745,20 +745,32 @@ abstract class Calendar {
|
|
745 |
// Was https://www.google.com/calendar/render
|
746 |
|
747 |
// Start & end date/time in specific format for GCal.
|
748 |
-
// &dates=
|
749 |
-
//
|
750 |
-
|
751 |
-
$
|
752 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
$params = array(
|
754 |
'action' => 'TEMPLATE',
|
755 |
'text' => urlencode( strip_tags( $event->title ) ),
|
756 |
'dates' => $gcal_dt_string,
|
757 |
-
'details' => urlencode( $event->description ),
|
758 |
-
|
759 |
'trp' => 'false',
|
760 |
);
|
761 |
|
|
|
|
|
|
|
|
|
|
|
762 |
$url = add_query_arg( $params, $base_url );
|
763 |
|
764 |
return $url;
|
745 |
// Was https://www.google.com/calendar/render
|
746 |
|
747 |
// Start & end date/time in specific format for GCal.
|
748 |
+
// &dates=20160504T110000/20160504T170000
|
749 |
+
// No "Z"s tacked on to preserve source timezone.
|
750 |
+
// All day events remove time component, but need to add a full day to show up correctly.
|
751 |
+
$is_all_day = ( true == $event->whole_day );
|
752 |
+
$gcal_dt_format = $is_all_day ? 'Ymd' : 'Ymd\THi00';
|
753 |
+
$gcal_begin_dt = $event->start_dt->format( $gcal_dt_format );
|
754 |
+
$end_dt_raw = $is_all_day ? $event->end_dt->addDay() : $event->end_dt;
|
755 |
+
$gcal_end_dt = $end_dt_raw->format( $gcal_dt_format );
|
756 |
+
$gcal_dt_string = $gcal_begin_dt . '/' . $gcal_end_dt;
|
757 |
+
|
758 |
+
// "details" (description) should work even when blank.
|
759 |
+
// "location" (address) should work with an address, just a name or blank.
|
760 |
$params = array(
|
761 |
'action' => 'TEMPLATE',
|
762 |
'text' => urlencode( strip_tags( $event->title ) ),
|
763 |
'dates' => $gcal_dt_string,
|
764 |
+
'details' => urlencode( $event->description ),
|
765 |
+
'location' => urlencode( $event->start_location['address'] ),
|
766 |
'trp' => 'false',
|
767 |
);
|
768 |
|
769 |
+
// "ctz" (timezone) arg should be included unless all-day OR 'UTC'.
|
770 |
+
if ( ! $is_all_day && ( 'UTC' !== $event->timezone ) ) {
|
771 |
+
$params['ctz'] = urlencode( $event->timezone );
|
772 |
+
}
|
773 |
+
|
774 |
$url = add_query_arg( $params, $base_url );
|
775 |
|
776 |
return $url;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: moonstonemedia, pderksen, nickyoung87, nekojira, rosshanney
|
|
3 |
Tags: google calendar, calendar, calendars, google, event calendar, custom calendar, custom calendars, event, events
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.6
|
6 |
-
Stable tag: 3.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -38,6 +38,8 @@ Add Google Calendar events to your WordPress site in minutes. Beautiful calendar
|
|
38 |
* Configure header navigation buttons to allow site visitors to easily switch between views.
|
39 |
* Intuitive design for multi-day events.
|
40 |
* Customizable calendar heights with optional scroll bars.
|
|
|
|
|
41 |
* Works with our Google Calendar Pro add-on to display **color-coded events** within each view.
|
42 |
* Priority email support and product updates for one year backed by a top-notch team.
|
43 |
|
@@ -94,6 +96,10 @@ We'd love your help! Here's a few things you can do:
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
|
|
97 |
= 3.1.3 - September 12, 2016 =
|
98 |
|
99 |
* Feature: Added "Add to Google Calendar" link event template tag.
|
3 |
Tags: google calendar, calendar, calendars, google, event calendar, custom calendar, custom calendars, event, events
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.6
|
6 |
+
Stable tag: 3.1.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
38 |
* Configure header navigation buttons to allow site visitors to easily switch between views.
|
39 |
* Intuitive design for multi-day events.
|
40 |
* Customizable calendar heights with optional scroll bars.
|
41 |
+
* Set default start time for week and day views.
|
42 |
+
* Limit display times for week and day views.
|
43 |
* Works with our Google Calendar Pro add-on to display **color-coded events** within each view.
|
44 |
* Priority email support and product updates for one year backed by a top-notch team.
|
45 |
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 3.1.4 - September 19, 2016 =
|
100 |
+
|
101 |
+
* Fix: "Add to Google Calendar" link now uses source calendar's timezone (except for all-day and UTC timezone events).
|
102 |
+
|
103 |
= 3.1.3 - September 12, 2016 =
|
104 |
|
105 |
* Feature: Added "Add to Google Calendar" link event template tag.
|