2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-05-16 21:38:33 +02:00
|
|
|
$this->assets->addStylesheet('../lib/jquery-ui/jquery-ui.css');
|
|
|
|
$this->assets->addStylesheet('core.css');
|
|
|
|
$this->assets->addScript('../lib/jquery/jquery.min.js');
|
|
|
|
$this->assets->addScript('../lib/jquery-ui/jquery-ui.min.js');
|
|
|
|
$this->assets->addScript('../lib/mousetrap/mousetrap.min.js');
|
|
|
|
$this->assets->addScript('core.js');
|
2014-06-10 12:01:15 +02:00
|
|
|
if (!empty(Core::getConfig()->appearance->extraScripts))
|
|
|
|
foreach (Core::getConfig()->appearance->extraScripts as $path)
|
|
|
|
$this->assets->addScriptFullPath($path);
|
|
|
|
if (!empty(Core::getConfig()->appearance->extraStylesheets))
|
|
|
|
foreach (Core::getConfig()->appearance->extraStylesheets as $path)
|
|
|
|
$this->assets->addStylesheetFullPath($path);
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
2013-10-05 12:55:03 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-10-07 00:44:17 +02:00
|
|
|
<meta charset="utf-8"/>
|
2013-11-18 14:33:43 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
|
2014-06-10 12:01:15 +02:00
|
|
|
<?php if (!empty(Core::getConfig()->appearance->favicon)): ?>
|
|
|
|
<link rel="shortcut icon"
|
|
|
|
type="image/png"
|
|
|
|
href="<?= \Chibi\Util\Url::makeAbsolute(Core::getConfig()->appearance->favicon) ?>"/>
|
|
|
|
<?php endif ?>
|
2013-10-05 12:55:03 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2013-12-01 15:16:10 +01:00
|
|
|
<script type="text/javascript">
|
2014-04-27 15:59:29 +02:00
|
|
|
var lastSearchQuery = <?= json_encode(
|
|
|
|
isset($this->context->transport->lastSearchQuery)
|
|
|
|
? $this->context->transport->lastSearchQuery
|
|
|
|
:'') ?>;
|
2013-12-01 15:16:10 +01:00
|
|
|
</script>
|
|
|
|
|
2013-10-09 11:45:18 +02:00
|
|
|
<nav id="top-nav">
|
2013-10-05 22:52:55 +02:00
|
|
|
<div class="main-wrapper">
|
2014-05-16 21:38:33 +02:00
|
|
|
<?php $this->renderExternal('top-navigation') ?>
|
2013-12-14 16:49:43 +01:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2013-10-05 19:24:08 +02:00
|
|
|
</nav>
|
2013-10-05 12:55:03 +02:00
|
|
|
|
2013-10-05 22:52:55 +02:00
|
|
|
<section id="content">
|
|
|
|
<div class="main-wrapper">
|
2014-05-16 21:38:33 +02:00
|
|
|
<?php $this->renderExternal($this->context->viewName) ?>
|
2013-10-05 22:52:55 +02:00
|
|
|
</div>
|
2013-12-14 16:49:43 +01:00
|
|
|
<div class="clear"></div>
|
2013-10-05 19:24:08 +02:00
|
|
|
</section>
|
2013-10-12 22:54:25 +02:00
|
|
|
|
|
|
|
<footer>
|
|
|
|
<div class="main-wrapper">
|
2014-05-14 19:38:42 +02:00
|
|
|
<hr/>
|
|
|
|
<div class="left">
|
2014-05-14 20:27:19 +02:00
|
|
|
<span>
|
2014-05-15 10:32:53 +02:00
|
|
|
<a href="<?= Core::getConfig()->misc->githubLink ?>">
|
2014-05-17 11:45:27 +02:00
|
|
|
<?= PropertyModel::get(PropertyModel::EngineVersion) ?>
|
2014-05-14 20:27:19 +02:00
|
|
|
</a>
|
|
|
|
</span>
|
2014-05-23 23:34:50 +02:00
|
|
|
<span><a href="<?= Core::getRouter()->linkTo(['StaticPagesController', 'apiDocsView']) ?>">API</a></span>
|
2014-05-14 19:38:42 +02:00
|
|
|
<?php if (Access::check(new Privilege(Privilege::ListLogs))): ?>
|
2014-05-23 23:34:50 +02:00
|
|
|
<span><a href="<?= Core::getRouter()->linkTo(['LogController', 'listView']) ?>">Logs</a></span>
|
2014-05-14 19:38:42 +02:00
|
|
|
<?php endif ?>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<span><?= TextHelper::useBytesUnits(memory_get_usage()) ?></span>
|
|
|
|
<span><?= sprintf('%.04f', microtime(true) - $this->context->startTime) ?>s</span>
|
2014-05-23 23:34:50 +02:00
|
|
|
<span><?= $x = count(Core::getDatabase()->getLogs()) ?> <?= $x != 1 ? 'queries' : 'query' ?></span>
|
2014-05-14 19:38:42 +02:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<hr/>
|
2014-02-16 12:30:34 +01:00
|
|
|
</div>
|
2013-10-12 22:54:25 +02:00
|
|
|
</footer>
|
2013-11-24 23:30:06 +01:00
|
|
|
|
2014-05-15 10:32:53 +02:00
|
|
|
<?php if (Core::getConfig()->misc->debugQueries): ?>
|
2014-05-16 21:38:33 +02:00
|
|
|
<?php $this->renderExternal('debug') ?>
|
2014-02-24 15:33:53 +01:00
|
|
|
<?php endif ?>
|
|
|
|
|
2014-01-06 19:25:27 +01:00
|
|
|
<div id="small-screen"></div>
|
2013-10-05 12:55:03 +02:00
|
|
|
</body>
|
|
|
|
</html>
|