getOwnerEntity(); $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($dmitem->time_created); $metadata = elgg_view_menu('entity', array( 'entity' => $dmitem, 'handler' => 'digimina', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz' )); $subtitle = "$author_text $date"; if ($full) { $body = elgg_view('output/longtext', array( 'value' => $dmitem->description, 'class' => 'dmitem' )); $params = array( 'entity' => $dmitem, 'title' => false, 'metadata' => "", 'subtitle' => "" ); $params = $params + $vars; $summary = elgg_view('object/elements/summary', $params); $body = $dmitem->itembody . "
"; $params = array( "entity" => $dmitem ); $body .= elgg_view("object/dmitem_types/{$dmitem->itemtype}", $params); echo $body; /*echo elgg_view('object/elements/full', array( 'summary' => $summary, 'body' => $body ));*/ } else { $competency_info = ""; if ($dmitem->dmperformancelevel) { $level = get_entity($dmitem->dmperformancelevel); $subcompetency = get_entity($level->container_guid); $competency_info .= "$subcompetency->title
"; $competency_info .= "Level: $level->level ($level->title)"; } $params = array( 'entity' => $dmitem, 'metadata' => $metadata, 'subtitle' => $subtitle, 'content' => $competency_info ); $list_body = elgg_view('object/elements/summary', $params); echo $list_body; }