2016-12-20 12:58:37 -05:00
|
|
|
<?php declare(strict_types=1); namespace Aviat\AnimeClient; ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
<h1 class="flex flex-align-end flex-wrap">
|
|
|
|
<span class="flex-no-wrap grow-1">
|
|
|
|
<?php if(strpos($route_path, 'collection') === FALSE): ?>
|
|
|
|
<a href="<?= $escape->attr($urlGenerator->default_url($url_type)) ?>">
|
|
|
|
<?= $config->get('whose_list') ?>'s <?= ucfirst($url_type) ?> List
|
|
|
|
</a>
|
|
|
|
<?php if($config->get("show_{$url_type}_collection")): ?>
|
|
|
|
[<a href="<?= $urlGenerator->url('collection/view') ?>"><?= ucfirst($url_type) ?> Collection</a>]
|
|
|
|
<?php endif ?>
|
|
|
|
[<a href="<?= $urlGenerator->default_url($other_type) ?>"><?= ucfirst($other_type) ?> List</a>]
|
|
|
|
<?php else: ?>
|
|
|
|
<a href="<?= $urlGenerator->url('collection/view') ?>">
|
|
|
|
<?= $config->get('whose_list') ?>'s <?= ucfirst($url_type) ?> Collection
|
|
|
|
</a>
|
|
|
|
[<a href="<?= $urlGenerator->default_url('anime') ?>">Anime List</a>]
|
|
|
|
[<a href="<?= $urlGenerator->default_url('manga') ?>">Manga List</a>]
|
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
2017-01-16 11:26:19 -05:00
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
<span class="flex-no-wrap"> </span>
|
|
|
|
<span class="flex-no-wrap small-font">
|
|
|
|
<button type="button" class="js-clear-cache user-btn">Clear API Cache</button>
|
|
|
|
</span>
|
|
|
|
<span class="flex-no-wrap"> </span>
|
2017-01-16 11:26:19 -05:00
|
|
|
<?php endif ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
<span class="flex-no-wrap small-font">
|
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
|
|
|
<a class="bracketed" href="<?= $url->generate('logout') ?>">Logout</a>
|
|
|
|
<?php else: ?>
|
|
|
|
[<a href="<?= $url->generate('login'); ?>"><?= $config->get('whose_list') ?>'s Login</a>]
|
2017-01-05 13:41:32 -05:00
|
|
|
<?php endif ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
</span>
|
|
|
|
</h1>
|
|
|
|
<nav>
|
|
|
|
<?php if ($container->get('util')->is_view_page()): ?>
|
|
|
|
<?= $helper->menu($menu_name) ?>
|
|
|
|
<br />
|
|
|
|
<ul>
|
|
|
|
<li class="<?= Util::is_not_selected('list', $urlGenerator->last_segment()) ?>"><a href="<?= $urlGenerator->url($route_path) ?>">Cover View</a></li>
|
|
|
|
<li class="<?= Util::is_selected('list', $urlGenerator->last_segment()) ?>"><a href="<?= $urlGenerator->url("{$route_path}/list") ?>">List View</a></li>
|
|
|
|
</ul>
|
|
|
|
<?php endif ?>
|
2017-01-10 12:35:46 -05:00
|
|
|
</nav>
|