Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

82 lines (73 sloc) 2.933 kb
<?php
require_once __DIR__ . '/lib/ChooseLocale.class.php';
require_once __DIR__ . '/lib/PropertiesParser.class.php';
$locale = new tinyL10n\ChooseLocale(array('ar', 'bn-BD', 'bn-IN', 'de', 'el', 'en', 'es', 'ff', 'fr', 'ga', 'id', 'it', 'lij', 'ms', 'nl', 'pt', 'ro-RO', 'sq', 'zh-TW'));
$locale->setDefaultLocale('en');
$locale->mapLonglocales = true;
// Bypass locale detection with a lang parameter in the URL?
$lang = (isset($_GET['lang'])) ? $_GET['lang'] : false;
$locale->setCompatibleLocale($lang);
$lang = $locale->getDetectedLocale();
$lang_file = tinyL10n\PropertiesParser::propertiesToArray(__DIR__ . '/lang/' . $lang . '.properties');
?>
<!DOCTYPE html>
<html lang="<?=$lang?>" dir="<?=$locale->getDirection();?>">
<head>
<title>Mozilla Hispano APP</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/reveal.css">
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body style="overflow: hidden" >
<div id="wrapper">
<div id="tit">
<div id="tit1">
<img src="img/new_identity-logo-firefox.png" alt="firefox" />
</div>
<div id="tit2">
<h1><?=$lang_file['title']?></h1>
<p><?=$lang_file['body']?></p>
</div>
</div>
<div id="form">
<br/>
<form id="buscar" action="javascript:;" method="post" >
<input type="text" id="txtbuscar"/>
<a href="#" id="btnbuscar" class="button"><?=$lang_file['btnSearch']?></a>
<br/><br/>
<div class="mensaje"></div>
<div class="mensaje_error"></div>
</form>
</div>
<br/>
<div id="info">
<h3><?=$lang_file['popular_articles']?></h3>
<div id="articulos">
<ul class="resjson2" id="list"></ul>
<ul class="resjson" id="list"></ul>
</div>
<p><?=$lang_file['msg1']?></p>
<p><?=$lang_file['msg2']?></p>
</div>
</div>
<div id="myModal" class="reveal-modal">
<div id="res">
<div id="main">
<ul id="holder" class="pagination">
</ul>
</div>
</div>
<a class="close-reveal-modal">&#215;</a>
</div>
<!-- js -->
<script data-main="js/app" src="js/require-jquery.js"></script>
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script src="js/faceconfig.js"></script>
<script type="text/javascript">
var error_msg1 = "<?=$lang_file['error_msg1']?>";
var error_msg2 = "<?=$lang_file['error_msg2']?>";
var lang_search = "<?=$lang_file['lang']?>";
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.