Subscribe Shortcode
Wraps the content in link (<a>) tags, which allows visitors to subscribe to your events; there are two types: ‘Google’ and ‘Webcal’. ‘Google’ creates a link which allows visitors to subscribe to your events with a Google calendar. The application that deals with a ‘Webcal’ link will depend on the visitor’s browser.
When a visitor subscribes to your events, any changes made to events will be updated on subscribers’ calendars (if their calendar supports this). The events feed includes only public events (draft, private and trashed events are not included).
Usage
[eo_subscribe att1="val1" att2="val2"] Content [/eo_subscribe]
Attributes
- type : ‘google’ or ‘webcal’. Default ‘google’.
- title: The ‘title’ attribute for the wrapping
<a>tags. There is no default value. - id: The ‘id’ attribute for the wrapping
<a>tags. There is no default value. - class: The ‘class’ attribute for the wrapping
<a>tags. There is no default value.
Examples
Add a ‘subscribe to events’ button: the following adds a (Google) subscription link to the text ‘Subscribe to Events’, with class ‘button’ and title ‘Subscribe with Google’.
[eo_subscribe class="button" title="Subscribe with Google" type="google"] Subscribe to Events [/eo_subscribe]
Add a Google subscription link with a Google calendar image
[eo_subscribe title="Subscribe with Google" type="google"] <img src="//www.google.com/calendar/images/ext/gc_button1.gif" alt="0" border="0"> [/eo_subscribe]
Add a ‘subscribe to events’ button using webcal:
[eo_subscribe title="Subscribe to our events" type="webcal"] Subscribe to Events [/eo_subscribe]
(The shortcode can be used around div-elements as well just plain-text, to allow you to create a button effect with CSS).