Clanbite

clanbite_event_calendar_month_grid_markup( string $anchor_ymd, array $weekday_labels, string $today_ymd ): string

Build static month grid markup for the event calendar block (empty cells; matches client grid classes).

Parameters

$anchor_ymd (string) Required

Any date in the target month (Y-m-d, site timezone).

$weekday_labels (array) Required

Seven short labels (Sunday-first), same order as JS getDay().

$today_ymd (string) Required

Site-local today as Y-m-d (e.g. from wp_date( 'Y-m-d' )).

Returns

string Safe HTML fragment (no outer wrapper).

Defined in inc/events/functions.php