num_display; //if no number has been set, default to 5 if (!$number) $number = 5; $owner = page_owner_entity(); $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false); if ($owner_albums) { echo '
'; foreach($owner_albums as $album){ //get album cover if one was set if($album->cover) $album_cover = '' . $album->title . ''; else $album_cover = '' . $album->title . ''; ?>
time_created);?>
getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; ?>
username; echo "" . elgg_echo('album:more') . ""; echo "
"; } else { echo '

' . elgg_echo("album:none") . '

'; if (get_loggedin_userid() == page_owner()) { echo '

username.'>'.elgg_echo("album:create").'

'; } } ?>