./Themes/default/Calendar.template.php
- template_main
- template_show_upcoming_list
- template_show_month_grid
- template_show_week_grid
- template_calendar_top
- template_event_post
- template_bcd
- template_hms
- template_omfg
- template_thetime
template_main
function template_main(): void
Our main calendar template, which encapsulates weeks and months.
template_show_upcoming_list
function template_show_upcoming_list(string $grid_name): void|bool
Display a list of upcoming events, birthdays, and holidays.
Type | Parameter | Description |
---|---|---|
string |
$grid_name |
The grid name |
template_show_month_grid
function template_show_month_grid(string $grid_name, bool $is_mini = false): void|bool
Display a monthly calendar grid.
Type | Parameter | Description |
---|---|---|
string |
$grid_name |
The grid name |
bool |
$is_mini |
Is this a mini grid? |
template_show_week_grid
function template_show_week_grid(string $grid_name): void|bool
Shows a weekly grid
Type | Parameter | Description |
---|---|---|
string |
$grid_name |
The name of the grid |
template_calendar_top
function template_calendar_top(array $calendar_data): void
Calendar controls under the title
Creates the view selector (list, month, week), the date selector (either a select menu or a date range chooser, depending on the circumstances), and the “Post Event” button.
Type | Parameter | Description |
---|---|---|
array |
$calendar_data |
The data for the calendar grid that this is for |
template_event_post
function template_event_post(): void
Template for posting a calendar event.
template_bcd
function template_bcd(): void
Displays a clock
template_hms
function template_hms(): void
Displays the hours, minutes and seconds for our clock
template_omfg
function template_omfg(): void
Displays a binary clock
template_thetime
function template_thetime(): void
Displays the time