getContainerEntity(); $img = elgg_view_entity_icon($image, 'large', array( 'href' => $image->getIconURL('master'), 'img_class' => 'tidypics-photo', 'link_class' => 'tidypics-lightbox', )); $owner_link = elgg_view('output/url', array( 'href' => "photos/owner/" . $photo->getOwnerEntity()->username, 'text' => $photo->getOwnerEntity()->name, )); $author_text = elgg_echo('byline', array($owner_link)); $date = elgg_view_friendly_time($image->time_created); $owner_icon = elgg_view_entity_icon($photo->getOwnerEntity(), 'tiny'); $metadata = elgg_view_menu('entity', array( 'entity' => $vars['entity'], 'handler' => 'photos', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); $subtitle = "$author_text $date"; $params = array( 'entity' => $photo, 'title' => false, 'metadata' => $metadata, 'subtitle' => $subtitle, 'tags' => $tags, ); $list_body = elgg_view('object/elements/summary', $params); $params = array('class' => 'mbl'); $summary = elgg_view_image_block($owner_icon, $list_body, $params); echo $summary; echo '