More main menu tweaking

This commit is contained in:
Timothy Warren 2017-04-17 14:49:33 -04:00
parent 6111dfe6f9
commit 4d991629b1

View File

@ -10,10 +10,13 @@ $extraSegment = $lastSegment === 'list' ? '/list' : '';
<h1 class="flex flex-align-end flex-wrap"> <h1 class="flex flex-align-end flex-wrap">
<span class="flex-no-wrap grow-1"> <span class="flex-no-wrap grow-1">
<?php if(strpos($route_path, 'collection') === FALSE): ?> <?php if(strpos($route_path, 'collection') === FALSE): ?>
<?= $whose . ucfirst($url_type) . ' List' ?> <?= $helper->a(
$urlGenerator->defaultUrl($url_type),
$whose . ucfirst($url_type) . ' List'
) ?>
<?php if($config->get("show_{$url_type}_collection")): ?> <?php if($config->get("show_{$url_type}_collection")): ?>
[<?= $helper->a( [<?= $helper->a(
$url->generate('collection.view'), $url->generate('collection.view') . $extraSegment,
ucfirst($url_type) . ' Collection' ucfirst($url_type) . ' Collection'
) ?>] ) ?>]
<?php endif ?> <?php endif ?>
@ -23,8 +26,8 @@ $extraSegment = $lastSegment === 'list' ? '/list' : '';
) ?>] ) ?>]
<?php else: ?> <?php else: ?>
<?= $whose . ucfirst($url_type) . ' Collection' ?> <?= $whose . ucfirst($url_type) . ' Collection' ?>
[<?= $helper->a($urlGenerator->defaultUrl('anime'), 'Anime List') ?>] [<?= $helper->a($urlGenerator->defaultUrl('anime') . $extraSegment, 'Anime List') ?>]
[<?= $helper->a($urlGenerator->defaultUrl('manga'), 'Manga List') ?>] [<?= $helper->a($urlGenerator->defaultUrl('manga') . $extraSegment, 'Manga List') ?>]
<?php endif ?> <?php endif ?>
</span> </span>