From 8f14dd9084b10c223508bc9948c5724fc2c9eb63 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 6 Apr 2015 00:28:03 +0200 Subject: Audio & Video-Player Embeding --- template/assemblies/embed-form.phtml | 37 ++++++++++++++++++++++++++++++++++++ template/embed.phtml | 1 + template/page.phtml | 10 ++++++++-- template/room.phtml | 10 ++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 template/assemblies/embed-form.phtml create mode 100644 template/embed.phtml (limited to 'template') 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 @@ +
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 @@ - 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 ?> Feedback endif ?> + if($room->hasEmbed()): ?> +