photos_enable != 'no') { //the number of files to display $number = (int) $vars['entity']->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); echo '
'.elgg_echo("album:none").'
'; if ($owner && ($owner->canWriteToContainer($_SESSION['user']))){ //echo 'username.'>'.elgg_echo("album:add").''; //echo '