Elgg  Version 3.0
create.php
Go to the documentation of this file.
1 <?php
9 $item = elgg_extract('item', $vars);
10 if (!$item instanceof ElggRiverItem) {
11  return;
12 }
13 
14 $object = $item->getObjectEntity();
15 if (!$object instanceof ElggObject) {
16  return;
17 }
18 
19 $vars['message'] = elgg_get_excerpt($object->description);
20 
21 echo elgg_view('river/elements/layout', $vars);
$item
Post comment river view.
Definition: create.php:6
if(!$item instanceof ElggRiverItem) $object
Definition: create.php:14
if(substr($message,-3)=== '...') $vars['message']
Definition: create.php:83
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
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:74
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246