From 2ac6d8f4d1738d299dab4fc5ac0cd28f7c3c00b5 Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 13 Apr 2010 16:07:52 +0000 Subject: Groups profile page tool widget boxes updated. git-svn-id: http://code.elgg.org/elgg/trunk@5716 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forum/topicposts.php | 2 +- mod/groups/views/default/groups/css.php | 57 +++++++++++++----------- mod/groups/views/default/groups/forum_latest.php | 5 +-- mod/groups/views/default/groups/profileitems.php | 56 +++++++++++------------ 4 files changed, 58 insertions(+), 62 deletions(-) (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/forum/topicposts.php b/mod/groups/views/default/forum/topicposts.php index 29ce21358..a6a3f6bf0 100644 --- a/mod/groups/views/default/forum/topicposts.php +++ b/mod/groups/views/default/forum/topicposts.php @@ -32,7 +32,7 @@ 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm') )).""; - echo "".elgg_echo('edit').""; + echo "".elgg_echo('edit').""; echo ""; } diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php index 502c35f52..832692ed9 100644 --- a/mod/groups/views/default/groups/css.php +++ b/mod/groups/views/default/groups/css.php @@ -57,7 +57,7 @@ } -/* GROUP PROFILE PAGE (a groups homepage) */ +/* GROUP PROFILE PAGE (individual group homepage) */ .group_profile_column { float:left; margin-top:10px; @@ -91,14 +91,6 @@ 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 { @@ -108,7 +100,7 @@ .group_tool_widget { float:left; margin-right:30px; - margin-bottom:20px; + margin-bottom:40px; min-height:200px; width:350px; } @@ -116,31 +108,42 @@ 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; } diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index d00dc4443..142920cc4 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -8,7 +8,7 @@ if($vars['entity']->forum_enable != 'no'){

'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 "
"; - echo "
" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny', 'override' => true)) . "
"; + echo "
" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "
"; echo "

guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "

"; echo "

".elgg_echo('groups:posts').": " . $count_annotations . "

"; echo "
"; - } } else { echo "

".elgg_echo("grouptopic:notcreated")."

"; 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 @@ "; - echo elgg_view("groups/forum_latest",array('entity' => $vars['entity'])); - echo ""; -/* - //right column - echo "
"; - echo elgg_view("groups/right_column",array('entity' => $vars['entity'])); - echo "
"; - - //left column - echo "
"; - echo elgg_view("groups/left_column",array('entity' => $vars['entity'])); - echo "
"; +/** +* 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 "
"; - echo "

Dummy Placeholder Group Tool Widget

"; //test - echo elgg_view("groups/tool_latest",array('entity' => $vars['entity'])); - echo "

Another Placeholder for testing

"; //test - echo "
"; +// tools widget area +echo "
"; + + // activity latest + echo "
"; + echo elgg_view("groups/activity_latest",array('entity' => $vars['entity'])); + echo "
"; + + // forum latest + echo "
"; + echo elgg_view("groups/forum_latest",array('entity' => $vars['entity'])); + echo "
"; + + // enable tools to extend this area + echo elgg_view("groups/tool_latest",array('entity' => $vars['entity'])); + +echo "
"; ?>