Location Mask
-
I have a calendar that uses multiple locations and I’d like to be able to display it publicly in a way that only displays events in particular locations.
I’ve hacked around and added the following to class-r34ics.php
into shortcode_defaults:
‘location_mask’ => false,Where events are processed:
// Assemble events foreach ((array)$ics_events as $event) { // Check location mask if (empty($location_mask) || stristr(@$event->location, $location_mask) != false) { // All-day events if (strlen($event->dtstart) == 8 || (strpos($event->dtstart, 'T000000Z') !== false && strpos($event->dtend, 'T000000Z') !== false)) {
It all seems to work fine.
Is this a feature you can add to the plugin?
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Location Mask’ is closed to new replies.