diff options
Diffstat (limited to 'mod/groups/views/default/groups/forum_latest.php')
-rw-r--r-- | mod/groups/views/default/groups/forum_latest.php | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index 6baa8a575..d00dc4443 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -1,14 +1,11 @@ <?php - // Latest forum discussion for the group home page - - //check to make sure this group forum has been activated - if($vars['entity']->forum_enable != 'no'){ +// Latest forum discussion for the group home page +//check to make sure this group forum has been activated +if($vars['entity']->forum_enable != 'no'){ ?> - -<div class="contentWrapper"> -<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2> +<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')); @@ -18,21 +15,16 @@ $count_annotations = $f->countAnnotations("group_topic_post"); - echo "<div class=\"forum_latest\">"; - echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny', 'override' => true)) . "</div>"; - echo "<div class=\"topic_title\"><p><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a></p> <p class=\"topic_replies\"><small>".elgg_echo('groups:posts').": " . $count_annotations . "</small></p></div>"; - + 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_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 "<div class=\"forum_latest\">"; - echo elgg_echo("grouptopic:notcreated"); - echo "</div>"; + echo "<p class='margin_top'>".elgg_echo("grouptopic:notcreated")."</p>"; } -?> -<div class="clearfloat" /></div> -</div> -<?php - }//end of forum active check + +}//end of forum active check ?>
\ No newline at end of file |