Subversion Repository Public Repository

Nextrek

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
<?php
if ($_SERVER['HTTP_HOST'] != "localhost"){
	define( '_JEXEC', 1 );
	define('JPATH_BASE', '../');
	require_once ( JPATH_BASE .'/includes/defines.php' );
	require_once ( JPATH_BASE .'/includes/framework.php' );

	$language = JFactory::getLanguage();
	$lang = $language->getTag();
} else {
	$lang = "it-IT";
}

$mapLang = substr($lang, 0, 2);

?>

<!DOCTYPE html>
<html lang="<?php echo $lang; ?>">
<head>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" user-scalable=no>
	<link rel="stylesheet" href="css/maps-style.css" media="all"/>
	<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
	<script src="js/formcheck.js"></script>
	<script src="js/maps-google.js"></script>
	<script src="lang/lang.js"></script>
	<script src="js/cookie/jquery.cookie.js"></script>
</head>
<body>
	<input id="pac-input" class="controls" type="text" placeholder="Search Box">
	<script>$('#pac-input').attr("placeholder",  getText("Cerca", document.documentElement.lang));</script>
	<div id="map"></div>
	<script async defer
		src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDUqBLxMo-RgdekbpMbRUQRxr9ZyXXBdWY&language=<?php echo $mapLang ?>&libraries=places&callback=initAutocomplete">
	</script>

</body>
</html>

Commits for Nextrek/Web/Smartcharging_site/maps-frame.php

Diff revisions: vs.
Revision Author Commited Message
1057 LZicari picture LZicari Thu 14 Jan, 2016 10:02:10 +0000