Elgg  Version 2.3
content.php
Go to the documentation of this file.
1 <?php
6 $widget = elgg_extract('entity', $vars);
7 
8 $num_display = sanitize_int($widget->num_display, false);
9 // set default value for display number
10 if (!$num_display) {
11  $num_display = 5;
12 }
13 
15  'type' => 'user',
16  'subtype'=> null,
17  'full_view' => false,
18  'pagination' => false,
19  'limit' => $num_display,
20 ]);
if(elgg_in_context('default_widgets')) $widget
Definition: content.php:8
elgg echo
Translates a string.
Definition: languages.js:48
$num_display
Definition: content.php:7
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:1375
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:393
$vars['title']
Definition: content.php:19
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:180