portfolio with smarty
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9KB

  1. <?php
  2. require_once('smarty/libs/Smarty.class.php');
  3. $titulo="Sitio personal de Jesús";
  4. $nombre="Jesús";
  5. $profesion="Desarrollador";
  6. $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.";
  7. /* ---- ---- Generated URL ---- ---- */
  8. if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) {
  9. $pro = 'https';
  10. } else {
  11. $pro = 'http';
  12. }
  13. $extract_url = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
  14. // URL
  15. $siteurl = preg_replace( '/index.php/', '', $extract_url );
  16. /* ---- ---- Menu ---- ---- */
  17. $html=new Smarty;
  18. $html->assign("siteurl", $siteurl);
  19. $html->assign("titulo", $titulo);
  20. $html->assign("nombre", $nombre);
  21. /* ---- ---- Fecha ---- ---- */
  22. $html->assign('yesterday', strtotime("now"));
  23. /* ---- ---- Description and Author ---- ---- */
  24. $html->assign("description", $description);
  25. /* ---- ---- CSS ---- ---- */
  26. $html->assign('templates', array('estilos' => 'templates/css/estilos.min.css',
  27. 'normalize' => 'templates/css/normalize.css',
  28. 'favicon' => 'templates/images/favicon.png')
  29. );
  30. /* ---- ---- Projects and redes Sociales Libres ---- ---- */
  31. $html->assign('projects',
  32. array('cl' => 'https://conocimientoslibres.tuxfamily.org',
  33. 'hyperbola' => 'https://www.hyperbola.info',
  34. 'librevideojs' => 'https://notabug.org/heckyel/librevideojs')
  35. );
  36. $html->assign('contacto',
  37. array('keygpg' => 'templates/gnupg/heckyel_pub.asc')
  38. );
  39. $html->assign('sociales',
  40. array('diaspora' => 'https://diasp.org/u/heckyel',
  41. 'gnusocial' => 'https://quitter.cl/heckyel',
  42. 'libregit' => 'https://libregit.org/heckyel',
  43. 'mediagoblin' => 'https://goblinrefuge.com/mediagoblin/u/cybersy/')
  44. );
  45. $html->display('index.tpl');