aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard')
-rw-r--r--mod/riverdashboard/actions/add.php45
-rw-r--r--mod/riverdashboard/actions/delete.php28
-rw-r--r--mod/riverdashboard/endpoint/get_comments.php40
-rw-r--r--mod/riverdashboard/endpoint/get_likes.php22
-rw-r--r--mod/riverdashboard/endpoint/ping.php59
-rw-r--r--mod/riverdashboard/graphics/follow_icon.pngbin344 -> 0 bytes
-rw-r--r--mod/riverdashboard/graphics/refresh.pngbin327 -> 0 bytes
-rw-r--r--mod/riverdashboard/index.php70
-rw-r--r--mod/riverdashboard/languages/en.php51
-rw-r--r--mod/riverdashboard/manifest.xml11
-rw-r--r--mod/riverdashboard/start.php86
-rw-r--r--mod/riverdashboard/views/default/river/dashboard.php19
-rw-r--r--mod/riverdashboard/views/default/river/item/list.php63
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php150
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper_classic.php20
-rw-r--r--mod/riverdashboard/views/default/river/relationship/friend/create.php36
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/container.php52
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/css.php175
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/ecml/activity.php26
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/js.php96
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/menu.php27
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/nav.php57
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/rivercomment.php18
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/sitemessage.php77
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/welcome.php8
-rw-r--r--mod/riverdashboard/views/json/riverdashboard/container.php1
-rw-r--r--mod/riverdashboard/views/rss/riverdashboard/container.php1
27 files changed, 0 insertions, 1238 deletions
diff --git a/mod/riverdashboard/actions/add.php b/mod/riverdashboard/actions/add.php
deleted file mode 100644
index 441723ebf..000000000
--- a/mod/riverdashboard/actions/add.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/**
- * Elgg site message: add
- *
- * @package ElggSiteMessage
- **/
-
-$message = get_input('sitemessage');
-//$access = 1; //it is for all logged in users
-
-// Make sure the message isn't blank
-if (empty($message)) {
- register_error(elgg_echo("sitemessages:blank"));
- forward("mod/riverdashboard/");
-
- // Otherwise, save the message
-} else {
-
- // Initialise a new ElggObject
- $sitemessage = new ElggObject();
- // Tell the system it's a site wide message
- $sitemessage->subtype = "sitemessage";
- // Set its owner to the current user
- $sitemessage->owner_guid = get_loggedin_userid();
- // For now, set its access to logged in users
- $sitemessage->access_id = 1; // this is for all logged in users
- // Set description appropriately
- $sitemessage->title = '';
- $sitemessage->description = $message;
- // Before we can set metadata, we need to save the message
- if (!$sitemessage->save()) {
- register_error(elgg_echo("sitemessage:error"));
- forward("mod/riverdashboard/");
- }
- // Success message
- system_message(elgg_echo("sitemessages:posted"));
-
- // add to river
- add_to_river('river/sitemessage/create','create',get_loggedin_userid(),$sitemessage->guid);
-
- // Forward to the activity page
- forward("mod/riverdashboard/");
-
-}
diff --git a/mod/riverdashboard/actions/delete.php b/mod/riverdashboard/actions/delete.php
deleted file mode 100644
index 5352cc778..000000000
--- a/mod/riverdashboard/actions/delete.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/**
- * Elgg site message: delete
- *
- * @package ElggBlog
- */
-
-// Get input data
-$guid = (int) get_input('message');
-
-// Make sure we actually have permission to edit
-$message = get_entity($guid);
-if ($message->getSubtype() == "sitemessage" && $message->canEdit()) {
-
- // Delete it!
- $rowsaffected = $message->delete();
- if ($rowsaffected > 0) {
- // Success message
- system_message(elgg_echo("sitemessage:deleted"));
- } else {
- register_error(elgg_echo("sitemessage:notdeleted"));
- }
- // Forward to the river
- forward("mod/riverdashboard/");
-
-}
-
diff --git a/mod/riverdashboard/endpoint/get_comments.php b/mod/riverdashboard/endpoint/get_comments.php
deleted file mode 100644
index f130cfd3c..000000000
--- a/mod/riverdashboard/endpoint/get_comments.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * Grabs more comments to display.
- */
-
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
-$limit = get_input('limit', 25);
-// 3 are displayed by default.
-$offset = get_input('offset', 3);
-$entity_guid = get_input('entity_guid');
-if (!$entity = get_entity($entity_guid)) {
- exit;
-}
-
-// same deal as the main view...get the newest $limit, but reverse it to put the newest at the bottom.
-if ($comments = get_annotations($entity_guid, "", "", 'generic_comment', "", "", $limit, $offset, "desc")) {
- $comments = array_reverse($comments);
-}
-
-foreach ($comments as $comment) {
- //get the comment owner
- $comment_owner = get_user($comment->owner_guid);
- //get the comment owner's profile url
- $comment_owner_url = $comment_owner->getURL();
-
- //display comment
- echo "<div class='river-comment clearfix'>";
- echo "<span class='river-comment-owner-icon'>";
- echo elgg_view("profile/icon", array('entity' => $comment_owner, 'size' => 'tiny'));
- echo "</span>";
-
- //truncate comment to 150 characters and strip tags
- $contents = elgg_get_excerpt($comment->value, 150);
-
- echo "<div class='river-comment-contents'>";
- echo "<a href=\"{$comment_owner_url}\">" . $comment_owner->name . '</a>&nbsp;<span class="twitter_anywhere">' . parse_urls($contents) . '</span>';
- echo "<span class='entity-subtext'>" . elgg_view_friendly_time($comment->time_created) . "</span>";
- echo "</div></div>";
-} \ No newline at end of file
diff --git a/mod/riverdashboard/endpoint/get_likes.php b/mod/riverdashboard/endpoint/get_likes.php
deleted file mode 100644
index cc9e83aaf..000000000
--- a/mod/riverdashboard/endpoint/get_likes.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/**
- * Grabs more "likes" to display.
- */
-
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
-$limit = get_input('limit', 25);
-$offset = get_input('offset', 0);
-$entity_guid = get_input('entity_guid');
-
-if (!$entity = get_entity($entity_guid)) {
- exit;
-}
-
-$annotations = $entity->getAnnotations('likes', $limit, $offset);
-
-if (is_array($annotations) && sizeof($annotations) > 0) {
- foreach($annotations as $annotation) {
- echo elgg_view_annotation($annotation, "", false);
- }
-}
diff --git a/mod/riverdashboard/endpoint/ping.php b/mod/riverdashboard/endpoint/ping.php
deleted file mode 100644
index 239582bf2..000000000
--- a/mod/riverdashboard/endpoint/ping.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Check for new activity.
- * Outputs # of new activity items since $_GET['last_checked'] time
- */
-
-// Load Elgg engine will not include plugins
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
-// check for last checked time
-if (!$seconds_passed = get_input('seconds_passed', 0)) {
- echo '';
- exit;
-}
-
-$last_reload = time() - $seconds_passed;
-
-// This entire system is driven by the river table.
-// There is no core interface to simply grab the number of entries in the table.
-// In order for something to count as an update, you must put a call to add_river-item().
-// @todo Remove this when elgg_get_river-items() supports 1.7-style API and count => TRUE and not group by object_guid
-
-// river table does not have columns expected by get_access_sql_suffix so we modify its output
-$access = str_replace("and enabled='yes'", '', str_replace('owner_guid', 'subject_guid', get_access_sql_suffix_new('r', 'e')));
-
-$q = "SELECT COUNT(id) as all_activity FROM {$CONFIG->dbprefix}river r, {$CONFIG->dbprefix}entities e
- WHERE r.posted > $last_reload AND r.object_guid = e.guid AND ($access)";
-
-if ($d = get_data($q)) {
- $all_activity = $d[0]->all_activity;
-} else {
- $all_activity = 0;
-}
-
-if ($all_activity > 0) {
- $s = ($all_activity == 1) ? '' : 's';
- echo "<a href='' onClick=\"window.location.reload();\" class='update-link'>$all_activity update$s!</a>";
-?>
- <script type="text/javascript">
- $(document).ready(function(){
-
- var pageTitleSubstring;
- var stringStartPosition = document.title.indexOf("]");
-
- if (stringStartPosition == -1) { // we haven't already altered page title
- pageTitleSubstring = document.title;
- } else { // we previously prepended to page title, need to remove it first
- pageTitleSubstring = document.title.substring( (stringStartPosition+2) );
- }
-
- document.title = "[<?php echo $all_activity; ?> update<?php echo $s; ?>] "+pageTitleSubstring;
- });
- </script>
-
-<?php
-} else {
- echo '';
- exit;
-}
diff --git a/mod/riverdashboard/graphics/follow_icon.png b/mod/riverdashboard/graphics/follow_icon.png
deleted file mode 100644
index 56fa8b1f5..000000000
--- a/mod/riverdashboard/graphics/follow_icon.png
+++ /dev/null
Binary files differ
diff --git a/mod/riverdashboard/graphics/refresh.png b/mod/riverdashboard/graphics/refresh.png
deleted file mode 100644
index 71aa8e5e2..000000000
--- a/mod/riverdashboard/graphics/refresh.png
+++ /dev/null
Binary files differ
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php
deleted file mode 100644
index 8d650e1f5..000000000
--- a/mod/riverdashboard/index.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/**
- * Elgg river dashboard plugin index page
- */
-
-require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php');
-
-$type = get_input('type');
-$subtype = get_input('subtype');
-$orient = get_input('display');
-if(!$orient) {
- $orient = 'all';
-}
-$callback = get_input('callback');
-
-if ($type == 'all') {
- $type = '';
- $subtype = '';
-}
-
-$body = '';
-
-switch($orient) {
- case 'mine':
- $subject_guid = get_loggedin_userid();
- $relationship_type = '';
- $title_wording = elgg_echo('river:mine');
- break;
- case 'friends':
- $subject_guid = get_loggedin_userid();
- $relationship_type = 'friend';
- $title_wording = elgg_echo('river:friends');
- break;
- default:
- $subject_guid = 0;
- $relationship_type = '';
- $title_wording = elgg_echo('river:all');
- break;
-}
-
-$title .= elgg_view_title($title_wording);
-$extend = elgg_view("activity/extend");
-$river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '', 20, 0, 0, TRUE, FALSE);
-
-// Replacing callback calls in the nav with something meaningless
-$river = str_replace('callback=true', 'replaced=88,334', $river);
-
-$nav = elgg_view('riverdashboard/nav',array('type' => $type,'subtype' => $subtype,'orient' => $orient));
-if (isloggedin()) {
- $sidebar = elgg_view("riverdashboard/menu",array('type' => $type,'subtype' => $subtype,'orient' => $orient));
- $sidebar .= elgg_view("riverdashboard/sidebar", array("object_type" => 'riverdashboard'));
-} else {
- $sidebar = '';
-}
-
-elgg_set_context('riverdashboard');
-
-if (empty($callback)) {
- $body .= elgg_view('riverdashboard/container', array('body' => $nav . $extend . $river . elgg_view('riverdashboard/js')));
- $params = array(
- 'content' => $title . $body,
- 'sidebar' => $sidebar
- );
- $body = elgg_view_layout('one_column_with_sidebar', $params);
- echo elgg_view_page($title_wording, $body);
-} else {
- header("Content-type: text/html; charset=UTF-8");
- echo $nav . $river . elgg_view('riverdashboard/js');
-}
diff --git a/mod/riverdashboard/languages/en.php b/mod/riverdashboard/languages/en.php
deleted file mode 100644
index a07853680..000000000
--- a/mod/riverdashboard/languages/en.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-$english = array(
- 'mine' => 'Mine',
- 'filter' => 'Filter',
- 'riverdashboard:useasdashboard' => "Replace the default dashboard with this activity river?",
- 'activity' => 'Activity',
- 'riverdashboard:recentmembers' => 'Recent members',
-
- /**
- * Site messages
- **/
- 'sitemessages:announcements' => "Site announcements",
- 'sitemessages:posted' => "Posted",
- 'sitemessages:river:created' => "Site admin, %s,",
- 'sitemessages:river:create' => "posted a new site wide message",
- 'sitemessages:add' => "Add a site-wide message to the river page",
- 'sitemessage:deleted' => "Site message deleted",
-
- 'river:widget:noactivity' => 'We could not find any activity.',
- 'river:widget:title' => "Activity",
- 'river:all' => "All activity",
- 'river:mine' => "My activity",
- 'river:friends' => "Friends' activity",
- 'river:classic' => 'Classic',
- 'river:clustered' => 'Clustered',
- 'river:type' => 'Would you like the activity stream to be in classic format (chronological) or clustered?',
- 'river:widget:description' => "Show your latest activity.",
- 'river:widgets:friends' => "Friends",
- 'river:widgets:mine' => "Mine",
- 'river:friends' => "My friends' activity",
- 'river:mine' => "My activity",
- 'river:widget:label:displaynum' => "Number of entries to display:",
- 'river:widget:type' => "Which river would you like to display? One that shows your activity or one that shows your friends activity?",
- 'item:object:sitemessage' => "Site messages",
- 'riverdashboard:avataricon' => "Would you like to use user avatars or icons on your site activity stream?",
- 'option:icon' => 'Icons',
- 'option:avatar' => 'Avatars',
-
- // likes and comments
- 'riverdashboard:n_more_comments' => '+%s more',
- 'riverdashboard:show_less' => 'Show less',
-
- // ecml desc
- 'riverdashboard:ecml:riverdashboard' => 'River Dashboard',
-
- // ecml keywords
- 'riverdashboard:ecml:desc:activity' => 'Recent Activity',
- 'riverdashboard:ecml:desc:usage' => '[activity user=username limit=limit type=type subtype=subtype]'
-);
-
-add_translation("en", $english); \ No newline at end of file
diff --git a/mod/riverdashboard/manifest.xml b/mod/riverdashboard/manifest.xml
deleted file mode 100644
index 40c398ae4..000000000
--- a/mod/riverdashboard/manifest.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin_manifest>
- <field key="author" value="Curverider Ltd" />
- <field key="version" value="1.0" />
- <field key="description" value="Elgg river for use with v1.7 onward." />
- <field key="website" value="http://www.elgg.org/" />
- <field key="copyright" value="(C) Curverider 2010" />
- <field key="licence" value="GNU Public License version 2" />
- <field key="admin_interface" value="advanced" />
- <field key="elgg_install_state" value="enabled" />
-</plugin_manifest>
diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php
deleted file mode 100644
index 8469448a0..000000000
--- a/mod/riverdashboard/start.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Elgg river dashboard plugin
- *
- * @package RiverDashboard
- */
-
-function riverdashboard_init() {
- global $CONFIG;
- // Register and optionally replace the dashboard
- register_page_handler('dashboard', 'riverdashboard_page_handler');
- add_menu(elgg_echo('activity'), "pg/activity/");
-
- // Page handler
- register_page_handler('activity', 'riverdashboard_page_handler');
- elgg_extend_view('css/screen', 'riverdashboard/css');
-
- // add an activity stream ECML keyword
- // we'll restrict it to use in sitepages's custom_frontpage
- elgg_register_plugin_hook_handler('get_keywords', 'ecml', 'riverdashboard_ecml_keywords_hook');
-
- elgg_register_plugin_hook_handler('get_views', 'ecml', 'riverdashboard_ecml_views_hook');
-}
-
-/**
- * Page handler for riverdash
- *
- * @param unknown_type $page
- */
-function riverdashboard_page_handler($page){
- include(dirname(__FILE__) . "/index.php");
- return TRUE;
-}
-
-/**
- * For users to make a comment on a river item
- *
- * @param ElggEntity $entity The entity to comment on
- * @return string|false The HTML (etc) for the comment form, or false on failure
- */
-function elgg_make_river_comment($entity){
- if (!($entity instanceof ElggEntity)) {
- return FALSE;
- } else {
- //display the comment form
- $comments = elgg_view('riverdashboard/rivercomment', array('entity' => $entity));
- return $comments;
- }
-}
-
-
-/**
- * Register activity keyword.
- *
- * @param unknown_type $hook
- * @param unknown_type $type
- * @param unknown_type $value
- * @param unknown_type $params
- * @return unknown_type
- */
-function riverdashboard_ecml_keywords_hook($hook, $type, $value, $params) {
- $value['activity'] = array(
- 'view' => "riverdashboard/ecml/activity",
- 'description' => elgg_echo('riverdashboard:ecml:desc:activity'),
- 'usage' => elgg_echo('riverdashboard:ecml:usage:activity'),
- 'restricted' => array('sitepages/custom_frontpage')
- );
-
- return $value;
-}
-
-/**
- * Register the activity front page with ECML.
- *
- * @param unknown_type $hook
- * @param unknown_type $entity_type
- * @param unknown_type $return_value
- * @param unknown_type $params
- */
-function riverdashboard_ecml_views_hook($hook, $entity_type, $return_value, $params) {
- $return_value['riverdashboard/container'] = elgg_echo('riverdashboard:ecml:riverdashboard');
-
- return $return_value;
-}
-
-elgg_register_event_handler('init', 'system', 'riverdashboard_init');
diff --git a/mod/riverdashboard/views/default/river/dashboard.php b/mod/riverdashboard/views/default/river/dashboard.php
deleted file mode 100644
index 5fe7c35d3..000000000
--- a/mod/riverdashboard/views/default/river/dashboard.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/**
- * Elgg river for dashboard.
- */
-
-/// Extract the river
-$river = $vars['river'];
-?>
-<div id="river">
-<?php
-if (($river) && (count($river)>0)) {
- foreach ($river as $r) {
- echo $r;
- }
-} else {
- echo elgg_echo('river:widget:noactivity');
-}
-?>
-</div><!-- /river --> \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/river/item/list.php b/mod/riverdashboard/views/default/river/item/list.php
deleted file mode 100644
index c708a9db6..000000000
--- a/mod/riverdashboard/views/default/river/item/list.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-if (isset($vars['items']) && is_array($vars['items'])) {
-
- $i = 0;
- if (!empty($vars['items'])) {
- foreach($vars['items'] as $item) {
- echo elgg_view_river_item($item);
- $i++;
- if ($i >= $vars['limit']) {
- break;
- }
- }
- }
-}
-
-if ($vars['pagination'] !== false) {
- $baseurl = $_SERVER['REQUEST_URI'];
- $baseurl = preg_replace('/[\&\?]offset\=[0-9]*/',"",$baseurl);
-
- $nav = '';
-
- if (sizeof($vars['items']) > $vars['limit']) {
- $newoffset = $vars['offset'] + $vars['limit'];
- $urladdition = 'offset='.$newoffset;
- if (substr_count($baseurl,'?')) {
- $nexturl = $baseurl . '&' . $urladdition;
- } else {
- $nexturl=$baseurl . '?' . $urladdition;
- }
-
- $nav .= '<a class="pagination-previous" href="'.$nexturl.'">&laquo; ' . elgg_echo('previous') . '</a> ';
- }
-
- if ($vars['offset'] > 0) {
- $newoffset = $vars['offset'] - $vars['limit'];
- if ($newoffset < 0) {
- $newoffset = 0;
- }
- $urladdition = 'offset='.$newoffset;
- if (substr_count($baseurl,'?')) {
- $prevurl=$baseurl . '&' . $urladdition;
- } else {
- $prevurl=$baseurl . '?' . $urladdition;
- }
-
- $nav .= '<a class="pagination-next" href="'.$prevurl.'">' . elgg_echo('next') . ' &raquo;</a> ';
- }
-
- if (!empty($nav)) {
- echo '<div class="pagination clearfix">'.$nav.'</div>';
- }
-}
-
-?>
-
-<script type="text/javascript">
-
-// pull in extra comments and likes with ajax
-$(function() {
-
-});
-</script> \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
deleted file mode 100644
index 3ed413997..000000000
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-/**
- * Elgg river item wrapper.
- * Wraps all river items.
- *
- * @todo: Clean up this logic.
- * It looks like this only will allow comments on non user and non group forum
- * topic entities.
- *
- * Different chunks are used depending on if comments exist or not.
- *
- *
- */
-
-$object = get_entity($vars['item']->object_guid);
-$object_url = $object->getURL();
-$likes_count = elgg_count_likes($object);
-
-//user
-//if displaying on the profile get the object owner, else the subject_guid
-if (elgg_get_context() == 'profile' && $object->getSubtype() == 'thewire') {
- $user = get_entity($object->owner_guid);
-} else {
- $user = get_entity($vars['item']->subject_guid);
-}
-
-// get last three comments display
-// want the 3 most recent comments (order by time_created desc = 3 2 1 limit 3)
-// but will display them with the newest at the bottom (1 2 3)
-if ($comments = get_annotations($vars['item']->object_guid, "", "", 'generic_comment', "", "", 3, 0, "desc")) {
- $comments = array_reverse($comments);
-}
-
-// for displaying "+N more"
-// -3 from the count because the 3 displayed don't count in the "more"
-$comment_count = count_annotations($vars['item']->object_guid, $vars['item']->type, $vars['item']->subtype, 'generic_comment');
-if ($comment_count < 3) {
- $more_comments_count = 0;
-} else {
- $more_comments_count = $comment_count - 3;
-}
-
-?>
-<div class="river-item riverdashboard" id="river_entity_<?php echo $object->guid; ?>">
- <span class="river-item-useravatar">
- <?php echo elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')); ?>
- </span>
-
- <div class="river-item-contents clearfix">
-<?php
-
-// body contents, generated by the river view in each plugin
-echo $vars['body'];
-
-// display latest 3 comments if there are any
-if ($comments){
- $counter = 0;
-
- echo "<div class='river-comments-tabs clearfix'>";
- echo "<a class='river-more-comments show_comments_button link'>" . elgg_echo('comments') . '</a>';
-
- if ($likes_count != 0) {
- echo elgg_view('likes/forms/display', array('entity' => $object));
- }
-
- echo "</div>"; // close river-comments-tabs
-
- echo "<div class='river-comments'>";
-
- if ($likes_count != 0) {
- //show the users who liked the object
- // this is loaded via ajax to avoid pounding the server with avatar requests.
- echo "<div class='likes-list hidden'></div>";
- }
-
- echo "<div class=\"comments_container\">";
- // display appropriate comment link
- if ($more_comments_count > 0) {
- echo "<a class=\"river-more-comments show_more_button link\">" .
- elgg_echo('riverdashboard:n_more_comments', array($more_comments_count)) . '</a>';
-
- echo "<a style=\"display: none\" class=\"river-more-comments show_less_button link\">" . elgg_echo('riverdashboard:show_less') . '</a>';
- }
- echo "<div class=\"comments_list\">";
- foreach ($comments as $comment) {
- //get the comment owner
- $comment_owner = get_user($comment->owner_guid);
- //get the comment owner's profile url
- $comment_owner_url = $comment_owner->getURL();
- // color-code each of the 3 comments
- // @todo this isn't used in CSS...
- if( ($counter == 2 && $comment_count >= 4) || ($counter == 1 && $comment_count == 2) || ($counter == 0 && $comment_count == 1) || ($counter == 2 && $comment_count == 3) ) {
- $alt = 'latest';
- } else if( ($counter == 1 && $comment_count >= 4) || ($counter == 0 && $comment_count == 2) || ($counter == 1 && $comment_count == 3) ) {
- $alt = 'penultimate';
- }
- //display comment
- echo "<div class='river-comment $alt clearfix'>";
- echo "<span class='river-comment-owner-icon'>";
- echo elgg_view("profile/icon", array('entity' => $comment_owner, 'size' => 'tiny'));
- echo "</span>";
-
- //truncate comment to 150 characters and strip tags
- $contents = elgg_get_excerpt($comment->value, 150);
-
- echo "<div class='river-comment-contents'>";
- echo "<a href=\"{$comment_owner_url}\">" . $comment_owner->name . '</a>&nbsp;<span class="elgg_excerpt">' . parse_urls($contents) . '</span>';
- echo "<span class='entity-subtext'>" . elgg_view_friendly_time($comment->time_created) . "</span>";
- echo "</div></div>";
- $counter++;
- }
-
- // close comments_list, comments_container and river-comments
- echo '</div></div>' . elgg_make_river-comment($object) . '</div>';
-} else {
- // tab bar nav - for users that liked object
- if ($vars['item']->type != 'user' && $likes_count != 0) {
- echo "<div class='river-comments-tabs clearfix'>";
- }
-
- if ($likes_count != 0) {
- echo elgg_view('likes/forms/display', array('entity' => $object));
- }
-
- if ($vars['item']->type != 'user' && $likes_count != 0) {
- echo "</div>"; // close river-comments-tabs
- }
-
- if ($vars['item']->type != 'user') {
- echo "<div class='river-comments'>";
- }
- if ($likes_count != 0) {
- //show the users who liked the object
- echo "<div class='likes-list hidden'>";
- echo list_annotations($object->getGUID(), 'likes', 99);
- echo "</div>";
- }
-
- // if there are no comments to display
- // and this is not a user - include the inline comment form
- if ($vars['item']->type != 'user') {
- echo elgg_make_river_comment($object);
- }
- if ($vars['item']->type != 'user') {
- echo "</div>";
- }
-}
-?>
- </div>
-</div>
diff --git a/mod/riverdashboard/views/default/river/item/wrapper_classic.php b/mod/riverdashboard/views/default/river/item/wrapper_classic.php
deleted file mode 100644
index 58fe938f4..000000000
--- a/mod/riverdashboard/views/default/river/item/wrapper_classic.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Elgg river item wrapper.
- * Wraps all river items.
- *
- * @package Elgg
- */
-?>
-<div class="river-item riverdashboard">
- <span class="river-item-useravatar">
-<?php
-echo elgg_view("profile/icon",array('entity' => get_entity($vars['item']->subject_guid), 'size' => 'small'));
-?>
- </span>
- <div class="river-item-contents clearfix">
-<?php
-echo $vars['body'];
-?>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/river/relationship/friend/create.php b/mod/riverdashboard/views/default/river/relationship/friend/create.php
deleted file mode 100644
index 916efd407..000000000
--- a/mod/riverdashboard/views/default/river/relationship/friend/create.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Elgg relationship create event.
- * Display something in the river when a relationship is created.
- */
-
-$statement = $vars['statement'];
-
-$performed_by = $statement->getSubject();
-$event = $statement->getEvent();
-$object = $statement->getObject();
-
-if (is_array($object)) {
- switch ($object['relationship']) {
- // Friending
- case 'friend' :
- case 'friends' : // 'friends' shouldn't be used, but just incase :)
-
- // Get second object
- $userb = $object['object'];
-
- // Only users can be friends
- if (($performed_by instanceof ElggUser) && ($userb instanceof ElggUser)) {
- // User A
- echo "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a> ";
-
- // Verb
- echo elgg_echo('river:relationship:friend');
-
- // user B
- echo " <a href=\"{$userb->getURL()}\">{$userb->name}</a>";
- }
-
- break;
- }
-} \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/riverdashboard/container.php b/mod/riverdashboard/views/default/riverdashboard/container.php
deleted file mode 100644
index 09a593622..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/container.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php echo $vars['body']; ?>
-
-<script type="text/javascript">
-$(document).ready(function(){
- var updates = new activityUpdateChecker(10000);
- updates.start();
-});
-
-// check for updates on the wire.
-function activityUpdateChecker(interval) {
- this.intervalID = null;
- this.interval = interval;
- this.url = '<?php echo elgg_get_site_url(); ?>mod/riverdashboard/endpoint/ping.php';
- this.seconds_passed = 0;
-
- this.start = function() {
- // needed to complete closure scope.
- var self = this;
-
- this.intervalID = setInterval(function() { self.checkUpdates(); }, this.interval);
- }
-
- this.checkUpdates = function() {
- this.seconds_passed += this.interval / 1000;
- // more closure fun
- var self = this;
- $.ajax({
- 'type': 'GET',
- 'url': this.url,
- 'data': {'seconds_passed': this.seconds_passed},
- 'success': function(data) {
- if (data) {
- $('#riverdashboard-updates').html(data).slideDown();
- // could crank down the interval here.
- // if we change the message to simply "New Posts!"
- // we could stop the polling altogether.
- }
- }
- })
- }
-
- this.stop = function() {
- clearInterval(this.interval);
- }
-
- this.changeInterval = function(interval) {
- this.stop();
- this.interval = interval;
- this.start();
- }
-}
-</script>
diff --git a/mod/riverdashboard/views/default/riverdashboard/css.php b/mod/riverdashboard/views/default/riverdashboard/css.php
deleted file mode 100644
index 18ba7c0dc..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/css.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-/**
- * Elgg riverdashboard CSS
- *
- */
-?>
-#riverdashboard-updates {
- border-bottom:1px solid #cccccc;
-}
-#riverdashboard-updates a.update-link {
- display: inline-table;
- color:white;
- font-weight: bold;
- padding:1px 8px 2px 24px;
- margin-top:9px;
- cursor: pointer;
- background: red url("<?php echo elgg_get_site_url(); ?>mod/riverdashboard/graphics/refresh.png") no-repeat 5px 3px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
-}
-#riverdashboard-updates a.update-link:hover {
- background: #4690D6 url("<?php echo elgg_get_site_url(); ?>mod/riverdashboard/graphics/refresh.png") no-repeat 5px -22px;
- color:white;
- text-decoration: none;
-}
-.riverdashboard-filtermenu {
- margin:10px 0 10px 0;
- float:right;
-}
-
-/* RIVER ENTRY */
-.river-item {
- border-bottom:1px solid #cccccc;
- padding:7px 0 7px 0;
-}
-.river-item p {
- margin:0;
-}
-.river-item .entity-subtext {
- display: block;
- line-height: 1.4em;
-}
-.river-item-useravatar {
- float:left;
- margin-top:3px;
- margin-left:1px;
-}
-.river-item-contents {
- margin-left:55px;
-}
-.river-item-contents a {
- font-weight: bold;
-}
-.river-content-display {
- border-left:1px solid #DDDDDD;
- font-size:85%;
- line-height:1.5em;
- margin:8px 0 5px 0;
- padding-left:5px;
-}
-.following-icon {
- width:20px;
- height:25px;
- margin:0 2px 0 2px;
- background: url(<?php echo elgg_get_site_url(); ?>mod/riverdashboard/graphics/follow_icon.png) no-repeat left -7px;
-}
-
-/* LATEST COMMENTS IN RIVER */
-.river-comments-tabs {
- max-height: 19px;
- overflow:hidden;
-}
-.river-comments {
- -moz-border-radius-bottomleft:5px;
- -moz-border-radius-bottomright:5px;
- -moz-border-radius-topleft:5px;
- -moz-border-radius-topright:0;
- -webkit-border-top-left-radius:5px;
- -webkit-border-top-right-radius:0;
- -webkit-border-bottom-right-radius:5px;
- -webkit-border-bottom-left-radius:5px;
- background-color: #eeeeee;
-}
-.river-comment {
- padding:3px;
- border-bottom:1px solid white;
-}
-.river-comment.penultimate {
-
-}
-.river-comment.latest {
-
-}
-/* hidden inline comment form */
-.river-comment_form.hidden {
- padding:5px;
- height:26px;
-}
-.river-comment_form.hidden .input-text {
- width:560px;
- padding:3px;
-}
-#profile-content .river-comment_form.hidden .input-text { /* when activity is displayed on profile page */
- width:535px;
-}
-.river-comment_form.hidden .submit-button {
- margin:0 0 0 10px;
- float:right;
-}
-.river-link-divider {
- color:#999999;
- font-style: normal;
-}
-.river-item-contents .river-comment-form-button,
-.river-item-contents .river_user-like-button {
- font-weight:normal;
- font-style: normal;
-}
-.river-item-contents .river-comment-form-button {
- margin-left: 7px;
-}
-/* hidden list of users that liked item */
-.river-item .elgg-likes-user {
- border-bottom:1px solid white;
- padding:3px;
-}
-.river-item .elgg-likes-user .entity-listing-icon {
- margin:3px 0 4px 2px;
-}
-.river-item .elgg-likes-user .entity-listing-info {
- width:635px;
-}
-#profile-content .river-item .elgg-likes-user .entity-listing-info { /* when likes is displayed on profile page activity stream */
- width:600px;
-}
-.river-item .elgg-likes-user .entity-metadata {
- margin-top:3px;
-}
-.river-item p.elgg-likes-owner {
- padding-top:0;
-}
-.river-item a.river-more-comments {
- display:block;
- float:right;
- padding:1px 7px 1px 7px;
- margin-left:6px;
- text-align:right;
- font-size:85%;
- font-weight:normal;
- width:auto;
- background-color: #eeeeee;
- -moz-border-radius-topleft:4px;
- -moz-border-radius-topright:4px;
- -webkit-border-top-left-radius:4px;
- -webkit-border-top-right-radius:4px;
-}
-.river-item a.river-more-comments.off {
- background-color: white;
-}
-.river-item .river-comment-owner-icon {
- float:left;
- margin:3px 8px 4px 2px;
-}
-.river-item .river-comment-contents {
- margin-left:34px;
-}
-a.river-more-comments {
- float:right;
- font-size:85%;
- padding-right:7px;
- text-align: right:
-}
-
-
-
diff --git a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php b/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
deleted file mode 100644
index 527be3d82..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * ECML activity support
- *
- * @package ECML
- */
-
-// get_loggedin_user() is apparently the loggedin user.
-$owner = (isset($vars['owner'])) ? $vars['owner'] : NULL;
-$type = (isset($vars['type'])) ? $vars['type'] : NULL;
-$subtype = (isset($vars['subtype'])) ? $vars['subtype'] : NULL;
-$limit = (isset($vars['limit'])) ? $vars['limit'] : 10;
-
-// resolve usernames to guids
-if ($owner && !is_numeric($owner)) {
- if ($user_obj = get_user_by_username($owner)) {
- $owner = $user_obj->getGUID();
- }
-}
-
-$river = elgg_view_river_items($owner, NULL, NULL, $type, $subtype, '', $limit, 0, 0, true, false) . "</div>";
-
-// Replacing callback calls in the nav with something meaningless
-$river = str_replace('callback=true','replaced=88,334', $river);
-
-echo $river;
diff --git a/mod/riverdashboard/views/default/riverdashboard/js.php b/mod/riverdashboard/views/default/riverdashboard/js.php
deleted file mode 100644
index 09b1113d8..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/js.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<script type="text/javascript">
- $(document).ready(function() {
- $('.river-comment-form-button').click(function() {
- elgg_slide_toggle(this, '.river-item', '.river-comment_form');
- });
-
- $('.likes_user_list_button').click(function() {
- var myParent = $(this).closest('.river-item');
- var likesList = myParent.find('.likes-list');
-
- if (likesList.css('display') == 'none') {
- // pull in likes via ajax to save on loading many avatars
- var riverItem = $(this).closest('.river-item');
- var guid = riverItem.attr('id').replace('river_entity_', '');
-
- var params = {
- 'entity_guid': guid
- }
-
- $(likesList).load('<?php echo elgg_get_site_url();?>mod/riverdashboard/endpoint/get_likes.php', params, function(data) {
- // hide comments
- myParent.find('.comments_container').animate({"height": "toggle", "opacity": "toggle"}, { duration: 400 });
- // change selected tab
- myParent.find('.show_comments_button').addClass('off');
- myParent.find('.likes_user_list_button').removeClass('off');
- // show users that liked object
- elgg_slide_toggle(this, '.river-item', '.likes-list');
- });
- }
- });
-
- $('.show_comments_button').click(function() {
- var myParent = $(this).closest('.river-item');
- if (myParent.find('.comments_container').css('display') == 'none') {
- // hide likes
- myParent.find('.likes-list').animate({"height": "toggle", "opacity": "toggle"}, { duration: 400 });
- // change selected tab
- myParent.find('.show_comments_button').removeClass('off');
- myParent.find('.likes_user_list_button').addClass('off');
- // show users that liked object
- elgg_slide_toggle(this, '.river-item', '.comments_container');
- }
- });
-
- // grab more comments
- $('.river-more-comments.show_more_button').click(function() {
- var showLess = $(this).next('.show_less_button');
- var showMore = $(this);
- var riverItem = $(this).closest('.river-item');
-
- var guid = riverItem.attr('id').replace('river_entity_', '');
- var commentsList = riverItem.find('.comments_list');
- var numComments = riverItem.find('.river-comment').length;
-
- var params = {
- 'entity_guid': guid,
- 'offset': numComments
- }
-
- $.post('<?php echo elgg_get_site_url();?>mod/riverdashboard/endpoint/get_comments.php', params, function(data) {
- commentsList.prepend(data);
-
- showLess.toggle();
- showMore.toggle();
-
- });
- });
-
- // hide more comments
- $('.river-more-comments.show_less_button').click(function() {
- var showLess = $(this);
- var showMore = $(this).prev('.show_more_button');
- var riverItem = $(this).closest('.river-item');
- // want to keep the latest 3 comments
- var comments = riverItem.find('.river-comment')
- comments = $.makeArray(comments).reverse();
- //reverse().splice(0, 3);
-
- len = comments.length;
-
- for (i=3; i<len; i++) {
- $(comments[i]).empty().remove();
- }
-
-
- // remove them so we can force an ajax update when clicked again.
-
- showLess.toggle();
- showMore.toggle();
-
- });
- });
-
- // re-add avatar menus for new avatars
- //setup_avatar_menu($('.river-item_list'));
-</script>
diff --git a/mod/riverdashboard/views/default/riverdashboard/menu.php b/mod/riverdashboard/views/default/riverdashboard/menu.php
deleted file mode 100644
index 889cfbbd2..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/menu.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Elgg activity stream menu
- */
-$allselect = ''; $friendsselect = ''; $mineselect = ''; $display_option = '';
-switch($vars['orient']) {
- case 'all': $allselect = 'class="selected"';
- break;
- case 'friends': $friendsselect = 'class="selected"';
- $display_option = '&amp;display=friends';
- break;
- case 'mine': $mineselect = 'class="selected"';
- $display_option = '&amp;display=mine';
- break;
-}
-?>
-<ul class="submenu riverdashboard">
-<?php
- if(isloggedin()){
-?>
- <li <?php echo $allselect; ?> ><a href="<?php echo elgg_get_site_url(); ?>pg/activity/"><?php echo elgg_echo('all'); ?></a></li>
- <li <?php echo $friendsselect; ?> ><a href="<?php echo elgg_get_site_url(); ?>pg/activity/?display=friends"><?php echo elgg_echo('friends'); ?></a></li>
- <li <?php echo $mineselect; ?> ><a href="<?php echo elgg_get_site_url(); ?>pg/activity/?display=mine"><?php echo elgg_echo('mine'); ?></a></li>
-<?php
- }
-?>
-</ul> \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/riverdashboard/nav.php b/mod/riverdashboard/views/default/riverdashboard/nav.php
deleted file mode 100644
index cae3d7bcd..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/nav.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-$contents = array();
-$contents['all'] = 'all';
-if (!empty($vars['config']->registered_entities)) {
- foreach ($vars['config']->registered_entities as $type => $ar) {
- foreach ($vars['config']->registered_entities[$type] as $object) {
- if ($object != 'helppage'){
- if (!empty($object )) {
- $keyname = 'item:'.$type.':'.$object;
- } else {
- $keyname = 'item:'.$type;
- }
- $contents[$keyname] = "{$type},{$object}";
- }
- }
- }
-}
-
-$allselect = $friendsselect = $mineselect = $display_option = '';
-switch($vars['orient']) {
- case '':
- $allselect = 'class="selected"';
- break;
- case 'friends':
- $friendsselect = 'class="selected"';
- $display_option = '&amp;display=friends';
- break;
- case 'mine':
- $mineselect = 'class="selected"';
- $display_option = '&amp;display=mine';
- break;
-}
-?>
-<div class="riverdashboard-filtermenu">
- <?php
- $location_filter = "<select onchange=\"window.open(this.options[this.selectedIndex].value,'_top')\" name=\"file_filter\" class='Notstyled' >";
- $current = get_input('subtype');
- foreach($contents as $label => $content) {
- $get_values = explode(",", $content);
- //select the current filter
- if ($get_values[1] == $current) {
- $selected = "SELECTED";
- }
- //set the drop down filter
- if ($content[0] && $content[1]) {
- $location_filter .= "<option {$selected} class='Nomenuoption' value=\"{$CONFIG->url}pg/activity/?type={$get_values[0]}&subtype={$get_values[1]}{$display_option}\" >" . elgg_echo('Show') . " " . elgg_echo($label) . "</option>";
- }
- //reset selected
- $selected = '';
- }
- $location_filter .= "</select>";
- echo $location_filter;
- ?>
- <input type="hidden" name="display" id="display" value="<?php echo htmlentities($vars['orient']); ?>" />
-</div>
-<div id="riverdashboard-updates" class="clearfix"></div>
diff --git a/mod/riverdashboard/views/default/riverdashboard/rivercomment.php b/mod/riverdashboard/views/default/riverdashboard/rivercomment.php
deleted file mode 100644
index d6037557d..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/rivercomment.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * Elgg comments add on river form
- * @uses $vars['entity']
- */
-
-if (isset($vars['entity']) && isloggedin()) {
- $form_body = "<div class='river-comment_form hidden'>";
- $form_body .= elgg_view('input/text',array(
- 'internalname' => 'generic_comment',
- 'value' => 'Add a comment...',
- 'js' => "onfocus=\"if (this.value=='Add a comment...') { this.value='' };\" onblur=\"if (this.value=='') { this.value='Add a comment...' }\""
- ));
- $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
- $form_body .= elgg_view('input/submit', array('value' => elgg_echo("Comment")));
- $form_body .= "</div>";
- echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add"));
-} \ No newline at end of file
diff --git a/mod/riverdashboard/views/default/riverdashboard/sitemessage.php b/mod/riverdashboard/views/default/riverdashboard/sitemessage.php
deleted file mode 100644
index 522b32740..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/sitemessage.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/**
- * Elgg thewire view page
- *
- * @package ElggTheWire
- *
- */
-
-//grab the current site message
-$site_message = elgg_get_entities(array('types' => 'object', 'subtypes' => 'sitemessage', 'limit' => 1));
-if ($site_message) {
- $mes = $site_message[0];
- $message = $mes->description;
- $dateStamp = elgg_view_friendly_time($mes->time_created);
- $delete = elgg_view("output/confirmlink",array(
- 'href' => "action/riverdashboard/delete?message=" . $mes->guid,
- 'text' => elgg_echo('delete'),
- 'confirm' => elgg_echo('deleteconfirm'),
- ));
-}
-
-//if there is a site message
-if ($site_message) {
-
- echo "<h3>" . elgg_echo("sitemessages:announcements") . "</h3>";
- echo "<p><small>" . elgg_echo("sitemessages:posted") . ": " . $dateStamp;
- //if admin display the delete link
- if (isadminloggedin()) {
- echo " " . $delete . " ";
- }
- echo "</small></p>";
- //display the message
- echo "<p>" . $message . "</p>";
-
- //display the input form to add a new message
- if (isadminloggedin()) {
- //action
- $action = "riverdashboard/add";
- $link = elgg_echo("sitemessages:add");
- $input_area = elgg_view('input/plaintext', array('internalname' => 'sitemessage', 'value' => ''));
- $submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
- $form_body = <<<EOT
-
- <p><a class="collapsibleboxlink">{$link}</a></p>
- <div class="collapsible_box">
- {$input_area}<br />{$submit_input}
- </div>
-
-EOT;
- //display the form
- echo elgg_view('input/form', array('action' => "action/$action", 'body' => $form_body));
-
- }//end of admin if statement
-
- //if there is no message, add a form to create one
-} else {
-
- if (isadminloggedin()) {
-
- //action
- $action = "riverdashboard/add";
- $link = elgg_echo("sitemessages:add");
- $input_area = elgg_view('input/text', array('internalname' => 'sitemessage', 'value' => ''));
- $submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
- $form_body = <<<EOT
-
- <p><a class="collapsibleboxlink">{$link}</a></p>
- <div class="collapsible_box">
- {$input_area}<br />{$submit_input}
- </div>
-EOT;
- //display the form
- echo elgg_view('input/form', array('action' => "action/$action", 'body' => $form_body));
-
- }//end of admin check
-}//end of main if
diff --git a/mod/riverdashboard/views/default/riverdashboard/welcome.php b/mod/riverdashboard/views/default/riverdashboard/welcome.php
deleted file mode 100644
index f5152135e..000000000
--- a/mod/riverdashboard/views/default/riverdashboard/welcome.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-
-/**
- * Elgg thewire view page
- */
-
-?>
-<h2><?php echo elgg_echo('welcome:user'), array(get_loggedin_user()->name); ?></h2> \ No newline at end of file
diff --git a/mod/riverdashboard/views/json/riverdashboard/container.php b/mod/riverdashboard/views/json/riverdashboard/container.php
deleted file mode 100644
index 871a6cc7e..000000000
--- a/mod/riverdashboard/views/json/riverdashboard/container.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $vars['body']; ?> \ No newline at end of file
diff --git a/mod/riverdashboard/views/rss/riverdashboard/container.php b/mod/riverdashboard/views/rss/riverdashboard/container.php
deleted file mode 100644
index 871a6cc7e..000000000
--- a/mod/riverdashboard/views/rss/riverdashboard/container.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $vars['body']; ?> \ No newline at end of file