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 '
'.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 ''; } } ?>