Elgg  Version 6.1
dashboard.php
Go to the documentation of this file.
1 <?php
2 
4 
5 // add control panel menu items to title menu
6 $items = elgg()->menus->getUnpreparedMenu('admin_control_panel')->getItems();
7 foreach ($items as $menu_item) {
8  elgg_register_menu_item('title', $menu_item);
9 }
10 
11 echo elgg_view_layout('widgets', [
12  'num_columns' => 2,
13  'show_access' => false,
14  'owner_guid' => elgg_get_logged_in_user_guid(),
15 ]);
elgg
Definition: install.js:27
elgg_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition: views.php:352
elgg_set_page_owner_guid(int $guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:34
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
Definition: sessions.php:34
elgg_register_menu_item(string $menu_name, array|\ElggMenuItem $menu_item)
Elgg navigation library Functions for managing menus and other navigational elements.
Definition: navigation.php:83
$items
Definition: dashboard.php:6