PHP Class Habari\AdminThemesHandler

Inheritance: extends AdminHandler
Show file Open project: habari/system

Public Methods

Method Description
ajax_add_block ( mixed $handler_vars ) Called from the themes page to create a new block instace
ajax_delete_block ( mixed $handler_vars ) Called from the themes page to delete a block instance
ajax_save_areas ( mixed $handler_vars ) Called from the themes page to save the blocks instances into areas
get_activate_theme ( ) Activates a theme.
get_areas ( $scope )
get_configure_block ( ) Get the block configuration form to show in a modal iframe on the themes page
get_preview_theme ( ) Configures a theme to be active for the current user's session.
get_themes ( ) Handles GET requests for the theme listing
post_configure_block ( ) A POST handler for the block configuration form
post_themes ( ) A POST handler for the admin themes page that simply passes those options through.
prepare_block_list ( ) Load the block types and block instances into the appropriate structures for the theme to output

Method Details

ajax_add_block() public method

Called from the themes page to create a new block instace
public ajax_add_block ( mixed $handler_vars )
$handler_vars mixed

ajax_delete_block() public method

Called from the themes page to delete a block instance
public ajax_delete_block ( mixed $handler_vars )
$handler_vars mixed

ajax_save_areas() public method

Called from the themes page to save the blocks instances into areas
public ajax_save_areas ( mixed $handler_vars )
$handler_vars mixed

get_activate_theme() public method

Activates a theme.
public get_activate_theme ( )

get_areas() public method

public get_areas ( $scope )

get_configure_block() public method

Get the block configuration form to show in a modal iframe on the themes page
public get_configure_block ( )

get_preview_theme() public method

Configures a theme to be active for the current user's session.
public get_preview_theme ( )

get_themes() public method

Handles GET requests for the theme listing
public get_themes ( )

post_configure_block() public method

A POST handler for the block configuration form
See also: AdminHandler::get_configure_block

post_themes() public method

A POST handler for the admin themes page that simply passes those options through.
public post_themes ( )

prepare_block_list() public method

Load the block types and block instances into the appropriate structures for the theme to output
public prepare_block_list ( )