Same filename and directory in other branches
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 also
1 theme call to forums.tpl.php
- forum_page in modules/
forum/ forum.pages.inc - Menu callback; prints a forum listing.
File
modules/forum/forums.tpl.phpView source
<?php
/**
* @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()
*/
if ($forums_defined) {
?>
<div id="forum">
<?php
print theme('links', $links);
?>
<?php
print $forums;
?>
<?php
print $topics;
?>
</div>
<?php
}