Elgg  Version 2.3
Variables
summary.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Object summary Passing an 'icon' with the variables will wrap the listing in an image block. More...
 
if(! $entity instanceof ElggEntity$title = elgg_extract('title', $vars, '')
 
if($title==='' && $entity instanceof ElggEntity$tags = elgg_extract('tags', $vars, '')
 
if($tags==='') $metadata = elgg_view('object/elements/summary/metadata', $vars)
 
 $subtitle = elgg_view('object/elements/summary/subtitle', $vars)
 
 $extensions = elgg_view('object/summary/extend', $vars)
 
 $content = elgg_view('object/elements/summary/content', $vars)
 
 $summary = $metadata . $title . $subtitle . $tags . $extensions . $content
 
 $icon = elgg_extract('icon', $vars)
 
if(isset($icon)) else
 

Variable Documentation

◆ $content

$content = elgg_view('object/elements/summary/content', $vars)

Definition at line 42 of file summary.php.

◆ $entity

$entity = elgg_extract('entity', $vars)

Object summary Passing an 'icon' with the variables will wrap the listing in an image block.

In that case, variables not listed in @uses (e.g. image_alt) will be passed to the image block.

@uses $vars['entity'] ElggEntity @uses $vars['title'] Title link (optional) false = no title, '' = default @uses $vars['metadata'] HTML for entity menu and metadata (optional) @uses $vars['subtitle'] HTML for the subtitle (optional) @uses $vars['tags'] HTML for the tags (default is tags on entity, pass false for no tags) @uses $vars['content'] HTML for the entity content (optional) @uses $vars['icon'] Object icon. If set, the listing will be wrapped with an image block @uses $vars['class'] Class selector for the image block @uses $vars['image_block_vars'] Attributes for the image block wrapper

Definition at line 18 of file summary.php.

◆ $extensions

$extensions = elgg_view('object/summary/extend', $vars)

Definition at line 41 of file summary.php.

◆ $icon

$icon = elgg_extract('icon', $vars)

Definition at line 46 of file summary.php.

◆ $metadata

if ( $tags==='') $metadata = elgg_view('object/elements/summary/metadata', $vars)

Definition at line 38 of file summary.php.

◆ $subtitle

$subtitle = elgg_view('object/elements/summary/subtitle', $vars)

Definition at line 40 of file summary.php.

◆ $summary

$summary = $metadata . $title . $subtitle . $tags . $extensions . $content

Definition at line 44 of file summary.php.

◆ $tags

if ( $title==='' &&$entity instanceof ElggEntity) $tags = elgg_extract('tags', $vars, '')

Definition at line 31 of file summary.php.

◆ $title

$title = elgg_extract('title', $vars, '')

Definition at line 23 of file summary.php.

◆ else

if (isset( $icon)) else
Initial value:
{
echo $summary
$summary
Definition: summary.php:44

Definition at line 55 of file summary.php.