aboutsummaryrefslogtreecommitdiff
path: root/views/default/river
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-21 18:50:27 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-21 18:50:27 +0000
commit3b5ce30c7f4c2158f26c8ebb7e7bef3e19ece9e9 (patch)
treead397181660c293054d6eb2846cfbff06bd7fb1d /views/default/river
parent7acd3a2947f7bd92ded5bc5f02baa5db87f6b212 (diff)
downloadelgg-3b5ce30c7f4c2158f26c8ebb7e7bef3e19ece9e9.tar.gz
elgg-3b5ce30c7f4c2158f26c8ebb7e7bef3e19ece9e9.tar.bz2
added river integration for 1.5 - did not add update album or create/update image
Diffstat (limited to 'views/default/river')
-rw-r--r--views/default/river/object/album/create.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php
index 68553309c..fcc87277d 100644
--- a/views/default/river/object/album/create.php
+++ b/views/default/river/object/album/create.php
@@ -1,13 +1,22 @@
<?php
+if (function_exists('add_to_river')) { // Elgg 1.5
+ $performed_by = get_entity($vars['item']->subject_guid);
+ $album = get_entity($vars['item']->object_guid);
+
+ $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>";
+} else { // Elgg 1.2
$statement = $vars['statement'];
$performed_by = $statement->getSubject();
$object = $statement->getObject();
-
+
$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("album:river:created"),$url) . " ";
- $string .= "<a href=\"" . $object->getURL() . "\">" . elgg_echo("album:river:item") . "</a>";
+ $string .= "<a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";
+}
- echo $string;
+echo $string;
?> \ No newline at end of file