开发者 | coffee2code |
---|---|
更新时间 | 2016年5月26日 07:19 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 4.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[gcal-days search="" type="" id=""]
The shortcode name is gcal-days
. It has three attributes, but only one of which is absolutely necessary:
search
: (Required.) The search term.type
: (Optional.) The direction in time to search. Defaults to "since", which searches past events. "until" will search future events.id
: (Conditionally optional.) The ID of the calendar to search. You can discover the IDs of calendars via the plugin's settings page. This shortcode attribute can only be optionally omitted from shortcodes if you define a default calendar in the plugin's settings.[gcal-days search="dentist"]
, [gcal-days type="until" search="vacation" id="test_lkjsadf987asdf24@group.calendar.google.com"]
Links: Plugin Homepage | Plugin Directory Page | Author Homepage
gcal-days.zip
inside the /wp-content/plugins/
directory for your site (or install via the built-in WordPress plugin installer).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.
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.
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.
c2c_GCalDaysGoogle::get_calendar_name()
to get the name of a specific calendar.DIRECTORY_SEPARATOR
rather than hardcoded /
for path separator when requiring include files.c2c_GCalDaysGoogle::is_valid_calendar()
now actual checks that the calendar ID is valid.is_api_error()
and get_api_error()
.shortcode()
to be static