Document bad assumption
[squirrelmail.git] / templates / default / protocol_header.tpl
CommitLineData
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
bcb4c6b0 12 * $page_title - current page title string
f00e222c 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 *
22387c8d 17 * @copyright 1999-2017 The SquirrelMail Project Team
f00e222c 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 */
25extract($t);
26
27
bcb4c6b0 28if ($frames) {
29 ?>
b116fd78 30<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
bcb4c6b0 31 <?php
32} else {
33 ?>
b116fd78 34<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
bcb4c6b0 35 <?php
36}
37if (empty($lang)) {
38 ?>
39<html>
40 <?php
41} else {
42 ?>
d707f58b 43<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
bcb4c6b0 44 <?php
45}
46?>
f00e222c 47<head>
bcb4c6b0 48<?php
49if (!empty($page_title)) {
50 ?>
51<title><?php echo $page_title; ?></title>
52 <?php
53}
54?>
55<?php
56if (!empty($header_tags)) {
57 echo $header_tags;
58}
59?>
f00e222c 60</head>
61
62