2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->extend('podcast/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('meta-tags') ?>
|
|
|
|
<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-04-02 17:20:02 +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-04-02 17:20:02 +00:00
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
2021-08-09 10:28:16 +00:00
|
|
|
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php if (can_user_interact()): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<form action="<?= route_to('post-attempt-create', interact_as_actor()->username) ?>" method="POST" class="flex p-4 shadow bg-elevated gap-x-2 rounded-conditional-2xl">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<?= view('_message_block') ?>
|
|
|
|
|
|
|
|
<img src="<?= interact_as_actor()
|
|
|
|
->avatar_image_url ?>" alt="<?= interact_as_actor()
|
2021-10-22 14:35:11 +00:00
|
|
|
->display_name ?>" class="w-10 h-10 rounded-full" />
|
2021-10-13 15:43:40 +00:00
|
|
|
<div class="flex flex-col flex-1 min-w-0 gap-y-2">
|
|
|
|
<Forms.Textarea
|
|
|
|
name="message"
|
|
|
|
required="true"
|
|
|
|
placeholder="<?= lang('Post.form.message_placeholder') ?>"
|
|
|
|
rows="2" />
|
|
|
|
<Forms.Input
|
|
|
|
name="episode_url"
|
|
|
|
type="url"
|
|
|
|
placeholder="<?= lang('Post.form.episode_url_placeholder') . ' (' . lang('Common.optional') . ')' ?>" />
|
|
|
|
<Button variant="primary" size="small" type="submit" class="self-end" iconRight="send-plane"><?= lang('Post.form.submit') ?></Button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-11-05 14:36:34 +00:00
|
|
|
<hr class="my-4 border-subtle">
|
2021-10-13 15:43:40 +00:00
|
|
|
|
|
|
|
<?php endif; ?>
|
2021-10-18 16:44:07 +00:00
|
|
|
<div class="flex flex-col gap-y-4">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php foreach ($posts as $key => $post): ?>
|
|
|
|
<?php if ($post->reblog_of_id !== null): ?>
|
|
|
|
<?= view('post/_partials/reblog', [
|
|
|
|
'index' => $key,
|
|
|
|
'post' => $post->reblog_of_post,
|
|
|
|
'podcast' => $podcast,
|
2021-09-15 15:58:21 +00:00
|
|
|
]) ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php else: ?>
|
|
|
|
<?= view('post/_partials/card', [
|
|
|
|
'index' => $key,
|
|
|
|
'post' => $post,
|
|
|
|
'podcast' => $podcast,
|
2021-09-15 15:58:21 +00:00
|
|
|
]) ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->endSection() ?>
|