Elgg  Version 4.3
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_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:468
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:944
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24