From 69a750eb7b2a3c7a09369a3714bfaa9ef028f086 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 7 Aug 2008 15:02:05 +0000 Subject: groups now have forums git-svn-id: https://code.elgg.org/elgg/trunk@1761 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forum/topics.php | 128 ++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 mod/groups/views/default/forum/topics.php (limited to 'mod/groups/views/default/forum/topics.php') diff --git a/mod/groups/views/default/forum/topics.php b/mod/groups/views/default/forum/topics.php new file mode 100644 index 000000000..9fa80db79 --- /dev/null +++ b/mod/groups/views/default/forum/topics.php @@ -0,0 +1,128 @@ + + +

+
+ +isMember($vars['user'])){ + +?> + +

[]

+ + + +

title; ?>

+ + + + + + + + + +
+ + + 0) { + + foreach($vars['entity'] as $topic) { + + //This function controls the alternating background on table cells for topics + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; + //get the last reply annotation posted and the user who posted it + //this is used to display the time and person who made the last post + $last_post = $topic->getAnnotations("group_topic_post", 1, 0, "desc"); + //get the time and user + foreach($last_post as $last){ + $last_time = $last->time_created; + $last_user = $last->owner_guid; + } + + //display the divs + echo "
"; +?> + + + + + + + +
+ title; ?> + + canEdit()) { + + ?> + + $vars['url'] . "action/groups/deletetopic?topic=" . $topic->getGUID() . "&group=" . $topic->container_guid, + 'text' => elgg_echo('delete'), + 'confirm' => elgg_echo('deleteconfirm'), + )); + + ?> + + +

countAnnotations("group_topic_post")); + ?>

+
+

+ name; + ?> +

+
+

+ +

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

"; + + } + +?> + +
\ No newline at end of file -- cgit v1.2.3