Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
profileiconupdate.php
Go to the documentation of this file.
1 <?php
6 $item = $vars['item'];
7 /* @var ElggRiverItem $item */
8 
9 $subject = $item->getSubjectEntity();
10 
11 $subject_link = elgg_view('output/url', array(
12  'href' => $subject->getURL(),
13  'text' => $subject->name,
14  'class' => 'elgg-river-subject',
15  'is_trusted' => true,
16 ));
17 
18 $string = elgg_echo('river:update:user:avatar', array($subject_link));
19 
20 echo elgg_view('river/elements/layout', array(
21  'item' => $item,
22  'summary' => $string,
23  'attachments' => elgg_view_entity_icon($subject, 'tiny', array(
24  'use_hover' => false,
25  'use_link' => false,
26  )),
27 
28  // truthy value to bypass responses rendering
29  'responses' => ' ',
30 ));
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$subject_link
$vars['entity']
$item
Update avatar river view.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:895