-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
81 lines (73 loc) · 2.86 KB
/
index.php
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?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">×</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>