HummingBirdAnimeClient/app/views/header.php

38 lines
1.5 KiB
PHP
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title><?= $title ?></title>
<meta charset="utf-8" />
2015-10-20 15:59:51 -04:00
<link rel="stylesheet" href="<?= $urlGenerator->asset_url('css.php?g=base') ?>" />
<script>
2015-09-14 15:49:20 -04:00
var BASE_URL = "<?= $urlGenerator->base_url($url_type) ?>";
var CONTROLLER = "<?= $url_type ?>";
</script>
</head>
2015-09-17 23:11:18 -04:00
<body class="<?= $escape->attr($url_type) ?> list">
<h1 class="flex flex-align-end flex-wrap">
<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-10-06 11:38:20 -04:00
<?= $config->get('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>]
</span>
<span class="flex-no-wrap small-font">
2015-09-28 14:41:45 -04:00
<?php /*if (is_logged_in()): ?>
[<a href="<?= $urlGenerator->url("/{$url_type}/logout", $url_type) ?>">Logout</a>]
<?php else: ?>
[<a href="<?= $urlGenerator->url("/{$url_type}/login", $url_type) ?>"><?= $config->whose_list ?>'s Login</a>]
2015-09-28 14:41:45 -04:00
<?php endif */ ?>
</span>
</h1>
<nav>
2015-10-09 14:34:55 -04:00
<?= $helper->menu($menu_name) ?>
<?php if (is_view_page()): ?>
<br />
2015-10-20 15:59:51 -04:00
<ul>
2015-10-09 14:34:55 -04:00
<li class="<?= is_not_selected('list', $urlGenerator->last_segment()) ?>"><a href="<?= $urlGenerator->url($route_path) ?>">Cover View</a></li>
<li class="<?= is_selected('list', $urlGenerator->last_segment()) ?>"><a href="<?= $urlGenerator->url("{$route_path}/list") ?>">List View</a></li>
</ul>
<?php endif ?>
</nav>
<br />