Community Documentation

Box.tpl.php

Last updated March 1, 2011. Created by Steven on October 21, 2004.
Edited by aspilicious, admin7, silverwing, add1sun. Log in to edit this page.

Prints a simple html box around a page element. The only well known instances of its use is for the core instances of search results and comment forms. For instance: The comment view options are surrounded by box.tpl.php.

Available variables

$title
The title of the box.
$content
The content of the box.
$region
Region. main, left or right.

Default template

<div class="box">
  <?php if ($title): ?>
    <h2><?php print $title ?></h2>
  <?php endif; ?>
  <div class="content"><?php print $content ?></div>
</div>
nobody click here