aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
blob: 48da6cad438d07d0aedae1a401e20dd8fb9db766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require_once('smarty/libs/Smarty.class.php');
$titulo="Sitio personal de Jesús";
$nombre="Jesús";
$profesion="Desarrollador";
$description="Este es el sitio web personal de Jesús, un desarrollador, colaborador y hacker de proyectos con software Libre en reemplazo a las tecnologías privativas.";

/* ---- ---- Generated URL ---- ---- */
if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) {
    $pro = 'https';
} else {
    $pro = 'http';
}

$extract_url = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
// URL
$siteurl = preg_replace( '/index.php/', '', $extract_url );

/* ---- ---- Menu ---- ---- */
$html=new Smarty;
$html->assign("siteurl", $siteurl);
$html->assign("titulo", $titulo);
$html->assign("nombre", $nombre);

/* ---- ---- Fecha ---- ---- */
$html->assign('yesterday', strtotime("now"));

/* ---- ---- Description and Author ---- ---- */
$html->assign("description", $description);

/* ---- ---- CSS ---- ----  */
$html->assign('templates', array('estilos' => 'templates/css/estilos.min.css',
                                 'normalize' => 'templates/css/normalize.css',
                                 'favicon' => 'templates/images/favicon.png')
);

/* ---- ---- Projects and redes Sociales Libres ---- ---- */
$html->assign('projects',
              array('cl' => 'https://conocimientoslibres.tuxfamily.org',
                    'hyperbola' => 'https://www.hyperbola.info',
                    'librevideojs' => 'https://notabug.org/heckyel/librevideojs')
);

$html->assign('contacto',
              array('keygpg' => 'templates/gnupg/heckyel_pub.asc')
);

$html->assign('sociales',
              array('diaspora' => 'https://diasp.org/u/heckyel',
                    'gnusocial' => 'https://quitter.cl/heckyel',
                    'libregit' => 'https://libregit.org/heckyel',
                    'mediagoblin' => 'https://goblinrefuge.com/mediagoblin/u/cybersy/')
);

$html->display('index.tpl');