开发者 |
openagenda
vincentdubroeucq |
---|---|
更新时间 | 2024年12月9日 16:47 |
PHP版本: | 7.4.1 及以上 |
WordPress版本: | 6.6.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[openagenda]
in your content.
Settings
General settings can be found under the Calendar > Settings entry in the admin menu.
All data related to your API key or calendars can be found on https://openagenda.com.
The settings are divided into two tabs: General and Integrations.
General settings
The General settings page provides the following settings :
[openagenda]
) corresponds to a filter option in the widget.
Additionaly, shortcodes and widget filters have the same parameters, and every shortcode attribute corresponds to a widget filter setting.
[openagenda]
Displays the calendar. You do not need to use this shortcode explicitely, as it is automatically injected in the content of your "calendars" posts.
However, if you need to insert static content after your list of events, you can do so by inserting this shortcode, then your static content afterwards.
[openagenda_filter_active]
Displays the active filters. It takes no parameters.
[openagenda_filter_choice]
Displays a list of choices, depending on the field chosen. It takes the following parameters :
field
: the slug of the choice field you want to display (e.g. "cities", "keywords", "departments", "favorites", etc... ).additional_field
: Any custom field you have setup in your OpenAgenda administration. Only works when 'Additional Field' is the chosen field.page_size
: Number of options to display before the 'More options' button.[openagenda_filter_calendar]
Displays a calendar. It takes no parameters.
[openagenda_filter_map]
Displays an interactive map to locate and search events. It takes the following parameters :
map_tiles_link
: Map tiles link to use. Defaults to https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
map_auto
: Whether to automatically update map on scroll.[openagenda_preview]
Displays a preview of any calendar. It takes the following parameters :
uid
: UID of the calendar you wish to preview.size
: Number of events to display.filters
: Query string representing filters to apply to the request. To ensure it works properly and avoid breaking the shortcode, you should urlencode the query string. You can do so via a simple tool like https://www.urlencoder.org/fr/links
: Accepts oa
or an empty string. If set to oa
, event links will point to events pages on https//openagenda.com instead of local pages.[openagenda_filter_relative]
Allows to filters past or upcoming events. It takes no parameters.
[openagenda_filter_search]
Displays a search field. It takes the following parameters :
placeholder
: text field placeholder.openagenda/
in your child theme, then copy and paste the template you wish to override from the plugin's templates/
folder.
Here is a list of templates you can find in the plugin's templates/
folder :
event-loop.php
: main wrapper for list view and single event view. Displays exports button and pagination at the top and bottom.list-header.php
: contains the total number of events and active filters display.event.php
: template used to display the event information on list views.single-event.php
: template used to display the event information on single event views.event-location.php
: template used to display the location information on single event views.event-additional-fields.php
: template used to the list of additional fields on single event views.preview-loop.php
: main wrapper for the preview widget and shortcode.preview-event.php
: template used to display events in the preview widget.inc/template-tags.php
file. Feel free to define your own in your theme.
The plugin also provides many hooks to allow you to customize the html output or other various data.
Usage of third party services and copyright information
This plugin displays data hosted and provided by https://openagenda.com. By using this plugin, you accept and agree with OpenAgenda's terms and conditions and privacy policy. Please make sure to read them before using this plugin. Also, using this plugin DOES require an account at https://openagenda.com, and an API key.
By default, maps displayed by this plugin use data from https://openstreetmap.org/ and uses the leaflet JS library. By using this plugin, you accept and agree with OpenStreetMap's terms of use, acceptable use policy and privacy policy
The plugin provides optional integration with CloudImage. The integration requires to create an account at https://cloudimage.io and accept and agree their terms of use.
Icons used in the UI are Genericons, licenced under the GPL 2.0.
The settings page is located under the Calendar main menu entry, just alongside your content. It is not polluting the main Settings menu entry, or adding any top-level entry.
All data related to your personal account and API keys can be found on your profile page at https://openagenda.com/settings. All data related to calendars can be found on the calendar itself on https://openagenda.com. Just look for the calendar you wish to display, and find the UID in the sidebar, under the filter widgets.
Yes ! No problem ! Just create a new Calendar post, provide its UID and it will work.
You can find more thorough documentation on https://developers.openagenda.com/extension-wordpress/ (in French) or on the Github repository at https://github.com/OpenAgenda/wordpress
links
parameter to allow for external linking in preview.openagenda_get_field()
function, when called with 'image' and 'thumbnail' parameter.