Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.