Version Description
- November 9, 2015 =
- Fix: Fixed a bug with the update script being skipped via attachment to activation hook.
Download this release
Release Info
Developer | pderksen |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0 to 3.0.1
- google-calendar-events.php +2 -2
- includes/installation.php +0 -14
- includes/main.php +12 -0
- includes/update.php +4 -0
- readme.txt +11 -6
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real_52.php +3 -3
- vendor/composer/installed.json +49 -49
google-calendar-events.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/google-calendar-events/
|
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 |
*
|
7 |
-
* Version: 3.0.
|
8 |
*
|
9 |
* Author: Moonstone Media
|
10 |
* Author URI: http://moonstonemediagroup.com
|
@@ -32,7 +32,7 @@ if ( version_compare( PHP_VERSION, '5.3.0' ) === -1 ) {
|
|
32 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
33 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
34 |
$this_plugin_constants = array(
|
35 |
-
'SIMPLE_CALENDAR_VERSION' => '3.0.
|
36 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
37 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
38 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
4 |
* Plugin URI: https://wordpress.org/plugins/google-calendar-events/
|
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 |
*
|
7 |
+
* Version: 3.0.1
|
8 |
*
|
9 |
* Author: Moonstone Media
|
10 |
* Author URI: http://moonstonemediagroup.com
|
32 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
33 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
34 |
$this_plugin_constants = array(
|
35 |
+
'SIMPLE_CALENDAR_VERSION' => '3.0.1',
|
36 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
37 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
38 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
includes/installation.php
CHANGED
@@ -34,8 +34,6 @@ class Installation {
|
|
34 |
self::create_terms();
|
35 |
self::create_options();
|
36 |
|
37 |
-
self::update( SIMPLE_CALENDAR_VERSION );
|
38 |
-
|
39 |
do_action( 'simcal_activated' );
|
40 |
}
|
41 |
|
@@ -157,16 +155,4 @@ class Installation {
|
|
157 |
return ! empty( $saved_value ) ? $saved_value : $default_value;
|
158 |
}
|
159 |
|
160 |
-
/**
|
161 |
-
* Run upgrade scripts.
|
162 |
-
*
|
163 |
-
* @since 3.0.0
|
164 |
-
*
|
165 |
-
* @param string $version
|
166 |
-
*/
|
167 |
-
public static function update( $version ) {
|
168 |
-
$update = new Update( $version );
|
169 |
-
$update->run_updates();
|
170 |
-
}
|
171 |
-
|
172 |
}
|
34 |
self::create_terms();
|
35 |
self::create_options();
|
36 |
|
|
|
|
|
37 |
do_action( 'simcal_activated' );
|
38 |
}
|
39 |
|
155 |
return ! empty( $saved_value ) ? $saved_value : $default_value;
|
156 |
}
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
includes/main.php
CHANGED
@@ -107,6 +107,9 @@ final class Plugin {
|
|
107 |
register_activation_hook( SIMPLE_CALENDAR_MAIN_FILE, array( 'SimpleCalendar\Installation', 'activate' ) );
|
108 |
register_deactivation_hook( SIMPLE_CALENDAR_MAIN_FILE, array( 'SimpleCalendar\Installation', 'deactivate' ) );
|
109 |
|
|
|
|
|
|
|
110 |
// Init hooks.
|
111 |
add_action( 'init', array( $this, 'init' ), 5 );
|
112 |
add_action( 'admin_init', array( $this, 'register_settings' ), 5 );
|
@@ -251,6 +254,15 @@ final class Plugin {
|
|
251 |
}
|
252 |
}
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
}
|
255 |
|
256 |
/**
|
107 |
register_activation_hook( SIMPLE_CALENDAR_MAIN_FILE, array( 'SimpleCalendar\Installation', 'activate' ) );
|
108 |
register_deactivation_hook( SIMPLE_CALENDAR_MAIN_FILE, array( 'SimpleCalendar\Installation', 'deactivate' ) );
|
109 |
|
110 |
+
// Do update call here.
|
111 |
+
add_action( 'admin_init', array( $this, 'update' ), 999 );
|
112 |
+
|
113 |
// Init hooks.
|
114 |
add_action( 'init', array( $this, 'init' ), 5 );
|
115 |
add_action( 'admin_init', array( $this, 'register_settings' ), 5 );
|
254 |
}
|
255 |
}
|
256 |
|
257 |
+
/**
|
258 |
+
* Run upgrade scripts.
|
259 |
+
*
|
260 |
+
* @since 3.0.0
|
261 |
+
*/
|
262 |
+
public static function update() {
|
263 |
+
$update = new Update( SIMPLE_CALENDAR_VERSION );
|
264 |
+
}
|
265 |
+
|
266 |
}
|
267 |
|
268 |
/**
|
includes/update.php
CHANGED
@@ -68,6 +68,10 @@ class Update {
|
|
68 |
$installed = get_option( 'simple-calendar_version', null );
|
69 |
$this->installed_ver = is_null( $installed ) ? get_option( 'gce_version', null ) : $installed;
|
70 |
$this->new_ver = $version;
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
68 |
$installed = get_option( 'simple-calendar_version', null );
|
69 |
$this->installed_ver = is_null( $installed ) ? get_option( 'gce_version', null ) : $installed;
|
70 |
$this->new_ver = $version;
|
71 |
+
|
72 |
+
if ( version_compare( $this->installed_ver, $this->new_ver, '<' ) ) {
|
73 |
+
$this->run_updates();
|
74 |
+
}
|
75 |
}
|
76 |
|
77 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: moonstonemedia, pderksen, nickyoung87, nekojira, rosshanney
|
|
3 |
Tags: calendar, calendars, calendar manager, custom calendar, custom calendars, event, events, events feed, google calendar, google
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,11 +11,10 @@ Add Google Calendar events to your WordPress site in minutes. Beautiful calendar
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
**Simple Calendar** is the easiest way to add Google Calendar events to your WordPress site. Keep managing everything in Google Calendar. Fine tune the display of your calendars to your liking. Add
|
15 |
|
16 |
= SIMPLE CALENDAR FEATURES =
|
17 |
|
18 |
-
|
19 |
* Display events from any public Google Calendar.
|
20 |
* Keep managing events in Google Calendar. No need to create events in WordPress.
|
21 |
* Out-of-the-box designs that match your theme’s look and feel.
|
@@ -25,14 +24,13 @@ Add Google Calendar events to your WordPress site in minutes. Beautiful calendar
|
|
25 |
* Intuitive admin settings for simple configuration changes.
|
26 |
* Advanced settings to adjust time zones, date/time formats and start of the week.
|
27 |
* Many translations available with more being added on a regular basis. [Translations welcome!](https://wordpress.org/support/topic/translating-this-plugin-in-your-language)
|
28 |
-
* Fully extensible to support add-ons with advanced features
|
29 |
* Open source with code hosted on GitHub. [Contributions welcome!](https://github.com/moonstonemedia/Simple-Calendar)
|
30 |
|
31 |
>**[Love our plugin? Please consider purchasing our Google Calendar Pro add-on](https://simplecalendar.io/addons/google-calendar-pro/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=description)**
|
32 |
|
33 |
= GOOGLE CALENDAR PRO ADD-ON FEATURES =
|
34 |
|
35 |
-
|
36 |
* Display events from **Private** Google Calendars.
|
37 |
* Secure connection established between your site and Google using the OAuth standard.
|
38 |
* Highlight events with colors that match those selected within each Google Calendar event.
|
@@ -54,6 +52,10 @@ Add Google Calendar events to your WordPress site in minutes. Beautiful calendar
|
|
54 |
|
55 |
Find our docs at [docs.simplecalendar.io](http://docs.simplecalendar.io/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=faq)
|
56 |
|
|
|
|
|
|
|
|
|
57 |
= How do I contribute to Simple Calendar? =
|
58 |
|
59 |
We'd love your help! Here's a few things you can do:
|
@@ -75,6 +77,9 @@ We'd love your help! Here's a few things you can do:
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
78 |
= 3.0.0 - November 8, 2015 =
|
79 |
* Announcement: Plugin renamed to Simple Calendar.
|
80 |
* Announcement: Visit our new website at [simplecalendar.io](https://simplecalendar.io/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=changelog)!
|
@@ -332,4 +337,4 @@ We'd love your help! Here's a few things you can do:
|
|
332 |
== Upgrade Notice ==
|
333 |
|
334 |
= 3.0.0 =
|
335 |
-
|
3 |
Tags: calendar, calendars, calendar manager, custom calendar, custom calendars, event, events, events feed, google calendar, google
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 3.0.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
**Simple Calendar** is the easiest way to add Google Calendar events to your WordPress site. Keep managing everything in Google Calendar. Fine tune the display of your calendars to your liking. Add advanced features with add-ons.
|
15 |
|
16 |
= SIMPLE CALENDAR FEATURES =
|
17 |
|
|
|
18 |
* Display events from any public Google Calendar.
|
19 |
* Keep managing events in Google Calendar. No need to create events in WordPress.
|
20 |
* Out-of-the-box designs that match your theme’s look and feel.
|
24 |
* Intuitive admin settings for simple configuration changes.
|
25 |
* Advanced settings to adjust time zones, date/time formats and start of the week.
|
26 |
* Many translations available with more being added on a regular basis. [Translations welcome!](https://wordpress.org/support/topic/translating-this-plugin-in-your-language)
|
27 |
+
* Fully extensible to support add-ons with advanced features for more specific needs.
|
28 |
* Open source with code hosted on GitHub. [Contributions welcome!](https://github.com/moonstonemedia/Simple-Calendar)
|
29 |
|
30 |
>**[Love our plugin? Please consider purchasing our Google Calendar Pro add-on](https://simplecalendar.io/addons/google-calendar-pro/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=description)**
|
31 |
|
32 |
= GOOGLE CALENDAR PRO ADD-ON FEATURES =
|
33 |
|
|
|
34 |
* Display events from **Private** Google Calendars.
|
35 |
* Secure connection established between your site and Google using the OAuth standard.
|
36 |
* Highlight events with colors that match those selected within each Google Calendar event.
|
52 |
|
53 |
Find our docs at [docs.simplecalendar.io](http://docs.simplecalendar.io/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=faq)
|
54 |
|
55 |
+
= Can I get notified by email of new releases? =
|
56 |
+
|
57 |
+
[Subscribe here](https://www.getdrip.com/forms/9434542/submissions/new) to be notified by email of major features or updates.
|
58 |
+
|
59 |
= How do I contribute to Simple Calendar? =
|
60 |
|
61 |
We'd love your help! Here's a few things you can do:
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 3.0.1 - November 9, 2015 =
|
81 |
+
* Fix: Fixed a bug with the update script being skipped via attachment to activation hook.
|
82 |
+
|
83 |
= 3.0.0 - November 8, 2015 =
|
84 |
* Announcement: Plugin renamed to Simple Calendar.
|
85 |
* Announcement: Visit our new website at [simplecalendar.io](https://simplecalendar.io/?utm_source=wordpress.org&utm_medium=link&utm_campaign=simple-cal-readme&utm_content=changelog)!
|
337 |
== Upgrade Notice ==
|
338 |
|
339 |
= 3.0.0 =
|
340 |
+
This is a major rewrite of the plugin with lots of additions and changes. Please backup before proceeding.
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInite3de7405dc7a77d715f3874acd46d15e::getLoader();
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitce3919bf2d3bf4dadd7a6dcd6870b610 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInite3de7405dc7a77d715f3874acd46d15e {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInite3de7405dc7a77d715f3874acd46d15e', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInite3de7405dc7a77d715f3874acd46d15e', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
vendor/composer/installed.json
CHANGED
@@ -132,55 +132,6 @@
|
|
132 |
"google"
|
133 |
]
|
134 |
},
|
135 |
-
{
|
136 |
-
"name": "nesbot/carbon",
|
137 |
-
"version": "1.20.0",
|
138 |
-
"version_normalized": "1.20.0.0",
|
139 |
-
"source": {
|
140 |
-
"type": "git",
|
141 |
-
"url": "https://github.com/briannesbitt/Carbon.git",
|
142 |
-
"reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3"
|
143 |
-
},
|
144 |
-
"dist": {
|
145 |
-
"type": "zip",
|
146 |
-
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
|
147 |
-
"reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
|
148 |
-
"shasum": ""
|
149 |
-
},
|
150 |
-
"require": {
|
151 |
-
"php": ">=5.3.0",
|
152 |
-
"symfony/translation": "~2.6|~3.0"
|
153 |
-
},
|
154 |
-
"require-dev": {
|
155 |
-
"phpunit/phpunit": "~4.0"
|
156 |
-
},
|
157 |
-
"time": "2015-06-25 04:19:39",
|
158 |
-
"type": "library",
|
159 |
-
"installation-source": "dist",
|
160 |
-
"autoload": {
|
161 |
-
"psr-0": {
|
162 |
-
"Carbon": "src"
|
163 |
-
}
|
164 |
-
},
|
165 |
-
"notification-url": "https://packagist.org/downloads/",
|
166 |
-
"license": [
|
167 |
-
"MIT"
|
168 |
-
],
|
169 |
-
"authors": [
|
170 |
-
{
|
171 |
-
"name": "Brian Nesbitt",
|
172 |
-
"email": "brian@nesbot.com",
|
173 |
-
"homepage": "http://nesbot.com"
|
174 |
-
}
|
175 |
-
],
|
176 |
-
"description": "A simple API extension for DateTime.",
|
177 |
-
"homepage": "http://carbon.nesbot.com",
|
178 |
-
"keywords": [
|
179 |
-
"date",
|
180 |
-
"datetime",
|
181 |
-
"time"
|
182 |
-
]
|
183 |
-
},
|
184 |
{
|
185 |
"name": "erusev/parsedown",
|
186 |
"version": "1.6.0",
|
@@ -362,5 +313,54 @@
|
|
362 |
],
|
363 |
"description": "Symfony Translation Component",
|
364 |
"homepage": "https://symfony.com"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
}
|
366 |
]
|
132 |
"google"
|
133 |
]
|
134 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
{
|
136 |
"name": "erusev/parsedown",
|
137 |
"version": "1.6.0",
|
313 |
],
|
314 |
"description": "Symfony Translation Component",
|
315 |
"homepage": "https://symfony.com"
|
316 |
+
},
|
317 |
+
{
|
318 |
+
"name": "nesbot/carbon",
|
319 |
+
"version": "1.20.0",
|
320 |
+
"version_normalized": "1.20.0.0",
|
321 |
+
"source": {
|
322 |
+
"type": "git",
|
323 |
+
"url": "https://github.com/briannesbitt/Carbon.git",
|
324 |
+
"reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3"
|
325 |
+
},
|
326 |
+
"dist": {
|
327 |
+
"type": "zip",
|
328 |
+
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
|
329 |
+
"reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3",
|
330 |
+
"shasum": ""
|
331 |
+
},
|
332 |
+
"require": {
|
333 |
+
"php": ">=5.3.0",
|
334 |
+
"symfony/translation": "~2.6|~3.0"
|
335 |
+
},
|
336 |
+
"require-dev": {
|
337 |
+
"phpunit/phpunit": "~4.0"
|
338 |
+
},
|
339 |
+
"time": "2015-06-25 04:19:39",
|
340 |
+
"type": "library",
|
341 |
+
"installation-source": "dist",
|
342 |
+
"autoload": {
|
343 |
+
"psr-0": {
|
344 |
+
"Carbon": "src"
|
345 |
+
}
|
346 |
+
},
|
347 |
+
"notification-url": "https://packagist.org/downloads/",
|
348 |
+
"license": [
|
349 |
+
"MIT"
|
350 |
+
],
|
351 |
+
"authors": [
|
352 |
+
{
|
353 |
+
"name": "Brian Nesbitt",
|
354 |
+
"email": "brian@nesbot.com",
|
355 |
+
"homepage": "http://nesbot.com"
|
356 |
+
}
|
357 |
+
],
|
358 |
+
"description": "A simple API extension for DateTime.",
|
359 |
+
"homepage": "http://carbon.nesbot.com",
|
360 |
+
"keywords": [
|
361 |
+
"date",
|
362 |
+
"datetime",
|
363 |
+
"time"
|
364 |
+
]
|
365 |
}
|
366 |
]
|