Mercurial > defr > drupal > core
annotate modules/forum/forums.tpl.php @ 2:85b5b336180c
Added tag 6.0 for changeset c1f4ac30525a
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | c1f4ac30525a |
children |
rev | line source |
---|---|
webmaster@1 | 1 <?php |
webmaster@1 | 2 // $Id: forums.tpl.php,v 1.4 2007/08/07 08:39:35 goba Exp $ |
webmaster@1 | 3 |
webmaster@1 | 4 /** |
webmaster@1 | 5 * @file forums.tpl.php |
webmaster@1 | 6 * Default theme implementation to display a forum which may contain forum |
webmaster@1 | 7 * containers as well as forum topics. |
webmaster@1 | 8 * |
webmaster@1 | 9 * Variables available: |
webmaster@1 | 10 * - $links: An array of links that allow a user to post new forum topics. |
webmaster@1 | 11 * It may also contain a string telling a user they must log in in order |
webmaster@1 | 12 * to post. |
webmaster@1 | 13 * - $forums: The forums to display (as processed by forum-list.tpl.php) |
webmaster@1 | 14 * - $topics: The topics to display (as processed by forum-topic-list.tpl.php) |
webmaster@1 | 15 * - $forums_defined: A flag to indicate that the forums are configured. |
webmaster@1 | 16 * |
webmaster@1 | 17 * @see template_preprocess_forums() |
webmaster@1 | 18 * @see theme_forums() |
webmaster@1 | 19 */ |
webmaster@1 | 20 ?> |
webmaster@1 | 21 <?php if ($forums_defined): ?> |
webmaster@1 | 22 <div id="forum"> |
webmaster@1 | 23 <?php print theme('links', $links); ?> |
webmaster@1 | 24 <?php print $forums; ?> |
webmaster@1 | 25 <?php print $topics; ?> |
webmaster@1 | 26 </div> |
webmaster@1 | 27 <?php endif; ?> |