2021-10-04 15:56:43 +00:00
|
|
|
<?= $this->extend('podcast/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('meta-tags') ?>
|
|
|
|
<!-- TODO: -->
|
|
|
|
|
|
|
|
<link type="application/rss+xml" rel="alternate" title="<?= $podcast->title ?>" href="<?= $podcast->feed_url ?>" />
|
|
|
|
|
|
|
|
<title><?= $podcast->title ?></title>
|
|
|
|
<meta name="description" content="<?= htmlspecialchars(
|
|
|
|
$podcast->description,
|
|
|
|
) ?>" />
|
2021-10-26 15:54:56 +00:00
|
|
|
<link rel="icon" type="image/x-icon" href="<?= service('settings')
|
|
|
|
->get('App.siteIcon')['ico'] ?>" />
|
|
|
|
<link rel="apple-touch-icon" href="<?= service('settings')->get('App.siteIcon')['180'] ?>">
|
|
|
|
<link rel="manifest" href="<?= route_to('webmanifest') ?>">
|
2021-10-04 15:56:43 +00:00
|
|
|
<link rel="canonical" href="<?= current_url() ?>" />
|
|
|
|
<meta property="og:title" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:description" content="<?= $podcast->description ?>" />
|
|
|
|
<meta property="og:locale" content="<?= $podcast->language_code ?>" />
|
|
|
|
<meta property="og:site_name" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:url" content="<?= current_url() ?>" />
|
2021-11-01 17:12:03 +00:00
|
|
|
<meta property="og:image" content="<?= $podcast->cover->large_url ?>" />
|
|
|
|
<meta property="og:image:width" content="<?= config('Images')->podcastCoverSizes['large'][0] ?>" />
|
|
|
|
<meta property="og:image:height" content="<?= config('Images')->podcastCoverSizes['large'][1] ?>" />
|
2021-10-04 15:56:43 +00:00
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
|
|
|
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-13 15:43:40 +00:00
|
|
|
<div class="px-2 sm:px-4">
|
2021-10-18 16:44:07 +00:00
|
|
|
<div class="mb-2"><?= $podcast->description_html ?></div>
|
|
|
|
<div class="flex 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">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?= lang(
|
2021-10-18 16:44:07 +00:00
|
|
|
'Podcast.category_options.' . $podcast->category->code,
|
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">
|
2021-10-18 16:44:07 +00:00
|
|
|
<?= lang(
|
|
|
|
'Podcast.category_options.' . $other_category->code,
|
|
|
|
) ?>
|
|
|
|
</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 !== []): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<button class="flex items-center text-xs font-semibold gap-x-2 hover:underline focus:ring-accent" data-toggle="persons-list" data-toggle-class="hidden">
|
2021-10-18 16:44:07 +00:00
|
|
|
<div class="inline-flex flex-row-reverse">
|
|
|
|
<?php $i = 0; ?>
|
|
|
|
<?php foreach ($podcast->persons as $person): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<img src="<?= $person->avatar->thumbnail_url ?>" alt="<?= $person->full_name ?>" class="object-cover w-8 h-8 -ml-5 border-2 rounded-full border-background-base last:ml-0" />
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php $i++; if ($i === 3) {
|
2021-10-13 15:43:40 +00:00
|
|
|
break;
|
|
|
|
}?>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<?= 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>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?= view('_persons_modal', [
|
|
|
|
'title' => lang('Podcast.persons_list', [
|
|
|
|
'podcastTitle' => $podcast->title,
|
|
|
|
]),
|
|
|
|
'persons' => $podcast->persons,
|
|
|
|
]) ?>
|
2021-10-04 15:56:43 +00:00
|
|
|
|
|
|
|
<?= $this->endSection()
|
|
|
|
?>
|