2021-10-04 15:56:43 +00:00
|
|
|
<?= $this->extend('podcast/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-13 15:43:40 +00:00
|
|
|
<div class="px-2 sm:px-4">
|
2022-02-02 14:58:59 +00:00
|
|
|
<div class="mb-2 prose"><?= $podcast->description_html ?></div>
|
|
|
|
<div class="flex flex-wrap gap-x-4 gap-y-2">
|
2021-11-08 16:52:20 +00:00
|
|
|
<span class="px-2 py-1 text-sm font-semibold border rounded-sm border-subtle bg-highlight">
|
2022-01-23 19:58:30 +00:00
|
|
|
<?= category_label($podcast->category) ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
</span>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php foreach ($podcast->other_categories as $other_category): ?>
|
2021-11-08 16:52:20 +00:00
|
|
|
<span class="px-2 py-1 text-sm font-semibold border rounded-sm border-subtle bg-highlight">
|
2022-01-23 19:58:30 +00:00
|
|
|
<?= category_label($other_category) ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
</span>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-10-04 15:56:43 +00:00
|
|
|
|
2021-10-18 16:44:07 +00:00
|
|
|
<div class="flex items-center mt-4 gap-x-8">
|
|
|
|
<?php if ($podcast->persons !== []): ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<button class="flex items-center flex-shrink-0 text-xs font-semibold gap-x-2 hover:underline" data-toggle="persons-list" data-toggle-class="hidden">
|
2022-01-23 19:00:08 +00:00
|
|
|
<span class="inline-flex flex-row-reverse">
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php $i = 0; ?>
|
|
|
|
<?php foreach ($podcast->persons as $person): ?>
|
2023-04-13 11:45:03 +00:00
|
|
|
<img src="<?= get_avatar_url($person, 'thumbnail') ?>" alt="<?= esc($person->full_name) ?>" class="object-cover w-8 -ml-4 border-2 rounded-full aspect-square bg-header border-background-base last:ml-0" loading="lazy" />
|
2023-02-22 16:29:45 +00:00
|
|
|
<?php $i++;
|
|
|
|
if ($i === 3) {
|
|
|
|
break;
|
|
|
|
}?>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php endforeach; ?>
|
2022-01-23 19:00:08 +00:00
|
|
|
</span>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?= lang('Podcast.persons', [
|
|
|
|
'personsCount' => count($podcast->persons),
|
|
|
|
]) ?>
|
|
|
|
</button>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($podcast->location): ?>
|
|
|
|
<?= location_link($podcast->location, 'text-xs font-semibold p-2') ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2022-01-11 10:51:10 +00:00
|
|
|
<div class="mt-6">
|
2022-01-06 16:52:13 +00:00
|
|
|
<h2 class="text-xs font-bold tracking-wider text-gray-600 uppercase border-b-2 border-subtle font-display"><?= lang('Podcast.stats.title') ?></h2>
|
|
|
|
<div class="flex flex-col text-sm">
|
|
|
|
<?php foreach ($stats as $key => $value): ?>
|
|
|
|
<span class="py-2 border-b border-subtle">
|
|
|
|
<?= lang('Podcast.about.stats.' . $key, [$value]) ?>
|
|
|
|
</span>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?= view('_persons_modal', [
|
|
|
|
'title' => lang('Podcast.persons_list', [
|
2022-03-04 14:33:48 +00:00
|
|
|
'podcastTitle' => esc($podcast->title),
|
2021-10-13 15:43:40 +00:00
|
|
|
]),
|
|
|
|
'persons' => $podcast->persons,
|
|
|
|
]) ?>
|
2021-10-04 15:56:43 +00:00
|
|
|
|
|
|
|
<?= $this->endSection()
|
|
|
|
?>
|