Elgg  Version 3.0
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 ]);
if(elgg_in_context('default_widgets')) $widget
Definition: content.php:8
elgg_list_entities(array $options=[], $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:577
if(!$widget instanceof ElggWidget) $num_display
Definition: content.php:10
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
$vars['type']
Definition: save.php:11