Theater for WordPress 0.13 was released on September 2, 2015. This release is all about date filtering for productions, a cleaner event editor and smarter ticket popups.
Date filters for productions
It has always been possible to filter your event lists by date. Now it is also possible to filter production lists by startdate and endate:
[[wpt_productions start="Monday" end="Friday"]]
You can also group or paginate your production lists by day, month or year:
[[wpt_productions paginateby="month"]]
See the updated documentation for the details.
Event editor clean up
All obsolete elements on the event edit page have been removed, resulting in a much cleaner interface. See the animation below to see the diffenrence:
Lightbox tweaking
People that like to show their ticketscreens inside a popup can now tweak the behaviour with a little bit of code.
For example, add the code snippet below to the functions.php of your theme to:
- set the dimensions of your popup to 1000 x 600 pixels and
- disable the popup for screens below a width of 480 pixels.
<?php | |
/** | |
* Sets the dimensions of the tickets lightbox to 1000 x 600 pixels and | |
* disables the lightbox for screens below a width of 480 pixels. | |
* | |
* @param array $args The default settings for the tickets lightbox. | |
* @return array The new settings. | |
*/ | |
function wpt_customize_tickets_lightbox($args) { | |
$args['width'] = 1000; | |
$args['height'] = 600; | |
$args['disable_width'] = 480; | |
return $args; | |
} | |
add_filter('wpt/frontend/thickbox/args', 'wpt_customize_tickets_lightbox'); |