diff options
Diffstat (limited to 'modules/forum/forum-display.tpl.php')
-rw-r--r-- | modules/forum/forum-display.tpl.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/forum/forum-display.tpl.php b/modules/forum/forum-display.tpl.php new file mode 100644 index 000000000..e8ef8c1ea --- /dev/null +++ b/modules/forum/forum-display.tpl.php @@ -0,0 +1,28 @@ +<?php // $Id$ +/** + * @file forum-display.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) + * + * @see template_preprocess_forum_display() + * @see theme_forum_display() + * + */ +?> + +<?php if ($forums_defined): ?> + +<div id="forum"> + <?php print theme('links', $links); ?> + <?php print $forums; ?> + <?php print $topics; ?> +</div> +<?php endif; ?> |