Simple Calendar – Google Calendar Plugin - Version 2.2.91

Version Description

  • August 16, 2015 =
  • Fix: Calendar not working correctly with custom date range grid after 2.2.9 changes.
Download this release

Release Info

Developer nekojira
Plugin Icon 128x128 Simple Calendar – Google Calendar Plugin
Version 2.2.91
Comparing to
See all releases

Code changes from version 2.2.9 to 2.2.91

class-google-calendar-events.php CHANGED
@@ -18,7 +18,7 @@ class Google_Calendar_Events {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.2.9';
22
 
23
  /**
24
  * Unique identifier for the plugin.
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.2.91';
22
 
23
  /**
24
  * Unique identifier for the plugin.
google-calendar-events.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
6
  * Author: Moonstone Media
7
  * Author URI: http://moonstonemediagroup.com
8
- * Version: 2.2.9
9
  * Text Domain: gce
10
  * Domain Path: /languages/
11
  *
5
  * Description: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
6
  * Author: Moonstone Media
7
  * Author URI: http://moonstonemediagroup.com
8
+ * Version: 2.2.91
9
  * Text Domain: gce
10
  * Domain Path: /languages/
11
  *
includes/misc-functions.php CHANGED
@@ -137,10 +137,12 @@ function gce_print_calendar( $feed_ids, $display = 'grid', $args = array(), $wid
137
  'show_tooltips' => ( $show_tooltips == 'true' || $show_tooltips == '1' ? 'true' : 'false' )
138
  );
139
 
 
 
140
  if( $widget ) {
141
- $markup = '<div class="gce-widget-grid gce-widget-grid-' . esc_attr( $feed_ids ) . '" id="gce-' . $uid . '">' . $d->get_grid( $year, $month, $widget, $paging ) . '</div>';
142
  } else {
143
- $markup = '<div class="gce-page-grid gce-page-grid-' . esc_attr( $feed_ids ) . '" id="gce-' . $uid . '">' . $d->get_grid( $year, $month, $widget, $paging ) . '</div>';
144
  }
145
  }
146
 
137
  'show_tooltips' => ( $show_tooltips == 'true' || $show_tooltips == '1' ? 'true' : 'false' )
138
  );
139
 
140
+ $data_attr = sprintf( 'data-feed="%s"', htmlspecialchars( json_encode( $localize ), ENT_QUOTES, 'UTF-8' ) );
141
+
142
  if( $widget ) {
143
+ $markup = '<div class="gce-widget-grid gce-widget-grid-' . esc_attr( $feed_ids ) . '" id="gce-' . $uid . '"' . $data_attr . '>' . $d->get_grid( $year, $month, $widget, $paging ) . '</div>';
144
  } else {
145
+ $markup = '<div class="gce-page-grid gce-page-grid-' . esc_attr( $feed_ids ) . '" id="gce-' . $uid . '"' . $data_attr . '>' . $d->get_grid( $year, $month, $widget, $paging ) . '</div>';
146
  }
147
  }
148
 
readme.txt CHANGED
@@ -1,468 +1,471 @@
1
- === Google Calendar Events ===
2
- Contributors: pderksen, nickyoung87, nekojira, rosshanney
3
- Tags: google calendar, google, calendar, events, gcal
4
- Requires at least: 3.9
5
- Tested up to: 4.3
6
- Stable tag: 2.2.9
7
- License: GPLv2 or later
8
-
9
- Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
10
-
11
- == Description ==
12
-
13
- Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
14
-
15
- = Features =
16
-
17
- * Parses Google Calendar feeds to extract events.
18
- * Displays events as a list or within a calendar grid.
19
- * Events from multiple Google Calendar feeds can be shown in a single list / grid.
20
- * Lists and grids can be displayed in posts, pages or within a widget.
21
- * Options to change the number of events retrieved, date / time format, cache duration, etc.
22
- * Complete customisation of the event information displayed.
23
- * Calendar grids can have the ability to change the month displayed.
24
-
25
- [Plugin Documentation & Getting Started](http://wpdocs.philderksen.com/google-calendar-events/?utm_source=wordpress_org&utm_medium=link&utm_campaign=gce_lite)
26
-
27
- ###Updates###
28
-
29
- * [Get notified when new features are released](http://eepurl.com/0_VsT)
30
- * [Follow this project on Github](https://github.com/moonstonemedia/WP-Google-Calendar-Events)
31
-
32
- This plugin was originally created by [Ross Hanney](http://www.rhanney.co.uk), a web developer based in the UK specialising in WordPress and PHP.
33
-
34
- ## Available Translations ##
35
-
36
- * Spanish - Provided by Eduardo Larequi of [educacion.navarra.es/web/pnte/](http://www.educacion.navarra.es/web/pnte/).
37
- * Italian - Provided by Francesco Paccagnella of [pacca.it](http://www.pacca.it/).
38
- * French - Provided by Vincent Bray.
39
- * German - Provided by Stefanie Drucker of [kreativhuhn.at](http://www.kreativhuhn.at/).
40
- * Norwegian - Provided by Tore Hjartland of [aliom.no](http://www.aliom.no/).
41
- * Polish - Provided by Michał Pasternak of [iplweb.pl](http://iplweb.pl/).
42
- * Lithuanian - Provided by Andrius Mazeika of [mazeika.info](http://mazeika.info/).
43
- * Dutch - Provided by Henri van Werkhoven.
44
- * Catalan - Provided by Toni Ginard & Monica Grau of [agora.xtec.cat](http://agora.xtec.cat/).
45
- * Russian - Provided by Vadim Reutskiy.
46
- * Swedish - Provided by Familjedaghemmet Chicos of [chicos.nu](http://www.chicos.nu/).
47
-
48
- == Installation ==
49
-
50
- There are three ways to install this plugin.
51
-
52
- = 1. Admin Search =
53
- 1. In your Admin, go to menu Plugins > Add.
54
- 1. Search for `Google Calendar`.
55
- 1. Find the plugin that's labeled `Google Calendar Events`.
56
- 1. Look for the author name `Moonstone Media` on the plugin.
57
- 1. Click to install.
58
- 1. Activate the plugin.
59
- 1. A new menu item `GCal Events` will appear in the main menu.
60
-
61
- = 2. Download & Upload =
62
- 1. Download the plugin (a zip file) on the right column of this page.
63
- 1. In your Admin, go to menu Plugins > Add.
64
- 1. Select the tab "Upload".
65
- 1. Upload the .zip file you just downloaded.
66
- 1. Activate the plugin.
67
- 1. A new menu item `GCal Events` will appear in the main menu.
68
-
69
- = 3. FTP Upload =
70
- 1. Download the plugin (.zip file) on the right column of this page.
71
- 1. Unzip the zip file contents.
72
- 1. Upload the `google-calendar-events` folder to the `/wp-content/plugins/` directory of your site.
73
- 1. Activate the plugin through the 'Plugins' menu in WordPress.
74
- 1. A new menu item `GCal Events` will appear in the main menu.
75
-
76
- == Frequently Asked Questions ==
77
-
78
- [Plugin Documentation & Getting Started](http://wpdocs.philderksen.com/google-calendar-events/?utm_source=wordpress_org&utm_medium=link&utm_campaign=gce_lite)
79
-
80
- == Screenshots ==
81
-
82
- 1. Grid display in full page with tooltip
83
- 1. Grid display in widget
84
- 1. List display in widget
85
- 1. Simple display options
86
- 1. Calendar feed settings
87
- 1. Calendar widget settings
88
- 1. Event display builder editor
89
-
90
- == Changelog ==
91
-
92
- = 2.2.9 - August 14, 2015 =
93
- * Fix: Event links pointing to Google Calendar have a timezone argument from feed setting.
94
- * Fix: Improved assets loading, only load scripts on posts and pages that have a calendar.
95
- * Localization: Updated Norwegian translations.
96
-
97
- = 2.2.8 - August 7, 2015 =
98
-
99
- * Fix: Improved security when saving plugin settings.
100
- * Fix: Added URL encoding to fix some issues with API keys containing special characters.
101
- * Tweak: Use calendar feed timezone or website timezone (default calendar).
102
-
103
- = 2.2.7 - July 31, 2015 =
104
-
105
- * Feature: Added an 'Add Calendar' button to quickly add a shortcode in posts.
106
- * Fix: Reverted register scripts hook to init.
107
- * Localization: Updated French translations.
108
- * Tweak: Flush permalinks on plugin activation and deactivation.
109
- * Tweak: Added `[if-not-location]` event builder conditional shortcode.
110
- * Tweak: Added a 'gce_no_events_message_text' filter when no events are found.
111
- * Tweak: Added a clear cache bulk action for clearing caches of multiple feeds.
112
-
113
- = 2.2.6 - July 16, 2015 =
114
-
115
- * Plugin performs a requirements check to ensure users are running a recent version of WordPress.
116
- * Added '.gce-has-<n>-events' class to count events in each day in grid display.
117
- * Removed unnecessary imagesLoaded JS library (optional dependency of the qTip2 library).
118
- * Fixed a bug with the start month of the custom date range grid view.
119
- * Fixed a bug with backslashes in date ant time custom format inputs.
120
- * Fixed scripts and styles loading issues.
121
- * Fixed bugs when custom date range values were left blank.
122
- * Added Russian translation provided by Vadim Reutskiy.
123
- * Added Swedish translation provided by Familjedaghemmet Chicos.
124
- * Tested up to WordPress 4.3.
125
-
126
- = 2.2.5 - April 22, 2015 =
127
-
128
- * Updated calls to add_query_arg to prevent any possible XSS attacks.
129
- * Fixed bug with fatal error in rare cases by rearragning order of plugin file includes.
130
- * Fixed bug with navigation links sometimes returning -1.
131
- * Corrected typo with paging links title attributes.
132
-
133
- = 2.2.4 - April 6, 2015 =
134
-
135
- * Updated French translation files.
136
- * Fixed Catalan translation files.
137
- * Fixed encoding bug with [maps-link] new window attribute.
138
-
139
- = 2.2.3 - March 26, 2015 =
140
-
141
- * Fixed bug with the "More details..." link encoding.
142
- * Added note about total event limit of 2,500 now enforced by the Google Calendar API.
143
- * Updated earliest feed event date default to 1 (one) month back.
144
- * 0 (zero) value now allowed for earliest and latest feed event dates (sets them to the current date).
145
- * Minor public script improvements.
146
- * Added Brazilian Portuguese translation files.
147
- * Updated jQuery UI datepicker CSS CDN reference for feed settings pages.
148
- * Tested up to WordPress 4.2.
149
-
150
- = 2.2.2.1 - March 17, 2015 =
151
-
152
- * Option to always enqueue scripts & styles now enabled by default.
153
-
154
- = 2.2.2 - March 15, 2015 =
155
-
156
- * Added option to always enqueue scripts and styles on every post and page.
157
- * Added custom date range grid option to display modes.
158
- * Added option to disable the plugin CSS file.
159
- * Fixed bug with list intervals.
160
- * Fixed bug with event list showing past events.
161
- * Minor public JavaScript performance updates.
162
-
163
- = 2.2.1 - February 28, 2015 =
164
-
165
- * Enqueue scripts & styles on all posts & pages temporarily until better detection can be put in place.
166
- * Fixed GCal ID encoding in feed settings.
167
- * Updated Italian translation.
168
- * Updated French translation.
169
-
170
- = 2.2.0 - February 25, 2015 =
171
-
172
- * Added custom date range options.
173
- * Added option to hide tooltips on grid display.
174
- * Added additional save button at the bottom of the feed settings.
175
- * Performance updates to script enqueues.
176
- * Updated Catalan translation files.
177
- * Updated list output logic.
178
- * Fixed bug with multi-day events sometimes not showing up in list view.
179
- * Fixed bug with calendar ID field not getting encoded.
180
- * Fixed bug with tooltips scrolling on mobile.
181
- * Fixed bug with Google Hangout event links.
182
- * Fixed bug with widget settings not being unique.
183
- * Widget UI enhancements.
184
- * Feed settings UI enhancements.
185
- * Error messaging updates.
186
- * Security improvements.
187
-
188
- = 2.1.7 =
189
-
190
- * Restructured next and back paging navigation script.
191
- * Updated Italian translation files.
192
-
193
- = 2.1.6.1 =
194
-
195
- * More tooltip (qTip2) effects & styling.
196
-
197
- = 2.1.6 =
198
-
199
- * Fixed bug with tooltip (qTip2) in some cases by now including it's imagesLoaded script.
200
- * Tooltip style improvements.
201
- * Tooltip minified JS map file now included.
202
- * Updated French translation.
203
- * Updated Lithuanian translation.
204
- * Fix bug with grouped-list multi-day event title.
205
- * Fix bug when saving a bulk edit.
206
-
207
- = 2.1.5 =
208
-
209
- * Updated jQuery tooltip library to [qTip2](http://qtip2.com/). Previously using unmaintained original qTip library.
210
-
211
- = 2.1.4 =
212
-
213
- * Reverted CSS enqueue change.
214
- * Added Catalan translation - Provided by Toni Ginard & Monica Grau of [agora.xtec.cat](http://agora.xtec.cat/).
215
- * Updated AJAX security code.
216
- * Fixed bug with calendar ID field not trimming extra spaces.
217
- * Updated French translation - Pull Request by @Jojaba
218
- * Tested up to WordPress 4.1.
219
-
220
- = 2.1.3 =
221
-
222
- * Only load plugin scripts and stylesheets when the viewable page is rendering output from this plugin.
223
- * Fixed bugs with simple display options.
224
- * Added better error checking and output options to help in debugging GCal feeds.
225
- * Added Dutch translation - Provided by Henri van Werkhoven.
226
-
227
- = 2.1.2 =
228
-
229
- * Fixed bug with quick edit clearing out feed settings.
230
- * Fix bug with pagination creating extra DOM elements.
231
- * Localization string fixes - Pull Request by @Jojaba
232
- * Added HTML to group events of the same day semantically - Pull Request by @martinburchell
233
- * Fixed bug with [cal-id] event builder code.
234
- * Add in post data resets.
235
-
236
- = 2.1.1 =
237
-
238
- * Fixed bug with all day events not displaying.
239
- * Added missing timezone parameter to internal query.
240
-
241
- = 2.1.0 =
242
-
243
- * Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
244
-
245
- = 2.0.7.1 =
246
-
247
- * As of Nov. 17, 2014 the GCal API v2 is deprecated, which breaks all calendar feed displays. This update will temporarily hide the display while we work on a solution that uses GCal API v3.
248
-
249
- = 2.0.7 =
250
-
251
- * Events will now display if it hasn't ended yet for list views.
252
- * Fixed bug with date() call causing a display error in some cases.
253
- * Fixed bug with with widget tooltip text display.
254
- * Added cache clearing on upgrade.
255
- * Added filters for Previous and Next link text.
256
- * Internationalization and language file updates.
257
- * Simplified text domain function.
258
- * Added Lithuanian translation - Provided by Andrius Mazeika of [mazeika.info](http://mazeika.info/).
259
-
260
- = 2.0.6.2 =
261
-
262
- * Reverted previous bug fix that introduced new bugs.
263
-
264
- = 2.0.6.1 =
265
-
266
- * Added Polish translation - Provided by Michał Pasternak of [iplweb.pl](http://iplweb.pl/).
267
- * Updated Italian translation.
268
- * Updated French translation.
269
- * Fixed bug with date() call causing a display error in some cases.
270
- * Minor bug fixes.
271
-
272
- = 2.0.6 =
273
-
274
- * Added minimum and maximum feed date options to fix event display issues and boost performance.
275
- * Fixed a caching issue to increase performance.
276
- * Fixed bug where backslashes kept getting added to event titles that already contained single quotes when navigating through pages in widget.
277
-
278
- = 2.0.5.1 =
279
-
280
- * Fix timezone issue.
281
-
282
- = 2.0.5 =
283
-
284
- * Fixed display bug with event date and grouped lists.
285
- * Fixed broken paging links when feed IDs contain spaces between them.
286
- * Fixed bug with start offset and grouped lists not working properly.
287
- * Fixed bug where clear cache link was showing on any type of CPT.
288
- * Added German translation - Provided by Stefanie Drucker of [kreativhuhn.at](http://www.kreativhuhn.at/).
289
- * Added Norwegian translation - Provided by Tore Hjartland of [aliom.no](http://www.aliom.no/).
290
-
291
- = 2.0.4 =
292
-
293
- * Added option to show/hide paging.
294
- * Added option to limit display to any number of days or events per page.
295
- * Added option to set the start date offset any number of days back or ahead (list view).
296
- * Removed retrieve events from/until options now that display limit options will be used.
297
- * Removed max number of events to retrieve option.
298
- * Added shortcode attribute 'paging'.
299
- * Added shortcode attribute 'interval'.
300
- * Added shortcode attribute 'interval_count'.
301
- * Added shortcode attribute 'offset_interval_count'.
302
- * Added shortcode attribute 'offset_direction'.
303
- * Updated shortcode 'display' attribute to allow a value of 'grouped-list'.
304
- * Date no longer shows up for the title (list view).
305
- * HTML restructured to use div tags instead of an unordered list (list view).
306
- * Nav bar HTML (Back/Next links and month title) restructured to use div tags instead of span and percentages.
307
- * Moved clear cache button and changed style.
308
- * Added Italian translation - Provided by Francesco Paccagnella of [pacca.it](http://www.pacca.it/).
309
- * Added French translation - Provided by Vincent Bray.
310
- * Fixed PHP error during upgrade.
311
- * Fixed cross-site scripting (XSS) vulnerability.
312
- * JavaScript restructured to fit more in line with best practices.
313
- * Remove unused admin script file.
314
-
315
- = 2.0.3.1 =
316
-
317
- * Fixed bug where retrieve from/until dates were accidentally removed.
318
-
319
- = 2.0.3 =
320
-
321
- * Fixed bug where calendar feed caches weren't getting cleared properly.
322
- * Fixed feed settings metabox content wrapping issue.
323
-
324
- = 2.0.2 =
325
-
326
- * Added Spanish translation - Provided by Eduardo Larequi of [educacion.navarra.es/web/pnte/](http://www.educacion.navarra.es/web/pnte/).
327
- * Fixed timezone issues by forcing calendar feeds to use the timezone selected in the site's General Settings. Feed-specific timezone setting removed.
328
- * Fixed a bug with recurring events display.
329
- * Fixed an upgrade bug with multiple day events.
330
-
331
- = 2.0.1 =
332
-
333
- * Fixed display errors with certain event builder shortcodes.
334
- * Added language folder.
335
-
336
- = 2.0.0 =
337
-
338
- * Plugin rewritten from scratch.
339
- * Now using custom post types for storing and customizing Google calendar feeds.
340
- * Introduced the shortcode `[gcal]` (old shortcode still supported).
341
-
342
- = 0.7.3.1 =
343
-
344
- * Include missing file: upgrade-notice.php.
345
-
346
- = 0.7.3 =
347
-
348
- * Added warning about upcoming version 2.0 release.
349
- * Added option to save settings upon uninstall.
350
- * Tested with WordPress 4.0.
351
-
352
- = 0.7.2 =
353
-
354
- * Fixed a bug causing the "More details" Google Calendar information to be displayed in the wrong timezone
355
- * Fixed a bug that prevented setting the cache duration to 0 from working correctly
356
- * Fixed an issue that prevented Ajax from working with FORCE_SSL_ADMIN enabled
357
- * Now uses [wp_enqueue_scripts](http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/)
358
-
359
- = 0.7.1 =
360
-
361
- * Fixed bug causing AJAX enabled calendar grids to not function correctly
362
- * Fixed bug causing all-day events from outside required date range to be displayed
363
- * Fixed bug causing tooltip date title heading setting to be ignored
364
- * Added further data sanitisation on output
365
- * Feeds with no events will now be cached to prevent HTTP requests on every page load
366
-
367
- = 0.7 =
368
-
369
- * Fixed bug causing event dates / times to be displayed in the wrong timezone
370
- * Changed the [link-path] Event Display Builder shortcode to [url]
371
- * Fixed an Opera specific CSS issue causing page lists to be hidden
372
- * Lists can now be displayed in descending or ascending order
373
- * Added [event-id] and [cal-id] Event Display Builder shortcodes
374
- * Added an offset parameter for date / time based Event Display Builder shortcodes
375
- * Added an autolink parameter for enabling / disabling automatic linking of URLs
376
- * Added gce-day-past or gce-day-future classes to calendar grid cells
377
- * Cleaned up CSS
378
-
379
- = 0.6 =
380
-
381
- * Drastically reduced memory usage
382
- * Improved feed data caching system
383
- * Improved error reporting
384
- * General performance and efficiency improvements
385
- * Added a few more shortcodes to the event display builder
386
- * Other [miscellaneous changes / additions and bug fixes](http://www.rhanney.co.uk/2011/04/29/google-calendar-events-0-6)
387
-
388
- = 0.5 =
389
-
390
- * Added [event display builder](http://www.rhanney.co.uk/plugins/google-calendar-events/event-display-builder) feature, which vastly improves the customization possibilities of the plugin. This feature encompasses many of the most requested features, such as:
391
- - All-day events can be handled differently than 'normal' events
392
- - Start and end times / dates can be displayed on the same line (as can any other event information)
393
- - HTML (and Markdown) entered in Google Calendar fields can be properly parsed
394
- * Start and end times for retrieval of events are now much more flexible
395
- * A custom error message for non-admin users can now be specified
396
- * No longer loads SimplePie when it is not required
397
-
398
- = 0.4.1 =
399
-
400
- * Fix / workaround for the long-running timezone bug. Please take a look at [this](http://www.rhanney.co.uk/2011/01/16/google-calendar-events-0-4-1) for more information.
401
- * Added additional 'Maximum no. events to display' option to widget / shortcode (mainly to address a further issue caused by the above fix)
402
- * i18n related bug fix
403
- * Added support for widget_title filter (courtesy of [James](http://lunasea-studios.com))
404
- * Added Hungarian (hu_HU) translation ([danieltakacs](http://ek.klog.hu))
405
- * Now using minified version of jQuery qTip script
406
-
407
- = 0.4 =
408
-
409
- * More control over how start and end dates / times are displayed
410
- * Events can now be limited to a specified timeframe (number of days)
411
- * Events on the same day in lists can now be shown under a single date title
412
- * JavaScript can now be added to the footer rather than the header, via an option
413
- * The 'Loading...' text can now be customized
414
- * Description text can now be limited to a specified number of words
415
- * Multi-day events can be shown on each day that they span ([sort of](http://www.rhanney.co.uk/2010/08/19/google-calendar-events-0-4#multiday))
416
- * Bug fixes
417
- * i18n / l10n fixes
418
-
419
- = 0.3.1 =
420
-
421
- * l10n / i18n fixes. Dates should now be localized correctly and should maintain localization after an AJAX request
422
- * MU / Multi-site issues. Issues preventing adding of feeds have been addressed
423
-
424
- = 0.3 =
425
-
426
- * Now allows events from multiple Google Calendar feeds to be displayed on a single calendar grid / list
427
- * Internationalization support added
428
-
429
- = 0.2.1 =
430
-
431
- * Added option to allow 'More details' links to open in new window / tab.
432
- * Added option to choose a specific timezone for each feed
433
- * Line breaks in an event description will now be preserved
434
- * Fixed a bug casing the title to not be displayed on lists
435
- * Other minor bug fixes
436
-
437
- = 0.2 =
438
-
439
- * Added customization options for how information is displayed.
440
- * Can now display: start time, end time and date, location, description and event link.
441
- * Tooltips now using qTip jQuery plugin.
442
-
443
- = 0.1.4 =
444
-
445
- * More bug fixes.
446
-
447
- = 0.1.3 =
448
-
449
- * Several bug fixes, including fixing JavaScript problems that prevented tooltips appearing.
450
-
451
- = 0.1.2 =
452
-
453
- * Bug fixes.
454
-
455
- = 0.1.1 =
456
-
457
- * Fix to prevent conflicts with other plugins.
458
- * Changes to readme.txt.
459
-
460
- = 0.1 =
461
-
462
- * Initial release.
463
-
464
- == Upgrade Notice ==
465
-
466
- = 2.1.0 =
467
-
468
- Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
 
 
 
1
+ === Google Calendar Events ===
2
+ Contributors: pderksen, nickyoung87, nekojira, rosshanney
3
+ Tags: google calendar, google, calendar, events, gcal
4
+ Requires at least: 3.9
5
+ Tested up to: 4.3
6
+ Stable tag: 2.2.91
7
+ License: GPLv2 or later
8
+
9
+ Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
10
+
11
+ == Description ==
12
+
13
+ Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
14
+
15
+ = Features =
16
+
17
+ * Parses Google Calendar feeds to extract events.
18
+ * Displays events as a list or within a calendar grid.
19
+ * Events from multiple Google Calendar feeds can be shown in a single list / grid.
20
+ * Lists and grids can be displayed in posts, pages or within a widget.
21
+ * Options to change the number of events retrieved, date / time format, cache duration, etc.
22
+ * Complete customisation of the event information displayed.
23
+ * Calendar grids can have the ability to change the month displayed.
24
+
25
+ [Plugin Documentation & Getting Started](http://wpdocs.philderksen.com/google-calendar-events/?utm_source=wordpress_org&utm_medium=link&utm_campaign=gce_lite)
26
+
27
+ ###Updates###
28
+
29
+ * [Get notified when new features are released](http://eepurl.com/0_VsT)
30
+ * [Follow this project on Github](https://github.com/moonstonemedia/WP-Google-Calendar-Events)
31
+
32
+ This plugin was originally created by [Ross Hanney](http://www.rhanney.co.uk), a web developer based in the UK specialising in WordPress and PHP.
33
+
34
+ ## Available Translations ##
35
+
36
+ * Spanish - Provided by Eduardo Larequi of [educacion.navarra.es/web/pnte/](http://www.educacion.navarra.es/web/pnte/).
37
+ * Italian - Provided by Francesco Paccagnella of [pacca.it](http://www.pacca.it/).
38
+ * French - Provided by Vincent Bray.
39
+ * German - Provided by Stefanie Drucker of [kreativhuhn.at](http://www.kreativhuhn.at/).
40
+ * Norwegian - Provided by Tore Hjartland of [aliom.no](http://www.aliom.no/).
41
+ * Polish - Provided by Michał Pasternak of [iplweb.pl](http://iplweb.pl/).
42
+ * Lithuanian - Provided by Andrius Mazeika of [mazeika.info](http://mazeika.info/).
43
+ * Dutch - Provided by Henri van Werkhoven.
44
+ * Catalan - Provided by Toni Ginard & Monica Grau of [agora.xtec.cat](http://agora.xtec.cat/).
45
+ * Russian - Provided by Vadim Reutskiy.
46
+ * Swedish - Provided by Familjedaghemmet Chicos of [chicos.nu](http://www.chicos.nu/).
47
+
48
+ == Installation ==
49
+
50
+ There are three ways to install this plugin.
51
+
52
+ = 1. Admin Search =
53
+ 1. In your Admin, go to menu Plugins > Add.
54
+ 1. Search for `Google Calendar`.
55
+ 1. Find the plugin that's labeled `Google Calendar Events`.
56
+ 1. Look for the author name `Moonstone Media` on the plugin.
57
+ 1. Click to install.
58
+ 1. Activate the plugin.
59
+ 1. A new menu item `GCal Events` will appear in the main menu.
60
+
61
+ = 2. Download & Upload =
62
+ 1. Download the plugin (a zip file) on the right column of this page.
63
+ 1. In your Admin, go to menu Plugins > Add.
64
+ 1. Select the tab "Upload".
65
+ 1. Upload the .zip file you just downloaded.
66
+ 1. Activate the plugin.
67
+ 1. A new menu item `GCal Events` will appear in the main menu.
68
+
69
+ = 3. FTP Upload =
70
+ 1. Download the plugin (.zip file) on the right column of this page.
71
+ 1. Unzip the zip file contents.
72
+ 1. Upload the `google-calendar-events` folder to the `/wp-content/plugins/` directory of your site.
73
+ 1. Activate the plugin through the 'Plugins' menu in WordPress.
74
+ 1. A new menu item `GCal Events` will appear in the main menu.
75
+
76
+ == Frequently Asked Questions ==
77
+
78
+ [Plugin Documentation & Getting Started](http://wpdocs.philderksen.com/google-calendar-events/?utm_source=wordpress_org&utm_medium=link&utm_campaign=gce_lite)
79
+
80
+ == Screenshots ==
81
+
82
+ 1. Grid display in full page with tooltip
83
+ 1. Grid display in widget
84
+ 1. List display in widget
85
+ 1. Simple display options
86
+ 1. Calendar feed settings
87
+ 1. Calendar widget settings
88
+ 1. Event display builder editor
89
+
90
+ == Changelog ==
91
+
92
+ = 2.2.91 - August 16, 2015 =
93
+ * Fix: Calendar not working correctly with custom date range grid after 2.2.9 changes.
94
+
95
+ = 2.2.9 - August 14, 2015 =
96
+ * Fix: Event links pointing to Google Calendar have a timezone argument from feed setting.
97
+ * Fix: Improved assets loading, only load scripts on posts and pages that have a calendar.
98
+ * Localization: Updated Norwegian translations.
99
+
100
+ = 2.2.8 - August 7, 2015 =
101
+
102
+ * Fix: Improved security when saving plugin settings.
103
+ * Fix: Added URL encoding to fix some issues with API keys containing special characters.
104
+ * Tweak: Use calendar feed timezone or website timezone (default calendar).
105
+
106
+ = 2.2.7 - July 31, 2015 =
107
+
108
+ * Feature: Added an 'Add Calendar' button to quickly add a shortcode in posts.
109
+ * Fix: Reverted register scripts hook to init.
110
+ * Localization: Updated French translations.
111
+ * Tweak: Flush permalinks on plugin activation and deactivation.
112
+ * Tweak: Added `[if-not-location]` event builder conditional shortcode.
113
+ * Tweak: Added a 'gce_no_events_message_text' filter when no events are found.
114
+ * Tweak: Added a clear cache bulk action for clearing caches of multiple feeds.
115
+
116
+ = 2.2.6 - July 16, 2015 =
117
+
118
+ * Plugin performs a requirements check to ensure users are running a recent version of WordPress.
119
+ * Added '.gce-has-<n>-events' class to count events in each day in grid display.
120
+ * Removed unnecessary imagesLoaded JS library (optional dependency of the qTip2 library).
121
+ * Fixed a bug with the start month of the custom date range grid view.
122
+ * Fixed a bug with backslashes in date ant time custom format inputs.
123
+ * Fixed scripts and styles loading issues.
124
+ * Fixed bugs when custom date range values were left blank.
125
+ * Added Russian translation provided by Vadim Reutskiy.
126
+ * Added Swedish translation provided by Familjedaghemmet Chicos.
127
+ * Tested up to WordPress 4.3.
128
+
129
+ = 2.2.5 - April 22, 2015 =
130
+
131
+ * Updated calls to add_query_arg to prevent any possible XSS attacks.
132
+ * Fixed bug with fatal error in rare cases by rearragning order of plugin file includes.
133
+ * Fixed bug with navigation links sometimes returning -1.
134
+ * Corrected typo with paging links title attributes.
135
+
136
+ = 2.2.4 - April 6, 2015 =
137
+
138
+ * Updated French translation files.
139
+ * Fixed Catalan translation files.
140
+ * Fixed encoding bug with [maps-link] new window attribute.
141
+
142
+ = 2.2.3 - March 26, 2015 =
143
+
144
+ * Fixed bug with the "More details..." link encoding.
145
+ * Added note about total event limit of 2,500 now enforced by the Google Calendar API.
146
+ * Updated earliest feed event date default to 1 (one) month back.
147
+ * 0 (zero) value now allowed for earliest and latest feed event dates (sets them to the current date).
148
+ * Minor public script improvements.
149
+ * Added Brazilian Portuguese translation files.
150
+ * Updated jQuery UI datepicker CSS CDN reference for feed settings pages.
151
+ * Tested up to WordPress 4.2.
152
+
153
+ = 2.2.2.1 - March 17, 2015 =
154
+
155
+ * Option to always enqueue scripts & styles now enabled by default.
156
+
157
+ = 2.2.2 - March 15, 2015 =
158
+
159
+ * Added option to always enqueue scripts and styles on every post and page.
160
+ * Added custom date range grid option to display modes.
161
+ * Added option to disable the plugin CSS file.
162
+ * Fixed bug with list intervals.
163
+ * Fixed bug with event list showing past events.
164
+ * Minor public JavaScript performance updates.
165
+
166
+ = 2.2.1 - February 28, 2015 =
167
+
168
+ * Enqueue scripts & styles on all posts & pages temporarily until better detection can be put in place.
169
+ * Fixed GCal ID encoding in feed settings.
170
+ * Updated Italian translation.
171
+ * Updated French translation.
172
+
173
+ = 2.2.0 - February 25, 2015 =
174
+
175
+ * Added custom date range options.
176
+ * Added option to hide tooltips on grid display.
177
+ * Added additional save button at the bottom of the feed settings.
178
+ * Performance updates to script enqueues.
179
+ * Updated Catalan translation files.
180
+ * Updated list output logic.
181
+ * Fixed bug with multi-day events sometimes not showing up in list view.
182
+ * Fixed bug with calendar ID field not getting encoded.
183
+ * Fixed bug with tooltips scrolling on mobile.
184
+ * Fixed bug with Google Hangout event links.
185
+ * Fixed bug with widget settings not being unique.
186
+ * Widget UI enhancements.
187
+ * Feed settings UI enhancements.
188
+ * Error messaging updates.
189
+ * Security improvements.
190
+
191
+ = 2.1.7 =
192
+
193
+ * Restructured next and back paging navigation script.
194
+ * Updated Italian translation files.
195
+
196
+ = 2.1.6.1 =
197
+
198
+ * More tooltip (qTip2) effects & styling.
199
+
200
+ = 2.1.6 =
201
+
202
+ * Fixed bug with tooltip (qTip2) in some cases by now including it's imagesLoaded script.
203
+ * Tooltip style improvements.
204
+ * Tooltip minified JS map file now included.
205
+ * Updated French translation.
206
+ * Updated Lithuanian translation.
207
+ * Fix bug with grouped-list multi-day event title.
208
+ * Fix bug when saving a bulk edit.
209
+
210
+ = 2.1.5 =
211
+
212
+ * Updated jQuery tooltip library to [qTip2](http://qtip2.com/). Previously using unmaintained original qTip library.
213
+
214
+ = 2.1.4 =
215
+
216
+ * Reverted CSS enqueue change.
217
+ * Added Catalan translation - Provided by Toni Ginard & Monica Grau of [agora.xtec.cat](http://agora.xtec.cat/).
218
+ * Updated AJAX security code.
219
+ * Fixed bug with calendar ID field not trimming extra spaces.
220
+ * Updated French translation - Pull Request by @Jojaba
221
+ * Tested up to WordPress 4.1.
222
+
223
+ = 2.1.3 =
224
+
225
+ * Only load plugin scripts and stylesheets when the viewable page is rendering output from this plugin.
226
+ * Fixed bugs with simple display options.
227
+ * Added better error checking and output options to help in debugging GCal feeds.
228
+ * Added Dutch translation - Provided by Henri van Werkhoven.
229
+
230
+ = 2.1.2 =
231
+
232
+ * Fixed bug with quick edit clearing out feed settings.
233
+ * Fix bug with pagination creating extra DOM elements.
234
+ * Localization string fixes - Pull Request by @Jojaba
235
+ * Added HTML to group events of the same day semantically - Pull Request by @martinburchell
236
+ * Fixed bug with [cal-id] event builder code.
237
+ * Add in post data resets.
238
+
239
+ = 2.1.1 =
240
+
241
+ * Fixed bug with all day events not displaying.
242
+ * Added missing timezone parameter to internal query.
243
+
244
+ = 2.1.0 =
245
+
246
+ * Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
247
+
248
+ = 2.0.7.1 =
249
+
250
+ * As of Nov. 17, 2014 the GCal API v2 is deprecated, which breaks all calendar feed displays. This update will temporarily hide the display while we work on a solution that uses GCal API v3.
251
+
252
+ = 2.0.7 =
253
+
254
+ * Events will now display if it hasn't ended yet for list views.
255
+ * Fixed bug with date() call causing a display error in some cases.
256
+ * Fixed bug with with widget tooltip text display.
257
+ * Added cache clearing on upgrade.
258
+ * Added filters for Previous and Next link text.
259
+ * Internationalization and language file updates.
260
+ * Simplified text domain function.
261
+ * Added Lithuanian translation - Provided by Andrius Mazeika of [mazeika.info](http://mazeika.info/).
262
+
263
+ = 2.0.6.2 =
264
+
265
+ * Reverted previous bug fix that introduced new bugs.
266
+
267
+ = 2.0.6.1 =
268
+
269
+ * Added Polish translation - Provided by Michał Pasternak of [iplweb.pl](http://iplweb.pl/).
270
+ * Updated Italian translation.
271
+ * Updated French translation.
272
+ * Fixed bug with date() call causing a display error in some cases.
273
+ * Minor bug fixes.
274
+
275
+ = 2.0.6 =
276
+
277
+ * Added minimum and maximum feed date options to fix event display issues and boost performance.
278
+ * Fixed a caching issue to increase performance.
279
+ * Fixed bug where backslashes kept getting added to event titles that already contained single quotes when navigating through pages in widget.
280
+
281
+ = 2.0.5.1 =
282
+
283
+ * Fix timezone issue.
284
+
285
+ = 2.0.5 =
286
+
287
+ * Fixed display bug with event date and grouped lists.
288
+ * Fixed broken paging links when feed IDs contain spaces between them.
289
+ * Fixed bug with start offset and grouped lists not working properly.
290
+ * Fixed bug where clear cache link was showing on any type of CPT.
291
+ * Added German translation - Provided by Stefanie Drucker of [kreativhuhn.at](http://www.kreativhuhn.at/).
292
+ * Added Norwegian translation - Provided by Tore Hjartland of [aliom.no](http://www.aliom.no/).
293
+
294
+ = 2.0.4 =
295
+
296
+ * Added option to show/hide paging.
297
+ * Added option to limit display to any number of days or events per page.
298
+ * Added option to set the start date offset any number of days back or ahead (list view).
299
+ * Removed retrieve events from/until options now that display limit options will be used.
300
+ * Removed max number of events to retrieve option.
301
+ * Added shortcode attribute 'paging'.
302
+ * Added shortcode attribute 'interval'.
303
+ * Added shortcode attribute 'interval_count'.
304
+ * Added shortcode attribute 'offset_interval_count'.
305
+ * Added shortcode attribute 'offset_direction'.
306
+ * Updated shortcode 'display' attribute to allow a value of 'grouped-list'.
307
+ * Date no longer shows up for the title (list view).
308
+ * HTML restructured to use div tags instead of an unordered list (list view).
309
+ * Nav bar HTML (Back/Next links and month title) restructured to use div tags instead of span and percentages.
310
+ * Moved clear cache button and changed style.
311
+ * Added Italian translation - Provided by Francesco Paccagnella of [pacca.it](http://www.pacca.it/).
312
+ * Added French translation - Provided by Vincent Bray.
313
+ * Fixed PHP error during upgrade.
314
+ * Fixed cross-site scripting (XSS) vulnerability.
315
+ * JavaScript restructured to fit more in line with best practices.
316
+ * Remove unused admin script file.
317
+
318
+ = 2.0.3.1 =
319
+
320
+ * Fixed bug where retrieve from/until dates were accidentally removed.
321
+
322
+ = 2.0.3 =
323
+
324
+ * Fixed bug where calendar feed caches weren't getting cleared properly.
325
+ * Fixed feed settings metabox content wrapping issue.
326
+
327
+ = 2.0.2 =
328
+
329
+ * Added Spanish translation - Provided by Eduardo Larequi of [educacion.navarra.es/web/pnte/](http://www.educacion.navarra.es/web/pnte/).
330
+ * Fixed timezone issues by forcing calendar feeds to use the timezone selected in the site's General Settings. Feed-specific timezone setting removed.
331
+ * Fixed a bug with recurring events display.
332
+ * Fixed an upgrade bug with multiple day events.
333
+
334
+ = 2.0.1 =
335
+
336
+ * Fixed display errors with certain event builder shortcodes.
337
+ * Added language folder.
338
+
339
+ = 2.0.0 =
340
+
341
+ * Plugin rewritten from scratch.
342
+ * Now using custom post types for storing and customizing Google calendar feeds.
343
+ * Introduced the shortcode `[gcal]` (old shortcode still supported).
344
+
345
+ = 0.7.3.1 =
346
+
347
+ * Include missing file: upgrade-notice.php.
348
+
349
+ = 0.7.3 =
350
+
351
+ * Added warning about upcoming version 2.0 release.
352
+ * Added option to save settings upon uninstall.
353
+ * Tested with WordPress 4.0.
354
+
355
+ = 0.7.2 =
356
+
357
+ * Fixed a bug causing the "More details" Google Calendar information to be displayed in the wrong timezone
358
+ * Fixed a bug that prevented setting the cache duration to 0 from working correctly
359
+ * Fixed an issue that prevented Ajax from working with FORCE_SSL_ADMIN enabled
360
+ * Now uses [wp_enqueue_scripts](http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/)
361
+
362
+ = 0.7.1 =
363
+
364
+ * Fixed bug causing AJAX enabled calendar grids to not function correctly
365
+ * Fixed bug causing all-day events from outside required date range to be displayed
366
+ * Fixed bug causing tooltip date title heading setting to be ignored
367
+ * Added further data sanitisation on output
368
+ * Feeds with no events will now be cached to prevent HTTP requests on every page load
369
+
370
+ = 0.7 =
371
+
372
+ * Fixed bug causing event dates / times to be displayed in the wrong timezone
373
+ * Changed the [link-path] Event Display Builder shortcode to [url]
374
+ * Fixed an Opera specific CSS issue causing page lists to be hidden
375
+ * Lists can now be displayed in descending or ascending order
376
+ * Added [event-id] and [cal-id] Event Display Builder shortcodes
377
+ * Added an offset parameter for date / time based Event Display Builder shortcodes
378
+ * Added an autolink parameter for enabling / disabling automatic linking of URLs
379
+ * Added gce-day-past or gce-day-future classes to calendar grid cells
380
+ * Cleaned up CSS
381
+
382
+ = 0.6 =
383
+
384
+ * Drastically reduced memory usage
385
+ * Improved feed data caching system
386
+ * Improved error reporting
387
+ * General performance and efficiency improvements
388
+ * Added a few more shortcodes to the event display builder
389
+ * Other [miscellaneous changes / additions and bug fixes](http://www.rhanney.co.uk/2011/04/29/google-calendar-events-0-6)
390
+
391
+ = 0.5 =
392
+
393
+ * Added [event display builder](http://www.rhanney.co.uk/plugins/google-calendar-events/event-display-builder) feature, which vastly improves the customization possibilities of the plugin. This feature encompasses many of the most requested features, such as:
394
+ - All-day events can be handled differently than 'normal' events
395
+ - Start and end times / dates can be displayed on the same line (as can any other event information)
396
+ - HTML (and Markdown) entered in Google Calendar fields can be properly parsed
397
+ * Start and end times for retrieval of events are now much more flexible
398
+ * A custom error message for non-admin users can now be specified
399
+ * No longer loads SimplePie when it is not required
400
+
401
+ = 0.4.1 =
402
+
403
+ * Fix / workaround for the long-running timezone bug. Please take a look at [this](http://www.rhanney.co.uk/2011/01/16/google-calendar-events-0-4-1) for more information.
404
+ * Added additional 'Maximum no. events to display' option to widget / shortcode (mainly to address a further issue caused by the above fix)
405
+ * i18n related bug fix
406
+ * Added support for widget_title filter (courtesy of [James](http://lunasea-studios.com))
407
+ * Added Hungarian (hu_HU) translation ([danieltakacs](http://ek.klog.hu))
408
+ * Now using minified version of jQuery qTip script
409
+
410
+ = 0.4 =
411
+
412
+ * More control over how start and end dates / times are displayed
413
+ * Events can now be limited to a specified timeframe (number of days)
414
+ * Events on the same day in lists can now be shown under a single date title
415
+ * JavaScript can now be added to the footer rather than the header, via an option
416
+ * The 'Loading...' text can now be customized
417
+ * Description text can now be limited to a specified number of words
418
+ * Multi-day events can be shown on each day that they span ([sort of](http://www.rhanney.co.uk/2010/08/19/google-calendar-events-0-4#multiday))
419
+ * Bug fixes
420
+ * i18n / l10n fixes
421
+
422
+ = 0.3.1 =
423
+
424
+ * l10n / i18n fixes. Dates should now be localized correctly and should maintain localization after an AJAX request
425
+ * MU / Multi-site issues. Issues preventing adding of feeds have been addressed
426
+
427
+ = 0.3 =
428
+
429
+ * Now allows events from multiple Google Calendar feeds to be displayed on a single calendar grid / list
430
+ * Internationalization support added
431
+
432
+ = 0.2.1 =
433
+
434
+ * Added option to allow 'More details' links to open in new window / tab.
435
+ * Added option to choose a specific timezone for each feed
436
+ * Line breaks in an event description will now be preserved
437
+ * Fixed a bug casing the title to not be displayed on lists
438
+ * Other minor bug fixes
439
+
440
+ = 0.2 =
441
+
442
+ * Added customization options for how information is displayed.
443
+ * Can now display: start time, end time and date, location, description and event link.
444
+ * Tooltips now using qTip jQuery plugin.
445
+
446
+ = 0.1.4 =
447
+
448
+ * More bug fixes.
449
+
450
+ = 0.1.3 =
451
+
452
+ * Several bug fixes, including fixing JavaScript problems that prevented tooltips appearing.
453
+
454
+ = 0.1.2 =
455
+
456
+ * Bug fixes.
457
+
458
+ = 0.1.1 =
459
+
460
+ * Fix to prevent conflicts with other plugins.
461
+ * Changes to readme.txt.
462
+
463
+ = 0.1 =
464
+
465
+ * Initial release.
466
+
467
+ == Upgrade Notice ==
468
+
469
+ = 2.1.0 =
470
+
471
+ Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.