aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-09-17 17:43:09 -0500
committerJesús <heckyel@hyperbola.info>2019-09-17 17:43:09 -0500
commit4bacbc720702c45bfaab865e5d4b93e041627040 (patch)
tree32e6a580b20f259e5f640719b2a61be91946ccc3
parenta3017fde936126b38a809f0fe8a5500b7e67657e (diff)
downloadytlibre-4bacbc720702c45bfaab865e5d4b93e041627040.tar.lz
ytlibre-4bacbc720702c45bfaab865e5d4b93e041627040.tar.xz
ytlibre-4bacbc720702c45bfaab865e5d4b93e041627040.zip
Added variable version
-rw-r--r--index.php3
-rw-r--r--templates/css/frond.min.css2
-rw-r--r--templates/index.tpl4
-rw-r--r--templates/sass/frond.sass1
-rw-r--r--templates/video.tpl4
5 files changed, 13 insertions, 1 deletions
diff --git a/index.php b/index.php
index db372f3..93c1659 100644
--- a/index.php
+++ b/index.php
@@ -2,12 +2,14 @@
require_once('smarty/Smarty.class.php');
$titulo="YTLibre";
+$version="1.1.5";
/* ---- ---- ---- Generated ---- ---- ---- ---- */
if ( empty($_GET['link']) )
{
$template= new Smarty();
/* ---- ---- Variables ---- ---- */
$template->assign("titulo", $titulo);
+ $template->assign("version", $version);
/* ---- ---- CSS ---- ---- */
$template->assign('styles', array('frond' => 'templates/css/frond.min.css',
'normalize' => 'templates/css/normalize.css')
@@ -22,6 +24,7 @@ else
/* ---- ---- Variables ---- ---- */
$video_decode->assign("titulo", $titulo);
+ $video_decode->assign("version", $version);
$video_decode->assign("videoTitle", $videoTitle);
$video_decode->assign("videoThumbURL", $videoThumbURL);
$video_decode->assign("videoAuthor", $videoAuthor);
diff --git a/templates/css/frond.min.css b/templates/css/frond.min.css
index 194260b..4c11eec 100644
--- a/templates/css/frond.min.css
+++ b/templates/css/frond.min.css
@@ -1 +1 @@
-body{background:#2d3743;color:#fff}.contenedor{margin:auto;width:70%;max-width:700px;background:#067ab4;display:flex;flex-direction:column;flex-wrap:wrap;align-items:center}.contenedor .libreyt{padding-bottom:60px}a.enlace{color:#ccc;text-decoration:none}a.enlace:hover{color:#2dde98}header{display:flex;width:90%;padding:20px 0px;justify-content:center}header img{align-items:center;width:100%;vertical-align:top}section{width:100%}section h2{text-align:center}section .formulario{display:flex;flex-wrap:wrap;justify-content:center}section .formulario input[type="text"]{background:#f5f5f1;border:2px solid;margin-bottom:15px;width:80%;border-radius:5px;padding:15px 20px;font-size:15px;color:#a4a4a4}section .formulario input[type="text"]:focus{border:2px solid #3895ea;color:#221f1f}section .formulario .boton{margin:auto;background:#3895ea;color:#fff;border:none;border-radius:3px;padding:15px 40px;cursor:pointer}footer p.copyleft{font-size:12px}
+body{background:#2d3743;color:#fff}.contenedor{margin:auto;width:70%;max-width:700px;background:#067ab4;display:flex;flex-direction:column;flex-wrap:wrap;align-items:center}.contenedor .libreyt{padding-bottom:60px}a.enlace{color:#ccc;text-decoration:none}a.enlace:hover{color:#2dde98}header{display:flex;width:90%;padding:20px 0px;justify-content:center}header img{align-items:center;width:100%;vertical-align:top}section{width:100%}section h2{text-align:center}section .formulario{display:flex;flex-wrap:wrap;justify-content:center}section .formulario input[type="text"]{background:#f5f5f1;border:2px solid;margin-bottom:15px;width:80%;border-radius:5px;padding:15px 20px;font-size:15px;color:#a4a4a4}section .formulario input[type="text"]:focus{border:2px solid #3895ea;color:#221f1f}section .formulario .boton{margin:auto;background:#3895ea;color:#fff;border:none;border-radius:3px;padding:15px 40px;cursor:pointer}footer p.copyleft{font-size:12px;text-align:center}
diff --git a/templates/index.tpl b/templates/index.tpl
index 20e7573..79faf08 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -29,6 +29,10 @@
<abbr title="GNU Affero General Public License version 3">GNU AGPLv3+</abbr>
</a>
</p>
+ <p class="copyleft">Versión <a href="https://libregit.org/heckyel/ytlibre/src/tag/1.1.5"
+ class="enlace"
+ rel="noopener noreferrer"
+ target="_blank">{$version}</a></p>
</footer>
</div>
</body>
diff --git a/templates/sass/frond.sass b/templates/sass/frond.sass
index 17f81e7..ac02d13 100644
--- a/templates/sass/frond.sass
+++ b/templates/sass/frond.sass
@@ -80,3 +80,4 @@ section
footer
p.copyleft
font-size: 12px
+ text-align: center
diff --git a/templates/video.tpl b/templates/video.tpl
index d7da9c4..520d132 100644
--- a/templates/video.tpl
+++ b/templates/video.tpl
@@ -159,6 +159,10 @@
<a class="enlace" href="templates/librejs.html" data-jslicense="1"
rel="license noopener noreferrer" target="_blank">Información de licencias de JavaScript.</a>
</p>
+ <p class="copyleft">Versión <a href="https://libregit.org/heckyel/ytlibre/src/tag/1.1.5"
+ class="enlace"
+ rel="noopener noreferrer"
+ target="_blank">{$version}</a></p>
</footer>
</div>
<script src="{$javascript.plyr}" integrity="sha512-VAzAm4qxuDivjRHdF9ykJb9aEntumzPAheFTg3fs9FGmVyI4Gx9GsRBy2ydWOAIXLVfCG1ZwvKjnVMe7zZLOKw=="></script>