Elgg  Version 3.0
view.php
Go to the documentation of this file.
1 <?php
2 
6 
7 $title = $user->getDisplayName();
8 
9 $params = [
10  'content' => elgg_view_entity($user),
11  'title' => $title,
12  'sidebar' => false,
13 ];
15 
get_user($guid)
Get a user object from a GUID.
Definition: users.php:40
$title
Definition: view.php:7
elgg_entity_gatekeeper($guid, $type=null, $subtype=null)
Can the viewer see this entity?
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:360
$user_guid
Definition: view.php:3
elgg_view_entity(\ElggEntity $entity, array $vars=[])
Returns a string of a rendered entity.
Definition: views.php:842
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:593
$vars['type']
Definition: save.php:11
$body
Definition: view.php:14
$params
Definition: view.php:9
$user
Definition: view.php:5