Mercurial > defr > drupal > core
diff modules/forum/forums.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/forum/forums.tpl.php Tue Dec 23 14:28:28 2008 +0100 @@ -0,0 +1,27 @@ +<?php +// $Id: forums.tpl.php,v 1.4 2007/08/07 08:39:35 goba Exp $ + +/** + * @file forums.tpl.php + * Default theme implementation to display a forum which may contain forum + * containers as well as forum topics. + * + * Variables available: + * - $links: An array of links that allow a user to post new forum topics. + * It may also contain a string telling a user they must log in in order + * to post. + * - $forums: The forums to display (as processed by forum-list.tpl.php) + * - $topics: The topics to display (as processed by forum-topic-list.tpl.php) + * - $forums_defined: A flag to indicate that the forums are configured. + * + * @see template_preprocess_forums() + * @see theme_forums() + */ +?> +<?php if ($forums_defined): ?> +<div id="forum"> + <?php print theme('links', $links); ?> + <?php print $forums; ?> + <?php print $topics; ?> +</div> +<?php endif; ?>