Elgg
Version 6.1
|
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) | $summary = elgg_view('object/elements/summary/metadata', $vars) |
$icon = elgg_view('object/elements/summary/icon', $vars) | |
$params = (array) elgg_extract('image_block_vars', $vars, []) | |
$class = elgg_extract_class($params) | |
$params ['class'] = $class | |
$params ['data-guid'] = $entity->guid | |
$params ['tag_name'] = elgg_extract('tag_name', $params, 'article') | |
$class = elgg_extract_class($params) |
Definition at line 35 of file summary.php.
$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 (e.g. image_alt) will be passed to the image block.
$vars['entity'] ElggEntity $vars['title'] Title link (optional) false = no title, '' = default $vars['metadata'] HTML for entity menu and metadata (optional) $vars['subtitle'] HTML for the subtitle (optional) $vars['tags'] HTML for the tags (default is tags on entity, pass false for no tags) $vars['content'] HTML for the entity content (optional) $vars['icon'] Object icon. If set, the listing will be wrapped with an image block $vars['class'] Class selector for the image block $vars['image_block_vars'] Attributes for the image block wrapper
Definition at line 18 of file summary.php.
Definition at line 31 of file summary.php.
$params = (array) elgg_extract('image_block_vars', $vars, []) |
Definition at line 34 of file summary.php.
$params['class'] = $class |
Definition at line 37 of file summary.php.
$params['data-guid'] = $entity->guid |
Definition at line 38 of file summary.php.
$params['tag_name'] = elgg_extract('tag_name', $params, 'article') |
Definition at line 39 of file summary.php.
$summary = elgg_view('object/elements/summary/metadata', $vars) |
Definition at line 24 of file summary.php.