Elgg  Version 3.0
create.php
Go to the documentation of this file.
1 <?php
6 $item = elgg_extract('item', $vars);
7 if (!$item instanceof ElggRiverItem) {
8  return;
9 }
10 
11 $subject = $item->getSubjectEntity();
12 $object = $item->getObjectEntity();
13 
14 if (!$subject instanceof ElggUser || !$object instanceof ElggUser) {
15  return;
16 }
17 
20 
21 $vars['attachments'] = $subject_icon . elgg_view_icon('arrow-right') . $object_icon;
22 $vars['responses'] = false;
23 
24 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_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
Definition: views.php:899
if(!$subject instanceof ElggUser||!$object instanceof ElggUser) $subject_icon
Definition: create.php:18
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_view_icon($name, $vars=[])
View an icon glyph.
Definition: views.php:1552
if(!$comment instanceof ElggComment) $subject
Definition: create.php:16
$object_icon
Definition: create.php:19
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246