Elgg  Version 3.0
sidebar.php
Go to the documentation of this file.
1 <?php
8 echo elgg_view('page/elements/owner_block', $vars);
9 
10 $page_menu = elgg_view_menu('page', ['sort_by' => 'name']);
11 if ($page_menu) {
12  echo elgg_view_module('info', '', $page_menu, [
13  'class' => 'elgg-page-menu',
14  ]);
15 }
16 
17 // optional 'sidebar' parameter
18 if (isset($vars['sidebar'])) {
19  echo $vars['sidebar'];
20 }
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:1198
elgg echo
Translates a string.
Definition: languages.js:43
$vars['type']
Definition: save.php:11
$page_menu
Elgg sidebar contents.
Definition: sidebar.php:10
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246