2022-10-14 14:37:03 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
$isPodcastArea = isset($podcast) && ! isset($episode);
|
|
|
|
$isEpisodeArea = isset($podcast) && isset($episode);
|
|
|
|
?>
|
|
|
|
|
2022-09-28 15:02:09 +00:00
|
|
|
<div data-sidebar-toggler="backdrop" role="button" tabIndex="0" aria-label="<?= lang('Common.close') ?>" class="fixed z-50 hidden w-full h-full bg-gray-800/75 md:hidden"></div>
|
2021-11-05 14:36:34 +00:00
|
|
|
<aside data-sidebar-toggler="sidebar" data-toggle-class="-translate-x-full" data-hide-class="-translate-x-full" class="h-full max-h-[calc(100vh-40px)] sticky z-50 flex flex-col row-start-2 col-start-1 text-white transition duration-200 ease-in-out transform -translate-x-full border-r top-10 border-navigation bg-navigation md:translate-x-0">
|
2022-10-14 14:37:03 +00:00
|
|
|
<?php if ($isEpisodeArea): ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?= $this->include('episode/_sidebar') ?>
|
2022-10-14 14:37:03 +00:00
|
|
|
<?php elseif ($isPodcastArea): ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?= $this->include('podcast/_sidebar') ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?= $this->include('_sidebar') ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<footer class="px-2 py-2 mx-auto text-xs text-right">
|
|
|
|
<?= lang('Common.powered_by', [
|
2024-05-09 17:55:41 +00:00
|
|
|
'castopod' => '<a class="inline-flex font-semibold hover:underline" href="https://castopod.org/" target="_blank" rel="noreferrer noopener">Castopod' . icon('social:castopod', [
|
2024-04-26 17:57:25 +00:00
|
|
|
'class' => 'ml-1 text-lg',
|
|
|
|
]) . '</a> ' .
|
2021-10-18 16:44:07 +00:00
|
|
|
CP_VERSION,
|
2022-04-21 12:53:47 +00:00
|
|
|
], null, false) ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
</footer>
|
2023-10-10 15:55:39 +00:00
|
|
|
</aside>
|