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 +++++++++++----- views/default/tidypics/css.php | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) 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 diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index f9163ce08..6559ec5be 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -39,7 +39,7 @@ cursor:pointer; } .tidypics_download a:hover { -background:black; +background:#0054a7; color:white; text-decoration:none; } -- cgit v1.2.3