cb-participation-template.php
Table of Contents
Functions
- cb_participation_event_type_filter() : mixed
- CB Participation Event Type Filter
- cb_participation_nav() : mixed
- Outputs markup for the participation nav.
- cb_participation_format_nav_data() : array<string|int, mixed>
- Formats the nav data for the participation component.
- cb_participation_get_nav() : string
- Returns the nav for the participation filtering system.
- cb_participation_admin_nav() : mixed
- Outputs the participation admin nav.
- cb_participation_admin_get_nav() : string
- Returns the nav for the participation admin filtering system.
Functions
cb_participation_event_type_filter()
CB Participation Event Type Filter
cb_participation_event_type_filter([bool $is_admin = false ]) : mixed
Outputs markup for a participation event type select input.
Parameters
- $is_admin : bool = false
-
Whether it's for an filter selection. There's probably a better way to do this, but we need a band-aid for now, because we're down to the wire on this update. :D
Tags
cb_participation_nav()
Outputs markup for the participation nav.
cb_participation_nav() : mixed
Tags
cb_participation_format_nav_data()
Formats the nav data for the participation component.
cb_participation_format_nav_data([mixed $component = '' ][, array<string|int, mixed> $items = array() ]) : array<string|int, mixed>
We need a pretty complicated set of arguments for cb_templates_get_nav() and cb_templates_get_nav_items() and this helps us achieve that in a structured way.
Parameters
- $component : mixed = ''
- $items : array<string|int, mixed> = array()
-
A collection of key => value pairs
Tags
Return values
array<string|int, mixed> —The list of formatted nav data.
cb_participation_get_nav()
Returns the nav for the participation filtering system.
cb_participation_get_nav() : string
Tags
Return values
string —The nav markup.
cb_participation_admin_nav()
Outputs the participation admin nav.
cb_participation_admin_nav() : mixed
Tags
cb_participation_admin_get_nav()
Returns the nav for the participation admin filtering system.
cb_participation_admin_get_nav() : string
Tags
Return values
string —The nav markup.