--- /dev/null
+<!doctype html>\r
+<html lang="en">\r
+ <head>\r
+ <meta charset="utf-8">\r
+ <title>Manage <?php echo Config::get('metadata.sitename'); ?></title>\r
+\r
+ <link rel="stylesheet" href="<?php echo theme_url('assets/css/admin.css'); ?>">\r
+ <link rel="stylesheet" href="<?php echo theme_url('assets/css/popup.css'); ?>">\r
+ </head>\r
+ <body>\r
+\r
+ <header id="top">\r
+ <a id="logo" href="<?php echo Url::make(Config::get('application.admin_folder')); ?>">\r
+ <img src="<?php echo theme_url('assets/img/logo.png'); ?>" alt="Test CMS">\r
+ </a>\r
+\r
+ <?php if(($user = Users::authed()) !== false): ?>\r
+ <nav>\r
+ <ul>\r
+ <?php foreach(admin_menu() as $title => $url): ?>\r
+ <li <?php if(strpos(Url::current(), $url) !== false) echo 'class="active"'; ?>>\r
+ <a href="<?php echo Url::make($url); ?>"><?php echo $title; ?></a>\r
+ </li>\r
+ <?php endforeach; ?>\r
+ </ul>\r
+ </nav>\r
+\r
+ <p>Logged in as <strong><?php echo $user->real_name; ?></strong>. \r
+ <a href="<?php echo admin_url('users/logout'); ?>">Logout</a></li>\r
+ <?php endif; ?>\r
+ </header>\r
+\r