mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-28 14:37:19 +02:00
- add pages migration, model and entity - add page controllers - update routes config to input page forms and page view in public - fix markdow editor focus area - show pages links in public side footer closes #24
28 lines
1016 B
PHP
28 lines
1016 B
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>Castopod<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<h1 class="mb-2 text-xl"><?= lang('Home.all_podcasts') ?> (<?= count(
|
|
$podcasts
|
|
) ?>)</h1>
|
|
<section class="flex flex-wrap">
|
|
<?php if ($podcasts): ?>
|
|
<?php foreach ($podcasts as $podcast): ?>
|
|
<a href="<?= route_to('podcast', $podcast->name) ?>">
|
|
<article class="w-48 h-full p-2 mb-4 mr-4 border shadow-sm hover:bg-gray-100 hover:shadow">
|
|
<img alt="<?= $podcast->title ?>" src="<?= $podcast->image_url ?>" class="object-cover w-full h-40 mb-2" />
|
|
<h2 class="font-semibold leading-tight"><?= $podcast->title ?></h2>
|
|
<p class="text-gray-600">@<?= $podcast->name ?></p>
|
|
</article>
|
|
</a>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<p class="italic"><?= lang('Home.no_podcast') ?></p>
|
|
<?php endif; ?>
|
|
</section>
|
|
|
|
<?= $this->endSection()
|
|
?>
|