Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$entity = elgg_extract('entity', $vars) | |
Object chip Renders a simple image block with an icon and title. More... | |
if(!$entity instanceof ElggEntity) | $title = elgg_extract('title', $vars, '') |
if($title=== '') | $icon = elgg_extract('icon', $vars) |
if(!isset($icon)) | $params = (array) elgg_extract('image_block_vars', $vars, []) |
$class = elgg_extract_class($params, 'elgg-chip') | |
$params ['class'] = $class | |
$params ['data-guid'] = $entity->guid | |
$class = elgg_extract_class($params, 'elgg-chip') |
$entity = elgg_extract('entity', $vars) |
Object chip Renders a simple image block with an icon and title.
$vars['entity'] ElggEntity $vars['title'] Title link (optional) false = no title, '' = default $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
if (!isset($icon)) $params = (array) elgg_extract('image_block_vars', $vars, []) |
if (!$entity instanceof ElggEntity) $title = elgg_extract('title', $vars, '') |