2021-11-05 14:36:34 +00:00
|
|
|
<article class="flex w-full p-4 shadow bg-elevated rounded-conditional-2xl gap-x-2">
|
2021-10-18 16:44:07 +00:00
|
|
|
<div class="relative">
|
2022-01-23 19:00:08 +00:00
|
|
|
<time class="absolute px-1 text-xs font-semibold text-white rounded bottom-2 right-2 bg-black/75" datetime="PT<?= round($episode->audio->duration, 3) ?>S">
|
2021-12-14 16:41:10 +00:00
|
|
|
<?= format_duration($episode->audio->duration) ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
</time>
|
2022-01-21 18:07:43 +00:00
|
|
|
<img src="<?= $episode->cover
|
2022-03-04 14:33:48 +00:00
|
|
|
->thumbnail_url ?>" alt="<?= esc($episode->title) ?>" class="object-cover w-20 rounded-lg shadow-inner aspect-square" loading="lazy" />
|
2021-10-18 16:44:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex items-center flex-1 gap-x-4">
|
|
|
|
<div class="flex flex-col flex-1">
|
|
|
|
<div class="inline-flex items-center">
|
2021-11-05 14:36:34 +00:00
|
|
|
<?= episode_numbering($episode->number, $episode->season_number, 'text-xs font-semibold border-subtle text-skin-muted px-1 border mr-2 !no-underline', true) ?>
|
|
|
|
<?= relative_time($episode->published_at, 'text-xs whitespace-nowrap text-skin-muted') ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
2022-03-04 14:33:48 +00:00
|
|
|
<h2 class="flex-1 mt-1 font-semibold leading-tight line-clamp-2"><a class="hover:underline" href="<?= $episode->link ?>"><?= esc($episode->title) ?></a></h2>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
2021-10-18 16:44:07 +00:00
|
|
|
<play-episode-button
|
|
|
|
id="<?= $episode->id ?>"
|
2021-11-01 17:12:03 +00:00
|
|
|
imageSrc="<?= $episode->cover->thumbnail_url ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
title="<?= esc($episode->title) ?>"
|
|
|
|
podcast="<?= esc($episode->podcast->title) ?>"
|
2022-01-21 08:52:28 +00:00
|
|
|
src="<?= $episode->audio_web_url ?>"
|
2021-12-17 17:14:37 +00:00
|
|
|
mediaType="<?= $episode->audio->file_mimetype ?>"
|
2021-10-18 16:44:07 +00:00
|
|
|
playLabel="<?= lang('Common.play_episode_button.play') ?>"
|
|
|
|
playingLabel="<?= lang('Common.play_episode_button.playing') ?>"></play-episode-button>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
|
|
|
</article>
|