2021-02-27 21:21:26 +00:00
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Episode.embeddable_player.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Episode.embeddable_player.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= form_label(lang('Episode.embeddable_player.label'), 'label') ?>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="flex w-full mt-6 mb-6">
|
|
|
|
<?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(
|
|
|
|
"Episode.embeddable_player.{$themeKey}",
|
2021-05-12 14:00:25 +00:00
|
|
|
) ?>" data-type="theme-picker" data-url="<?= $episode->getEmbeddablePlayerUrl(
|
2021-04-02 17:20:02 +00:00
|
|
|
$themeKey,
|
2021-02-27 21:21:26 +00:00
|
|
|
) ?>"></button>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-05-12 14:00:25 +00:00
|
|
|
<iframe name="embeddable_player" id="embeddable_player" class="w-full h-48 max-w-xl" frameborder="0" scrolling="no" style="width: 100%; overflow: hidden;" src="<?= $episode->embeddable_player_url ?>"></iframe>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="flex items-center w-full mt-8">
|
|
|
|
<?= form_textarea(
|
|
|
|
[
|
|
|
|
'id' => 'iframe',
|
|
|
|
'name' => 'iframe',
|
|
|
|
'class' => 'form-textarea w-full h-20 mr-2',
|
|
|
|
],
|
2021-05-12 14:00:25 +00:00
|
|
|
"<iframe width=\"100%\" height=\"280\" frameborder=\"0\" scrolling=\"no\" style=\"width: 100%; height: 280px; overflow: hidden;\" src=\"{$episode->embeddable_player_url}\"></iframe>",
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>
|
|
|
|
<?= icon_button(
|
|
|
|
'file-copy',
|
|
|
|
lang('Episode.embeddable_player.clipboard_iframe'),
|
2021-05-06 14:00:48 +00:00
|
|
|
'',
|
2021-04-02 17:20:02 +00:00
|
|
|
['variant' => 'default'],
|
|
|
|
['data-type' => 'clipboard-copy', 'data-clipboard-target' => 'iframe'],
|
|
|
|
) ?>
|
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="flex items-center w-full mt-4">
|
|
|
|
<?= form_textarea(
|
|
|
|
[
|
|
|
|
'id' => 'url',
|
|
|
|
'name' => 'url',
|
|
|
|
'class' => 'form-textarea w-full h-10 mr-2',
|
|
|
|
],
|
2021-05-12 14:00:25 +00:00
|
|
|
$episode->embeddable_player_url,
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>
|
|
|
|
<?= icon_button(
|
|
|
|
'file-copy',
|
|
|
|
lang('Episode.embeddable_player.clipboard_url'),
|
2021-05-06 14:00:48 +00:00
|
|
|
'',
|
2021-04-02 17:20:02 +00:00
|
|
|
['variant' => 'default'],
|
|
|
|
['data-type' => 'clipboard-copy', 'data-clipboard-target' => 'url'],
|
|
|
|
) ?>
|
|
|
|
</div>
|
2021-02-27 21:21:26 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|