forums.tpl.php 550 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @file
  4. * Displays a forum.
  5. *
  6. * May contain forum containers as well as forum topics.
  7. *
  8. * Available variables:
  9. * - $forums: The forums to display (as processed by forum-list.tpl.php).
  10. * - $topics: The topics to display (as processed by forum-topic-list.tpl.php).
  11. * - $forums_defined: A flag to indicate that the forums are configured.
  12. *
  13. * @see template_preprocess_forums()
  14. *
  15. * @ingroup themeable
  16. */
  17. ?>
  18. <?php if ($forums_defined): ?>
  19. <div id="forum">
  20. <?php print $forums; ?>
  21. <?php print $topics; ?>
  22. </div>
  23. <?php endif; ?>