Elgg  Version 2.3
excerpt.php
Go to the documentation of this file.
1 <?php
11 $item = $vars['item'];
12 /* @var ElggEntity $item */
13 
14 $length = elgg_extract('length', $vars, 250);
15 
16 $description = $item->description;
17 
18 echo elgg_get_excerpt($description, $excerpt_length);
$length
Definition: excerpt.php:14
$vars['entity']
elgg echo
Translates a string.
Definition: languages.js:48
$description
Definition: excerpt.php:16
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_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:62
$item
Render an excerpt of the description.
Definition: excerpt.php:11