replace CVS with SVN
[squirrelmail.git] / templates / default / protocol_header.tpl
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 * $page_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 &copy; 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) {
29 ?>
30 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
31 <?php
32 } else {
33 ?>
34 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
35 <?php
36 }
37 if (empty($lang)) {
38 ?>
39 <html>
40 <?php
41 } else {
42 ?>
43 <html lang="<?php echo $lang; ?>">
44 <?php
45 }
46 ?>
47 <head>
48 <?php
49 if (!empty($page_title)) {
50 ?>
51 <title><?php echo $page_title; ?></title>
52 <?php
53 }
54 ?>
55 <?php
56 if (!empty($header_tags)) {
57 echo $header_tags;
58 }
59 ?>
60 </head>
61
62