Elgg  Version 1.9
profileiconupdate.php
Go to the documentation of this file.
1 <?php
6 $subject = $vars['item']->getSubjectEntity();
7 
8 $subject_link = elgg_view('output/url', array(
9  'href' => $subject->getURL(),
10  'text' => $subject->name,
11  'class' => 'elgg-river-subject',
12  'is_trusted' => true,
13 ));
14 
15 $string = elgg_echo('river:update:user:avatar', array($subject_link));
16 
17 echo elgg_view('river/elements/layout', array(
18  'item' => $vars['item'],
19  'summary' => $string,
20  'attachments' => elgg_view_entity_icon($subject, 'tiny', array(
21  'use_hover' => false,
22  'use_link' => false,
23  )),
24 ));
$subject_link
elgg_view_entity_icon(ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:862
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$subject
Update avatar river view.
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
if(file_exists($welcome)) $vars
Definition: upgrade.php:93