summaryrefslogtreecommitdiffstats
path: root/common/admin/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'common/admin/template.php')
-rwxr-xr-xcommon/admin/template.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/common/admin/template.php b/common/admin/template.php
new file mode 100755
index 0000000..7818bef
--- /dev/null
+++ b/common/admin/template.php
@@ -0,0 +1,53 @@
+<?php if(!isset($admin_access)) return; ?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>
+
+<?php
+ echo _g('Administration') . ' — ';
+ printf(_g('moonmoon %s', '%s is the version number for moonmoon, this string appears as the tab title in the admin panel'), $moon_version);
+?>
+ </title>
+ <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">
+ <header>
+ <h1>moonmoon</h1>
+ <p><a href="../"><?=_g('Back to main page')?></a></p>
+ </header>
+
+ <?php if($admin_access == 1) : ?>
+
+ <p class="logout"><a href="logout.php"><?=_g('Logout')?></a></p>
+ <nav>
+ <ul>
+ <li id="nav-feed"><a href="index.php"><?=_g('Feeds')?></a></li>
+ <li id="nav-admin"><a href="administration.php"><?=_g('Administration')?></a></li>
+ </ul>
+ </nav>
+
+ <?php endif; ?>
+
+
+
+ <div id="content">
+
+ <?=@$page_content ?: ''; ?>
+
+ </div>
+ </div>
+
+<?=@$footer_extra ?: ''; ?>
+
+</body>
+</html>