'object', 'subtype' => 'album', 'container_guid' => $owner->guid, 'limit' => $vars['entity']->num_display, 'full_view' => false, 'pagination' => false, ); $content = elgg_list_entities($options); echo $content; if ($content) { $more_link = elgg_view('output/url', array( 'href' => "/photos/owner/" . $owner->username, 'text' => elgg_echo('link:view:all'), 'is_trusted' => true, )); echo "$more_link"; } else { echo elgg_echo('tidypics:widget:no_albums'); }