f00e222c |
1 | <?php |
2 | |
3 | /** |
4 | * protocol_header.tpl |
5 | * |
6 | * Template to create the HTML header for each page. |
7 | * |
8 | * The following variables are avilable in this template: |
9 | * $frames - boolean value indicating if the page being |
10 | * rendered is a frameset or not |
11 | * $lang - string indicating current SM interface language |
12 | * $title - current page title string |
13 | * $header_tags - string containing text of any tags to be rendered |
14 | * in the page header (meta tags, style links, |
15 | * javascript links, etc.) |
16 | * |
17 | * @copyright © 1999-2006 The SquirrelMail Project Team |
18 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
19 | * @version $Id$ |
20 | * @package squirrelmail |
21 | * @subpackage templates |
22 | */ |
23 | |
24 | /* retrieve the template vars */ |
25 | extract($t); |
26 | |
27 | |
28 | if ($frames) { ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" |
29 | "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd"> |
30 | <?php } else { ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
31 | "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
32 | <?php } ?> |
33 | <html<?php if (!empty($lang)) { ?> lang="<?php echo $lang; ?>"<?php } ?>> |
34 | <head> |
35 | <title><?php if (!empty($title)) { ?><?php echo $title ?><?php } ?></title> |
36 | <?php if (!empty($header_tags)) { ?><?php echo $header_tags ?><?php } ?> |
37 | </head> |
38 | |
39 | |