From d88866776c0958e7c99d365f3e0fb2e3293294a8 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 7 Feb 2009 16:37:00 +0000 Subject: new river views added to groups git-svn-id: https://code.elgg.org/elgg/trunk@2678 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/river/object/group/create.php | 13 ++++ .../river/object/groupforumtopic/annotate.php | 14 ++++ .../river/object/groupforumtopic/create.php | 14 ++++ .../river/object/groupforumtopic/update.php | 13 ++++ .../default/river/relationship/member/create.php | 78 +++++++++++----------- 5 files changed, 93 insertions(+), 39 deletions(-) create mode 100644 mod/groups/views/default/river/object/group/create.php create mode 100644 mod/groups/views/default/river/object/groupforumtopic/annotate.php create mode 100644 mod/groups/views/default/river/object/groupforumtopic/create.php create mode 100644 mod/groups/views/default/river/object/groupforumtopic/update.php (limited to 'mod/groups/views/default/river') diff --git a/mod/groups/views/default/river/object/group/create.php b/mod/groups/views/default/river/object/group/create.php new file mode 100644 index 000000000..8892b6d56 --- /dev/null +++ b/mod/groups/views/default/river/object/group/create.php @@ -0,0 +1,13 @@ +getSubject(); + $object = $statement->getObject(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("group:river:created"),$url) . " "; + $string .= "getURL() . "\">" . elgg_echo("group:river:create") . ""; + +?> + + \ No newline at end of file diff --git a/mod/groups/views/default/river/object/groupforumtopic/annotate.php b/mod/groups/views/default/river/object/groupforumtopic/annotate.php new file mode 100644 index 000000000..c951bcc31 --- /dev/null +++ b/mod/groups/views/default/river/object/groupforumtopic/annotate.php @@ -0,0 +1,14 @@ +getSubject(); + $object = $statement->getObject(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("groupforum:river:posted"),$url) . " "; + $string .= elgg_echo("groupforum:river:annotate:create") . " | getURL() . "\">" . $object->title . ""; + //$string .= "
Title: " . $object->title . "
"; + +?> + + \ No newline at end of file diff --git a/mod/groups/views/default/river/object/groupforumtopic/create.php b/mod/groups/views/default/river/object/groupforumtopic/create.php new file mode 100644 index 000000000..4bbf5c474 --- /dev/null +++ b/mod/groups/views/default/river/object/groupforumtopic/create.php @@ -0,0 +1,14 @@ +getSubject(); + $object = $statement->getObject(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("groupforum:river:created"),$url) . " "; + $string .= elgg_echo("groupforum:river:create") . " | getURL() . "\">" . $object->title . ""; + //$string .= "
Discussion topic: " . $object->title . "
"; + +?> + + \ No newline at end of file diff --git a/mod/groups/views/default/river/object/groupforumtopic/update.php b/mod/groups/views/default/river/object/groupforumtopic/update.php new file mode 100644 index 000000000..6fda38aa4 --- /dev/null +++ b/mod/groups/views/default/river/object/groupforumtopic/update.php @@ -0,0 +1,13 @@ +getSubject(); + $object = $statement->getObject(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("groupforum:river:updated"),$url) . " "; + $string .= elgg_echo("groupforum:river:update") . " | getURL() . "\">" . $object->title . ""; + +?> + + \ No newline at end of file diff --git a/mod/groups/views/default/river/relationship/member/create.php b/mod/groups/views/default/river/relationship/member/create.php index 7dc10d693..d484b0d9d 100644 --- a/mod/groups/views/default/river/relationship/member/create.php +++ b/mod/groups/views/default/river/relationship/member/create.php @@ -1,40 +1,40 @@ -getSubject(); - $event = $statement->getEvent(); - $object = $statement->getObject(); - - if (is_array($object)) - { - switch ($object['relationship']) - { - // Friending - case 'member' : - $user = $object['subject']; - $group = $object['object']; - - if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) - { - echo "getURL()}\">{$user->name} "; - echo elgg_echo("groups:river:member"); - echo " 'getURL()}\">{$group->name}'"; - } - - break; - } - } - - +getSubject(); + $event = $statement->getEvent(); + $object = $statement->getObject(); + + if (is_array($object)) + { + switch ($object['relationship']) + { + // Friending + case 'member' : + $user = $object['subject']; + $group = $object['object']; + + if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) + { + echo "getURL()}\">{$user->name} "; + echo elgg_echo("groups:river:member"); + echo " 'getURL()}\">{$group->name}'"; + } + + break; + } + } + + ?> \ No newline at end of file -- cgit v1.2.3