summaryrefslogtreecommitdiff
path: root/modules/forum/forum-display.tpl.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-22 07:01:07 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-22 07:01:07 +0000
commita466354823cc7df7583062bfd69173a74465af16 (patch)
tree3d52ca3ff24ae1c8e93f818372d83c88a5c1c036 /modules/forum/forum-display.tpl.php
parent9339b704f36621ab8656a65589c8463ab0f17a44 (diff)
downloadbrdo-a466354823cc7df7583062bfd69173a74465af16.tar.gz
brdo-a466354823cc7df7583062bfd69173a74465af16.tar.bz2
- Patch #158536 by merlinofchaos and dvessel: tpl-ified the forum module.
Diffstat (limited to 'modules/forum/forum-display.tpl.php')
-rw-r--r--modules/forum/forum-display.tpl.php28
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; ?>