aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/index.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:31:27 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:31:27 +0000
commitb6f99468651309e0b58dbe000958540809df5dcc (patch)
tree2eb822efea669a1f12d44818e001aaa22b331f69 /mod/riverdashboard/index.php
parent6729784c18099d4e34c2ed6146b63f275a2eea54 (diff)
downloadelgg-b6f99468651309e0b58dbe000958540809df5dcc.tar.gz
elgg-b6f99468651309e0b58dbe000958540809df5dcc.tar.bz2
Fixes #2226 moves riverdashboard into secondary plugins from core plugins - most of riverdashboard functionality is now in core (except for displaying who has liked stuff and ajax refreshes)
git-svn-id: http://code.elgg.org/elgg/trunk@7750 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/index.php')
-rw-r--r--mod/riverdashboard/index.php70
1 files changed, 0 insertions, 70 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php
deleted file mode 100644
index 802536416..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 = riverdashboard_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '', 20, 0, 0, TRUE);
-
-// 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_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');
-}