$image->getSrcURL('large'), 'alt' => $image->getTitle(), 'class' => 'elgg-photo', )); $content = elgg_view('output/url', array( 'text' => $img, 'href' => $image->getURL(), )); $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)); $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 $categories $comments_link"; $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; if ($photo->description) { echo elgg_view('output/longtext', array( 'value' => $photo->description, 'class' => 'mbl', )); } echo '