diff options
Diffstat (limited to 'mod/riverdashboard/views')
8 files changed, 0 insertions, 336 deletions
diff --git a/mod/riverdashboard/views/default/river/sitemessage/create.php b/mod/riverdashboard/views/default/river/sitemessage/create.php deleted file mode 100644 index 1eaccdfb8..000000000 --- a/mod/riverdashboard/views/default/river/sitemessage/create.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php
-
- $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
- $object = get_entity($vars['item']->object_guid);
- $url = $object->getURL();
-
- $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
- $string = sprintf(elgg_echo("sitemessages:river:created"),$url) . " ";
- $string .= elgg_echo("sitemessages:river:create") . ": " . $object->description;
-
-?>
-
-<?php
- echo $string;
-?>
\ No newline at end of file diff --git a/mod/riverdashboard/views/default/riverdashboard/css.php b/mod/riverdashboard/views/default/riverdashboard/css.php deleted file mode 100644 index 590fa1eba..000000000 --- a/mod/riverdashboard/views/default/riverdashboard/css.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php - - /** - * Elgg riverdashboard CSS - * - * @package riverdashboard - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider <info@elgg.com> - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.org/ - */ - -?> - -/* TEMP riverdashboard css */ -.sidebarBox .recentMember { - margin:6px 6px 0 0; - float:left; -} -.sidebarBox #thewire_sidebarInputBox { - width:178px; -} -.sidebarBox .last_wirepost { - margin:20px 0 20px 0; -} -.sidebarBox .last_wirepost .thewire-singlepage { - margin:0; -} -.sidebarBox .last_wirepost .thewire-singlepage .note_date { - line-height: 1em; - padding:3px 0 0 4px; - width:142px; -} -.sidebarBox .last_wirepost .thewire-singlepage p.note_body { - color:#666666; - line-height: 1.2em; -} -.sidebarBox .last_wirepost .thewire-singlepage .thewire_icon { - margin:6px; -} -.sidebarBox .last_wirepost .thewire-singlepage .thewire-post { - background-position: 135px bottom; -} -.sidebarBox .thewire_characters_remaining { - float:right; -} -.sidebarBox input.thewire_characters_remaining_field { - background: #dedede; -} -.sidebarBox input#thewire_submit_button { - background: #4690d6; - margin:2px 0 0 0; - padding:2px 2px 1px 2px; - height:auto; -}
\ 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 bfebf8420..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="selected"';
- break;
- case 'friends': $friendsselect = 'class="selected"';
- break;
- case 'mine': $mineselect = 'class="selected"';
- break;
- }
-
-?>
-
-<div class="contentWrapper">
- <div id="elgg_horizontal_tabbed_nav">
- <ul>
- <li <?php echo $allselect; ?> ><a href="?type=<?php echo $vars['type']; ?>&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('all'); ?></a></li>
- <li <?php echo $friendsselect; ?> ><a href="?type=<?php echo $vars['type']; ?>&display=friends&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('friends'); ?></a></li>
- <li <?php echo $mineselect; ?> ><a href="?type=<?php echo $vars['type']; ?>&display=mine&content=<?php echo $vars['subtype']; ?>"><?php echo elgg_echo('mine'); ?></a></li>
- </ul>
- </div>
-
- <div class="riverdashboard_filtermenu">
- <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 diff --git a/mod/riverdashboard/views/default/riverdashboard/newestmembers.php b/mod/riverdashboard/views/default/riverdashboard/newestmembers.php deleted file mode 100644 index 34398706f..000000000 --- a/mod/riverdashboard/views/default/riverdashboard/newestmembers.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php
-
- /**
- * Elgg thewire view page
- *
- * @package ElggTheWire
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- *
- */
-
- $newest_members = get_entities_from_metadata('icontime', '', 'user', '', 0, 20);
-
-?>
-
-<div class="sidebarBox">
-<h3>Recent members</h3>
-<div class="membersWrapper">
-<?php
- foreach($newest_members as $mem){
- echo "<div class=\"recentMember\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny')) . "</div>";
- }
-?>
-<div class="clearfloat"></div>
-</div>
-</div>
\ 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 c287ebb3f..000000000 --- a/mod/riverdashboard/views/default/riverdashboard/sitemessage.php +++ /dev/null @@ -1,97 +0,0 @@ -<?php
-
- /**
- * Elgg thewire view page
- *
- * @package ElggTheWire
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- *
- */
-
- //grab the current site message
- $site_message = get_entities("object", "sitemessage", 0, "", 1);
- foreach($site_message as $mes){
- $message = $mes->description;
- $dateStamp = friendly_time($mes->time_created);
- $delete = elgg_view("output/confirmlink",array(
- 'href' => $vars['url'] . "action/riverdashboard/delete?message=" . $mes->guid,
- 'text' => elgg_echo('delete'),
- 'confirm' => elgg_echo('deleteconfirm'),
- ));
- }
-
-?>
-
- <div class="contentWrapper welcomemessage">
-
-<?php
-
- //if there is a site message
- if($site_message){
-
-?>
-
- <?php
-
- 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="manifest_details">{$link}</a></p>
- <div class="manifest_file">
- {$input_area}<br />{$submit_input}
- </div>
-
-EOT;
-?>
-
-<?php
- //display the form
- echo elgg_view('input/form', array('action' => "{$vars['url']}action/$action", 'body' => $form_body));
-
- }//end of admin if statement
-?>
-<?php
- //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="manifest_details">{$link}</a></p>
- <div class="manifest_file">
- {$input_area}<br />{$submit_input}
- </div>
-EOT;
-?>
-<?php
- //display the form
- echo elgg_view('input/form', array('action' => "{$vars['url']}action/$action", 'body' => $form_body));
-
- }//end of admin check
- }//end of main if
-?>
-</div>
\ No newline at end of file diff --git a/mod/riverdashboard/views/default/riverdashboard/welcome.php b/mod/riverdashboard/views/default/riverdashboard/welcome.php deleted file mode 100644 index c589cffc2..000000000 --- a/mod/riverdashboard/views/default/riverdashboard/welcome.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php
-
- /**
- * Elgg thewire view page
- *
- * @package ElggTheWire
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- *
- */
-
-?>
-<div id="content_area_user_title">
-<h2>Welcome <?php echo $_SESSION['user']->name; ?></h2>
-</div>
\ No newline at end of file diff --git a/mod/riverdashboard/views/default/widgets/river_widget/edit.php b/mod/riverdashboard/views/default/widgets/river_widget/edit.php deleted file mode 100644 index 8a18a1036..000000000 --- a/mod/riverdashboard/views/default/widgets/river_widget/edit.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - /** - * Edit the widget - * - * @package ElggRiver - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.com/ - */ -?> -<p> - <?php echo elgg_echo('river:widget:label:displaynum'); ?> - - <select name="params[num_display]"> - <option value="5" <?php if ($vars['entity']->num_display == 5) echo " selected=\"yes\" "; ?>>5</option> - <option value="8" <?php if (($vars['entity']->num_display == 8)) echo " selected=\"yes\" "; ?>>8</option> - <option value="12" <?php if ($vars['entity']->num_display == 12) echo " selected=\"yes\" "; ?>>12</option> - <option value="15" <?php if ($vars['entity']->num_display == 15) echo " selected=\"yes\" "; ?>>15</option> - </select> - - <?php echo elgg_echo('river:widget:type'); ?> - - <select name="params[content_type]"> - <option value="mine" <?php if ($vars['entity']->content_type == 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:mine");?></option> - <option value="friends" <?php if (($vars['entity']->content_type != 'mine')) echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:friends");?></option> - </select> -</p>
\ No newline at end of file diff --git a/mod/riverdashboard/views/default/widgets/river_widget/view.php b/mod/riverdashboard/views/default/widgets/river_widget/view.php deleted file mode 100644 index 0a8f23c41..000000000 --- a/mod/riverdashboard/views/default/widgets/river_widget/view.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - /** - * View the widget - * - * @package ElggRiver - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.com/ - */ - - $owner = page_owner_entity(); - - //get the type - mine or friends - $type = $vars['entity']->content_type; - if(!$type) - $type = "mine"; - - //based on type grab the correct content type - if($type == "mine") - $content_type = ''; - else - $content_type = 'friend'; - - //get the number of items to display - $limit = $vars['entity']->num_display; - if(!$limit) - $limit = 4; - - //grab the river - $river = elgg_view_river_items($owner->getGuid(), 0, $content_type, $content[0], $content[1], '', $limit,0,0,false); - - //display - echo "<div class=\"contentWrapper\">"; - if($type != 'mine') - echo "<h3>" . elgg_echo("Friends") . "</h3>"; - echo $river; - echo "</div>"; - -?>
\ No newline at end of file |
