2023-05-19 17:33:27 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2024-04-28 16:39:01 +00:00
|
|
|
$embedHeight = config('Embed')->height;
|
2023-05-19 17:33:27 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
2021-10-20 14:22:58 +00:00
|
|
|
<?= lang('Episode.embed.title') ?>
|
2021-02-27 21:21:26 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-20 14:22:58 +00:00
|
|
|
<p><?= lang('Episode.embed.label') ?></p>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="flex w-full mt-6">
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php foreach ($themes as $themeKey => $theme): ?>
|
|
|
|
<button style="<?= $theme[
|
|
|
|
'style'
|
|
|
|
] ?>" class="w-12 h-12 mr-1 border-2 border-gray-400 rounded-lg hover:border-white" title="<?= lang(
|
2021-10-20 14:22:58 +00:00
|
|
|
"Episode.embed.{$themeKey}",
|
|
|
|
) ?>" data-type="theme-picker" data-url="<?= $episode->getEmbedUrl(
|
2021-09-08 15:51:33 +00:00
|
|
|
$themeKey,
|
|
|
|
) ?>"></button>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2022-01-23 16:53:23 +00:00
|
|
|
<iframe name="embed" id="embed" class="w-full max-w-xl mt-6 h-28" frameborder="0" scrolling="no" style="width: 100%; overflow: hidden;" src="<?= $episode->embed_url ?>"></iframe>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="flex items-center mt-8 gap-x-2">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Textarea isReadonly="true" class="w-full max-w-xl" name="iframe" rows="2" value="<?= esc("<iframe width=\"100%\" height=\"{$embedHeight}\" frameborder=\"0\" scrolling=\"no\" style=\"width: 100%; height: {$embedHeight}px; overflow: hidden;\" src=\"{$episode->embed_url}\"></iframe>") ?>" />
|
2024-12-17 15:06:08 +00:00
|
|
|
<?php // @icon("file-copy-fill")?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-IconButton glyph="file-copy-fill" data-type="clipboard-copy" data-clipboard-target="iframe"><?= lang('Episode.embed.clipboard_iframe') ?></x-IconButton>
|
2021-04-02 17:20:02 +00:00
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="flex items-center mt-4 gap-x-2">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Input isReadonly="true" class="w-full max-w-xl" name="url" value="<?= esc($episode->embed_url) ?>" />
|
2024-12-17 15:06:08 +00:00
|
|
|
<?php // @icon("file-copy-fill")?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-IconButton glyph="file-copy-fill" data-type="clipboard-copy" data-clipboard-target="url"><?= lang('Episode.embed.clipboard_url') ?></x-IconButton>
|
2021-04-02 17:20:02 +00:00
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|