From d7543416d4bdab06f15cc43738d661211f0cebc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 17 Sep 2019 17:17:04 -0500 Subject: improve syntax --- index.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/index.php b/index.php index a87f2c7..db372f3 100644 --- a/index.php +++ b/index.php @@ -1,21 +1,21 @@ assign("titulo", $titulo); - -/* ---- ---- CSS ---- ---- */ - -$template->assign('styles', array('frond' => 'templates/css/frond.min.css', - 'normalize' => 'templates/css/normalize.css') -); +$titulo="YTLibre"; /* ---- ---- ---- Generated ---- ---- ---- ---- */ -if (empty($_GET['link'])){ +if ( empty($_GET['link']) ) +{ + $template= new Smarty(); + /* ---- ---- Variables ---- ---- */ + $template->assign("titulo", $titulo); + /* ---- ---- CSS ---- ---- */ + $template->assign('styles', array('frond' => 'templates/css/frond.min.css', + 'normalize' => 'templates/css/normalize.css') + ); $template->display('templates/index.tpl'); -} else { +} +else +{ /* ---- ---- video-generated ---- ---- */ require_once "tools/processor.php"; $video_decode = new Smarty(); -- cgit v1.2.3