mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
17 lines
477 B
PHP
17 lines
477 B
PHP
<?= $this->extend('layouts/default') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<h1 class="text-xl"><?= $episode->title ?></h1>
|
|
<img src="<?= base_url(
|
|
$episode->image ? $episode->image : $podcast->image
|
|
) ?>" alt="Episode cover" class="object-cover w-40 h-40 mb-6" />
|
|
<audio controls>
|
|
<source src="<?= base_url(
|
|
$episode->enclosure_url
|
|
) ?>" type="<?= $episode->enclosure_type ?>">
|
|
Your browser does not support the audio tag.
|
|
</audio>
|
|
|
|
<?= $this->endSection() ?>
|