From 3488a1ed443c92f918e6153c27fd6d6cf3ab287d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Aug 2007 06:07:52 +0000 Subject: - Patch #158536 by dvessel: more forum template massaging. --- modules/forum/forum-list.tpl.php | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'modules/forum/forum-list.tpl.php') diff --git a/modules/forum/forum-list.tpl.php b/modules/forum/forum-list.tpl.php index 70cf597a2..27419f838 100644 --- a/modules/forum/forum-list.tpl.php +++ b/modules/forum/forum-list.tpl.php @@ -2,15 +2,16 @@ // $Id /** * @file forum-list.tpl.php - * Default theme implementation to display a list of forums. + * Default theme implementation to display a list of forums and containers. * * Available variables: - * - $forums: An array of forums to display. + * - $forums: An array of forums and containers to display. * * Each $forum in $forums contains: * - $forum->is_container: Is TRUE if the forum can contain other forums. Is * FALSE if the forum can contain only topics. * - $forum->depth: How deep the forum is in the current hierarchy. + * - $forum->zebra: 'even' or 'odd' string used for row class. * - $forum->name: The name of the forum. * - $forum->link: The URL to link to this forum. * - $forum->description: The description of this forum. @@ -36,28 +37,20 @@ - - - - is_container): ?> - - - - - - - depth; $i++): ?> -
- '; ?> - + + is_container ? 'colspan="4" class="container"' : 'class="forum"'; ?>> + + ', $forum->depth); ?> -
description; ?>
- - + description): ?> +
description; ?>
+ + ', $forum->depth); ?> + is_container): ?> num_topics ?> @@ -70,8 +63,6 @@ last_reply ?> - - -- cgit v1.2.3