getOwnerEntity(); $poster_icon = elgg_view_entity_icon($poster, 'tiny'); $poster_link = elgg_view('output/url', array( 'href' => $poster->getURL(), 'text' => $poster->name, 'is_trusted' => true, )); $poster_text = elgg_echo('byline', array($poster->name)); $date = elgg_view_friendly_time($reply->time_created); // Do not show the metadata and controls in widget view if (elgg_in_context('widgets')) { $metadata = ''; } else { $metadata = elgg_view_menu('entity', array( 'entity' => $vars['entity'], 'handler' => 'discussion_reply', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); } $subtitle = "$poster_text $date"; if (elgg_in_context('activity')) { $content = '