Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
dashboard.php
Go to the documentation of this file.
1
<?php
2
3
elgg_set_page_owner_guid
(
elgg_get_logged_in_user_guid
());
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
elgg
Definition:
install.js:27
elgg_view_layout
elgg_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition:
views.php:352
elgg_set_page_owner_guid
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
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
Definition:
sessions.php:34
elgg_register_menu_item
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
$items
Definition:
dashboard.php:6
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11