Happy New Year
[squirrelmail.git] / templates / default / protocol_header.tpl
index bfe8c93b3ad125c591a659a18535ca73d0b34028..9ac92d69be9fa2a3b87c441685d3d022d805de31 100644 (file)
@@ -9,12 +9,12 @@
  *      $frames        - boolean value indicating if the page being 
  *                       rendered is a frameset or not
  *      $lang          - string indicating current SM interface language 
- *      $title         - current page title string
+ *      $page_title    - current page title string
  *      $header_tags   - string containing text of any tags to be rendered
  *                       in the page header (meta tags, style links,
  *                       javascript links, etc.)
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
 extract($t);
 
 
-if ($frames) { ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
- "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
-<?php } else { ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
-<?php } ?>
-<html<?php if (!empty($lang)) { ?> lang="<?php echo $lang; ?>"<?php } ?>>
+if ($frames) { 
+    ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+    <?php
+} else { 
+    ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+    <?php 
+}
+if (empty($lang)) {
+    ?>
+<html>
+    <?php
+} else {
+    ?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
+    <?php
+}
+?>
 <head>
-<title><?php if (!empty($title)) { ?><?php echo $title ?><?php } ?></title>
-<?php if (!empty($header_tags)) { ?><?php echo $header_tags ?><?php } ?>
+<?php
+if (!empty($page_title)) {
+    ?>
+<title><?php echo $page_title; ?></title>
+    <?php
+}
+?>
+<?php
+if (!empty($header_tags)) {
+    echo $header_tags;
+} 
+?>
 </head>