]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Groups profile page tool widget boxes updated.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 13 Apr 2010 16:07:52 +0000 (16:07 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 13 Apr 2010 16:07:52 +0000 (16:07 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5716 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/views/default/bookmarks/group_bookmarks.php
mod/file/views/default/file/groupprofile_files.php
mod/groups/languages/en.php
mod/groups/views/default/forum/topicposts.php
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/forum_latest.php
mod/groups/views/default/groups/profileitems.php
mod/riverdashboard/views/default/river/item/wrapper.php

index 2f677fb44d81fe86ad40596e7fd47e71dc3f02ce..e4cdedeacd36eda5335d940a706e2f82bd325781 100755 (executable)
@@ -4,7 +4,7 @@
 $bookmarks = elgg_get_entities(array('type' => 'object', 'subtype' => 'bookmarks', 
                        'container_guids' => $vars['entity']->container_guid, 'limit' => 6));
 
-echo "<div class='group_tool_widget'><h3>".elgg_echo('bookmarks:group')."</h3>";
+echo "<div class='group_tool_widget bookmarks'><h3>".elgg_echo('bookmarks:group')."</h3>";
        
 if($bookmarks){
        foreach($bookmarks as $b){
@@ -14,21 +14,25 @@ if($bookmarks){
 
                //get the time
                $friendlytime = friendly_time($b->time_created);
+               
+           $info = "<div class='entity_listing_icon'>" . elgg_view('profile/icon',array('entity' => $b->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
 
-               //get the bookmark title
-               $info = "<div class='river_object_bookmarks_create'><p class=\"shares_title\"><a href=\"{$b->address}\">{$b->title}</a></p></div>";
+               //get the bookmark entries body
+               $info .= "<div class='entity_listing_info'><p class='entity_title'><a href=\"{$b->address}\">{$b->title}</a></p>";
                                
                //get the user details
-               $info .= "<p class=\"shares_timestamp\"><small>{$friendlytime} ";
+               $info .= "<p class='entity_subtext'>{$friendlytime} ";
 
                //get the bookmark description
-               if($s->description)
+               // @todo - do we even have a description anymore? or is this the current bookmarks note ?
+               if($s->description) {
                        $info .= "<a href=\"javascript:void(0);\" class=\"share_more_info\">".elgg_echo('bookmarks:more')."</a></small></p><div class=\"share_desc\"><p>{$s->description}</p></div>";
-               else 
-                       $info .= "</small></p>";
-       
+               } else { 
+                       $info .= "</p>";
+               }
+               $info .= "</div>";
                //display 
-               echo "<div class='shares_widget_content'>" . $info . "</div>";
+               echo "<div class='entity_listing clearfloat'>" . $info . "</div>";
        } 
 } else {
        echo "<p class='margin_top'>" . elgg_echo("bookmarks:none") . "</p>";
index 295c99a1e278f1c4b84aea19b71314482fa5a766..7902ae91ff08f9bcf2d32583164f47f2f4ac5954 100644 (file)
@@ -16,7 +16,7 @@ $(document).ready(function () {
 }); /* end document ready function */
 </script>
 
-<div class="group_tool_widget"> 
+<div class="group_tool_widget files"> 
 <h3><?php echo elgg_echo("file:group"); ?></h3>
 
 <?php
@@ -24,13 +24,13 @@ $(document).ready(function () {
        //the number of files to display
        $number = (int) $vars['entity']->num_display;
        if (!$number)
-               $number = 10;
+               $number = 6;
        
        //get the group's files
        $files = elgg_get_entities(array('type' => 'object',
                                                                        'subtype' => 'file',
                                                                        'container_guid' => $vars['entity']->guid,
-                                                                       'limit' => $number,
+                                                                       'limit' => $number
        ));
        
        //if there are some files, go get them
@@ -40,14 +40,14 @@ $(document).ready(function () {
             foreach($files as $f){
                
                 $mime = $f->mimetype;
-                echo "<div class=\"filerepo_widget_singleitem\">";
-               echo "<div class=\"filerepo_listview_icon\"><a href=\"{$f->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $f->thumbnail, 'file_guid' => $f->guid)) . "</a></div>";
-               echo "<div class=\"filerepo_widget_content\">";
-               echo "<div class=\"filerepo_listview_title\"><p class=\"filerepo_title\">" . $f->title . "</p></div>";
-               echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>";
+                echo "<div class='entity_listing clearfloat'>";
+               echo "<div class='entity_listing_icon'><a href=\"{$f->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $f->thumbnail, 'file_guid' => $f->guid)) . "</a></div>";
+               echo "<div class='entity_listing_info'>";
+               echo "<p class='entity_title'>" . $f->title . "</p>";
+               echo "<p class='entity_subtext'>" . friendly_time($f->time_created) . "</p>";
                        $description = $f->description;
                        if (!empty($description)) echo "<a href=\"javascript:void(0);\" class=\"show_file_desc\">". elgg_echo('more') ."</a><br /><div class=\"filerepo_listview_desc\">" . $description . "</div>";
-                       echo "</div><div class=\"clearfloat\"></div></div>";
+                       echo "</div></div>";
                                        
                }
                
@@ -55,11 +55,11 @@ $(document).ready(function () {
         //get a link to the users files
         $users_file_url = $vars['url'] . "pg/file/" . page_owner_entity()->username;
                
-        echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></div>";
+        echo "<p><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></p>";
        
        } else {
                
-               echo "<div class=\"forum_latest\">" . elgg_echo("file:none") . "</div>";
+               echo "<p class='margin_top'>" . elgg_echo("file:none") . "</p>";
 
        }
 
index e681e1294745baa24ef44ad200eb35b050b3ad0a..d3f035f5f94174abaf287c8218f2f7f3cdda30f1 100644 (file)
@@ -19,7 +19,7 @@
                        'groups:owned' => "Groups I own",
                        'groups:yours' => "My groups",
                        'groups:user' => "%s's groups",
-                       'groups:all' => "All site groups",
+                       'groups:all' => "All groups",
                        'groups:new' => "Create a new group",
                        'groups:edit' => "Edit group",
                        'groups:delete' => 'Delete group',
index 29ce21358c4da019fb0edb99a2f28505f59efa28..a6a3f6bf0d306c02de918cc8acdbf6b050cd9919 100644 (file)
@@ -32,7 +32,7 @@
                                'text' => elgg_echo('delete'),
                                'confirm' => elgg_echo('deleteconfirm')
                                ))."</span>";
-                       echo "<a class='link' onclick=\"elgg_slide_toggle(this,'.topic','.edit_comment');\">".elgg_echo('edit')."</a>";
+                       echo "<span class='entity_edit'><a class='link' onclick=\"elgg_slide_toggle(this,'.topic','.edit_comment');\">".elgg_echo('edit')."</a></span>";
                        echo "</div>";
 
                }           
index 502c35f52114c5c14a5afc06868200314f1d270c..832692ed9e126320b865a772982672b398a9ac5b 100644 (file)
@@ -57,7 +57,7 @@
 }
 
 
-/* GROUP PROFILE PAGE (a groups homepage) */
+/* GROUP PROFILE PAGE (individual group homepage) */
 .group_profile_column {
        float:left;
        margin-top:10px;
        padding:2px 4px;
        margin:0 0 7px;
 }
-.group_profile.forum_latest {
-       margin-top:20px;
-}
-.group_profile.forum_latest h3 {
-       border-bottom:1px solid #CCCCCC;
-       padding-bottom:5px;
-       color:#555555;
-}
 
 /* tool content boxes on group profile page */
 #group_tools_latest {
 .group_tool_widget {
        float:left;
        margin-right:30px;
-       margin-bottom:20px;
+       margin-bottom:40px;
        min-height:200px;
        width:350px;
 }
        margin-right:0;
 }
 .group_tool_widget h3 {
-       border-bottom:1px solid #CCCCCC;
-       padding-bottom:5px;
-       color:#555555;
-}
-/*
-.group_profile_column.right {
-       float:right;
-       width:350px;
-       margin-top:20px;
-}
-.group_profile_column.left {
-       width:350px;
-       float:left;
-       margin-top:20px;
+       border-bottom:1px solid #CCCCCC;        
+       background:#e4e4e4;
+       color:#333333;
+       padding:5px 5px 3px 5px;
+       -moz-border-radius-topleft:4px;
+       -moz-border-radius-topright:4px;
+       -webkit-border-top-left-radius:4px;
+       -webkit-border-top-right-radius:4px;
 }
+
+/* group activity latest
+       (hide some items used on the full riverdashboard activity) 
+       @todo provide a separate view for a groups latest activity
+       - so we can have tiny avatars and not have to manually hide elements
 */
+.group_tool_widget.activity a.river_comment_form_button,
+.group_tool_widget.activity .river_comments_tabs,
+.group_tool_widget.activity .river_content_display,
+.group_tool_widget.activity .river_comments,
+.group_tool_widget.activity .river_link_divider,
+.group_tool_widget.activity .river_user_like_button {
+       display:none;
+}
+/* override default entity_listing_info width */
+.group_tool_widget .entity_listing_info {
+       width:315px;
+}
+
 /* edit group page */
 .delete_group {
        float: right;
        margin-top:-44px;
 }
 
-/* Group forum */
-
-/* all browsers - force tinyMCE on edit forum posts to be full-width */
+/* edit forum posts
+   - force tinyMCE to correct width */
 .edit_comment .defaultSkin table.mceLayout {
        width: 694px !important;
 }
index d00dc444331d7142e03ffc9ed85352358dcfddc0..142920cc4957b03ee1e02ecfdceffc6716f2563e 100644 (file)
@@ -8,7 +8,7 @@ if($vars['entity']->forum_enable != 'no'){
 <h3><?php echo elgg_echo('groups:latestdiscussion'); ?></h3>
 <?php
        
-    $forum = elgg_get_entities_from_annotations(array('types' => 'object', 'subtypes' => 'groupforumtopic', 'annotation_names' => 'group_topic_post', 'container_guid' => $vars['entity']->guid, 'limit' => 4, 'order_by' => 'maxtime desc'));
+    $forum = elgg_get_entities_from_annotations(array('types' => 'object', 'subtypes' => 'groupforumtopic', 'annotation_names' => 'group_topic_post', 'container_guid' => $vars['entity']->guid, 'limit' => 6, 'order_by' => 'maxtime desc'));
        
     if($forum){
         foreach($forum as $f){
@@ -16,11 +16,10 @@ if($vars['entity']->forum_enable != 'no'){
                 $count_annotations = $f->countAnnotations("group_topic_post");
                  
                    echo "<div class='entity_listing clearfloat'>";
-                   echo "<div class='entity_listing_icon'>" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny', 'override' => true)) . "</div>";
+                   echo "<div class='entity_listing_icon'>" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
                echo "<div class='entity_listing_info'><p class='entity_title'><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a></p>";
                echo "<p class='entity_subtext'>".elgg_echo('groups:posts').": " . $count_annotations . "</p></div>";
                echo "</div>";
-               
         }
     } else {
                echo "<p class='margin_top'>".elgg_echo("grouptopic:notcreated")."</p>";
index f3805ed70d146cc5f8311844bd3c06d4eb63121f..f7eebf69cd5ab73ca7a50ef264769bbe0bfe1302 100644 (file)
@@ -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
index 16f94e185d910facc80c55119e46b07e54e8fb47..f7a2e282f75c6d82ab6edc3a29466e3e651ef102 100644 (file)
@@ -34,7 +34,7 @@ if($comment_count < 3)
 else
        $num_comments = $comment_count - 3;
 ?>
-<div class="river_item">
+<div class="river_item riverdashboard">
        <span class="river_item_useravatar">
                <?php echo elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')); ?>
        </span>