This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/broomcloset/global/header.tpl
2015-08-10 04:01:07 +02:00

47 lines
2.5 KiB
Smarty

<!DOCTYPE html>
<html>
<head>
<!-- META -->
<meta charset="{{ sakura.charset }}" />
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
{% if page.redirect %}
<meta http-equiv="refresh" content="3; URL={{ page.redirect }}" />
{% endif %}
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="//{{ sakura.content_path }}/global.css" />
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/manage.css" />
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
<!-- JS -->
<script type="text/javascript" src="{{ sakura.resources }}/js/manage.js"></script>
</head>
<body>
<div id="container">
<span id="top"></span>
<div class="header" id="header">
<div class="logo">
<a href="//{{ sakura.urls.main }}/manage/">Broom Closet</a> /
<a href="//{{ sakura.urls.main }}/manage/{{ page.activepage }}/">{{ page.pages[page.activepage].desc }}</a> /
<a href="//{{ sakura.urls.main }}/manage/{{ page.activepage }}/{{ page.activesub }}/">{{ page.pages[page.activepage].subs[page.activesub].desc }}</a>
</div>
<div class="nav">
<div class="menu" id="siteNav">
<div style="color: {{ user.colour }};">{{ user.data.username }}</div>
<a href="/">Return to Site Index</a>
<a href="/logout?mode=logout&amp;time={{ php.time }}&amp;session={{ php.sessionid }}&amp;redirect=/">Logout</a>
</div>
<div class="menu" id="pageNav">
<div>Navigation</div>
{% for short,page in page.pages %}
<a href="/manage/{{ short }}/">{{ page.desc }}</a>
{% endfor %}
</div>
<div class="menu" id="subNav">
<div>{{ page.pages[page.activepage].desc }}</div>
{% for short,sub in page.pages[page.activepage].subs %}
<a href="/manage/{{ page.activepage }}/{{ short }}/">{{ sub.desc }}</a>
{% endfor %}
</div>
</div>
</div>
<div id="contentwrapper">