szurubooru/src/Views/layout-normal.phtml

59 lines
1.7 KiB
PHTML
Raw Normal View History

<?php
2014-04-29 21:35:29 +02:00
Assets::addStylesheet('../lib/jquery-ui/jquery-ui.css');
Assets::addStylesheet('core.css');
Assets::addScript('../lib/jquery/jquery.min.js');
Assets::addScript('../lib/jquery-ui/jquery-ui.min.js');
Assets::addScript('../lib/mousetrap/mousetrap.min.js');
Assets::addScript('core.js');
?>
2013-10-05 12:55:03 +02:00
<!DOCTYPE html>
<html>
<head>
2013-10-07 00:44:17 +02:00
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
2013-10-05 12:55:03 +02:00
</head>
<body>
<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
:'') ?>;
</script>
2013-10-09 11:45:18 +02:00
<nav id="top-nav">
<div class="main-wrapper">
2014-04-29 21:35:29 +02:00
<?php \Chibi\View::render('top-navigation', $this->context) ?>
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
<section id="content">
<div class="main-wrapper">
2014-04-29 21:35:29 +02:00
<?= \Chibi\View::render($this->context->viewName, $this->context) ?>
</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-02-16 12:30:34 +01:00
<hr>
2014-04-27 14:44:06 +02:00
<span>Load:&nbsp;<?= sprintf('%.05f', microtime(true) - $this->context->startTime) ?>s</span>
<span>Queries:&nbsp;<?= count(\Chibi\Database::getLogs()) ?></span>
<span><a href="<?= SZURU_LINK ?>">szurubooru&nbsp;v<?= SZURU_VERSION ?></a></span>
2013-11-17 14:39:50 +01:00
<?php if (PrivilegesHelper::confirm(Privilege::ListLogs)): ?>
2014-04-29 21:35:29 +02:00
<span><a href="<?= \Chibi\Router::linkTo(['LogController', 'listAction']) ?>">Logs</a></span>
2013-11-17 14:39:50 +01:00
<?php endif ?>
2013-12-05 22:22:11 +01:00
<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-04-29 21:35:29 +02:00
<?php if (getConfig()->misc->debugQueries): ?>
<?= \Chibi\View::render('debug', $this->context) ?>
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>