* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 5.2
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
*/
namespace Aviat\AnimeClient;
$whose = $config->get('whose_list') . "'s ";
$lastSegment = $urlGenerator->lastSegment();
$extraSegment = $lastSegment === 'list' ? '/list' : '';
$hasAnime = str_contains($GLOBALS['_SERVER']['REQUEST_URI'], 'anime');
$hasManga = str_contains($GLOBALS['_SERVER']['REQUEST_URI'], 'manga');
?>
= $helper->a(
$urlGenerator->defaultUrl($url_type),
$whose . ucfirst($url_type) . ' List',
['aria-current'=> 'page']
) ?>
get("show_{$url_type}_collection")): ?>
[= $helper->a(
$url->generate("{$url_type}.collection.view") . $extraSegment,
ucfirst($url_type) . ' Collection'
) ?>]
get("show_{$other_type}_collection")): ?>
[= $helper->a(
$url->generate("{$other_type}.collection.view") . $extraSegment,
ucfirst($other_type) . ' Collection'
) ?>]
[= $helper->a(
$urlGenerator->defaultUrl($other_type) . $extraSegment,
ucfirst($other_type) . ' List'
) ?>]
= $helper->a(
$url->generate("{$url_type}.collection.view") . $extraSegment,
$whose . ucfirst($url_type) . ' Collection',
['aria-current'=> 'page']
) ?>
get("show_{$other_type}_collection")): ?>
[= $helper->a(
$url->generate("{$other_type}.collection.view") . $extraSegment,
ucfirst($other_type) . ' Collection'
) ?>]
[= $helper->a($urlGenerator->defaultUrl('anime') . $extraSegment, 'Anime List') ?>]
[= $helper->a($urlGenerator->defaultUrl('manga') . $extraSegment, 'Manga List') ?>]
isAuthenticated() && $config->get(['cache', 'driver']) !== 'null'): ?>
[= $helper->a(
$url->generate('default_user_info'),
'About '. $config->get('whose_list')
) ?>]
isAuthenticated()): ?>
= $helper->a(
$url->generate('settings'),
'Settings',
['class' => 'bracketed']
) ?>
= $helper->a(
$url->generate('logout'),
'Logout',
['class' => 'bracketed']
) ?>
[= $helper->a($url->generate('login'), "{$whose} Login") ?>]
get('util')->isViewPage() && ($hasAnime || $hasManga)): ?>