diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/river/object/album/create.php | 9 | ||||
-rw-r--r-- | views/default/tidypics/css.php | 2 | ||||
-rw-r--r-- | views/default/tidypics/groupprofile_albums.php | 8 |
3 files changed, 17 insertions, 2 deletions
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 = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("album:river:created"),$url) . " ";
$string .= "<a href=\"" . $album->getURL() . "\">" . $album->title . "</a>";
+ if ($group_album)
+ $string .= ' ' . elgg_echo('album:river:group') . ' ' . "<a href=\"{$group_link}\" >{$group_name}</a>";
$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 @@ <?php
+/***********************************************
+ *
+ * This is used on the group profile page
+ *
+ ***********************************************/
+
if ($vars['entity']->photos_enable != 'no') {
- echo '<div id="group_albums_widget">';
+ echo '<div id="tidypics_group_profile">';
echo '<h2>' . elgg_echo('album:group') . '</h2>';
echo elgg_view('tidypics/albums', array('num_albums' => 5));
echo '</div>';
|