diff options
Diffstat (limited to 'mod/riverdashboard')
| -rw-r--r-- | mod/riverdashboard/index.php | 51 | ||||
| -rw-r--r-- | mod/riverdashboard/languages/en.php | 12 | ||||
| -rw-r--r-- | mod/riverdashboard/start.php | 27 | ||||
| -rw-r--r-- | mod/riverdashboard/views/default/riverdashboard/nav.php | 56 |
4 files changed, 0 insertions, 146 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php deleted file mode 100644 index 9d3a98d81..000000000 --- a/mod/riverdashboard/index.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php
-
- /**
- * Elgg river dashboard plugin index page
- *
- * @package ElggRiverDash
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- */
-
- require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php');
-
- gatekeeper();
-
- $content = get_input('content','');
- $content = explode(',',$content);
- $type = $content[0];
- $subtype = $content[1];
- $orient = get_input('display');
-
- if ($type == 'all') {
- $type = '';
- $subtype = '';
- }
-
- switch($orient) {
- case 'mine':
- $subject_guid = $_SESSION['user']->guid;
- $relationship_type = '';
- break;
- case 'friends': $subject_guid = $_SESSION['user']->guid;
- $relationship_type = 'friend';
- break;
- default: $subject_guid = 0;
- $relationship_type = '';
- break;
- }
-
- $river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '');
- $body = elgg_view('riverdashboard/nav',array(
- 'type' => $type,
- 'subtype' => $subtype,
- 'orient' => $orient
- ));
- $body .= $river;
-
- echo page_draw(elgg_echo('dashboard'),elgg_view_layout('two_column_left_sidebar','',$body));
-
-?>
\ No newline at end of file diff --git a/mod/riverdashboard/languages/en.php b/mod/riverdashboard/languages/en.php deleted file mode 100644 index 3a9a64ce7..000000000 --- a/mod/riverdashboard/languages/en.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php
-
- $english = array(
-
- 'mine' => 'Mine',
- 'filter' => 'Filter',
-
- );
-
- add_translation("en",$english);
-
-?>
\ No newline at end of file diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php deleted file mode 100644 index b99cff0a0..000000000 --- a/mod/riverdashboard/start.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php
-
- /**
- * Elgg river dashboard plugin
- *
- * @package ElggRiverDash
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- */
-
- function riverdashboard_init() {
-
- register_page_handler('dashboard','riverdashboard_dashboard');
-
- }
-
- function riverdashboard_dashboard() {
-
- include(dirname(__FILE__) . '/index.php');
-
- }
-
- register_plugin_hook('init','system','riverdashboard_init');
-
-?>
\ 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 56b232da0..000000000 --- a/mod/riverdashboard/views/default/riverdashboard/nav.php +++ /dev/null @@ -1,56 +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 (!empty($object )) {
- $keyname = 'item:'.$type.':'.$object;
- } else $keyname = 'item:'.$type;
- $contents[$keyname] = "{$type},{$object}";
- }
- }
- }
-
- $allselect = ''; $friendsselect = ''; $mineselect = '';
- switch($vars['orient']) {
- case '': $allselect = 'class="riverdashboard_tabs_selected"';
- break;
- case 'friends': $friendsselect = 'class="riverdashboard_tabs_selected"';
- break;
- case 'mine': $mineselect = 'class="riverdashboard_tabs_selected"';
- break;
- }
-
-?>
-
-<div class="riverdashboard_navigation">
- <div class="riverdashboard_tabs">
- <p>
- <a <?php echo $allselect; ?> href="?type=<?php echo $vars['type']; ?>&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('all'); ?></a>
- <a <?php echo $friendsselect; ?> href="?type=<?php echo $vars['type']; ?>&display=friends&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('friends'); ?></a>
- <a <?php echo $mineselect; ?> href="?type=<?php echo $vars['type']; ?>&display=mine&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('mine'); ?></a>
- </p>
- </div>
-
- <div class="riverdashboard_content_select">
- <form action="index.php">
- <select name="content">
- <?php
-
- foreach($contents as $label => $content) {
- if (("{$vars['type']},{$vars['subtype']}" == $content) ||
- (empty($vars['subtype']) && $content == 'all')) {
- $selected = 'selected="selected"';
- } else $selected = '';
- echo "<option value=\"{$content}\" {$selected}>".elgg_echo($label)."</option>";
- }
-
- ?>
- </select>
- <input type="hidden" name="display" value="<?php echo htmlentities($vars['orient']); ?>" />
- <input type="submit" value="<?php echo elgg_echo('filter'); ?>" />
- </form>
- </div>
-</div>
\ No newline at end of file |
