summaryrefslogtreecommitdiffstats
path: root/admin/template.php
diff options
context:
space:
mode:
authorPascal Chevrel <pascal@chevrel.org>2012-03-08 11:29:59 +0100
committerPascal Chevrel <pascal@chevrel.org>2012-03-08 11:29:59 +0100
commitd12ea0a9b75045a1e645fa6b533d5198a4c2328d (patch)
treee45bd83d45a4d3e5bcb91563efae80c2408bfd06 /admin/template.php
parent41ec00699d5f86cc868984600d3676821caed83f (diff)
downloadplanet-d12ea0a9b75045a1e645fa6b533d5198a4c2328d.tar
planet-d12ea0a9b75045a1e645fa6b533d5198a4c2328d.tar.gz
planet-d12ea0a9b75045a1e645fa6b533d5198a4c2328d.tar.bz2
planet-d12ea0a9b75045a1e645fa6b533d5198a4c2328d.tar.xz
planet-d12ea0a9b75045a1e645fa6b533d5198a4c2328d.zip
change the template in the admin panel to use HTML5 syntax (and use <header> and <nav> elements), adjust css accordingly, add IE6/7/8 support by loading http://html5shiv.googlecode.com/svn/trunk/html5.js with IE conditionnal comments
Diffstat (limited to 'admin/template.php')
-rwxr-xr-x[-rw-r--r--]admin/template.php35
1 files changed, 19 insertions, 16 deletions
diff --git a/admin/template.php b/admin/template.php
index 2c95d5b..6a3c2ea 100644..100755
--- a/admin/template.php
+++ b/admin/template.php
@@ -1,36 +1,39 @@
<?php if(!isset($admin_access)) return; ?>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<!DOCTYPE html>
+<html lang="en">
<head>
- <meta http-equiv="Content-Type" content="text/HTML; charset=UTF-8" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <meta http-equiv="Content-Language" content="en" />
-
+ <meta charset="utf-8">
<title>moonmoon administration</title>
- <link rel="stylesheet" media="screen" type="text/css" href="default.css" />
+ <link rel="stylesheet" media="screen" type="text/css" href="default.css">
+<!--[if lte IE 9]>
+<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+<![endif]-->
+
<?=@$header_extra ?: ''; ?>
+
</head>
<body id="<?=@$page_id ?: ''; ?>">
<div id="page">
- <div id="header">
+ <header>
<h1>moonmoon</h1>
<p><a href="../">Back to main page</a></p>
- </div>
+ </header>
<?php if($admin_access == 1) : ?>
<p class="logout"><a href="logout.php">Logout</a></p>
- <ul id="nav">
- <li id="nav-feed"><a href="index.php">Feeds</a></li>
- <li id="nav-admin"><a href="administration.php">Administration</a></li>
- </ul>
+ <nav>
+ <ul>
+ <li id="nav-feed"><a href="index.php">Feeds</a></li>
+ <li id="nav-admin"><a href="administration.php">Administration</a></li>
+ </ul>
+ </nav>
<?php endif; ?>
+
+
<div id="content">
<?=@$page_content ?: ''; ?>