revert(soundbites): remove soundbite table from episode's public page
Soundbites are a mean to tease the episode, putting them in the episode page is unnecessary.
This commit is contained in:
parent
6d6747afa3
commit
5dc0f19656
|
@ -5,6 +5,7 @@ import MarkdownEditor from "./modules/MarkdownEditor";
|
||||||
import MultiSelect from "./modules/MultiSelect";
|
import MultiSelect from "./modules/MultiSelect";
|
||||||
import SidebarToggler from "./modules/SidebarToggler";
|
import SidebarToggler from "./modules/SidebarToggler";
|
||||||
import Slugify from "./modules/Slugify";
|
import Slugify from "./modules/Slugify";
|
||||||
|
import Soundbites from "./modules/Soundbites";
|
||||||
import Time from "./modules/Time";
|
import Time from "./modules/Time";
|
||||||
import Tooltip from "./modules/Tooltip";
|
import Tooltip from "./modules/Tooltip";
|
||||||
|
|
||||||
|
@ -17,3 +18,4 @@ SidebarToggler();
|
||||||
ClientTimezone();
|
ClientTimezone();
|
||||||
DateTimePicker();
|
DateTimePicker();
|
||||||
Time();
|
Time();
|
||||||
|
Soundbites();
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import Soundbites from "./modules/Soundbites";
|
|
||||||
|
|
||||||
Soundbites();
|
|
|
@ -10,7 +10,6 @@
|
||||||
<link rel="stylesheet" href="/assets/admin.css"/>
|
<link rel="stylesheet" href="/assets/admin.css"/>
|
||||||
<link rel="stylesheet" href="/assets/index.css"/>
|
<link rel="stylesheet" href="/assets/index.css"/>
|
||||||
<script src="/assets/admin.js" type="module" defer></script>
|
<script src="/assets/admin.js" type="module" defer></script>
|
||||||
<script src="/assets/soundbites.js" type="module" defer></script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="relative bg-gray-100 holy-grail-grid">
|
<body class="relative bg-gray-100 holy-grail-grid">
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
<link rel="stylesheet" href="/assets/index.css"/>
|
<link rel="stylesheet" href="/assets/index.css"/>
|
||||||
<link rel="canonical" href="<?= current_url() ?>" />
|
<link rel="canonical" href="<?= current_url() ?>" />
|
||||||
<script src="/assets/podcast.js" type="module" defer></script>
|
<script src="/assets/podcast.js" type="module" defer></script>
|
||||||
<script src="/assets/soundbites.js" type="module" defer></script>
|
|
||||||
<meta property="og:title" content="<?= $episode->title ?>" />
|
<meta property="og:title" content="<?= $episode->title ?>" />
|
||||||
<meta property="og:locale" content="<?= $podcast->language_code ?>" />
|
<meta property="og:locale" content="<?= $podcast->language_code ?>" />
|
||||||
<meta property="og:site_name" content="<?= $podcast->title ?>" />
|
<meta property="og:site_name" content="<?= $podcast->title ?>" />
|
||||||
|
@ -107,53 +106,6 @@
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php if (count($episode->soundbites) > 0): ?>
|
|
||||||
<div class="w-full max-w-3xl px-2 py-6 mx-auto md:px-6">
|
|
||||||
<?= data_table(
|
|
||||||
[
|
|
||||||
[
|
|
||||||
'header' => lang('Episode.soundbites'),
|
|
||||||
'cell' => function ($soundbite) {
|
|
||||||
return icon_button(
|
|
||||||
'play',
|
|
||||||
lang('Episode.soundbites_form.play'),
|
|
||||||
null,
|
|
||||||
['variant' => 'primary'],
|
|
||||||
[
|
|
||||||
'class' => 'mb-1 mr-1',
|
|
||||||
'data-type' => 'play-soundbite',
|
|
||||||
'data-soundbite-start-time' =>
|
|
||||||
$soundbite->start_time,
|
|
||||||
'data-soundbite-duration' => $soundbite->duration,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'header' => lang('Episode.soundbites_form.start_time'),
|
|
||||||
'cell' => function ($soundbite) {
|
|
||||||
return format_duration($soundbite->start_time);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'header' => lang('Episode.soundbites_form.duration'),
|
|
||||||
'cell' => function ($soundbite) {
|
|
||||||
return format_duration($soundbite->duration);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'header' => lang('Episode.soundbites_form.label'),
|
|
||||||
'cell' => function ($soundbite) {
|
|
||||||
return $soundbite->label;
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
$episode->soundbites
|
|
||||||
) ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<section class="w-full max-w-3xl px-2 py-6 mx-auto prose md:px-6">
|
<section class="w-full max-w-3xl px-2 py-6 mx-auto prose md:px-6">
|
||||||
<?= $episode->description_html ?>
|
<?= $episode->description_html ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue