2021-11-12 17:31:35 +01:00
|
|
|
<div class="flex items-center border-y border-subtle">
|
2021-10-13 17:43:40 +02:00
|
|
|
<div class="relative">
|
2021-11-05 15:36:34 +01:00
|
|
|
<time class="absolute px-1 text-sm font-semibold text-white rounded bg-black/75 bottom-2 right-2" datetime="PT<?= $episode->audio_file_duration ?>S">
|
2021-10-13 17:43:40 +02:00
|
|
|
<?= format_duration($episode->audio_file_duration) ?>
|
|
|
|
</time>
|
|
|
|
<img
|
2021-11-01 18:12:03 +01:00
|
|
|
src="<?= $episode->cover->thumbnail_url ?>"
|
2021-10-13 17:43:40 +02:00
|
|
|
alt="<?= $episode->title ?>" class="w-24 h-24"/>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col flex-1 px-4 py-2">
|
|
|
|
<div class="inline-flex">
|
2021-11-05 15:36:34 +01:00
|
|
|
<?= episode_numbering($episode->number, $episode->season_number, 'text-xs font-semibold text-skin-muted px-1 border border-subtle mr-2 !no-underline', true) ?>
|
|
|
|
<?= relative_time($episode->published_at, 'text-xs whitespace-nowrap text-skin-muted') ?>
|
2021-10-13 17:43:40 +02:00
|
|
|
</div>
|
|
|
|
<a href="<?= $episode->link ?>" class="flex items-baseline font-semibold line-clamp-2" title="<?= $episode->title ?>"><?= $episode->title ?></a>
|
|
|
|
</div>
|
|
|
|
<play-episode-button
|
|
|
|
class="mr-4"
|
|
|
|
id="<?= $index . '_' . $episode->id ?>"
|
2021-11-01 18:12:03 +01:00
|
|
|
imageSrc="<?= $episode->cover->thumbnail_url ?>"
|
2021-10-13 17:43:40 +02:00
|
|
|
title="<?= $episode->title ?>"
|
|
|
|
podcast="<?= $episode->podcast->title ?>"
|
|
|
|
src="<?= $episode->audio_file_web_url ?>"
|
|
|
|
mediaType="<?= $episode->audio_file_mimetype ?>"
|
|
|
|
playLabel="<?= lang('Common.play_episode_button.play') ?>"
|
|
|
|
playingLabel="<?= lang('Common.play_episode_button.playing') ?>"></play-episode-button>
|
|
|
|
</div>
|