Elgg  Version master
page_menu.php
Go to the documentation of this file.
1 <?php
9 if (!elgg_extract('show_page_menu', $vars, true)) {
10  return;
11 }
12 
13 $custom_params = (array) elgg_extract('page_menu_params', $vars, []);
15  'sort_by' => 'name',
16  'prepare_vertical' => true,
17 ];
18 
20 
22 if (empty($page_menu)) {
23  return;
24 }
25 
26 echo elgg_view_module('aside', '', $page_menu);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:919
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:441
$vars
Definition: theme.php:5