Elgg  Version master
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(elgg_substr($message,-3)=== '...') $vars['message']
Definition: create.php:50
if(!$item instanceof ElggRiverItem) $object
Definition: create.php:14
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
if(!$subject instanceof ElggUser||!$object instanceof ElggUser) $subject_icon
Definition: create.php:18
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
Definition: views.php:542
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
Definition: views.php:1261
if(!$comment instanceof ElggComment) $subject
Definition: create.php:16
$object_icon
Definition: create.php:19