Menu
All plugins

ChronoKit for Bricks — v1.7.0-rc3

Open the live demo

A read-only event calendar and date-picker engine with native Bricks controls, a WordPress shortcode and public REST data from published posts. This is a Playground release candidate. It does not process bookings, edit events, expand recurrence or allocate resources. No Mobiscroll code or assets are included.

Requirements and installation

– WordPress and PHP 7.4 or later. Bricks Builder is required for the custom element.
– ACF is optional for plain stored date fields; it provides an editable field model for event metadata. Calendar date, text, number and colour fields do not require ACF Pro.
– Upload chronokit-v1.7.0-rc3-playground.zip, activate, then add ChronoKit Calendar in Bricks.
– Choose a public post type and the exact start/end field names, not their labels. Add published sample events before testing.
– demo.html is a self-contained JavaScript showcase. It demonstrates the browser engine with fixtures; it does not prove WordPress, ACF or Bricks integration.

Event data

Start dates accept ACF Date Picker storage (Ymd), Date Time Picker (Y-m-d H:i:s) and ISO date text (YYYY-MM-DD). End dates are inclusive. An empty end date uses the start date. WordPress parses dates in its configured timezone; the display is day-based and does not offer hourly scheduling or per-event timezone management.

Optional mappings: image, description, URL, colour, taxonomy/term colour key, resource, status and up to 12 extra scalar metadata fields. Use fictional, public sample data on Playground. Every mapped field is exposed by the public calendar API; this release has no server-side field allowlist.

Loading calendar…

Calendar views

| View value | Display |
| — | — |
| month | Month grid, multi-day bars and +more overflow |
| week | Seven-day event display |
| day | Events for one date; not an hourly lane planner |
| agenda | Chronological event list |
| list | Basic list renderer, shared with Agenda |
| timeline | Seven-day horizontal bars |
| resources | Resources as rows and days as columns; overlapping events stack |
| quarter | Three-month overview |
| year | Twelve summary cards |
| year-calendar | Twelve compact day grids with Month/Day drilldown |

Event bars support overlaps, inclusive multi-day spans and cross-week/month continuation. Maximum visible lanes is clamped to 1–8. +more opens the selected day. Lanes can change across week boundaries as other events start/end.

Event interactions and appearance

Choose anchored popover, centred modal, side drawer, inline panel, direct URL or no action. Popovers close on outside click, Escape and scrolling. Other detail presentations retain their own close controls. Drawer alignment supports centre-right, right edge and a custom right offset.

Colours resolve from the default through taxonomy configuration, individual post colour and the chronokit_event_color filter. Bricks includes event background/text, calendar/background/border, accent and corner-radius controls. Additional browser styling uses --ck-* properties. These controls are a basic palette, not a complete responsive Bricks styling integration.

Filters and linked calendars

Enable show_filters to expose search, resource and status controls. Map resource_field and status_field to scalar public fields. Use the same non-empty sync_group on two calendars to synchronise filter state. Their current view and navigation date remain independent. Clear filters resets the selected criteria.

Date pickers and integration boundary

The JavaScript engine supports single, range, multiple, datetime and time-only modes; popup or inline presentation; 1/2/3/auto month panes; minimum/maximum dates; disabled dates/weekdays; range-length validation; week numbers; outer days; horizontal/vertical month navigation; time wheels or a time grid; configurable date formats and reduced motion.

RC2 Playground adapter correction: picker layout, restrictions, navigation, lazy and animation settings now pass through the WordPress renderer. Boolean strings are normalised, supported option values are checked, and time-only mode is available in Bricks and the shortcode. initial_date fixes a showcase to a reproducible date; leave blank for today. invalid_weekdays accepts 0–6 (Sunday–Saturday), and time_format accepts 12 or 24. These correct defects found in the supplied RC1 archive.

Date formatting supports d, dd, M, MM, MMM, MMMM, yy, yyyy with locale-aware month names. Values are UI state: persist them explicitly in your application. Date/time value() combines a selected date with time; time-only values and time-wheel changes emit the same change event as other selections. No native Bricks Forms submission integration is provided. Restrictions are client-side selection checks, not booking availability validation.

Saved Bricks event templates

Choose a published saved template using detail_template_id. This is saved-template rendering in the event post context, not an inline nestable event-card editor. Template HTML passes through wp_kses_post, so scripts and complex interactive widgets may be removed.

Anonymous callers may use only explicitly allowlisted template IDs via the trusted server-side chronokit_public_template_ids filter. Administrators/editors with edit_posts can preview published templates. Review every dynamic field in a template before allowing public use. Test anonymous requests separately from authenticated previews. Post context is restored after template rendering.

REST, caching and scale

The endpoint is /wp-json/chronokit/v1/events. It accepts public post type, start/end field names, from/to, and optional mappings. Only published posts are returned.

RC1 queries candidates in pages of 250, with a 10,000-candidate safety ceiling and a truncated response signal. Start dates are prefiltered against the requested end; parsed end-date overlap is checked afterwards. This replaces the older 500-post cap described in historical milestone files. It does not establish large-catalogue performance.

Responses cache for 90 seconds using range/mapping-specific keys. ACF edits do not trigger an immediate targeted purge. AbortController and request tokens prevent older fetches from replacing newer calendar state.

JavaScript API and events

The engine exposes ChronoKit.Calendar, mount, normalize, layout, date utilities and boot. Mounting marks a root initialised to prevent duplicate auto-boot.

  • `chronokit:eventclick`: event selection; inspect `event.detail.event`.
  • `chronokit:change`: picker selection; inspect `event.detail.value` and `selection`.
  • `chronokit:sync`: shared filter synchronisation.

Playground coverage

Demonstrate all ten views with overlapping, single-day, cross-week/month, empty-end and draft fixtures. Show all six event-click actions, colour precedence, search/resource/status filtering and two linked calendars. Include independent picker examples with stated adapter limitations, range restrictions, two/three/auto month panes, time wheel/grid, navigation and lazy mounting. Test template permissions and anonymous REST output.

See RELEASE-CANDIDATE-TESTING.md for the remaining scale, browser, accessibility and live Bricks/ACF acceptance matrix. Engine and standalone Chromium checks recorded in the supplied archive do not establish live WordPress acceptance or WCAG compliance.

Troubleshooting

– No events: check publication, public post type, exact field names, stored dates and visible range.
– Recent edit absent: allow the 90-second response cache to expire, plus any page cache.
– Picker setting ignored: verify RC2 is installed and the option value is supported; compare the rendered data-ck settings.
– Detail template absent anonymously: review the published template and explicit public allowlist.
– Large dataset incomplete: inspect truncated; use an indexed occurrence strategy for catalogues beyond the candidate ceiling.

Historical release notes

VERSION-1.3.md and VERSION-1.6.md record earlier milestones. Their 500-record limit and earlier production-readiness statements are historical; the RC2 implementation and RELEASE-CANDIDATE-TESTING.md take precedence.

License: GPL-2.0-or-later.

Live Playground examples — 23 October 2026

Demo: https://bricks-playground.co.uk/chronokit-demo/

Guide: https://bricks-playground.co.uk/docs/chronokit/

The live page contains 29 examples using native Bricks elements or loops and isolated WordPress/ACF fixtures. Browser evidence and the precise verification boundary are recorded in docs/verification/bricks-new-plugins-2026-10-23/VERIFICATION.md in the working repository. These examples do not certify production accessibility, scale or all-browser compatibility.

The calendar views and event actions use full-width native Bricks tabs. Wide resource rows scroll within the calendar. RC2 also fixes calendar width inside Bricks flex/grid parents. The original RC1 archive remains unchanged.

RC3: floating panels and responsive pickers

Popovers, modals, drawers and popup pickers now render in a themed layer outside transformed Bricks cards. Floating panels stay within the viewport; picker month counts adapt to available space. Inline pickers remain within their containers. Popovers close when their event actually moves on scroll, while queued scroll notifications from the opening click are ignored.