mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 00:35:47 +00:00

- add About podcast page - use different layout for episode pages - improve on user feedback with design - restructure app theme folders - update js packages to latest versions
27 lines
1.4 KiB
PHP
27 lines
1.4 KiB
PHP
<div class="flex items-center border-t border-b">
|
|
<div class="relative">
|
|
<time class="absolute px-1 text-sm font-semibold text-white bg-black/50 bottom-2 right-2" datetime="PT<?= $episode->audio_file_duration ?>S">
|
|
<?= format_duration($episode->audio_file_duration) ?>
|
|
</time>
|
|
<img
|
|
src="<?= $episode->image->thumbnail_url ?>"
|
|
alt="<?= $episode->title ?>" class="w-24 h-24"/>
|
|
</div>
|
|
<div class="flex flex-col flex-1 px-4 py-2">
|
|
<div class="inline-flex">
|
|
<?= episode_numbering($episode->number, $episode->season_number, 'text-xs font-semibold text-gray-700 px-1 border mr-2 !no-underline', true) ?>
|
|
<?= relative_time($episode->published_at, 'text-xs whitespace-nowrap text-gray-500') ?>
|
|
</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 ?>"
|
|
imageSrc="<?= $episode->image->thumbnail_url ?>"
|
|
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>
|