Wordpress widget to get and display events from events.umich.edu.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
includes
templates
vendor
CHANGELOG
LICENSE
README.md
umevents_admin.css
umevents_admin.js
umich-events.php

README.md

UMich Events

Wordpress widget to get and display events from http://events.umich.edu.

Using default options will be slow when requesting data from events.umich.edu. It is highly recommended to use at least one filtering option (featured, ongoing, tags, types, groups, locations) to increase the events request speed.

Features

Widget

  • Unstyled so you can make it your own as easy as possible
  • Display event image, caches local resized copy for optimal performance, cached for 7 days
  • Caches feed for 5 minutes to improve performance
  • Ability to specify Tags, Groups, & Locations to display events for
  • Customize event template in your theme
    • THEME/umich-events/widget.tpl
    • THEME/umich-events/event-widget.tpl

Shortcode

[umichevents showimage="0" imagesize="full" featured="0" ongoing="0" tags="" types="" groups="" locations="" morelink="0" morelinktext="See all events" limit="25"]
  • Override templates in your theme
    • THEME/umich-events/shortcode.tpl (list of events, loads single event template)
    • THEME/umich-events/event-shortcode.tpl (single event)

Shortcode options

Option Values Default
showimage 1, 0 0
imagesize string full
featured 1, 0 0
ongoing 1, 0 0
tags string list null
types num list null
groups num list null
locations num list null
wraptpl string shortcode
eventtpl string event-shortcode
morelink 1, 0 0
morelinktext string See all events
limit number 25
lists are comma seperated

Template variables

To Do

  • Admin interface for cache timeouts
    • Feed Timeout (currently 5 min), minimum 1 minute
    • Image Timeout (currently 7 days), minimum 1 day
    • Meta Timeout (currently 7 days), minimum 1 day
  • Multisite support
    • Network admin cache management
    • Network admin cache storage (single or per site)