Happy New Year
[squirrelmail.git] / templates / default / protocol_header.tpl
... / ...
CommitLineData
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 1999-2020 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 */
25extract($t);
26
27
28if ($frames) {
29 ?>
30<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
31 <?php
32} else {
33 ?>
34<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
35 <?php
36}
37if (empty($lang)) {
38 ?>
39<html>
40 <?php
41} else {
42 ?>
43<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
44 <?php
45}
46?>
47<head>
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?>
60</head>
61
62