Documentation

Theme.php

Table of Contents

Functions

bb_get_themes()  : array<string|int, mixed>
Gets all loaded Themes
bb_load_theme()  : null|ITheme
Loads a theme by its Name, if not found or any errors by loading it the return will be null
bb_this_theme()  : null|ITheme
Returns the current loaded theme or null if the initialization isn't executed successfully
bb_set_this_theme()  : void
Sets the current loaded theme
bb_get_installed_themes()  : null|array<string|int, mixed>
Gets all installed BB4 Themes
theme_get_info()  : array<string|int, mixed>
Gets all essentials informations about a bb4 theme
bb_register_twigfilter()  : void
Registers a custom TwigFilter
bb_set_twigfilters()  : void
Sets the Custom TwigFilter Stack
bb_get_twigfilters()  : null|array<string|int, mixed>
Gets all Custom TwigFilters

Functions

bb_get_themes()

Gets all loaded Themes

bb_get_themes() : array<string|int, mixed>
Return values
array<string|int, mixed>

bb_load_theme()

Loads a theme by its Name, if not found or any errors by loading it the return will be null

bb_load_theme(mixed $theme) : null|ITheme
Parameters
$theme : mixed

Name of the Theme to be loaded

Return values
null|ITheme

Returns null if any error or the theme doesn't exists

bb_this_theme()

Returns the current loaded theme or null if the initialization isn't executed successfully

bb_this_theme() : null|ITheme
Return values
null|ITheme

bb_set_this_theme()

Sets the current loaded theme

bb_set_this_theme(ITheme $theme) : void
Parameters
$theme : ITheme

Theme to be set as loaded

bb_get_installed_themes()

Gets all installed BB4 Themes

bb_get_installed_themes() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>

theme_get_info()

Gets all essentials informations about a bb4 theme

theme_get_info(ITheme $theme[, mixed $className = null ]) : array<string|int, mixed>
Parameters
$theme : ITheme
$className : mixed = null
Return values
array<string|int, mixed>

bb_register_twigfilter()

Registers a custom TwigFilter

bb_register_twigfilter(TwigFilter $filter) : void
Parameters
$filter : TwigFilter

bb_set_twigfilters()

Sets the Custom TwigFilter Stack

bb_set_twigfilters(array<string|int, mixed> $alerts) : void
Parameters
$alerts : array<string|int, mixed>

bb_get_twigfilters()

Gets all Custom TwigFilters

bb_get_twigfilters() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>

        
On this page

Search results