2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
<h1 class="mb-2 text-xl"><?= lang('Home.all_podcasts') ?> (<?= count(
|
|
|
|
$podcasts
|
|
|
|
) ?>)</h1>
|
2020-06-05 13:54:40 +00:00
|
|
|
<section class="flex flex-wrap">
|
2020-06-10 15:00:12 +00:00
|
|
|
<?php if ($podcasts): ?>
|
|
|
|
<?php foreach ($podcasts as $podcast): ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
<a href="<?= route_to('podcast', $podcast->name) ?>">
|
2020-06-30 18:17:41 +02:00
|
|
|
<article class="w-48 h-full p-2 mb-4 mr-4 border shadow-sm hover:bg-gray-100 hover:shadow">
|
2020-06-26 14:34:52 +00:00
|
|
|
<img alt="<?= $podcast->title ?>" src="<?= $podcast->image_url ?>" class="object-cover w-full h-40 mb-2" />
|
2020-06-05 13:54:40 +00:00
|
|
|
<h2 class="font-semibold leading-tight"><?= $podcast->title ?></h2>
|
|
|
|
<p class="text-gray-600">@<?= $podcast->name ?></p>
|
|
|
|
</article>
|
|
|
|
</a>
|
2020-06-10 15:00:12 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<p class="italic"><?= lang('Home.no_podcast') ?></p>
|
|
|
|
<?php endif; ?>
|
2020-06-05 13:54:40 +00:00
|
|
|
</section>
|
|
|
|
|
2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->endSection()
|
|
|
|
?>
|