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($dmgroup->time_created); $metadata = elgg_view_menu('entity', array( 'entity' => $dmgroup, 'handler' => 'digimina', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz' )); $subtitle = "$author_text $date"; if ($full) { $body = elgg_view('output/longtext', array( 'value' => $dmgroup->description, 'class' => 'dmgroup' )); if (elgg_is_logged_in() && $dmgroup->isMember(elgg_get_logged_in_user_entity())) { $body .= elgg_view('digimina/groupmembers', array( 'entity' => $dmgroup, 'members' => $dmgroup->getMembers(0, 0, false, true) )); } $params = array( 'entity' => $dmgroup, 'title' => false, 'metadata' => $metadata, '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' => $dmgroup, 'metadata' => $metadata, 'subtitle' => $subtitle, 'content' => '' ); $params = $params + $vars; $list_body = elgg_view('object/elements/summary', $params); echo elgg_view_image_block($owner_icon, $list_body); }