Subversion Repository Public Repository

Nextrek

Diff Revisions 1061 vs 1062 for /Web/Smartcharging_search/search.php

Diff revisions: vs.
  @@ -1,21 +1,5 @@
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 - $language = JFactory::getLanguage();
10 - $lang = $language->getTag();
11 - } else {
12 - $lang = "it-IT";
13 - }
14 -
15 - ?>
16 -
17 1 <!DOCTYPE html>
18 - <html lang="<?php echo $lang; ?>" >
2 + <html>
19 3 <head>
20 4 <meta content="width=device-width, initial-scale=1.0" name="viewport" user-scalable=no>
21 5 <link href='//fonts.googleapis.com/css?family=Roboto:400,300,500' rel='stylesheet' type='text/css'>
  @@ -29,12 +13,15 @@
29 13 <script src="js/core.js"></script>
30 14 <script src="js/popup.js"></script>
31 15 <script src="lang/lang.js"></script>
16 + <script>
17 + $('html').attr("lang", parent.document.documentElement.lang);
18 + </script>
32 19 </head>
33 20 <body>
34 21 <div id="page-wrapper">
35 22 <header class="search-header">
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>
23 + <h1 align="center"><script> $('.search-header h1').text(getText("Punti di ricarica vicini", document.documentElement.lang));</script></h1>
24 + <h2 align="center"><script> $('.search-header h2').text(getText("Ricerca il punto di ricarica più vicino a te", document.documentElement.lang));</script></h2>
38 25 </header>
39 26 <div class="maps-frame">
40 27 <iframe id="content-map" src="maps-frame.php" height="100%" width="100%"></iframe>