Files
eventLabs/README.md
josh db4747d85f
All checks were successful
WordPress release / release (push) Successful in 7s
Choose an Elementor event template during or after migration
2026-11-12 15:34:43 -05:00

48 lines
4.5 KiB
Markdown

# eventLabs
**A WordPress events platform by hostLabs**
Publish an events calendar, design single-event pages in Elementor, and sync club events from burnWorks. eventLabs manages schedules, venues, organizers, and series in WordPress and provides its own versioned REST API.
[Download the latest release](https://git.labs.casa/josh/eventLabs/releases/latest) · [Migration guide](docs/MIGRATION.md) · [API reference](docs/API.md) · [Release guide](docs/RELEASING.md)
![Month calendar with a multi-day event, category colors, and an event preview](docs/images/calendar.webp)
## Get started
1. Download `eventlabs-vX.Y.Z.zip` from the [latest release](https://git.labs.casa/josh/eventLabs/releases/latest). Upload it through **Plugins → Add Plugin → Upload Plugin**, then activate **eventLabs**. Requires WordPress 6.9+ and PHP 8.1+. The Elementor builder and widgets use Elementor Free.
2. Open **Events → Add Event**. Set the schedule, link a venue, and publish. Use **Events → Settings → View calendar** to open the public calendar.
3. Use **Events → Single Event Templates → Create starter template** to design a single-event layout. Publish it, then assign it to an event or choose **Use as default**.
4. Add **Event Calendar** or **Event List** from the **eventLabs** widget category in Elementor. You can also embed a calendar with `[burn_events view="month"]`.
Starting with **0.5.2**, the active plugin checks Gitea for stable releases and shows updates in WordPress. If you installed **0.5.1** or earlier, upload the latest release ZIP once and choose **Replace current with uploaded** to get the updater. An install mounted from the development checkout should be updated through Git.
## Calendar and publishing
- **Calendar views** include List, Month, Week, Day, Photo, Map, and Summary. In Month and Week, multi-day bars span their dates and show event previews on hover and keyboard focus. Set a custom color under **Events → Event Categories**.
- **Schedules** support all-day and timed events, daily through yearly recurrence, additional dates, and exclusions. Link multiple venues and organizers and group related events into series.
- **Maps** load on single events with mapped venues when enabled. The calendar Map view groups events into pins by location and filters them by date range. Save a Geoapify key and enable OpenStreetMap maps under **Events → Settings**.
- **Community submissions** use `[burn_events_submit]` and `[burn_events_mine]`. Submitted events enter Pending Review.
- **Imports and migration** are under **Events → Import and Export**. The Events Calendar migration copies events as drafts with their saved occurrence dates and linked records. Choose a Single Event Template before copying, or apply one to events already copied. Follow the [migration guide](docs/MIGRATION.md) to review and publish the results. The same screen accepts CSV and iCalendar files.
![A single-event page with its photo, venue, map, and calendar links](docs/images/single-event.webp)
## API quick start
The authenticated API uses `eventlabs/v1`. Create a WordPress user with the **eventLabs Integration** role and generate an Application Password in that user's profile. Keep the password on the server.
```sh
curl --user "$EVENTLABS_USER:$EVENTLABS_APP_PASSWORD" \
"$WORDPRESS_URL/wp-json/eventlabs/v1/schema"
```
Use `GET /events` to list records, `POST /events` to create one, and `PATCH /events/{id}` to update it. Use `PUT /events/external/{source}/{external_id}` to keep an external record tied to the same WordPress ID. The schema endpoint describes the current write fields and configured custom fields. For sites with plain permalinks, use `/?rest_route=/eventlabs/v1/schema`.
### burnWorks clubs
Sync a named club or sub-club with `PUT /burnworks/workspaces/{workspace_id}/clubs/{club_id}`. Send events to `PUT /burnworks/workspaces/{workspace_id}/events/{event_id}` with the burnWorks `club_id`. An event stores its workspace and club identity in a hidden field. In Elementor, use **Club or sub-club** on **Event Calendar** and **Event List** to show a whole workspace or one club.
See the [API reference](docs/API.md) for routes, payloads, and errors, and the [burnWorks handoff](docs/BURNWORKS-INTEGRATION.md) for field mapping and publishing rules. The [feature and settings audit](docs/PARITY-AUDIT.md) records the current coverage against the reference packages.
For events created in WordPress, use **Event Details → Sub-club** to select a club from the synced burnWorks directory. Events created in burnWorks keep their assignment from that system.