box.tpl.php

  1. 6.x drupal-6.x/modules/system/box.tpl.php
  2. 6.x drupal-6.x/themes/bluemarine/box.tpl.php
  3. 6.x drupal-6.x/themes/pushbutton/box.tpl.php

box.tpl.php

Theme implementation to display a box.

Available variables:

  • $title: Box title.
  • $content: Box content.

See also

template_preprocess()

3 theme calls to box.tpl.php
comment_form_box in drupal-6.x/modules/comment/comment.module
Theme the comment form box.
search_view in drupal-6.x/modules/search/search.pages.inc
Menu callback; presents the search form and/or search results.
theme_comment_controls in drupal-6.x/modules/comment/comment.module
Theme comment controls box where the user can change the default display mode and display order of comments.

File

drupal-6.x/modules/system/box.tpl.php
View source
  1. <?php
  2. /**
  3. * @file box.tpl.php
  4. *
  5. * Theme implementation to display a box.
  6. *
  7. * Available variables:
  8. * - $title: Box title.
  9. * - $content: Box content.
  10. *
  11. * @see template_preprocess()
  12. */
  13. ?>
  14. <div class="box">
  15. <?php if ($title): ?>
  16. <h2><?php print $title ?></h2>
  17. <?php endif; ?>
  18. <div class="content"><?php print $content ?></div>
  19. </div>