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): ?>
|
2017-02-15 15:56:10 -05:00
|
|
|
<a href="<?= $escape->attr($urlGenerator->defaultUrl($url_type)) ?>">
|
2016-07-27 14:32:37 -04:00
|
|
|
<?= $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 ?>
|
2017-02-15 15:56:10 -05:00
|
|
|
[<a href="<?= $urlGenerator->defaultUrl($other_type) ?>"><?= ucfirst($other_type) ?> List</a>]
|
2016-07-27 14:32:37 -04:00
|
|
|
<?php else: ?>
|
|
|
|
<a href="<?= $urlGenerator->url('collection/view') ?>">
|
|
|
|
<?= $config->get('whose_list') ?>'s <?= ucfirst($url_type) ?> Collection
|
|
|
|
</a>
|
2017-02-15 15:56:10 -05:00
|
|
|
[<a href="<?= $urlGenerator->defaultUrl('anime') ?>">Anime List</a>]
|
|
|
|
[<a href="<?= $urlGenerator->defaultUrl('manga') ?>">Manga List</a>]
|
2016-07-27 14:32:37 -04:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
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">
|
2017-03-08 16:21:01 -05:00
|
|
|
[<?= $helper->a($url->generate('user_info'), 'About '. $config->get('whose_list')) ?>]
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
<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>
|
2017-02-16 14:30:39 -05:00
|
|
|
<?php if ($container->get('util')->isViewPage()): ?>
|
2016-07-27 14:32:37 -04:00
|
|
|
<?= $helper->menu($menu_name) ?>
|
|
|
|
<br />
|
|
|
|
<ul>
|
2017-02-16 14:30:39 -05:00
|
|
|
<li class="<?= Util::isNotSelected('list', $urlGenerator->lastSegment()) ?>"><a href="<?= $urlGenerator->url($route_path) ?>">Cover View</a></li>
|
|
|
|
<li class="<?= Util::isSelected('list', $urlGenerator->lastSegment()) ?>"><a href="<?= $urlGenerator->url("{$route_path}/list") ?>">List View</a></li>
|
2016-07-27 14:32:37 -04:00
|
|
|
</ul>
|
|
|
|
<?php endif ?>
|
2017-01-10 12:35:46 -05:00
|
|
|
</nav>
|