Elgg  Version master
admin_column.php
Go to the documentation of this file.
1 <?php
9 $entity = elgg_extract('entity', $vars);
10 if (!$entity instanceof \ElggUser) {
11  return;
12 }
13 
15 if (!isset($title)) {
17  $title .= elgg_format_element('span', [
18  'class' => ['elgg-quiet', 'mls'],
19  'title' => elgg_echo('table_columns:fromProperty:username'),
20  ], "({$entity->username})");
21 }
22 
23 $metadata = elgg_view('output/url', [
24  'icon' => 'info-circle',
25  'text' => elgg_echo('more_info'),
26  'href' => elgg_http_add_url_query_elements('ajax/view/admin/users/listing/details', [
27  'guid' => $entity->guid,
28  ]),
29  'class' => ['elgg-lightbox', 'float-alt'],
30  'data-colorbox-opts' => json_encode([
31  'innerWidth' => '800px',
32  'maxHeight' => '90%',
33  ]),
34 ]);
35 
37  'entity' => $entity,
38  'title' => $title,
39  'metadata' => $metadata,
40  'icon' => false,
41 ];
43 echo elgg_view('user/elements/summary', $params);
if(!$entity instanceof\ElggUser) $title
$entity
Elgg user display.
Definition: admin_column.php:9
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
$params
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:181
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
if(!isset($title)) $metadata
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
Definition: views.php:1444