

Nextrek
@ 1055
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 |
<?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> <?php require_once 'lib/Mobile-Detect-2.8.15/Mobile_Detect.php'; $detect = new Mobile_Detect; if ( $detect->isMobile() ) echo '<link rel="stylesheet" href="css/maps-style-mobile.css" media="all"/>'; else echo '<link rel="stylesheet" href="css/maps-style.css" media="all"/>'; ?> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"> <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/core.js"></script> <script src="js/scripts.js"></script> <script src="js/template.js"></script> <script src="js/popup.js"></script> <script src="js/maps-google.js"></script> <script src="lang/lang.js"></script> </head> <body> <input id="pac-input" class="controls" type="text"> <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> |