diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-30 18:56:58 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-30 18:56:58 +0000 |
commit | 193fc7fd52fbb6df2417749d693447066c5baf12 (patch) | |
tree | 3ba94ea91744b56992d330e20b52e0c909811f2a | |
parent | 8bf0f9eeffdc7accc2dd4b5113399f5054b31204 (diff) | |
download | elgg-193fc7fd52fbb6df2417749d693447066c5baf12.tar.gz elgg-193fc7fd52fbb6df2417749d693447066c5baf12.tar.bz2 |
Added the beginnings of a new method for displaying the latest content from each tool on a groups profile page.
git-svn-id: http://code.elgg.org/elgg/trunk@5554 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/file/start.php | 2 | ||||
-rw-r--r-- | mod/file/views/default/file/groupprofile_files.php | 4 | ||||
-rw-r--r-- | mod/groups/views/default/groups/css.php | 22 | ||||
-rw-r--r-- | mod/groups/views/default/groups/profileitems.php | 18 |
4 files changed, 40 insertions, 6 deletions
diff --git a/mod/file/start.php b/mod/file/start.php index e3b5497e6..1345dec44 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -37,7 +37,7 @@ elgg_extend_view('css', 'file/css'); // extend group main page - elgg_extend_view('groups/left_column','file/groupprofile_files'); + elgg_extend_view('groups/tool_latest','file/groupprofile_files'); // Register a page handler, so we can have nice URLs register_page_handler('file','file_page_handler'); diff --git a/mod/file/views/default/file/groupprofile_files.php b/mod/file/views/default/file/groupprofile_files.php index 444398522..295c99a1e 100644 --- a/mod/file/views/default/file/groupprofile_files.php +++ b/mod/file/views/default/file/groupprofile_files.php @@ -16,8 +16,8 @@ $(document).ready(function () { }); /* end document ready function */ </script> -<div id="filerepo_widget_layout"> -<h2><?php echo elgg_echo("file:group"); ?></h2> +<div class="group_tool_widget"> +<h3><?php echo elgg_echo("file:group"); ?></h3> <?php diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php index d4fac1b22..3bb551035 100644 --- a/mod/groups/views/default/groups/css.php +++ b/mod/groups/views/default/groups/css.php @@ -98,6 +98,27 @@ border-bottom:1px solid #CCCCCC; padding-bottom:5px; } + +/* tool content boxes on group profile page */ +#group_tools_latest { + min-height: 300px; + margin-top:20px; +} +.group_tool_widget { + float:left; + margin-right:30px; + margin-bottom:20px; + min-height:200px; + width:350px; +} +.group_tool_widget.odd { + margin-right:0; +} +.group_tool_widget h3 { + border-bottom:1px solid #CCCCCC; + padding-bottom:5px; +} +/* .group_profile_column.right { float:right; width:350px; @@ -108,6 +129,7 @@ float:left; margin-top:20px; } +*/ /* edit group page */ .delete_group { float: right; diff --git a/mod/groups/views/default/groups/profileitems.php b/mod/groups/views/default/groups/profileitems.php index 2050ae941..f3805ed70 100644 --- a/mod/groups/views/default/groups/profileitems.php +++ b/mod/groups/views/default/groups/profileitems.php @@ -14,7 +14,7 @@ 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'])); @@ -23,6 +23,18 @@ //left column echo "<div class='group_profile_column left'>"; echo elgg_view("groups/left_column",array('entity' => $vars['entity'])); - echo "</div>"; + echo "</div>"; +*/ -?>
\ No newline at end of file + // 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>"; +?> +<script type="text/javascript"> +$(document).ready(function () { // subclass every other group tool widget + $('#group_tools_latest').find('.group_tool_widget:odd').addClass('odd'); +}); +</script> |