mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-11 01:55:09 +00:00

- resize uploaded image to thumbnail, medium, large, feed, and id3 formats - set image url formats where adapted in views - set format sizes and extensions in Images config file for customization - add validation for image uploads: `min_dims` and `is_image_squared` - update codeigniter4 and myth-auth php packages to latest develop versions - update npm packages to latest versions - update public/.htaccess closes #6
30 lines
1.2 KiB
PHP
30 lines
1.2 KiB
PHP
<article class="w-48 h-full mb-4 mr-4 overflow-hidden bg-white border rounded shadow">
|
|
<img
|
|
alt="<?= $podcast->title ?>"
|
|
src="<?= $podcast->image
|
|
->thumbnail_url ?>" class="object-cover w-full h-40" />
|
|
<div class="p-2">
|
|
<a href="<?= route_to(
|
|
'podcast-view',
|
|
$podcast->id
|
|
) ?>" class="hover:underline">
|
|
<h2 class="font-semibold"><?= $podcast->title ?></h2>
|
|
</a>
|
|
<p class="text-gray-600">@<?= $podcast->name ?></p>
|
|
</div>
|
|
<footer class="flex items-center justify-end p-2">
|
|
<a class="inline-flex p-2 mr-2 text-teal-700 bg-teal-100 rounded-full shadow-xs hover:bg-teal-200" href="<?= route_to(
|
|
'podcast-edit',
|
|
$podcast->id
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
'Podcast.edit'
|
|
) ?>"><?= icon('edit') ?></a>
|
|
<a class="inline-flex p-2 text-gray-700 bg-gray-100 rounded-full shadow-xs hover:bg-gray-200" href="<?= route_to(
|
|
'podcast-view',
|
|
$podcast->id
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
'Podcast.view'
|
|
) ?>"><?= icon('eye') ?></a>
|
|
</footer>
|
|
</article>
|