diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 09:31:08 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 09:31:08 +0000 |
commit | e1d3d2c61566a7a8422e5b2b416527cf284e7b08 (patch) | |
tree | 4161bfdc8032d46b186a2f40602ee425d3463661 /mod/groups | |
parent | 0ae549408d75cf61e7f08e988f98dfbeca7c870f (diff) | |
download | elgg-e1d3d2c61566a7a8422e5b2b416527cf284e7b08.tar.gz elgg-e1d3d2c61566a7a8422e5b2b416527cf284e7b08.tar.bz2 |
latest discussions widget
git-svn-id: https://code.elgg.org/elgg/trunk@1786 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/views/default/groups/css.php | 34 | ||||
-rw-r--r-- | mod/groups/views/default/groups/forum_latest.php | 13 |
2 files changed, 37 insertions, 10 deletions
diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php index 8b1628395..8a88ef393 100644 --- a/mod/groups/views/default/groups/css.php +++ b/mod/groups/views/default/groups/css.php @@ -58,10 +58,6 @@ border:none;
}
-
-
-
-
.topic_title {
font-size: 1.2em;
line-height: 1.1em;
@@ -82,4 +78,32 @@ .forum_topics .even {
background-color:#f5f5f5;
padding: 4px;
-}
\ No newline at end of file +}
+
+
+/* latest discussions on group page */
+#latest_discussion_widget {
+ margin:0 0 20px 0;
+}
+.forum_latest {
+ margin:0 0 10px 0;
+}
+.forum_latest .topic_owner_icon {
+ position:absolute;
+}
+.forum_latest .topic_title {
+ margin-left:35px;
+}
+.forum_latest .topic_title p {
+ font-size: 0.8em;
+ line-height: 1.0em;
+ padding:0;
+ margin:0;
+}
+
+.forum_latest p.topic_replies {
+ color:#999999;
+ padding:3px 0 0 0;
+ margin:0;
+}
+
diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index 10392fa51..be9ad926a 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -1,6 +1,7 @@ +<div id="latest_discussion_widget">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
-
+
$forum = get_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 0, $vars['entity']->guid, 4, 0, "asc", false);
if($forum){
@@ -9,8 +10,9 @@ $count_annotations = $f->countAnnotations("group_topic_post");
echo "<div class=\"forum_latest\">";
- 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> (Replies: " . $count_annotations . ")</p></div>";
- echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
+ echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</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>Replies: " . $count_annotations . "</small></p></div>";
+
echo "</div>";
}
@@ -18,5 +20,6 @@ echo elgg_echo("grouptopic:notcreated");
}
-
-?>
\ No newline at end of file +?>
+<br class="clearfloat" />
+</div>
\ No newline at end of file |