Skip to content

WordPress plugin for accessing the Culture24 events API

License

Notifications You must be signed in to change notification settings

leigh-ols/wp-culture24

 
 

Repository files navigation

Culture24 API Plugin for WordPress

Modified and Refactored by Leigh Bicknell - Orangeleaf Systems Ltd

Imperial War Museums :: New Media Dept

Versions

Plugin version 1.0.2

Culture24 API version 1.1

Notes

Requires Wordpress version >= 3.3

Requires an API key from Culture24

If you wish to try the supplied map code put gmap3.js in the culture24/theme folder

Installation

Clone or extract the files to wp-content/plugins/wp-culture24

Run "$ composer install" from the plugin directory.

If using a theme other than 'DefaultTheme' copy it into the Themes/ directory.

Enable the plugin via the admin control panel

Enter your API key via the wp-admin/culture24/settings page

Add [c24page] shortcode to a wordpress page.

The plugin provides admin pages for testing and building queries

Sample implementation code can be found in the wp-content/plugins/culture24/theme folder

Custom Themes

You can create a custom theme by creating a new directory and class, eg: Themes/NewNameTheme/NewNameTheme.php This class should extend AbstractTheme. From here you can copy or re-write the template files from the DefaultTheme. You can also create 'EventDecorator.php' and 'VenueDecorator.php' in your theme folder, these will be loaded instead of the decorators inside the Themes directory. These can be used to alter the output of methods like $event->getDates() to your prefered markup/format.

Links

Demo

Twitter

GitHub

Copyright and license

The MIT License (MIT)

Copyright (c) {{{2014}}} {{{Imperial War Museums}}}

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

WordPress plugin for accessing the Culture24 events API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • JavaScript 0.1%