1. 6.x modules/forum/forums.tpl.php
  2. 7.x modules/forum/forums.tpl.php

Displays a forum.

May contain forum containers as well as forum topics.

Available variables:

  • $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

template_preprocess_forums()

1 theme call to forums.tpl.php
forum_page in modules/forum/forum.pages.inc
Page callback: Prints a forum listing.

File

modules/forum/forums.tpl.php
View source
<?php

/**
 * @file
 * Displays a forum.
 *
 * May contain forum containers as well as forum topics.
 *
 * Available variables:
 * - $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()
 *
 * @ingroup themeable
 */
if ($forums_defined) {
  ?>
<div id="forum">
  <?php

  print $forums;
  ?>
  <?php

  print $topics;
  ?>
</div>
<?php

}

Related topics

Comments

marjan bey’s picture

i can't see how to add content to the homepage of the Hatch theme. everything else works.