aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/assemblies/embed-form.phtml37
-rw-r--r--template/embed.phtml1
-rw-r--r--template/page.phtml10
-rw-r--r--template/room.phtml10
4 files changed, 56 insertions, 2 deletions
diff --git a/template/assemblies/embed-form.phtml b/template/assemblies/embed-form.phtml
new file mode 100644
index 0000000..7e545f8
--- /dev/null
+++ b/template/assemblies/embed-form.phtml
@@ -0,0 +1,37 @@
+<div class="embed-form">
+ <div class="col-xs-12">
+ <h3>Embedding <?=h($stream->getDisplay())?></h3>
+ </div>
+
+ <div class="col-sm-3 embed-form">
+
+ <div class="form-group">
+ <label for="size">Select Size</label>
+ <select id="size" class="form-control">
+ <option value="512,288">512×288</option>
+ <option value="800,450">800×450</option>
+ <option <? if($stream->getSelection() == 'sd'): ?>selected<? endif ?> value="1024,576">1024×576</option>
+
+ <? if($stream->getSelection() == 'hd'): ?>
+ <option value="1280,720">1280×720</option>
+ <option selected value="1920,1080">1920×1080</option>
+ <? endif ?>
+ </select>
+ </div>
+
+ </div>
+ <div class="col-sm-9 embed-form">
+
+ <div class="form-group">
+ <label for="embed-code">Embed Code</label>
+ <input type="text" id="embed-code" class="form-control" readonly value="<?=h(trim('
+ <iframe src="'.h($stream->getEmbedUrl()).'" width="1024" height="576" frameborder="none" allowfullscreen="allowfullscreen" seamless="seamless" scrolling="no"></iframe>
+ '))?>">
+ </div>
+
+ <div class="form-group">
+ <label for="url">Embed URL:</label>
+ <input type="text" id="url" class="form-control" readonly value="<?=h($stream->getEmbedUrl())?>">
+ </div>
+ </div>
+</div>
diff --git a/template/embed.phtml b/template/embed.phtml
new file mode 100644
index 0000000..dd8629a
--- /dev/null
+++ b/template/embed.phtml
@@ -0,0 +1 @@
+<? require('assemblies/player/'.$stream->getPlayerType().'.phtml') ?>
diff --git a/template/page.phtml b/template/page.phtml
index cad6997..c67392a 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -44,9 +44,15 @@
<script type="text/javascript" src="assets/js/lustiges-script.js"></script>
</head>
<body class="<?=h(is_numeric($page[0]) ? 'e'.$page : $page)?>">
- <? include("$assemblies/header.phtml") ?>
+ <? if(!@$naked): ?>
+ <? include("$assemblies/header.phtml") ?>
+ <? endif ?>
+
<? include("$page.phtml") ?>
- <? include("$assemblies/footer.phtml") ?>
+
+ <? if(!@$naked): ?>
+ <? include("$assemblies/footer.phtml") ?>
+ <? endif ?>
<span class="js-settings"
data-scheduleoffset="<?=h($schedule->getSimulationOffset())?>"
diff --git a/template/room.phtml b/template/room.phtml
index 32b7d6c..8ce8d81 100644
--- a/template/room.phtml
+++ b/template/room.phtml
@@ -42,6 +42,11 @@
<a href="#feedback" role="tab" data-toggle="tab">Feedback</a>
</li>
<? endif ?>
+ <? if($room->hasEmbed()): ?>
+ <li>
+ <a href="#embed" role="tab" data-toggle="tab">Embed</a>
+ </li>
+ <? endif ?>
</ul>
<div class="functions-wrap tab-content">
@@ -63,5 +68,10 @@
<? require("$assemblies/feedback.phtml") ?>
</div>
<? endif ?>
+ <? if($room->hasEmbed()): ?>
+ <div role="tabpanel" class="tab-pane" id="embed">
+ <? require("$assemblies/embed-form.phtml") ?>
+ </div>
+ <? endif ?>
</div>
</div>