From 5116834f80352d4c845c7b8838c62d5c02e781a5 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 23 Feb 2009 10:20:36 +0000 Subject: new group discussion layout tweaked to actually work git-svn-id: https://code.elgg.org/elgg/trunk@2882 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forum/topics.php | 114 ++---------------------------- 1 file changed, 7 insertions(+), 107 deletions(-) (limited to 'mod') diff --git a/mod/groups/views/default/forum/topics.php b/mod/groups/views/default/forum/topics.php index 80c3d4093..8f877dccb 100644 --- a/mod/groups/views/default/forum/topics.php +++ b/mod/groups/views/default/forum/topics.php @@ -13,121 +13,21 @@

- - -
- 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") . "

"; - - } - -?> + if($vars['topics']) + echo $vars['topics']; + else + echo "

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

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