vpanel-stack/panel/ui/header.html

83 lines
2.2 KiB
HTML
Raw Normal View History

2022-07-01 15:24:26 -07:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{@PACKAGE}}">
<meta name="author" content="{{@AUTHOR}}">
<meta name="license" content="{{@LICENSE}}">
<meta name="license:uri " content="{{@LICENSEURL}}">
<link rel="icon" href="{{@BASE}}/ui/favicon.ico">
<link href="{{@BASE}}/ui/css/awsm.css" type="text/css" rel="stylesheet" />
<title>{{@PACKAGE}}</title>
2023-06-19 11:53:16 -07:00
<style>
.hidden {
opacity: 0;
transition: opacity 0.5s ease;
}
.hidden:hover {
opacity: 1;
}
</style>
2022-07-01 15:24:26 -07:00
</head>
<body>
<header>
<h1><a href="{{@SCHEME}}://{{@HOST}}{{@BASE}}">{{@PACKAGE}}</a></h1>
<nav>
<check if="{{@NAV.mapping=='vpanel'}}">
<a href="{{@BASE}}/Websites">Websites</a> |
<a href="{{@BASE}}/Email">Email</a> |
2023-06-19 11:53:16 -07:00
<a href="{{@BASE}}/Databases">Databases</a> |
<a href="{{@BASE}}/Certs">Certificates</a> |
<a href="{{@BASE}}/Users">Users</a> |
2022-07-01 15:24:26 -07:00
<a href="{{@BASE}}/Logout">Logout</a>
</check>
2022-08-31 14:19:30 -07:00
<check if="isset(@NAV.subnav)">
2022-07-01 15:24:26 -07:00
<true>
<p style="padding-top: 5px">
>>
<repeat group="{{ @NAV.subnav }}" key="{{ @NAV.subnav_path }}" value="{{ @NAV.subnav_name }}" counter="{{ @ctr }}">
<check if="{{ @ctr }} > 1">/</check>
<check if="{{ @NAV.subnav_count }} == {{ @ctr }}">
<true>
{{ @NAV.subnav_name }}
</true>
<false>
<a href="{{ @NAV.subnav_path }}">{{ @NAV.subnav_name }}</a>
</false>
</check>
</repeat>
</p>
</true>
<false>
<check if="{{@NAV.mapping != 'vpanel'}}">
<p style="padding-top: 5px">
>>
<a href="{{@BASE}}/Logout">Logout</a>
</check>
</false>
</check>
</nav>
2022-08-31 14:19:30 -07:00
<check if="isset(@page_header)">
2022-07-01 15:24:26 -07:00
<h1>{{@page_header}}</h1>
</check>
</header>
<main>
2022-08-31 14:19:30 -07:00
<check if="isset(@ERROR.text)">
2022-07-01 15:24:26 -07:00
<h3>{{@ERROR.text}}</h3>
</check>
2022-08-31 14:19:30 -07:00
<check if="isset(@SESSION.messages)">
2022-07-01 15:24:26 -07:00
<p>
<section style="color:red">
<repeat group="{{ @SESSION.messages }}" value="{{ @panel_message }}">
{{ @panel_message | raw }}<br>
</repeat>
</section>
</p>
{~ unset($_SESSION['messages']); ~}
</check>