diff options
Diffstat (limited to 'mod')
4 files changed, 77 insertions, 2 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php index 56ca41d32..737fd4446 100644 --- a/mod/riverdashboard/index.php +++ b/mod/riverdashboard/index.php @@ -24,6 +24,19 @@ $type = '';
$subtype = '';
}
+
+ //set a view for the wire to extend
+ $area1 = elgg_view("activity/thewire");
+
+ //set a view to display newest members
+ $area1 .= elgg_view("riverdashboard/newestmembers");
+
+ //set a view to display a welcome message
+ $body = elgg_view("riverdashboard/welcome");
+
+ //set a view to display a site wide message
+ $body .= elgg_view("riverdashboard/sitemessage");
+
switch($orient) {
case 'mine':
@@ -39,13 +52,13 @@ }
$river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '');
- $body = elgg_view('riverdashboard/nav',array(
+ $body .= elgg_view('riverdashboard/nav',array(
'type' => $type,
'subtype' => $subtype,
'orient' => $orient
));
$body .= $river;
- echo page_draw(elgg_echo('dashboard'),elgg_view_layout('sidebar_boxes','',$body));
+ echo page_draw(elgg_echo('dashboard'),elgg_view_layout('sidebar_boxes',$area1,$body));
?>
\ No newline at end of file diff --git a/mod/riverdashboard/views/default/riverdashboard/newestmembers.php b/mod/riverdashboard/views/default/riverdashboard/newestmembers.php new file mode 100644 index 000000000..f25424a9e --- /dev/null +++ b/mod/riverdashboard/views/default/riverdashboard/newestmembers.php @@ -0,0 +1,25 @@ +<?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 id="recent_members">
+<h3>Recent members</h3>
+<?php
+ foreach($newest_members as $mem){
+ echo "<div style=\"float:left;\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny')) . "</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 new file mode 100644 index 000000000..610e84504 --- /dev/null +++ b/mod/riverdashboard/views/default/riverdashboard/sitemessage.php @@ -0,0 +1,18 @@ +<?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="sitewide_message">
+<p>This would be a message from the site admin. This would be a message from the site admin. This would be a message from the site admin. This would be a message from the site admin.</p>
+</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 new file mode 100644 index 000000000..e39153ee7 --- /dev/null +++ b/mod/riverdashboard/views/default/riverdashboard/welcome.php @@ -0,0 +1,19 @@ +<?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="welcome_message">
+<p><b>Welcome <?php echo $_SESSION['user']->name; ?></b></p>
+<p>On this page you will find your gateway to the site and the recent activity from your network.</p>
+</div>
\ No newline at end of file |