mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 17:24:38 +01:00
72 lines
3.3 KiB
PHP
Executable File
72 lines
3.3 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title><?php if (!empty($title)): ?><?= $title ?> | <?php endif; ?>Formwork Admin</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<?php
|
|
if (isset($csrfToken)):
|
|
?>
|
|
<meta name="csrf-token" content="<?= $csrfToken ?>">
|
|
<?php
|
|
endif;
|
|
?>
|
|
<?php
|
|
if ($notification = $this->notification()):
|
|
?>
|
|
<meta name="notification" content="<?= $notification['text']?>" data-type="<?= $notification['type']?>" data-interval="5000">
|
|
<?php
|
|
endif;
|
|
?>
|
|
<link rel="shortcut icon" href="<?= $this->uri('/assets/images/icon.png') ?>">
|
|
<link rel="stylesheet" href="<?= $this->uri('/assets/css/admin.min.css') ?>">
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
|
<script src="<?= $this->uri('/assets/js/app.min.js') ?>"></script>
|
|
<script src="<?= $this->uri('/assets/js/vendor.min.js') ?>"></script>
|
|
</head>
|
|
<body>
|
|
<button class="toggle-navigation hide-from-s"><i class="i-bars"></i></button>
|
|
<div class="title-bar">
|
|
<span class="panel-title"><?= $this->label('admin.panel') ?></span>
|
|
<a href="<?= $this->siteUri() ?>" class="view-site" target="_blank"><span class="show-from-xs"><?= $this->label('admin.view-site') ?></span> <i class="i-external-link-square"></i></a>
|
|
</div>
|
|
<div class="sidebar show-from-s">
|
|
<div class="logo"><a href="<?= $this->uri('/dashboard/') ?>">Formwork</a></div>
|
|
<a href="<?= $this->uri('/users/' . $this->user()->username() . '/profile/') ?>">
|
|
<div class="admin-user-card">
|
|
<div class="admin-user-avatar">
|
|
<img src="<?= $this->user()->avatar()->uri() ?>" alt="">
|
|
</div>
|
|
<div class="admin-user-details">
|
|
<div class="admin-user-fullname"><?= $this->escape($this->user()->fullname()) ?></div>
|
|
<div class="admin-user-username"><?= $this->escape($this->user()->username()) ?></div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="sidebar-wrapper">
|
|
<h3 class="caption"><?= $this->label('admin.manage') ?></h3>
|
|
<ul class="sidebar-navigation">
|
|
<li class="<?= ($location === 'dashboard') ? 'active' : '' ?>">
|
|
<a href="<?= $this->uri('/dashboard/') ?>"><?= $this->label('dashboard.dashboard') ?></a>
|
|
</li>
|
|
<li class="<?= ($location === 'pages') ? 'active' : '' ?>">
|
|
<a href="<?= $this->uri('/pages/') ?>"><?= $this->label('pages.pages') ?></a>
|
|
</li>
|
|
<li class="<?= ($location === 'options') ? 'active' : '' ?>">
|
|
<a href="<?= $this->uri('/options/') ?>"><?= $this->label('options.options') ?></a>
|
|
</li>
|
|
<li class="<?= ($location === 'users') ? 'active' : '' ?>">
|
|
<a href="<?= $this->uri('/users/') ?>"><?= $this->label('users.users') ?></a>
|
|
</li>
|
|
<li>
|
|
<a href="<?= $this->uri('/logout/') ?>"><?= $this->label('login.logout') ?></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<main class="main">
|
|
<?= $content ?>
|
|
</main>
|
|
<?= isset($modals) ? $modals : '' ?>
|
|
</body>
|
|
</html>
|