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 = elgg_extract('page_menu_params', $vars, []);
15  'sort_by' => 'name',
16  'prepare_vertical' => true,
17 ];
18 
20 
22 
23 if ($page_menu) {
24  echo elgg_view_module('info', '', $page_menu, [
25  'class' => 'elgg-page-menu',
26  ]);
27 }
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:940
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:462
$vars
Definition: theme.php:5