getOwnerEntity(); $owner_icon = elgg_view_entity_icon($owner, 'tiny'); $owner_link = elgg_view('output/url', array( 'href' => "digimina/owner/{$owner->username}", 'text' => $owner->name, 'is_trusted' => true )); $author_text = elgg_echo('byline', array($owner_link)); $date = elgg_view_friendly_time($dmtest->time_created); $subtitle = "$author_text $date"; if ($full) { if ($dmtest->isFinished()) { $body = elgg_view('digimina/test/diagram', array('dmtest' => $dmtest)); } else { $body = elgg_echo('noaccess'); } $params = array( 'entity' => $dmtest, 'title' => false, 'metadata' => false, 'subtitle' => $subtitle ); $params = $params + $vars; $summary = elgg_view('object/elements/summary', $params); echo elgg_view('object/elements/full', array( 'summary' => $summary, 'icon' => $owner_icon, 'body' => $body )); } else { $params = array( 'entity' => $dmtest, 'metadata' => false, 'subtitle' => $subtitle, 'content' => '' ); $params = $params + $vars; $list_body = elgg_view('object/elements/summary', $params); echo elgg_view_image_block($owner_icon, $list_body); }