Elgg  Version master
Variables
page_menu.php File Reference

Go to the source code of this file.

Variables

if(!elgg_extract('show_page_menu', $vars, true)) $custom_params = (array) elgg_extract('page_menu_params', $vars, [])
 Displays page menu. More...
 
 $default_params
 
 $params = array_merge($default_params, $custom_params)
 
 $page_menu = elgg_view_menu('page', $params)
 
 if (empty($page_menu))
 

Variable Documentation

if (!elgg_extract('show_page_menu', $vars, true)) $custom_params = (array) elgg_extract('page_menu_params', $vars, [])

Displays page menu.

$vars['show_page_menu'] (bool) Show the page menu $vars['page_menu_params'] (array) An array of params to pass to page menu

Definition at line 13 of file page_menu.php.

$default_params
Initial value:
= [
'sort_by' => 'name'

Definition at line 14 of file page_menu.php.

$page_menu = elgg_view_menu('page', $params)

Definition at line 21 of file page_menu.php.

$params = array_merge($default_params, $custom_params)

Definition at line 19 of file page_menu.php.

if(empty($page_menu))

Definition at line 22 of file page_menu.php.