aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-29 22:58:45 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-29 22:58:45 +0000
commita028f361b4aeca2d3abaed0a6ddf444f0d654403 (patch)
tree37e134473cf19e8e66b11a57f73cbe7dea6d3985 /views
parent1f25e8176e5e025ca6a1adbefca1bf939e9f4760 (diff)
downloadelgg-a028f361b4aeca2d3abaed0a6ddf444f0d654403.tar.gz
elgg-a028f361b4aeca2d3abaed0a6ddf444f0d654403.tar.bz2
added add album button when the owner is viewing group/widget
Diffstat (limited to 'views')
-rw-r--r--views/default/tidypics/albums.php16
-rw-r--r--views/default/tidypics/css.php2
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;
}