2015-06-16 11:11:35 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title><?= $title ?></title>
|
2015-06-24 16:01:35 -04:00
|
|
|
<meta charset="utf-8" />
|
2015-09-17 23:11:18 -04:00
|
|
|
<link rel="stylesheet" href="<?= $escape->attr($urlGenerator->asset_url('css.php?g=base')) ?>" />
|
2015-06-24 16:01:35 -04:00
|
|
|
<script>
|
2015-09-14 15:49:20 -04:00
|
|
|
var BASE_URL = "<?= $urlGenerator->base_url($url_type) ?>";
|
2015-06-24 16:01:35 -04:00
|
|
|
var CONTROLLER = "<?= $url_type ?>";
|
|
|
|
</script>
|
2015-06-16 11:11:35 -04:00
|
|
|
</head>
|
2015-09-17 23:11:18 -04:00
|
|
|
<body class="<?= $escape->attr($url_type) ?> list">
|
2015-06-26 14:56:59 -04:00
|
|
|
<h1 class="flex flex-align-end flex-wrap">
|
2015-06-30 13:03:20 -04:00
|
|
|
<span class="flex-no-wrap grow-1">
|
2015-09-17 23:11:18 -04:00
|
|
|
<a href="<?= $escape->attr($urlGenerator->default_url($url_type)) ?>">
|
2015-09-16 12:25:35 -04:00
|
|
|
<?= $config->whose_list ?>'s <?= ucfirst($url_type) ?> <?= (strpos($route_path, 'collection') !== FALSE) ? 'Collection' : 'List' ?>
|
2015-09-14 15:49:20 -04:00
|
|
|
</a> [<a href="<?= $urlGenerator->default_url($other_type) ?>"><?= ucfirst($other_type) ?> List</a>]
|
2015-06-30 13:03:20 -04:00
|
|
|
</span>
|
2015-06-26 14:56:59 -04:00
|
|
|
<span class="flex-no-wrap small-font">
|
|
|
|
<?php if (is_logged_in()): ?>
|
2015-09-14 16:14:02 -04:00
|
|
|
[<a href="<?= $urlGenerator->url("/{$url_type}/logout", $url_type) ?>">Logout</a>]
|
2015-06-26 14:56:59 -04:00
|
|
|
<?php else: ?>
|
2015-09-16 12:25:35 -04:00
|
|
|
[<a href="<?= $urlGenerator->url("/{$url_type}/login", $url_type) ?>"><?= $config->whose_list ?>'s Login</a>]
|
2015-06-26 14:56:59 -04:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
</h1>
|
2015-06-30 13:03:20 -04:00
|
|
|
<?php if ( ! empty($nav_routes)): ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<nav>
|
2015-06-26 14:56:59 -04:00
|
|
|
<ul>
|
|
|
|
<?php foreach($nav_routes as $title => $nav_path): ?>
|
2015-09-14 15:49:20 -04:00
|
|
|
<li class="<?= is_selected($nav_path, $route_path) ?>"><a href="<?= $urlGenerator->url($nav_path) ?>"><?= $title ?></a></li>
|
2015-06-26 14:56:59 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
</ul>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (is_view_page()): ?>
|
2015-06-26 14:56:59 -04:00
|
|
|
<br />
|
2015-06-16 11:11:35 -04:00
|
|
|
<ul>
|
2015-09-14 15:49:20 -04:00
|
|
|
<li class="<?= is_not_selected('list', last_segment()) ?>"><a href="<?= $urlGenerator->url($route_path) ?>">Cover View</a></li>
|
|
|
|
<li class="<?= is_selected('list', last_segment()) ?>"><a href="<?= $urlGenerator->url("{$route_path}/list") ?>">List View</a></li>
|
2015-06-16 11:11:35 -04:00
|
|
|
</ul>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</nav>
|
2015-06-30 13:03:20 -04:00
|
|
|
<br />
|
|
|
|
<?php endif ?>
|