diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-26 06:48:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-26 06:48:03 +0000 |
commit | bec12a215d52a391f7e2a625092f5d0e33cba28f (patch) | |
tree | 0358e83e425b1ea2fddd82a7a3c4eff57ad96f28 /modules/forum/forums.tpl.php | |
parent | 9299b401071cef4601c01776a743726c0f4dab06 (diff) | |
download | brdo-bec12a215d52a391f7e2a625092f5d0e33cba28f.tar.gz brdo-bec12a215d52a391f7e2a625092f5d0e33cba28f.tar.bz2 |
- Patch #158536 by dvessel: some more gentle massaging of template files. Trying to make it easier to discover the different template files.
Diffstat (limited to 'modules/forum/forums.tpl.php')
-rw-r--r-- | modules/forum/forums.tpl.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/forum/forums.tpl.php b/modules/forum/forums.tpl.php new file mode 100644 index 000000000..1b8264a72 --- /dev/null +++ b/modules/forum/forums.tpl.php @@ -0,0 +1,26 @@ +<?php // $Id$ +/** + * @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) + * + * @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; ?> |