2022-09-28 15:02:09 +00:00
|
|
|
<div data-sidebar-toggler="backdrop" class="absolute top-0 left-0 z-10 hidden w-full h-full bg-backdrop/75 md:hidden" role="button" tabIndex="0" aria-label="<?= lang('Common.close') ?>"></div>
|
2021-11-05 14:36:34 +00:00
|
|
|
<aside id="podcast-sidebar" data-sidebar-toggler="sidebar" data-toggle-class="hidden" data-hide-class="hidden" class="z-20 hidden h-full col-span-1 col-start-2 row-start-1 p-4 py-6 shadow-2xl md:shadow-none md:block bg-base">
|
|
|
|
<div class="sticky z-10 bg-base top-12">
|
2024-05-09 17:55:41 +00:00
|
|
|
<a href="<?= $podcast->feed_url ?>" class="inline-flex items-center mb-6 text-sm font-semibold text-skin-muted hover:text-skin-base group" target="_blank" rel="noopener noreferrer">
|
2024-04-26 17:57:25 +00:00
|
|
|
<?= icon('rss-fill', [
|
|
|
|
'class' => ' mr-2 bg-orange-500 text-xl text-white group-hover:bg-orange-700 p-1 w-6 h-6 inline-flex items-center justify-center rounded-lg',
|
|
|
|
]) . lang('Podcast.feed') ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
</a>
|
|
|
|
<?php if (
|
|
|
|
in_array(true, array_column($podcast->socialPlatforms, 'is_visible'), true)
|
|
|
|
): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<h2 class="text-sm font-bold font-display text-accent-muted"> <?= lang('Podcast.find_on', [
|
2023-04-17 11:36:40 +00:00
|
|
|
'podcastTitle' => $podcast->title,
|
2021-10-13 15:43:40 +00:00
|
|
|
]) ?></h2>
|
|
|
|
<div class="grid items-center justify-center grid-cols-6 gap-3 mb-6">
|
|
|
|
<?php foreach ($podcast->socialPlatforms as $socialPlatform): ?>
|
|
|
|
<?php if ($socialPlatform->is_visible): ?>
|
|
|
|
<?= anchor(
|
2023-02-22 16:29:45 +00:00
|
|
|
esc($socialPlatform->link_url),
|
2024-04-26 17:57:25 +00:00
|
|
|
icon($socialPlatform->type . ':' . $socialPlatform->slug),
|
2023-02-22 16:29:45 +00:00
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'class' => 'text-2xl text-skin-muted hover:text-skin-base w-8 h-8 items-center inline-flex justify-center',
|
|
|
|
'target' => '_blank',
|
|
|
|
'rel' => 'noopener noreferrer',
|
2023-02-22 16:29:45 +00:00
|
|
|
'data-tooltip' => 'bottom',
|
2023-06-12 14:47:38 +00:00
|
|
|
'title' => $socialPlatform->label,
|
2023-02-22 16:29:45 +00:00
|
|
|
],
|
|
|
|
) ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php if (
|
|
|
|
in_array(true, array_column($podcast->podcastingPlatforms, 'is_visible'), true)
|
|
|
|
): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<h2 class="text-sm font-bold font-display text-accent-muted"><?= lang('Podcast.listen_on') ?></h2>
|
2021-10-13 15:43:40 +00:00
|
|
|
<div class="grid items-center justify-center grid-cols-6 gap-3 mb-6">
|
|
|
|
<?php foreach ($podcast->podcastingPlatforms as $podcastingPlatform): ?>
|
|
|
|
<?php if ($podcastingPlatform->is_visible): ?>
|
|
|
|
<?= anchor(
|
2023-02-22 16:29:45 +00:00
|
|
|
esc($podcastingPlatform->link_url),
|
2024-04-26 17:57:25 +00:00
|
|
|
icon(sprintf('%s:%s', $podcastingPlatform->type, $podcastingPlatform->slug)),
|
2023-02-22 16:29:45 +00:00
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'class' => 'text-2xl text-skin-muted hover:text-skin-base w-8 h-8 items-center inline-flex justify-center',
|
|
|
|
'target' => '_blank',
|
|
|
|
'rel' => 'noopener noreferrer',
|
2023-02-22 16:29:45 +00:00
|
|
|
'data-tooltip' => 'bottom',
|
2023-06-12 14:47:38 +00:00
|
|
|
'title' => $podcastingPlatform->label,
|
2023-02-22 16:29:45 +00:00
|
|
|
],
|
|
|
|
) ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<footer class="flex flex-col items-center py-2 text-xs text-center border-t border-subtle text-skin-muted">
|
2023-07-26 17:19:40 +00:00
|
|
|
<?= render_page_links('inline-flex mb-2 flex-wrap gap-y-1 justify-center', $podcast->handle) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="flex flex-col">
|
2022-03-04 14:33:48 +00:00
|
|
|
<p><?= esc($podcast->copyright) ?></p>
|
2021-04-02 17:20:02 +00:00
|
|
|
<p><?= lang('Common.powered_by', [
|
2024-05-09 17:55:41 +00:00
|
|
|
'castopod' => '<a class="inline-flex font-semibold text-skin-muted 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>',
|
2023-02-22 16:29:45 +00:00
|
|
|
], null, false) ?></p>
|
2021-04-02 17:20:02 +00:00
|
|
|
</div>
|
2021-10-13 15:43:40 +00:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</aside>
|