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
|
|
|
<?php
|
|
|
|
$title = isset($this->context->subTitle)
|
|
|
|
? sprintf('%s – %s', $this->context->title, $this->context->subTitle)
|
|
|
|
: $this->context->title
|
|
|
|
?>
|
|
|
|
<title><?php echo $title ?></title>
|
2013-10-09 19:40:38 +02:00
|
|
|
<?php foreach (array_unique($this->context->stylesheets) as $name): ?>
|
2013-10-07 00:44:17 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/css/' . $name) ?>"/>
|
|
|
|
<?php endforeach ?>
|
2013-11-18 14:33:43 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
|
|
|
|
|
|
|
|
<meta property="og:title" content="<?php echo $title ?>"/>
|
|
|
|
<meta property="og:url" content="<?php echo \Chibi\UrlHelper::currentUrl() ?>"/>
|
|
|
|
<?php if (!empty($this->context->pageThumb)): ?>
|
|
|
|
<meta property="og:image" content="<?php echo $this->context->pageThumb ?>"/>
|
|
|
|
<?php endif ?>
|
2013-10-05 12:55:03 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2013-12-01 15:16:10 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
var lastSearchQuery = <?php echo json_encode(isset($this->context->transport->lastSearchQuery) ? $this->context->transport->lastSearchQuery : '') ?>;
|
|
|
|
</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">
|
2013-12-14 16:49:43 +01:00
|
|
|
<?php $this->renderFile('top-navigation') ?>
|
|
|
|
</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">
|
|
|
|
<?php echo $this->renderView() ?>
|
|
|
|
</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">
|
2013-11-17 13:02:41 +01:00
|
|
|
<span>Load: <?php echo sprintf('%.05f', microtime(true) - $this->context->startTime) ?>s</span>
|
2013-12-18 15:10:53 +01:00
|
|
|
<span>Queries: <?php echo count(Database::getLogs()) ?></span>
|
2013-10-20 11:12:56 +02:00
|
|
|
<span><a href="<?php echo SZURU_LINK ?>">szurubooru v<?php echo SZURU_VERSION ?></a></span>
|
2013-11-17 14:39:50 +01:00
|
|
|
<?php if (PrivilegesHelper::confirm(Privilege::ListLogs)): ?>
|
2013-11-18 14:00:54 +01:00
|
|
|
<span><a href="<?php echo \Chibi\UrlHelper::route('log', 'list') ?>">Logs</a></span>
|
2013-11-17 14:39:50 +01:00
|
|
|
<?php endif ?>
|
2013-10-12 22:54:25 +02:00
|
|
|
</div>
|
2013-12-05 22:22:11 +01:00
|
|
|
<?php if ($this->config->misc->debugQueries): ?>
|
|
|
|
<hr>
|
|
|
|
<div class="main-wrapper">
|
2013-12-18 15:10:53 +01:00
|
|
|
<pre class="debug">
|
|
|
|
<?php foreach (Database::getLogs() as $query)
|
|
|
|
{
|
|
|
|
$bindings = [];
|
|
|
|
foreach ($query->getBindings() as $k => $v)
|
|
|
|
$bindings []= $k . '=' . $v;
|
|
|
|
printf('<p>%s [%s]</p>', htmlspecialchars($query->getSql()), join(', ', $bindings));
|
|
|
|
} ?>
|
|
|
|
</pre>
|
2013-12-05 22:22:11 +01:00
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
2013-10-12 22:54:25 +02:00
|
|
|
</footer>
|
2013-11-24 23:30:06 +01:00
|
|
|
|
2013-11-30 00:11:11 +01:00
|
|
|
<?php foreach (array_unique($this->context->scripts) as $name): ?>
|
|
|
|
<script type="text/javascript" src="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/js/' . $name) ?>"></script>
|
|
|
|
<?php endforeach ?>
|
2013-11-24 23:30:06 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function()
|
|
|
|
{
|
|
|
|
$('body').trigger('dom-update');
|
|
|
|
});
|
|
|
|
</script>
|
2014-01-06 19:25:27 +01:00
|
|
|
|
|
|
|
<div id="small-screen"></div>
|
2013-10-05 12:55:03 +02:00
|
|
|
</body>
|
|
|
|
</html>
|