From a028f361b4aeca2d3abaed0a6ddf444f0d654403 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 29 Mar 2009 22:58:45 +0000 Subject: added add album button when the owner is viewing group/widget --- views/default/tidypics/albums.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'views/default/tidypics/albums.php') diff --git a/views/default/tidypics/albums.php b/views/default/tidypics/albums.php index de56f08e1..ba75760c6 100644 --- a/views/default/tidypics/albums.php +++ b/views/default/tidypics/albums.php @@ -8,8 +8,9 @@ $owner = page_owner_entity(); $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false); + echo '
'; + if ($owner_albums) { - echo '
'; foreach($owner_albums as $album) { if($album->cover) @@ -33,13 +34,18 @@ // bottom link to all group/user albums if (is_null($owner->username) || empty($owner->username)) { - echo '' . elgg_echo('album:all') . ''; + echo '

' . elgg_echo('album:all') . '

'; } else { - echo '' . elgg_echo('album:more') . ''; + echo '

' . elgg_echo('album:more') . '

'; } - //close album_widget_container div - echo "
"; + } + if (can_write_to_container(0, $owner->guid)) { + echo '

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

'; } + + + //close album_widget_container div + echo "
"; ?> \ No newline at end of file -- cgit v1.2.3