diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-29 22:58:45 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-29 22:58:45 +0000 |
commit | a028f361b4aeca2d3abaed0a6ddf444f0d654403 (patch) | |
tree | 37e134473cf19e8e66b11a57f73cbe7dea6d3985 | |
parent | 1f25e8176e5e025ca6a1adbefca1bf939e9f4760 (diff) | |
download | elgg-a028f361b4aeca2d3abaed0a6ddf444f0d654403.tar.gz elgg-a028f361b4aeca2d3abaed0a6ddf444f0d654403.tar.bz2 |
added add album button when the owner is viewing group/widget
-rw-r--r-- | views/default/tidypics/albums.php | 16 | ||||
-rw-r--r-- | 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 '<div id="tidypics_album_widget_container">';
+
if ($owner_albums) {
- echo '<div id="tidypics_album_widget_container">';
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 '<a href="' . $vars['url'] . 'pg/photos/world">' . elgg_echo('album:all') . '</a>';
+ echo '<p class="profile_info_edit_buttons"><a href="' . $vars['url'] . 'pg/photos/world">' . elgg_echo('album:all') . '</a></p>';
} else {
- echo '<a href="' . $vars['url'] . 'pg/photos/owned/' . $owner->username . '">' . elgg_echo('album:more') . '</a>';
+ echo '<p class="tidypics_download"><a href="' . $vars['url'] . 'pg/photos/owned/' . $owner->username . '">' . elgg_echo('album:more') . '</a></p>';
}
- //close album_widget_container div
- echo "</div>";
+ }
+ if (can_write_to_container(0, $owner->guid)) {
+ echo '<p class="tidypics_download"><a href=' . $CONFIG->wwwroot .'pg/photos/new/' . $owner->username . '>' . elgg_echo("album:create") . '</a></p>';
}
+
+
+ //close album_widget_container div
+ echo "</div>";
?>
\ 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; } |