Elgg  Version master
sidebar.php
Go to the documentation of this file.
1 <?php
6 $menu = elgg_view_menu('page', [
7  'show_section_headers' => true,
8  'prepare_vertical' => true,
9 ]);
10 
11 if (empty($menu)) {
12  return;
13 }
14 
15 echo elgg_format_element('div', [
16  'class' => 'elgg-admin-sidebar-menu',
17  'id' => 'elgg-admin-nav-collapse'
18 ], $menu);
$menu
Admin sidebar – just outputs the page menus.
Definition: sidebar.php:6
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:462
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:130