]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added the beginnings of a new method for displaying the latest content from each...
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 30 Mar 2010 18:56:58 +0000 (18:56 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 30 Mar 2010 18:56:58 +0000 (18:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5554 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/file/start.php
mod/file/views/default/file/groupprofile_files.php
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/profileitems.php

index e3b5497e6044b8c93b20d0b245740b4046ae1f78..1345dec449776d303dfc692290a55242388d606d 100644 (file)
@@ -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');
index 44439852244bf65bec9b4cdadeea5c50370a474d..295c99a1e278f1c4b84aea19b71314482fa5a766 100644 (file)
@@ -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
 
index d4fac1b2247b7b2ae0f052c0e59b3aac627b7cab..3bb551035c7ce9817f8593c692ba5dbbc50fd420 100644 (file)
        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;
        float:left;
        margin-top:20px;
 }
+*/
 /* edit group page */
 .delete_group {
        float: right;
index 2050ae941c1bfa39fd681cc7c97a208411774b2f..f3805ed70d146cc5f8311844bd3c06d4eb63121f 100644 (file)
@@ -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']));
         //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>