From f162f786a0b152e37eed2b0e4ec89b51958ac023 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 21 Jun 2009 13:53:40 +0000 Subject: improved group code including river view --- views/default/river/object/album/create.php | 9 +++++++++ views/default/tidypics/css.php | 2 +- views/default/tidypics/groupprofile_albums.php | 8 +++++++- 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'views/default') diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php index e4e2ce4bb..9c2486fa2 100644 --- a/views/default/river/object/album/create.php +++ b/views/default/river/object/album/create.php @@ -3,9 +3,18 @@ $performed_by = get_entity($vars['item']->subject_guid); $album = get_entity($vars['item']->object_guid); + $group_album = ($album->owner_guid != $album->container_guid); + if ($group_album) { + $group = get_entity($album->container_guid); + $group_name = $group->name; + $group_link = $group->getURL(); + } + $url = "getURL()}\">{$performed_by->name}"; $string = sprintf(elgg_echo("album:river:created"),$url) . " "; $string .= "getURL() . "\">" . $album->title . ""; + if ($group_album) + $string .= ' ' . elgg_echo('album:river:group') . ' ' . "{$group_name}"; $album_river_view = get_plugin_setting('album_river_view', 'tidypics'); diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index 3ade75ff4..440edb5ab 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -147,7 +147,7 @@ font-size:1em; /* ---- tidypics group css ----- */ -#group_albums_widget { +#tidypics_group_profile { -webkit-border-radius: 8px; -moz-border-radius: 8px; background:white none repeat scroll 0 0; diff --git a/views/default/tidypics/groupprofile_albums.php b/views/default/tidypics/groupprofile_albums.php index 060c540d4..7f28705c7 100644 --- a/views/default/tidypics/groupprofile_albums.php +++ b/views/default/tidypics/groupprofile_albums.php @@ -1,7 +1,13 @@ photos_enable != 'no') { - echo '
'; + echo '
'; echo '

' . elgg_echo('album:group') . '

'; echo elgg_view('tidypics/albums', array('num_albums' => 5)); echo '
'; -- cgit v1.2.3