PHP Класс Habari\Monolith

Наследование: extends Theme
Показать файл Открыть проект

Открытые методы

Метод Описание
action_admin_header ( Theme $theme ) Load the stack with the scripts and css we need
action_block_content ( Block $block, Theme $theme ) When adding dashboard modules, the titles should remain as they're written in their providing plugin This function adds a value for the title of the block that is the same as the name of the type of block.
get_blocks ( string $area, string $scope, Theme $theme ) : array Get the blocks for this theme in teh specified area, overrides the default handling to implement dashboard modules

Описание методов

action_admin_header() публичный Метод

Load the stack with the scripts and css we need
public action_admin_header ( Theme $theme )
$theme Theme The current theme

action_block_content() публичный Метод

The value is in _title because overwriting the main title value causes the block data to reload.
public action_block_content ( Block $block, Theme $theme )
$block Block The block that has data stored for the title
$theme Theme The theme displaying this block

get_blocks() публичный Метод

Get the blocks for this theme in teh specified area, overrides the default handling to implement dashboard modules
public get_blocks ( string $area, string $scope, Theme $theme ) : array
$area string The area to return blocks for
$scope string The scope in which the blocks exist
$theme Theme The theme for which the blocks will be returned
Результат array An array of Blocks