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").'

'; //check if owner has write rights. If so, let him edit the album $container_guid = get_input('container_guid', $_SESSION['user']->getGUID()); if ($owner->username == get_entity($container_guid)->username){ echo '

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

'; } } ?>