title)) { $text = $entity->title; } else { $text = $entity->name; } $params = array( 'text' => $text, 'href' => $entity->getURL(), 'is_trusted' => true, ); $title_link = elgg_view('output/url', $params); } $metadata = elgg_extract('metadata', $vars, ''); $subtitle = elgg_extract('subtitle', $vars, ''); $content = elgg_extract('content', $vars, ''); $container = get_entity($entity->container_guid); $tags = elgg_extract('tags', $vars, ''); if ($tags !== false) { $tags = elgg_view('output/tags', array('tags' => $entity->tags)); } if ($metadata) { echo $metadata; } if ($title_link) { echo "