From eb44cce90b0a8910c3be03ab4ab85cfe11d6675c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 25 Aug 2018 15:18:15 -0500 Subject: Added embed video for share --- embed/index.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 embed/index.php (limited to 'embed') diff --git a/embed/index.php b/embed/index.php new file mode 100644 index 0000000..dcf8427 --- /dev/null +++ b/embed/index.php @@ -0,0 +1,48 @@ +assign("titulo", $titulo); + +/* ---- ---- CSS ---- ---- */ +$template->assign('styles', array('frond' => '../templates/css/frond.min.css', + 'normalize' => '../templates/css/normalize.css') +); + +/* ---- ---- ---- Generated ---- ---- ---- ---- */ +if (empty($_GET['link'])){ + $template->display('../templates/index.tpl'); +} else { + /* ---- ---- video-generated ---- ---- */ + require_once "../tools/processor.php"; + $video_decode = new Smarty(); + + /* ---- ---- Variables ---- ---- */ + $video_decode->assign("titulo", $titulo); + $video_decode->assign("videoTitle", $videoTitle); + $video_decode->assign("videoThumbURL", $videoThumbURL); + $video_decode->assign("videoAuthor", $videoAuthor); + $video_decode->assign("videoDuration", $videoDuration); + $video_decode->assign("videoViews", $videoViews); + $video_decode->assign("librethumb", $librethumb); + + $video_decode->assign("cStreams", $cStreams); + $video_decode->assign("baselink", $baselink); + $video_decode->assign("videosStream", $videosStream); + + /* ---- ---- CSS ---- ---- */ + $video_decode->assign('styles', array('frond' => '../templates/css/frond.min.css', + 'normalize' => '../templates/css/normalize.css', + 'teal' => '../templates/libs/librevideojs/css/teal.css', + 'salida' => '../templates/css/salida.min.css') + ); + + /* ---- ---- JS ---- ---- */ + $video_decode->assign('javascript', array('librevideojs' => '../templates/libs/librevideojs/js/cliplibrejs.developer.js', + 'jquery' => '../templates/libs/jquery/dist/jquery.min.js') + ); + + $video_decode->display('../templates/embed.tpl'); +} -- cgit v1.2.3