openvk/Web/Presenters/templates/Admin/@layout.xml

165 lines
8.7 KiB
XML
Raw Normal View History

{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
2020-06-07 19:04:43 +03:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<style>
2022-04-24 08:06:45 +03:00
{var $css = file_get_contents(OPENVK_ROOT . "/Web/static/js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.css")}
2020-06-07 19:04:43 +03:00
{str_replace("fonts/", "/assets/packages/static/openvk/js/node_modules/@atlassian/aui/dist/aui/fonts/", $css)|noescape}
</style>
<title>{include title} - {_admin} {$instance_name}</title>
2020-06-07 19:04:43 +03:00
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-textonly">
<a href="/">
<span class="aui-header-logo-device">{$instance_name}</span>
2020-06-07 19:04:43 +03:00
</a>
</h1>
</div>
<div n:if="$search ?? false" class="aui-header-secondary">
<ul class="aui-nav">
<form class="aui-quicksearch dont-default-focus ajs-dirty-warning-exempt">
<input id="quickSearchInput" autocomplete="off" class="search" type="text" placeholder="{include searchTitle}" value="{$_GET['q'] ?? ''}" name="q" accesskey="Q" />
<input type="hidden" value=1 name=p />
2020-06-07 19:04:43 +03:00
</form>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav" style="background-color: #fff;">
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<div class="aui-navgroup-primary">
<div class="aui-nav-heading">
<strong>{_admin_overview}</strong>
2020-06-07 19:04:43 +03:00
</div>
<ul class="aui-nav">
<li>
<a href="/admin">{_admin_overview_summary}</a>
2020-06-07 19:04:43 +03:00
</li>
</ul>
<div class="aui-nav-heading">
<strong>{_admin_content}</strong>
2020-06-07 19:04:43 +03:00
</div>
<ul class="aui-nav">
<li>
<a href="/admin/users">{_users}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/clubs">{_groups}</a>
2020-06-07 19:04:43 +03:00
</li>
2022-09-05 18:57:41 +03:00
<li>
<a href="/admin/bannedLinks">{_admin_banned_links}</a>
</li>
</ul>
<div class="aui-nav-heading">
<strong>Chandler</strong>
</div>
<ul class="aui-nav">
<li>
<a href="/admin/chandler/groups">{_c_groups}</a>
</li>
</ul>
<div class="aui-nav-heading">
<strong>{_admin_services}</strong>
</div>
<ul class="aui-nav">
2020-06-07 19:04:43 +03:00
<li>
<a href="/admin/vouchers">{_vouchers}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/gifts">{_gifts}</a>
</li>
2020-06-07 19:04:43 +03:00
</ul>
<div class="aui-nav-heading">
<strong>{_admin_settings}</strong>
2020-06-07 19:04:43 +03:00
</div>
<ul class="aui-nav">
<li>
<a href="/admin/settings/tuning">{_admin_settings_tuning}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/settings/appearance">{_admin_settings_appearance}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/settings/security">{_admin_settings_security}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/settings/integrations">{_admin_settings_integrations}</a>
2020-06-07 19:04:43 +03:00
</li>
<li>
<a href="/admin/settings/system">{_admin_settings_system}</a>
2020-06-07 19:04:43 +03:00
</li>
</ul>
<div class="aui-nav-heading">
<strong>{_admin_about}</strong>
2020-06-07 19:04:43 +03:00
</div>
<ul class="aui-nav">
<li>
<a href="/about:openvk">{_admin_about_version}</a>
</li>
<li>
<a href="/about">{_admin_about_instance}</a>
2020-06-07 19:04:43 +03:00
</li>
</ul>
</div>
</div>
</nav>
</div>
<section class="aui-page-panel-content">
{ifset $flashMessage}
2022-04-24 08:06:45 +03:00
{var $type = ["err" => "error", "warn" => "warning", "info" => "basic", "succ" => "success"][$flashMessage->type]}
<div class="aui-message aui-message-{$type}" style="margin-bottom: 15px;">
<p class="title">
<strong>{$flashMessage->title}</strong>
</p>
<p>{$flashMessage->msg|noescape}</p>
</div>
{/ifset}
{ifset preHeader}
{include preHeader}
{/ifset}
2020-06-07 19:04:43 +03:00
<header class="aui-page-header">
<div class="aui-page-header-inner">
<div class="aui-page-header-main">
{ifset headingWrap}
{include headingWrap}
{else}
<h1>{include heading}</h1>
{/ifset}
2020-06-07 19:04:43 +03:00
</div>
</div>
</header>
<main>
{include content}
</main>
</section>
</div>
</div>
<footer id="footer" role="contentinfo">
<section class="footer-body">
OpenVK <a href="/about:openvk">{php echo OPENVK_VERSION}</a> | PHP: {phpversion()} | DB: {\Chandler\Database\DatabaseConnection::i()->getConnection()->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION)}
2020-06-07 19:04:43 +03:00
</section>
</footer>
</div>
{script "js/node_modules/jquery/dist/jquery.min.js"}
{script "js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.js"}
<script>AJS.tabs.setup();</script>
{ifset scripts}
{include scripts}
{/ifset}
2020-06-07 19:04:43 +03:00
</body>
</html>