Version Description
- Fixed bug with all day events not displaying.
- Added missing timezone parameter to internal query.
Download this release
Release Info
Developer | pderksen |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- README.txt +7 -2
- class-google-calendar-events.php +1 -1
- google-calendar-events.php +1 -1
- includes/class-gce-feed.php +23 -2
- languages/gce-de_DE.po +1 -1
- languages/gce-es_ES.po +1 -1
- views/admin/gce-feed-sidebar-help.php +2 -2
README.txt
CHANGED
@@ -87,9 +87,14 @@ There are three ways to install this plugin.
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
|
|
90 |
= 2.1.0 =
|
91 |
|
92 |
-
* Updated to use Google API version 3. Version 2 deprecated
|
93 |
|
94 |
= 2.0.7.1 =
|
95 |
|
@@ -314,4 +319,4 @@ There are three ways to install this plugin.
|
|
314 |
|
315 |
= 2.1.0 =
|
316 |
|
317 |
-
Updated to use Google API version 3. Version 2 deprecated
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 2.1.1 =
|
91 |
+
|
92 |
+
* Fixed bug with all day events not displaying.
|
93 |
+
* Added missing timezone parameter to internal query.
|
94 |
+
|
95 |
= 2.1.0 =
|
96 |
|
97 |
+
* Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
|
98 |
|
99 |
= 2.0.7.1 =
|
100 |
|
319 |
|
320 |
= 2.1.0 =
|
321 |
|
322 |
+
Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
|
class-google-calendar-events.php
CHANGED
@@ -18,7 +18,7 @@ class Google_Calendar_Events {
|
|
18 |
*
|
19 |
* @var string
|
20 |
*/
|
21 |
-
protected $version = '2.1.
|
22 |
|
23 |
/**
|
24 |
* Unique identifier for the plugin.
|
18 |
*
|
19 |
* @var string
|
20 |
*/
|
21 |
+
protected $version = '2.1.1';
|
22 |
|
23 |
/**
|
24 |
* Unique identifier for the plugin.
|
google-calendar-events.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Google Calendar Events
|
13 |
* Plugin URI: https://github.com/pderksen/WP-Google-Calendar-Events
|
14 |
* Description: Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
|
15 |
-
* Version: 2.1.
|
16 |
* Author: Phil Derksen
|
17 |
* Author URI: http://philderksen.com
|
18 |
* License: GPL-2.0+
|
12 |
* Plugin Name: Google Calendar Events
|
13 |
* Plugin URI: https://github.com/pderksen/WP-Google-Calendar-Events
|
14 |
* Description: Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
|
15 |
+
* Version: 2.1.1
|
16 |
* Author: Phil Derksen
|
17 |
* Author URI: http://philderksen.com
|
18 |
* License: GPL-2.0+
|
includes/class-gce-feed.php
CHANGED
@@ -113,6 +113,12 @@ class GCE_Feed {
|
|
113 |
|
114 |
$args['maxResults'] = 10000;
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
if ( ! empty( $this->search_query ) ) {
|
117 |
$args['q'] = rawurlencode( $this->search_query );
|
118 |
}
|
@@ -155,8 +161,23 @@ class GCE_Feed {
|
|
155 |
$description = ( isset( $event['description'] ) ? esc_html( $event['description'] ) : '' );
|
156 |
$link = ( isset( $event['htmlLink'] ) ? esc_url( $event['htmlLink'] ) : '' );
|
157 |
$location = ( isset( $event['location'] ) ? esc_html( $event['location'] ) : '' );
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
//Create a GCE_Event using the above data. Add it to the array of events
|
161 |
$this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link );
|
162 |
}
|
113 |
|
114 |
$args['maxResults'] = 10000;
|
115 |
|
116 |
+
$ctz = get_option( 'timezone_string' );
|
117 |
+
|
118 |
+
if( ! empty( $ctz ) ) {
|
119 |
+
$args['timeZone'] = $ctz;
|
120 |
+
}
|
121 |
+
|
122 |
if ( ! empty( $this->search_query ) ) {
|
123 |
$args['q'] = rawurlencode( $this->search_query );
|
124 |
}
|
161 |
$description = ( isset( $event['description'] ) ? esc_html( $event['description'] ) : '' );
|
162 |
$link = ( isset( $event['htmlLink'] ) ? esc_url( $event['htmlLink'] ) : '' );
|
163 |
$location = ( isset( $event['location'] ) ? esc_html( $event['location'] ) : '' );
|
164 |
+
|
165 |
+
if( isset( $event['start']['dateTime'] ) ) {
|
166 |
+
$start_time = $this->iso_to_ts( $event['start']['dateTime'] );
|
167 |
+
} else if( isset( $event['start']['date'] ) ) {
|
168 |
+
$start_time = $this->iso_to_ts( $event['start']['date'] );
|
169 |
+
} else {
|
170 |
+
$start_time = null;
|
171 |
+
}
|
172 |
+
|
173 |
+
if( isset( $event['end']['dateTime'] ) ) {
|
174 |
+
$end_time = $this->iso_to_ts( $event['end']['dateTime'] );
|
175 |
+
} else if( isset( $event['end']['date'] ) ) {
|
176 |
+
$end_time = $this->iso_to_ts( $event['end']['date'] );
|
177 |
+
} else {
|
178 |
+
$end_time = null;
|
179 |
+
}
|
180 |
+
|
181 |
//Create a GCE_Event using the above data. Add it to the array of events
|
182 |
$this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link );
|
183 |
}
|
languages/gce-de_DE.po
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Google Calendar Events en español\n"
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
"POT-Creation-Date: 2014-10-09 13:21-0700\n"
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: David Arndt <dev@david-arndt.de>\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Google Calendar Events en español\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/tag/google-calendar-events\n"
|
7 |
"POT-Creation-Date: 2014-10-09 13:21-0700\n"
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: David Arndt <dev@david-arndt.de>\n"
|
languages/gce-es_ES.po
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Google Calendar Events en español\n"
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
"POT-Creation-Date: 2014-10-23 09:02+0100\n"
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: PNTE <blogs@educacion.navarra.es>\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Google Calendar Events en español\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/tag/google-calendar-events\n"
|
7 |
"POT-Creation-Date: 2014-10-23 09:02+0100\n"
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: PNTE <blogs@educacion.navarra.es>\n"
|
views/admin/gce-feed-sidebar-help.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
<li>
|
10 |
<div class="dashicons dashicons-arrow-right-alt2"></div>
|
11 |
-
<a href="
|
12 |
<?php _e( 'Community support forums', 'gce' ); ?></a>
|
13 |
</li>
|
14 |
|
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
<li>
|
22 |
<div class="dashicons dashicons-arrow-right-alt2"></div>
|
23 |
-
<a href="
|
24 |
<?php _e( 'Rate this plugin', 'gce' ); ?></a>
|
25 |
</li>
|
26 |
</ul>
|
8 |
|
9 |
<li>
|
10 |
<div class="dashicons dashicons-arrow-right-alt2"></div>
|
11 |
+
<a href="https://wordpress.org/support/plugin/google-calendar-events" target="_blank">
|
12 |
<?php _e( 'Community support forums', 'gce' ); ?></a>
|
13 |
</li>
|
14 |
|
20 |
|
21 |
<li>
|
22 |
<div class="dashicons dashicons-arrow-right-alt2"></div>
|
23 |
+
<a href="https://wordpress.org/support/view/plugin-reviews/google-calendar-events" target="_blank">
|
24 |
<?php _e( 'Rate this plugin', 'gce' ); ?></a>
|
25 |
</li>
|
26 |
</ul>
|