Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greenpeace/gpes-add-to-cal-wp-shortcode
Shortcode to create links that add an event to the user's calendar
https://github.com/greenpeace/gpes-add-to-cal-wp-shortcode
shortcake-shortcode-ui shortcode wordpress-plugin wordpress-shortcode
Last synced: about 1 month ago
JSON representation
Shortcode to create links that add an event to the user's calendar
- Host: GitHub
- URL: https://github.com/greenpeace/gpes-add-to-cal-wp-shortcode
- Owner: greenpeace
- License: gpl-2.0
- Created: 2018-10-15T20:27:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T07:27:42.000Z (about 6 years ago)
- Last Synced: 2024-08-03T19:09:12.519Z (5 months ago)
- Topics: shortcake-shortcode-ui, shortcode, wordpress-plugin, wordpress-shortcode
- Language: PHP
- Size: 32.2 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- global-gp-software-index - gpes-add-to-cal-wp-shortcode - Shortcode to create links that add an event to the user's calendar. Works with iCalendar, Android, Outlook, Gmail, Yahoo and others. Used in es.greenpeace.org and [hazgreenpeace.org](https://hazgreenpeace.org/ourense/personaliza-una-bolsa-reutiliza-tu-bolsa/) (Wordpress / Plugins)
README
# Add an event to the user's calendar
With this Wordpress plugin you can add links to add an event to the user's calendar. Use a shortcode like the example bellow.
## How to use
Copy-paste the code bellow to your posts and pages.
```
[add_to_cal date='2018-12-25' time='12:01:00' duration='60' title='Please add a title to the event' description='Please add a description to the event' address='Please add an address to the event']
```## Graphic user interface
If you use [Shortcake Shortcode UI](https://wordpress.org/plugins/shortcode-ui/) you can insert the links using the graphic user interface.
## Analytics
This shortcode uses Google Analytics events to track clicks in the add to calendar links. It supports both the [gtag tracking code](https://developers.google.com/analytics/devguides/collection/gtagjs/events) and [analytics.js](https://developers.google.com/analytics/devguides/collection/analyticsjs/events).
## How to install
1. Upload the **add-to-cal** folder to **wp-content/plugins/**.
2. Activate the **Add event to calendar** plugin.If you use [Shortcake Shortcode UI](https://wordpress.org/plugins/shortcode-ui/) you should also:
1. Upload the **add-to-cal-ui** folder to **wp-content/plugins/**.
2. Activate the **Add to call UI** plugin.## How to translate (new language)
1. Open the languages/add-to-call.pot file with Poedit.
2. Create new language.
3. Translate.
4. Save the .po and .mo files as the examples inside the languages folder.