aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-08-25 15:18:15 -0500
committerJesús <heckyel@hyperbola.info>2018-08-25 15:18:15 -0500
commiteb44cce90b0a8910c3be03ab4ab85cfe11d6675c (patch)
tree9c5a6ef382b3d912f04762cbde61e67d298d05f1 /embed
parentf6671dd35860107c2c941287208eff9c1954c4a6 (diff)
downloadytlibre-eb44cce90b0a8910c3be03ab4ab85cfe11d6675c.tar.lz
ytlibre-eb44cce90b0a8910c3be03ab4ab85cfe11d6675c.tar.xz
ytlibre-eb44cce90b0a8910c3be03ab4ab85cfe11d6675c.zip
Added embed video for share
Diffstat (limited to 'embed')
-rw-r--r--embed/index.php48
1 files changed, 48 insertions, 0 deletions
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 @@
+<?php
+require_once('../smarty/Smarty.class.php');
+$titulo="YTLibre";
+$template= new Smarty();
+
+/* ---- ---- Variables ---- ---- */
+$template->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');
+}