Nextrek
Diff Revisions
1049
vs
1052
for /Web/Smartcharging_search/search.php
|
@@ -1,5 +1,21 @@ |
|
1 |
+ |
<?php |
|
2 |
+ |
|
|
3 |
+ |
if ($_SERVER['HTTP_HOST'] != "localhost"){ |
|
4 |
+ |
define( '_JEXEC', 1 ); |
|
5 |
+ |
define('JPATH_BASE', '../'); |
|
6 |
+ |
require_once ( JPATH_BASE .'/includes/defines.php' ); |
|
7 |
+ |
require_once ( JPATH_BASE .'/includes/framework.php' ); |
|
8 |
+ |
|
|
9 |
+ |
$lang = JFactory::getLanguage(); |
|
10 |
+ |
$lang->getTag(); |
|
11 |
+ |
} else { |
|
12 |
+ |
$lang = "it-IT"; |
|
13 |
+ |
} |
|
14 |
+ |
|
|
15 |
+ |
?> |
|
16 |
+ |
|
1 |
17 |
|
<!DOCTYPE html> |
2 |
|
- |
<html> |
|
18 |
+ |
<html lang="<?php echo $lang; ?>" > |
3 |
19 |
|
<head> |
4 |
20 |
|
<meta content="width=device-width, initial-scale=1.0" name="viewport" user-scalable=no> |
5 |
21 |
|
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,500' rel='stylesheet' type='text/css'> |
|
@@ -12,12 +28,13 @@ |
12 |
28 |
|
<script src="js/scripts.js"></script> |
13 |
29 |
|
<script src="js/core.js"></script> |
14 |
30 |
|
<script src="js/popup.js"></script> |
|
31 |
+ |
<script src="lang/lang.js"></script> |
15 |
32 |
|
</head> |
16 |
33 |
|
<body> |
17 |
34 |
|
<div id="page-wrapper"> |
18 |
35 |
|
<header class="search-header"> |
19 |
|
- |
<h1 align="center">Punti di ricarica vicini</h1> |
20 |
|
- |
<h2 align="center">Ricerca il punto di ricarica più vicino a te</h2> |
|
36 |
+ |
<h1 align="center"><script> $('.search-header h1').text(getText("Punti di ricarica vicini", "<?php echo $lang; ?>"));</script></h1> |
|
37 |
+ |
<h2 align="center"><script> $('.search-header h2').text(getText("Ricerca il punto di ricarica più vicino a te", "<?php echo $lang; ?>"));</script></h2> |
21 |
38 |
|
</header> |
22 |
39 |
|
<div class="maps-frame"> |
23 |
40 |
|
<iframe id="content-map" src="maps-frame.php" height="100%" width="100%"></iframe> |