Elgg  Version 4.3
content.php
Go to the documentation of this file.
1 <?php
5 $widget = elgg_extract('entity', $vars);
6 if (!$widget instanceof ElggWidget) {
7  return;
8 }
9 
10 $num_display = (int) $widget->num_display ?: 4;
11 
13  'type' => 'user',
14  'subtype'=> null,
15  'metadata_name_value_pairs' => [
16  'banned' => 'yes',
17  ],
18  'pagination' => false,
19  'limit' => $num_display,
20  'no_results' => true,
21  'widget_more' => elgg_view_url('admin/users/banned', elgg_echo('more')),
22 ]);
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
$vars['head']
Definition: html.php:24