Elgg  Version 4.3
Go to the documentation of this file.
1 <?php
6 $widget = elgg_extract('entity', $vars);
7 if (!$widget instanceof ElggWidget) {
8  return;
9 }
11 $num_display = (int) $widget->num_display ?: 4;
14  'type' => 'user',
15  'subtype'=> null,
16  'full_view' => false,
17  'pagination' => false,
18  'limit' => $num_display,
19  'widget_more' => elgg_view_url('admin/users', elgg_echo('more')),
20 ]);
if(elgg_in_context('default_widgets')) $widget
Definition: content.php:8
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_list_entities(array $options=[], $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:589
if(!$widget instanceof ElggWidget) $num_display
Definition: content.php:10
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:547
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
Definition: views.php:1513
elgg echo
Translates a string.
Definition: deprecated.js:530
Definition: html.php:24