PHP Class Habari\Monolith

Inheritance: extends Theme
Exibir arquivo Open project: habari/system

Public Methods

Method Description
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

Method Details

action_admin_header() public method

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

action_block_content() public method

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() public method

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
return array An array of Blocks