Same filename in this branch
  1. 6.x themes/pushbutton/box.tpl.php
  2. 6.x themes/bluemarine/box.tpl.php
  3. 6.x modules/system/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 modules/comment/comment.module
Theme the comment form box.
search_view in modules/search/search.pages.inc
Menu callback; presents the search form and/or search results.
theme_comment_controls in modules/comment/comment.module
Theme comment controls box where the user can change the default display mode and display order of comments.

File

modules/system/box.tpl.php
View source
<?php

/**
 * @file box.tpl.php
 *
 * Theme implementation to display a box.
 *
 * Available variables:
 * - $title: Box title.
 * - $content: Box content.
 *
 * @see template_preprocess()
 */
?>
<div class="box">

<?php

if ($title) {
  ?>
  <h2><?php

  print $title;
  ?></h2>
<?php

}
?>

  <div class="content"><?php

print $content;
?></div>
</div>