2021-10-13 15:43:40 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
$navigationItems = [
|
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'uri' => route_to('podcast-activity', esc($podcast->handle)),
|
2021-10-13 15:43:40 +00:00
|
|
|
'label' => lang('Podcast.activity'),
|
|
|
|
],
|
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'uri' => route_to('podcast-episodes', esc($podcast->handle)),
|
2021-10-13 15:43:40 +00:00
|
|
|
'label' => lang('Podcast.episodes'),
|
|
|
|
],
|
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'uri' => route_to('podcast-about', esc($podcast->handle)),
|
2021-10-13 15:43:40 +00:00
|
|
|
'label' => lang('Podcast.about'),
|
|
|
|
],
|
|
|
|
]
|
|
|
|
?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<nav class="sticky z-40 flex col-start-2 pt-8 shadow bg-elevated gap-x-2 md:gap-x-4 md:px-8 -top-6 md:-top-10 rounded-conditional-b-xl md:pt-12 ">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php foreach ($navigationItems as $item): ?>
|
|
|
|
<?php $isActive = url_is($item['uri']); ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<a href="<?= $item['uri'] ?>" class="px-4 py-1 text-sm font-semibold uppercase border-b-4<?= $isActive ? ' border-b-4 text-black border-accent-base' : ' text-skin-muted hover:text-skin-base hover:border-subtle border-transparent' ?>"><?= $item['label'] ?></a>
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php endforeach; ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<button type="button" class="p-2 ml-auto rotate-180 rounded-full md:hidden" data-sidebar-toggler="toggler" aria-label="<?= lang('Navigation.toggle_sidebar') ?>"><?= icon('menu-2-fill') ?></button>
|
2021-10-13 15:43:40 +00:00
|
|
|
</nav>
|