aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/groups/profileitems.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/groups/profileitems.php')
-rw-r--r--mod/groups/views/default/groups/profileitems.php56
1 files changed, 25 insertions, 31 deletions
diff --git a/mod/groups/views/default/groups/profileitems.php b/mod/groups/views/default/groups/profileitems.php
index f3805ed70..f7eebf69c 100644
--- a/mod/groups/views/default/groups/profileitems.php
+++ b/mod/groups/views/default/groups/profileitems.php
@@ -1,37 +1,31 @@
<?php
- /**
- * Elgg groups items view.
- * This is the messageboard, members, pages and latest forums posts. Each plugin will extend the views
- *
- * @package ElggGroups
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider
- * @copyright Curverider Ltd 2008-2010
- * @link http://elgg.com/
- */
-
- //forum
- echo "<div class='group_profile forum_latest clearfloat'>";
- echo elgg_view("groups/forum_latest",array('entity' => $vars['entity']));
- echo "</div>";
-/*
- //right column
- echo "<div class='group_profile_column right'>";
- echo elgg_view("groups/right_column",array('entity' => $vars['entity']));
- echo "</div>";
-
- //left column
- echo "<div class='group_profile_column left'>";
- echo elgg_view("groups/left_column",array('entity' => $vars['entity']));
- echo "</div>";
+/**
+* Elgg groups - group homepage (profile) - provide an area for tools to extend with their latest content.
+*
+* @package ElggGroups
+* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+* @author Curverider
+* @copyright Curverider Ltd 2008-2010
+* @link http://elgg.com/
*/
- // tools widget area
- echo "<div id='group_tools_latest' class='clearfloat'>";
- echo "<div class='group_tool_widget'><h3>Dummy Placeholder Group Tool Widget</h3></div>"; //test
- echo elgg_view("groups/tool_latest",array('entity' => $vars['entity']));
- echo "<div class='group_tool_widget'><h3>Another Placeholder for testing</h3></div>"; //test
- echo "</div>";
+// tools widget area
+echo "<div id='group_tools_latest' class='clearfloat'>";
+
+ // activity latest
+ echo "<div class='group_tool_widget activity clearfloat'>";
+ echo elgg_view("groups/activity_latest",array('entity' => $vars['entity']));
+ echo "</div>";
+
+ // forum latest
+ echo "<div class='group_tool_widget forum clearfloat'>";
+ echo elgg_view("groups/forum_latest",array('entity' => $vars['entity']));
+ echo "</div>";
+
+ // enable tools to extend this area
+ echo elgg_view("groups/tool_latest",array('entity' => $vars['entity']));
+
+echo "</div>";
?>
<script type="text/javascript">
$(document).ready(function () { // subclass every other group tool widget