Elgg  Version 2.3
column.php
Go to the documentation of this file.
1 <?php
10 $entity = $vars['entity'];
11 $size = elgg_extract('size', $vars, 'tiny');
12 
14 
16 if (!$title) {
17  $link_params = array(
18  'href' => $entity->getUrl(),
19  'text' => $entity->name,
20  );
21  $title = elgg_view('output/url', $link_params);
22 }
23 
24 $params = array(
25  'entity' => $entity,
26  'title' => $title,
27 );
28 $list_body = elgg_view('user/elements/summary', $params);
29 
$vars['entity']
if(!$title) $params
Definition: column.php:24
elgg_view_image_block($image, $body, $vars=array())
Wrapper function for the image block display pattern.
Definition: views.php:1229
elgg echo
Translates a string.
Definition: languages.js:48
$icon
Definition: column.php:13
$entity
Elgg user display.
Definition: column.php:10
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
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:1375
$title
Definition: column.php:15
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:936
$size
Definition: column.php:11
$list_body
Definition: column.php:28