Shortcode and functions to query your Google Calendar for the number of days since or until the most recent event matching your search criteria.
Screenshots
A screenshot of the plugin's admin settings page.
FAQ
Does that mean I am granting you (the plugin author) access to my Google Calendar data?
No. Google’s API allows for an app (such as this plugin) to be granted specific access (see next question). The access token is requested by the plugin and stored in your database. The data is only communicated back and forth between your site and Google via HTTPS.
What sort of access from Google is the plugin requesting?
The plugin is only requesting read-only access to Google Calendars. As such, the plugin will not be able to make any changes to your calendars, nor will it be able to access data associated with other Google services.
Why isn’t a calendar change I just made in Google Calendar being recognized by the plugin?
To avoid the expense of making network connections to Google for every page load, information is cached for a short period of time. You may have to wait a few minutes after calendar changes before expecting to see those changes reflected in the plugin.
ChangeLog
1.2 (2016-04-12)
- New: Add
c2c_GCalDaysGoogle::get_calendar_name()
to get the name of a specific calendar.
- New: In the result notice when testing, specify calendar by name.
- New: Add error message for the test feature if no calendar ID is specified.
- New: Add error message for the test feature if an invalid calendar ID is specified.
- New: Add help message recommending a reset if the authorization code is being changed.
- Bugfix: The test should use the default calendar if no calendar to test against was specified.
- Change: Use
DIRECTORY_SEPARATOR
rather than hardcoded /
for path separator when requiring include files.
- Change: Add support for language packs:
- Load the plugin textdomain.
- Remove .pot file and /lang subdirectory.
- Remove ‘Domain Path’ from plugin header.
- Allow translations of more strings.
- Change:
c2c_GCalDaysGoogle::is_valid_calendar()
now actual checks that the calendar ID is valid.
- Change: Minor code reformatting.
- Change: Sanitize class variables when being output as HTML tag attributes (as a precaution; they should be safe already).
- Change: Add more on-screen help text for ‘Test the API’ fields.
- Change: Prevent direct loading of include files.
- New: Add LICENSE file.
- New: Add empty index.php to prevent files from being listed if web server has enabled directory listings.
- New: Add docblocks to
is_api_error()
and get_api_error()
.
- Change: Note compatibility through WP 4.5+.
- Change: Update copyright date (2016).
1.1.1 (2015-03-06)
- Declare
shortcode()
to be static
- Add support for localization
- Note compatibility through WP 4.1+
- Change documentation links to wp.org to be https
- Update copyright date (2015)
- Add plugin icon
1.1
- Apply do_shortcode to widget_text so the shortcode works in text widgets
- Add actual documentation for the shortcode
- Add screenshot
- Add banner
- Add another FAQ item
1.0