]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Beginnings of the refreshed groups interface
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 8 Mar 2010 17:43:01 +0000 (17:43 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 8 Mar 2010 17:43:01 +0000 (17:43 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5307 36083f99-b078-4883-b0ff-0f9b5a30f544

24 files changed:
mod/groups/addtopic.php
mod/groups/all.php
mod/groups/discussions.php
mod/groups/edit.php
mod/groups/edittopic.php
mod/groups/forum.php
mod/groups/groupprofile.php
mod/groups/index.php
mod/groups/invitations.php
mod/groups/invite.php
mod/groups/languages/en.php
mod/groups/manifest.xml
mod/groups/membership.php
mod/groups/membershipreq.php
mod/groups/new.php
mod/groups/start.php
mod/groups/topicposts.php
mod/groups/views/default/forms/forums/addtopic.php
mod/groups/views/default/forum/topics.php
mod/groups/views/default/forum/viewposts.php
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/group_sort_menu.php
mod/groups/views/default/groups/groupprofile.php
mod/groups/views/default/groups/side_menu.php

index 39ef62eec381045ff5911a457ecd23ab7ef50427..04a0407458e8cc4bc606b24f7ae235d64cc04d0f 100644 (file)
@@ -21,7 +21,7 @@
                
        // sort the display
            $area2 = elgg_view("forms/forums/addtopic");
-           $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);
+           $body = elgg_view_layout('one_column_with_sidebar','',$area1.$area2);
                
        // Display page
                page_draw(elgg_echo('groups:addtopic'),$body);
index fd60ce90af2a2cba2e9934f9da1c2028d48331ca..685fb0811e60ac82064affadfb4ab10a1e778420 100644 (file)
@@ -61,7 +61,7 @@
        $title = sprintf(elgg_echo("groups:all"),page_owner_entity()->name);
        $area2 = elgg_view_title($title);
        $area2 .= elgg_view('groups/contentwrapper', array('body' => elgg_view("groups/group_sort_menu", array("count" => $group_count, "filter" => $filter)) . $objects));
-       $body = elgg_view_layout('sidebar_boxes',$area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar',$area1,$area2);
        
        // Finally draw the page
        page_draw($title, $body);
index 64b73cd2b48a0056120f3632f9c9e40d5268fa63..31dd2b7ef5fb6f2d5b93cf24520523f448619e7f 100644 (file)
@@ -23,7 +23,7 @@
            $area2 .= list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 40, 0, 0, false, true);
            set_context('groups');
            
-           $body = elgg_view_layout("two_column_left_sidebar", '', $area2);
+           $body = elgg_view_layout("one_column_with_sidebar", '', $area2);
         
     // Display page
                page_draw(elgg_echo('groups:latestdiscussion'),$body);
index 2e99b578c07c7c720555b4f17c6ae2c7929b5f31..140f8c3f80fd332d0f19dd0cd316cc259091aba7 100644 (file)
@@ -27,7 +27,7 @@
                $body .= elgg_view('groups/contentwrapper',array('body' => elgg_echo('groups:noaccess')));
        }
        
-       $body = elgg_view_layout('two_column_left_sidebar', '', $body);
+       $body = elgg_view_layout('one_column_with_sidebar', '', $body);
        
        page_draw($title, $body);
 ?>
\ No newline at end of file
index 494c94ab9416dd5e77c8751beef1af0f035ae8fc..2f8f14a02bfc91acee4fa61e7c12630f062c3836 100644 (file)
@@ -28,7 +28,7 @@
                
        // sort the display
            $area2 = elgg_view("forms/forums/edittopic", array('entity' => $topic));
-           $body = elgg_view_layout('two_column_left_sidebar', '', $area2);
+           $body = elgg_view_layout('one_column_with_sidebar', '', $area2);
                
        // Display page
                page_draw(elgg_echo('groups:edittopic'),$body);
index 91a59237351d11149f8d2e0975bce619022a70b9..f9c5131cc30cd34b7d65533663a456906a5d1999 100644 (file)
@@ -23,7 +23,7 @@
        $area2 = elgg_view("forum/topics", array('topics' => $topics));
        set_context('groups');
        
-       $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar','', $area1.$area2);
        
        $title = elgg_echo('item:object:groupforumtopic');
        
index 80cbd41eeab6595ece569388e8f7314ea9565e71..b279d88ab677756702a59ac10b329dfa88b9aa99 100644 (file)
 
                }
                
-               $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2, $area3);
+               $body = elgg_view_layout('one_column_with_sidebar', $area3, $area1.$area2);
        } else {
                $title = elgg_echo('groups:notfound');
                
                $area2 = elgg_view_title($title);
                $area2 .= elgg_view('groups/contentwrapper',array('body' => elgg_echo('groups:notfound:details')));
                
-               $body = elgg_view_layout('two_column_left_sidebar', "", $area2,"");
+               $body = elgg_view_layout('one_column_with_sidebar', '', $area2);
        }
                
        // Finally draw the page
index b21d5962b6fa48580f7e9883ad541fe64f1749e9..36137033d62bd18982ecf98da455e63a4d19547b 100644 (file)
        $limit = get_input("limit", 10);
        $offset = get_input("offset", 0);
        
-       $title = sprintf(elgg_echo("groups:owned"),page_owner_entity()->name);
+       $title = elgg_echo("groups:owned");
 
        // Get objects
-       $area2 = elgg_view_title($title);
+       $area2 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups'));
        
        set_context('search');
        $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => page_owner(), 'limit' => $limit, 'full_view' => FALSE));
        set_context('groups');
        
        $area2 .= $objects;
-       $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar','', $area1.$area2);
        
        // Finally draw the page
        page_draw($title, $body);
index fa2156b35ec3c7478e6f22dcf763680ce430acf2..e9b8f1cf17f3cc2192a5e3ab963640578746200e 100644 (file)
@@ -28,6 +28,6 @@ if ($user) {
        $area2 .= elgg_echo("groups:noaccess");
 }
 
-$body = elgg_view_layout('two_column_left_sidebar', '', $area2);
+$body = elgg_view_layout('one_column_with_sidebar', '', $area2);
 
 page_draw($title, $body);
\ No newline at end of file
index 3791b9b50b72780d8b9042d0774935ee71923859..1ce9fd86361552addc23018dcd00d6faecc9d56a 100644 (file)
@@ -28,7 +28,7 @@
                $area2 .= elgg_echo("groups:noaccess");
        }
        
-       $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar', '', $area1.$area2);
        
        page_draw($title, $body);
 ?>
\ No newline at end of file
index 6c0d8ef26dc8fac81299e926a067ee05cf843720..264b6fb7f178d82b9505c13b3d707a012e462fdd 100644 (file)
@@ -15,9 +15,9 @@
                 * Menu items and titles
                 */
 
-                       'groups' => "Groups",
-                       'groups:owned' => "Groups you own",
-                       'groups:yours' => "Your groups",
+                       'groups' => "My groups",
+                       'groups:owned' => "Groups I own",
+                       'groups:yours' => "My groups",
                        'groups:user' => "%s's groups",
                        'groups:all' => "All site groups",
                        'groups:new' => "Create a new group",
index e2c36f92f3abd49ece9f03e2a0e59c7da5127c89..86a7dfa1d01ce11986bf66951b516097bcd88744 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <plugin_manifest>
        <field key="author" value="Curverider ltd" />
-       <field key="version" value="1.7" />
+       <field key="version" value="1.8" />
        <field key="description" value="Provides group support for elgg" />
        <field key="website" value="http://www.elgg.org/" />
        <field key="copyright" value="(C) Curverider 2008-2010" />
index 9226a56d5df5721aabeeb458309ce470c5e8c0c9..66cd5ed16e1a9e1895df0900423f2985571af0ac 100644 (file)
        
        if (page_owner() == $_SESSION['user']->guid) {
                $title = elgg_echo("groups:yours");
-       } else $title = sprintf(elgg_echo("groups:owned"),page_owner_entity()->name);
+       } else $title = elgg_echo("groups:owned");
 
        // Get objects
-       $area2 = elgg_view_title($title);
+       $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'groups'));
        
        set_context('search');
-       //$objects = list_entities("group", "", page_owner(), $limit, false);
        $objects = list_entities_from_relationship('member',page_owner(),false,'group','',0, $limit,false, false);
        set_context('groups');
        
        $area2 .= $objects;
-       $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar','',$area1.$area2);
        
        // Finally draw the page
        page_draw($title, $body);
index 368057711a113068f6abc4bd71bb80755331ef72..a812a213cfd4ed222dd4664ecf8d418e7d24431f 100644 (file)
@@ -30,7 +30,7 @@
                $area2 .= elgg_echo("groups:noaccess");
        }
        
-       $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar', '',$area1.$area2);
        
        page_draw($title, $body);
 ?>
\ No newline at end of file
index b2a24f80fa2df070aa6b9ad29c6ddf6e85e9f7de..3459c3f4a063126e1b37992df1e7a4af058d619e 100644 (file)
@@ -16,7 +16,7 @@
        $area2 = elgg_view_title($title);
        $area2 .= elgg_view("forms/groups/edit");
        
-       $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+       $body = elgg_view_layout('one_column_with_sidebar', '',$area1.$area2);
        
        page_draw($title, $body);
 ?>
\ No newline at end of file
index b9dde5d10a3b19e9cb5924815f277289f6119c92..d43f33162c55d550061ee89d10b2c16498f4bba4 100644 (file)
         * Initialise the groups plugin.
         * Register actions, set up menus
         */
-       function groups_init()
-       {
+       function groups_init() {
 
                global $CONFIG;
 
                // Set up the menu for logged in users
-               if (isloggedin())
-               {
-                       add_menu(elgg_echo('groups'), $CONFIG->wwwroot . "pg/groups/world/");
-                       //add_menu(elgg_echo('groups:alldiscussion'),$CONFIG->wwwroot."mod/groups/discussions.php");
-               }
-               else
-               {
-                       add_menu(elgg_echo('groups'), $CONFIG->wwwroot . "pg/groups/world/");
+               if (isloggedin()) {
+                       add_menu(elgg_echo('groups'), $CONFIG->wwwroot . "pg/groups/member/");
                }
 
                // Register a page handler, so we can have nice URLs
                // Add submenu options
                        if (get_context() == 'groups' && !($page_owner instanceof ElggGroup)) {
                                if (isloggedin()) {
-                                       add_submenu_item(elgg_echo('groups:new'), $CONFIG->wwwroot."pg/groups/new/", '1groupslinks');
                                        add_submenu_item(elgg_echo('groups:owned'), $CONFIG->wwwroot . "pg/groups/owned/" . $_SESSION['user']->username, '1groupslinks');
                                        add_submenu_item(elgg_echo('groups:yours'), $CONFIG->wwwroot . "pg/groups/member/" . $_SESSION['user']->username, '1groupslinks');
-                                       add_submenu_item(elgg_echo('groups:invitations'), $CONFIG->wwwroot . "pg/groups/invitations/" . $_SESSION['user']->username, '1groupslinks');
                                }
                                add_submenu_item(elgg_echo('groups:all'), $CONFIG->wwwroot . "pg/groups/world/", '1groupslinks');
+                       
+                               if (isloggedin()) {
+                                       add_submenu_item(elgg_echo('groups:invitations'), $CONFIG->wwwroot . "pg/groups/invitations/" . $_SESSION['user']->username, '1groupslinks');
+                               }
                        }
 
        }
index bd2d3b1ed0d0f385aaeca0a499634d8ce3574f1a..70d3c199ba72125b6b705b48d3a5477540251917 100644 (file)
@@ -29,7 +29,7 @@
          
     // Display them
            $area2 = elgg_view("forum/viewposts", array('entity' => $topic));
-           $body = elgg_view_layout("two_column_left_sidebar", '' , $area2);
+           $body = elgg_view_layout("one_column_with_sidebar", '', $area2);
                
        // Display page
                page_draw($topic->title,$body);
index d002b110aae10b98961629d47de0b17427bad1be..e9fbb710997971740851fd35f2f6bb7cfe34c699 100644 (file)
            echo elgg_view_title(elgg_echo("groups:addtopic"));
            
 ?>
-<div class="contentWrapper">
-       <!-- display the input form -->
-       <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
-       <?php echo elgg_view('input/securitytoken'); ?>
+<!-- display the input form -->
+<form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post" class="margin_top">
+<?php echo elgg_view('input/securitytoken'); ?>
+
+       <p>
+               <label><?php echo elgg_echo("title"); ?><br />
+               <?php
+            //display the topic title input
+                       echo elgg_view("input/text", array(
+                                                               "internalname" => "topictitle",
+                                                               "value" => $title,
+                                                                                               ));
+               ?>
+               </label>
+       </p>
        
-               <p>
-                       <label><?php echo elgg_echo("title"); ?><br />
-                       <?php
-                //display the topic title input
-                               echo elgg_view("input/text", array(
-                                                                       "internalname" => "topictitle",
-                                                                       "value" => $title,
-                                                                                                       ));
-                       ?>
-                       </label>
-               </p>
-               
-               <!-- display the tag input -->
-               <p>
-                       <label><?php echo elgg_echo("tags"); ?><br />
-                       <?php
+       <!-- display the tag input -->
+       <p>
+               <label><?php echo elgg_echo("tags"); ?><br />
+               <?php
 
-                               echo elgg_view("input/tags", array(
-                                                                       "internalname" => "topictags",
-                                                                       "value" => $tags,
-                                                                                                       ));
-                       
-                       ?>
-                       </label>
-               </p>
+                       echo elgg_view("input/tags", array(
+                                                               "internalname" => "topictags",
+                                                               "value" => $tags,
+                                                                                               ));
                
-               <!-- topic message input -->
-               <p class="longtext_editarea">
-                       <label><?php echo elgg_echo("groups:topicmessage"); ?><br />
-                       <?php
+               ?>
+               </label>
+       </p>
+       
+       <!-- topic message input -->
+       <p class="longtext_editarea">
+               <label><?php echo elgg_echo("groups:topicmessage"); ?><br />
+               <?php
 
-                               echo elgg_view("input/longtext",array(
-                                                                       "internalname" => "topicmessage",
-                                                                       "value" => $message,
-                                                                                                       ));
-                       ?>
-                       </label>
-               </p>
-               
-               <!-- set the topic status -->
-               <p>
-                   <label><?php echo elgg_echo("groups:topicstatus"); ?><br />
-                   <select name="status">
-                       <option value="open" <?php if($status == "") echo "SELECTED";?>><?php echo elgg_echo('groups:topicopen'); ?></option>
-                       <option value="closed" <?php if($status == "closed") echo "SELECTED";?>><?php echo elgg_echo('groups:topicclosed'); ?></option>
-                   </select>
-                   </label>
-               </p>
-               
-               <!-- access -->
-               <p>
-                       <label>
-                               <?php echo elgg_echo('access'); ?><br />
-                               <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?>
-                       </label>
-               </p>
-               
-               <!-- required hidden info and submit button -->
-               <p>
-                       <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" />
-                       <input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" />
-               </p>
+                       echo elgg_view("input/longtext",array(
+                                                               "internalname" => "topicmessage",
+                                                               "value" => $message,
+                                                                                               ));
+               ?>
+               </label>
+       </p>
+       
+       <!-- set the topic status -->
+       <p>
+           <label><?php echo elgg_echo("groups:topicstatus"); ?><br />
+           <select name="status">
+               <option value="open" <?php if($status == "") echo "SELECTED";?>><?php echo elgg_echo('groups:topicopen'); ?></option>
+               <option value="closed" <?php if($status == "closed") echo "SELECTED";?>><?php echo elgg_echo('groups:topicclosed'); ?></option>
+           </select>
+           </label>
+       </p>
        
-       </form>
-</div>
+       <!-- access -->
+       <p>
+               <label>
+                       <?php echo elgg_echo('access'); ?><br />
+                       <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?>
+               </label>
+       </p>
+       
+       <!-- required hidden info and submit button -->
+       <p>
+               <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" />
+               <input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" />
+       </p>
+
+</form>
index c4cd9becfe6a95acdcb74daed6bd4f62da13b120..fdeffa564242d2609d2ad9a5515b63f128ed4285 100644 (file)
@@ -11,7 +11,7 @@
         
 ?>
 
-<div id="content_area_group_title"><h2><?php echo elgg_echo("groups:forum"); ?></h2></div>
+<h2><?php echo elgg_echo("groups:forum"); ?></h2>
 
 <?php
     //only show the add link if the user is a member
index e7e194691e8fbd5427ae3c709c7c50ae0ccd43e0..f2599f861e5365c56b4c79377348bd1487af1387 100644 (file)
@@ -29,8 +29,8 @@
                                                                                        ));
 
 ?>
-    <!-- grab the topic title -->
-        <div id="content_area_group_title"><h2><?php echo $vars['entity']->title; ?></h2></div>
+<!-- grab the topic title -->
+<h2><?php echo $vars['entity']->title; ?></h2>
 <?php
                                                                                        
     foreach($vars['entity']->getAnnotations('group_topic_post', 50, $offset, "asc") as $post) {
index bc8d2bfc028599200910b71c21c8531fe569fcb2..77568b0beb926a3f41e257ad74b1cee723c8bb7c 100644 (file)
@@ -1,17 +1,17 @@
 <?php
-
-       /**
-        * Elgg Groups css
-        * 
-        * @package groups
-        * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
-        * @author Curverider Ltd <info@elgg.com>
-        * @copyright Curverider Ltd 2008-2010
-        * @link http://elgg.com/
-        */
+/**
+ * Elgg Groups css
+ * 
+ * @package groups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd <info@elgg.com>
+ * @copyright Curverider Ltd 2008-2010
+ * @link http://elgg.com/
+ */
 
 ?>
 
+/*
 #content_area_group_title h2 {
        color:#0054A7;
        font-size:1.35em;
@@ -22,6 +22,7 @@
 #topic_posts #content_area_group_title h2 {
        margin:0 0 0 0;
 }
+*/
 
 #two_column_left_sidebar_maincontent #owner_block_content {
        margin:0 0 10px 0 !important;
        margin:0;
 }
 #group_members {
-       margin:10px;
-       -webkit-border-radius: 8px; 
-       -moz-border-radius: 8px;
-       background: white;
+       margin:10px 0;
 }
 
 #right_column {
        margin:0 10px 0 10px;
 
 }
-/* IE 6 fixes */
-* html #left_column { 
-       margin:0 0 0 5px;
-}
-* html #right_column { 
-       margin:0 5px 0 0;
-}
 
-#group_members h2,
-#right_column h2,
-#left_column h2,
-#fullcolumn h2 {
-       margin:0 0 10px 0;
-       padding:5px;
-       color:#0054A7;
-       font-size:1.25em;
-       line-height:1.2em;
-}
-#fullcolumn .contentWrapper {
-       margin:0 10px 20px 10px;
-       padding:0 0 5px;
-}
 
 .member_icon {
-       margin:0 0 6px 6px;
+       margin:6px 6px 0 0;
        float:left;
 }
 
-/* IE6 */
-* html #topic_post_tbl { width:676px !important;}
-
 /* all browsers - force tinyMCE on edit comments to be full-width */
 .edit_forum_comments .defaultSkin table.mceLayout {
        width: 636px !important;
        margin:0 10px 5px 10px;
 }
 .forum_latest {
-       margin:0 10px 5px 10px;
+       margin:5px 0 5px 0;
        background: #dedede;
        padding:5px;
        -webkit-border-radius: 4px; 
index 7314507e03663c8e9e0a692b82e50847b7f41a95..6c7ec3359fa077b90f7570db2ad6eb26665fe972 100644 (file)
@@ -14,7 +14,7 @@
         $url = $vars['url'] . "pg/groups/world/";
 
 ?>
-<div id="elgg_horizontal_tabbed_nav">
+<div class="elgg_horizontal_tabbed_nav margin_top">
 <ul>
        <li <?php if($filter == "active") echo "class='selected'"; ?>><a href="<?php echo $url; ?>?filter=active"><?php echo elgg_echo('groups:latestdiscussion'); ?></a></li>
        <li <?php if($filter == "newest") echo "class='selected'"; ?>><a href="<?php echo $url; ?>?filter=newest"><?php echo elgg_echo('groups:newest'); ?></a></li>
index 1c989c9a843f4f3681d3c29e39b69769d8de994a..426eaeae64709910a57565e5dd0ba5ad290d95f6 100644 (file)
@@ -18,7 +18,7 @@
 ?>
 
 <div id="groups_info_column_right"><!-- start of groups_info_column_right -->
-       <div id="groups_icon_wrapper"><!-- start of groups_icon_wrapper -->
+       <div id="groups_icon_wrapper" class="margin_top"><!-- start of groups_icon_wrapper -->
 
                <?php
                        echo elgg_view(
@@ -41,7 +41,7 @@
        </div><!-- end of group_stats -->
 </div><!-- end of groups_info_column_right -->
 
-<div id="groups_info_column_left"><!-- start of groups_info_column_left -->
+<div id="groups_info_column_left" class="margin_top"><!-- start of groups_info_column_left -->
        <?php
                if ($vars['full'] == true) {
                        if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0){
index 7de921ed0a5cd694eef7e20cd3c6249525901cf6..67cea16349481d24a540b1ccd15c2c231bda8f04 100644 (file)
@@ -1,10 +1,8 @@
-<div class="sidebarBox">
-<div id="owner_block_submenu"><ul>
+<div class="submenu page_navigation"><ul>
 <?php
        if(isloggedin()){
                echo "<li><a href=\"{$vars['url']}pg/groups/member/{$_SESSION['user']->username}\">". elgg_echo('groups:yours') ."</a></li>";
                echo "<li><a href=\"{$vars['url']}pg/groups/invitations/{$_SESSION['user']->username}\">". elgg_echo('groups:invitations') ."</a></li>";
-               echo "<li><a href=\"{$vars['url']}pg/groups/new/\">". elgg_echo('groups:new') ."</a></li>";
        }
 ?>
-</ul></div></div>
\ No newline at end of file
+</ul></div>
\ No newline at end of file