5bcce050 |
1 | <?php |
2 | |
3 | /** |
4 | * body.tpl |
5 | * |
6 | * Template for constructing an opening body tag. |
7 | * |
8 | * The following variables are available in this template: |
9 | * + $class - CSS class name (optional; may not be present) |
10 | * + $onload - Body onload JavaScript handler code (optional; |
11 | * may not be present) |
12 | * + $aAttribs - Any extra attributes: an associative array, where |
13 | * keys are attribute names, and values (which are |
14 | * optional and might be null) should be placed |
15 | * in double quotes as attribute values (optional; |
16 | * may not be present) |
17 | * + $plugin_output - An array of extra output that may be added by |
18 | * plugin(s). |
19 | * |
20 | * @copyright © 1999-2007 The SquirrelMail Project Team |
21 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
22 | * @version $Id$ |
23 | * @package squirrelmail |
24 | * @subpackage templates |
25 | */ |
26 | |
27 | |
28 | // retrieve the template vars |
29 | // |
30 | extract($t); |
31 | |
32 | |
33 | echo '<body'; |
34 | if (!empty($class)) echo ' class="' . $class . '"'; |
35 | if (!empty($onload)) echo ' onload="' . $onload . '"'; |
36 | foreach ($aAttribs as $key => $value) { |
37 | echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); |
38 | } |
39 | echo '>'; |
40 | |
41 | if (!empty($plugin_output['body_after'])) echo $plugin_output['body_after']; |
42 | |