|
@@ -1,5 +1,19 @@ |
|
1 |
+ |
<?php |
|
2 |
+ |
if ($_SERVER['HTTP_HOST'] != "localhost"){ |
|
3 |
+ |
define( '_JEXEC', 1 ); |
|
4 |
+ |
define('JPATH_BASE', '../'); |
|
5 |
+ |
require_once ( JPATH_BASE .'/includes/defines.php' ); |
|
6 |
+ |
require_once ( JPATH_BASE .'/includes/framework.php' ); |
|
7 |
+ |
|
|
8 |
+ |
$language = JFactory::getLanguage(); |
|
9 |
+ |
$lang = $language->getTag(); |
|
10 |
+ |
} else { |
|
11 |
+ |
$lang = "it-IT"; |
|
12 |
+ |
} |
|
13 |
+ |
?> |
|
14 |
+ |
|
1 |
15 |
|
<!DOCTYPE html> |
2 |
|
- |
<html> |
|
16 |
+ |
<html lang="<?php echo $lang; ?>" > |
3 |
17 |
|
<head> |
4 |
18 |
|
<meta content="width=device-width, initial-scale=1.0" name="viewport" user-scalable=no> |
5 |
19 |
|
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,500' rel='stylesheet' type='text/css'> |
|
@@ -20,6 +34,7 @@ |
20 |
34 |
|
<script src="js/facebox-master/src/facebox.js" type="text/javascript"></script> |
21 |
35 |
|
<script src="js/scripts.js"></script> |
22 |
36 |
|
<script src="js/formcheck.js"></script> |
|
37 |
+ |
<script src="lang/lang.js"></script> |
23 |
38 |
|
<script src="js/cookie/jquery.cookie.js"></script> |
24 |
39 |
|
|
25 |
40 |
|
|
|
@@ -36,19 +51,19 @@ |
36 |
51 |
|
<body> |
37 |
52 |
|
<div id="page-wrapper"> |
38 |
53 |
|
<header class="reg-header"> |
39 |
|
- |
<h1 align="center">Entra ora in Smart Charging</h1> |
40 |
|
- |
<h2 align="center">Registrati gratuitamente ed entra nella community di Smart Charging</h2> |
|
54 |
+ |
<h1 align="center"><script>$('.reg-header h1').text(getText("Entra ora in Smart Charging", document.documentElement.lang))</script></h1> |
|
55 |
+ |
<h2 align="center"><script>$('.reg-header h2').text(getText("Registrati gratuitamente ed entra nella community di Smart Charging", document.documentElement.lang))</script></h2> |
41 |
56 |
|
</header> |
42 |
57 |
|
|
43 |
58 |
|
<header class="user-reg-header" style="display: none;"> |
44 |
|
- |
<h1 align="center">Registrazione utente</h1> |
45 |
|
- |
<h2 align="center">Ti stai iscrivendo come un nuovo utente<br>Inserire i dati</h2> |
|
59 |
+ |
<h1 align="center"><script>$('.user-reg-header h1').text(getText("Registrazione utente", document.documentElement.lang))</script></h1> |
|
60 |
+ |
<h2 align="center"><script>$('.user-reg-header h2').html(getText("Ti stai iscrivendo come un nuovo utente", document.documentElement.lang)+ '<br>' + getText("Inserire i dati", document.documentElement.lang))</script></h2> |
46 |
61 |
|
</header> |
47 |
62 |
|
|
48 |
63 |
|
<header class="affiliate-reg-header" style="display: none;"> |
49 |
|
- |
<h1 align="center">Registrazione locale</h1> |
50 |
|
- |
<h2 id="step1" align="center">Stai registrando il tuo locale nella community di Smart Charging<br>Inserire prima i dati del referente del Locale</h2> |
51 |
|
- |
<h2 id="step2" align="center" style="display:none;">Stai registrando il tuo locale nella community di Smart Charging<br>Inserire i dati del Locale</h2> |
|
64 |
+ |
<h1 align="center"><script>$('.affiliate-reg-header h1').text(getText("Registrazione locale", document.documentElement.lang))</script></h1> |
|
65 |
+ |
<h2 id="step1" align="center"><script>$('#step1').html(getText("Stai registrando il tuo locale nella community di", document.documentElement.lang)+ ' Smart Charging<br>' + getText("Inserire prima i dati del referente del Locale", document.documentElement.lang))</script></h2> |
|
66 |
+ |
<h2 id="step2" align="center" style="display:none;"><script>$('#step2').html(getText("Stai registrando il tuo locale nella community di", document.documentElement.lang)+ ' Smart Charging<br>' + getText("Inserire i dati del Locale", document.documentElement.lang))</script></h2> |
52 |
67 |
|
</header> |
53 |
68 |
|
|
54 |
69 |
|
<div class="reg-select"> |
|
@@ -56,19 +71,19 @@ |
56 |
71 |
|
<div class="selection"> |
57 |
72 |
|
<div class="col-md-1"></div> |
58 |
73 |
|
<div class="col-md-4 user-reg"> |
59 |
|
- |
<h3 align="center">Sei un Utente?</h3> |
|
74 |
+ |
<h3 align="center"><script>$('.user-reg h3').text(getText("Sei un Utente", document.documentElement.lang))</script>?</h3> |
60 |
75 |
|
<a href="#user" class="img-btn" target="_self"> |
61 |
76 |
|
<img src="img/user-reg-img.jpg" /> |
62 |
77 |
|
</a> |
63 |
|
- |
<a href="#user" class="btn btn-hover" target="_self">Registrati come utente</a> |
|
78 |
+ |
<a href="#user" class="btn btn-hover" target="_self"><script>$($('.user-reg a')[1]).text(getText("Registrati come utente", document.documentElement.lang))</script></a> |
64 |
79 |
|
</div> |
65 |
80 |
|
<div class="col-md-2"></div> |
66 |
81 |
|
<div class="col-md-4 affiliate-reg"> |
67 |
|
- |
<h3 align="center">Possiedi un Locale?</h3> |
|
82 |
+ |
<h3 align="center"><script>$('.affiliate-reg h3').text(getText("Possiedi un Locale", document.documentElement.lang))</script>?</h3> |
68 |
83 |
|
<a href="#affiliate" class="img-btn" target="_self"> |
69 |
84 |
|
<img src="img/affiliate-reg-img.jpg" /> |
70 |
85 |
|
</a> |
71 |
|
- |
<a href="#affiliate" class="btn btn-hover" target="_self">Registra il tuo locale</a> |
|
86 |
+ |
<a href="#affiliate" class="btn btn-hover" target="_self"><script>$($('.affiliate-reg a')[1]).text(getText("Registra il tuo locale", document.documentElement.lang))</script></a> |
72 |
87 |
|
</div> |
73 |
88 |
|
<div class="col-md-1"></div> |
74 |
89 |
|
</div> |
|
@@ -79,49 +94,52 @@ |
79 |
94 |
|
<div class="form-control"> |
80 |
95 |
|
<form id="form-user" method="post" > |
81 |
96 |
|
<div class="panel-user"> |
82 |
|
- |
<div class="panel-heading"><span class="glyphicon glyphicon-user"></span> Dati personali<span class="glyphicon glyphicon-arrow-left user-left" title="Indietro"></span></div> |
|
97 |
+ |
<div class="panel-heading"><span class="glyphicon glyphicon-user"></span><script>$('.panel-heading .glyphicon-user').after(' ' + getText("Dati personali", document.documentElement.lang))</script><span class="glyphicon glyphicon-arrow-left user-left" title="Indietro"><script>$('.glyphicon-arrow-left').attr("title", getText("Indietro", document.documentElement.lang))</script></span></div> |
83 |
98 |
|
<div class="panel-body"> |
84 |
99 |
|
<div class="row"> |
85 |
100 |
|
<div class="col-md-6"> |
86 |
101 |
|
<div class="form-group"> |
87 |
102 |
|
<input id="email_user" type="email" class="form-control" name="email" placeholder="Email" tabindex="1" required=""> |
88 |
103 |
|
</div> |
89 |
|
- |
<div class="alert alert-warning" id="email_nondisp" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Email non disponibile, inserire un'altra email valida.</div> |
90 |
|
- |
<div class="alert alert-warning" id="email_invalida" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Inserire una email valida.</div> |
|
104 |
+ |
<div class="alert alert-warning" id="email_nondisp" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#email_nondisp i').after(" " + getText("Email non disponibile", document.documentElement.lang) + ", " + getText("Inserire una email valida", document.documentElement.lang))</script>.</div> |
|
105 |
+ |
<div class="alert alert-warning" id="email_invalida" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#email_invalida i').after(" " + getText("Inserire una email valida", document.documentElement.lang))</script></div> |
91 |
106 |
|
</div> |
92 |
107 |
|
<div class="col-md-6"> |
93 |
108 |
|
<div class="form-group"> |
94 |
109 |
|
<input id="username_user" type="text" class="form-control" name="username" placeholder="Username" tabindex="2" required=""> |
95 |
110 |
|
</div> |
96 |
|
- |
<div class="alert alert-warning" id="username_nondisp" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Username non disponibile, inserire un altro username.</div> |
|
111 |
+ |
<div class="alert alert-warning" id="username_nondisp" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#username_nondisp i').after(" " + getText("Username non disponibile", document.documentElement.lang) + ", " + getText("inserire un altro username", document.documentElement.lang))</script>.</div> |
97 |
112 |
|
</div> |
98 |
113 |
|
</div> |
99 |
114 |
|
<div class="row"> |
100 |
115 |
|
<div class="col-md-6"> |
101 |
116 |
|
<div class="form-group"> |
102 |
117 |
|
<input id="passw1_user" type="password" class="form-control" name="password" placeholder="Password" tabindex="3" data-toggle="tooltip" data-placement="top" title="" required="" data-original-title="Inserisci una password di almeno 8 caratteri"> |
103 |
|
- |
<div class="tooltip fade top in" role="tooltip" id="tooltip-psw" style="top: -45px; left: 0; right:0; display: none;"><div class="tooltip-arrow"></div><div class="tooltip-inner" style="margin-left: auto; margin-right: auto;">Inserisci una password di almeno 8 caratteri</div></div> |
|
118 |
+ |
<div class="tooltip fade top in" role="tooltip" id="tooltip-psw" style="top: -45px; left: 0; right:0; display: none;"><div class="tooltip-arrow"></div><div class="tooltip-inner" style="margin-left: auto; margin-right: auto;"><script>$('.tooltip-inner').text(getText("Inserisci una password di almeno 8 caratteri", document.documentElement.lang))</script></div></div> |
104 |
119 |
|
</div> |
105 |
120 |
|
</div> |
106 |
121 |
|
<div class="col-md-6"> |
107 |
122 |
|
<div class="form-group"> |
108 |
123 |
|
<input id="passw2_user" type="password" class="form-control" placeholder="Ripeti password" tabindex="4" required=""> |
|
124 |
+ |
<script>$('#passw2_user').attr("placeholder", getText("Ripeti password", document.documentElement.lang))</script> |
109 |
125 |
|
</div> |
110 |
126 |
|
</div> |
111 |
127 |
|
<div class="col-md-12"> |
112 |
|
- |
<div class="alert alert-warning" id="passw_length" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> La lunghezza della password deve essere di almeno 8 caratteri.</div> |
113 |
|
- |
<div class="alert alert-warning" id="passw_equal" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Le password inserite non coincidono, inserire la stessa password in entrambi i campi.</div> |
|
128 |
+ |
<div class="alert alert-warning" id="passw_length" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#passw_length i').after(" " + getText("La lunghezza della password deve essere di almeno 8 caratteri", document.documentElement.lang))</script>.</div> |
|
129 |
+ |
<div class="alert alert-warning" id="passw_equal" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#passw_equal i').after(" " + getText("Le password inserite non coincidono", document.documentElement.lang) + ", " + getText("inserire la stessa password in entrambi i campi", document.documentElement.lang))</script>.</div> |
114 |
130 |
|
</div> |
115 |
131 |
|
</div> |
116 |
132 |
|
<div class="row"> |
117 |
133 |
|
<div class="col-md-6"> |
118 |
134 |
|
<div class="form-group"> |
119 |
135 |
|
<input id="name_user" type="text" class="form-control" name="nome" placeholder="Nome" tabindex="5" style="display:none;" > |
|
136 |
+ |
<script>$('#name_user').attr("placeholder", getText("Nome", document.documentElement.lang))</script> |
120 |
137 |
|
</div> |
121 |
138 |
|
</div> |
122 |
139 |
|
<div class="col-md-6"> |
123 |
140 |
|
<div class="form-group"> |
124 |
141 |
|
<input id="surname_user" type="text" class="form-control" name="cognome" placeholder="Cognome" tabindex="6" style="display:none;" > |
|
142 |
+ |
<script>$('#surname_user').attr("placeholder", getText("Cognome", document.documentElement.lang))</script> |
125 |
143 |
|
</div> |
126 |
144 |
|
</div> |
127 |
145 |
|
<!--div class="col-md-6"> |
|
@@ -138,21 +156,21 @@ |
138 |
156 |
|
</div--> |
139 |
157 |
|
</div> |
140 |
158 |
|
</div> |
141 |
|
- |
<div class="panel-heading"><span class="glyphicon glyphicon-file"></span> Condizioni d'uso</div> |
|
159 |
+ |
<div class="panel-heading"><span class="glyphicon glyphicon-file"></span><script>$('.panel-heading .glyphicon-file').after(" " + getText("Condizioni d'uso", document.documentElement.lang))</script></div> |
142 |
160 |
|
<div class="panel-body"> |
143 |
161 |
|
<div class="col-md-12"> |
144 |
162 |
|
<div class="checkbox"> |
145 |
163 |
|
<label for="condizioni"> |
146 |
164 |
|
<input id="condizioni" type="checkbox" tabindex="8" required=""> |
147 |
|
- |
<p>Accetto le <a href="popup-term.php" rel="facebox">Condizioni e Termini d'uso e l'Informativa Privacy</a> di Smart Charging</p> |
|
165 |
+ |
<p><script>$('#form-user .checkbox p').text(getText("Accetto le", document.documentElement.lang) + " ")</script><a href="popup-term.php" rel="facebox"><script>$('#form-user .checkbox p a').text(getText("Condizioni e Termini d'uso e l'Informativa Privacy", document.documentElement.lang) + " ")</script></a><script>$('#form-user .checkbox p a').after(getText("di", document.documentElement.lang) + " ")</script> Smart Charging</p> |
148 |
166 |
|
</label> |
149 |
167 |
|
</div> |
150 |
|
- |
<div class="alert alert-warning" id="terms" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Per concludere la registrazione è necessario accettare le condizioni di Smart Charging.</div> |
|
168 |
+ |
<div class="alert alert-warning" id="terms" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#terms i').after(" " + getText("Per concludere la registrazione è necessario accettare le condizioni di", document.documentElement.lang))</script> Smart Charging.</div> |
151 |
169 |
|
</div> |
152 |
170 |
|
</div> |
153 |
|
- |
<div class="alert alert-warning" id="all" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Ci sono dei campi vuoti, completare quelli mancanti.</div> |
154 |
|
- |
<button id="submit_user_reg" type="submit" class="btn-sub btn-primary btn-lg btn-block" tabindex="9">Registrati</button> |
155 |
|
- |
<div class="alert alert-warning" id="errore_generico" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Errore registrazione</div> |
|
171 |
+ |
<div class="alert alert-warning" id="all" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#all i').after(" " + getText("Ci sono dei campi vuoti", document.documentElement.lang) + ", " + getText("completare quelli mancanti", document.documentElement.lang))</script>.</div> |
|
172 |
+ |
<button id="submit_user_reg" type="submit" class="btn-sub btn-primary btn-lg btn-block" tabindex="9"><script>$('#submit_user_reg').text(getText("Registrati", document.documentElement.lang))</script></button> |
|
173 |
+ |
<div class="alert alert-warning" id="errore_generico" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#errore_generico i').after(" " + getText("Errore registrazione", document.documentElement.lang))</script></div> |
156 |
174 |
|
</div> |
157 |
175 |
|
</form> |
158 |
176 |
|
</div> |
|
@@ -166,22 +184,23 @@ |
166 |
184 |
|
|
167 |
185 |
|
<form id="form-affiliate" method="post" > |
168 |
186 |
|
<div class="panel-user"> |
169 |
|
- |
<div class="panel-heading"><span class="glyphicon glyphicon-map-marker"></span> Dati locale<span class="glyphicon glyphicon-arrow-left affiliate-left" title="Indietro"></span></div> |
|
187 |
+ |
<div class="panel-heading"><span class="glyphicon glyphicon-map-marker"></span><script>$('.panel-heading .glyphicon-map-marker').after(" " + getText("Dati locale", document.documentElement.lang))</script><span class="glyphicon glyphicon-arrow-left affiliate-left" title="Indietro"><script>$('.glyphicon-arrow-left').attr("title", getText("Indietro", document.documentElement.lang))</script></span></div> |
170 |
188 |
|
<div class="panel-body"> |
171 |
189 |
|
|
172 |
190 |
|
<div class="row"> |
173 |
191 |
|
<div class="col-md-6"> |
174 |
192 |
|
<div class="form-group"> |
175 |
193 |
|
<input id="name-affiliate" type="text" class="form-control" name="nome-locale" placeholder="Nome Locale" tabindex="1" required=""> |
|
194 |
+ |
<script>$('#name-affiliate').attr("placeholder", getText("Nome Locale", document.documentElement.lang))</script> |
176 |
195 |
|
</div> |
177 |
196 |
|
</div> |
178 |
197 |
|
|
179 |
198 |
|
<div class="col-md-6"> |
180 |
199 |
|
<div class="form-group"> |
181 |
200 |
|
<select class="typology" name="tipologia" tabindex="2" required=""> |
182 |
|
- |
<option value="default" selected>Seleziona Tipologia</option> |
|
201 |
+ |
<option value="default" selected><script>$('.typology option[value="default"]').text(getText("Seleziona Tipologia", document.documentElement.lang))</script></option> |
183 |
202 |
|
</select> |
184 |
|
- |
<div class="alert alert-warning" id="typoloy-err" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Seleziona una tipologia.</div> |
|
203 |
+ |
<div class="alert alert-warning" id="typoloy-err" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#typoloy-err i').after(" " + getText("Seleziona una tipologia", document.documentElement.lang))</script>.</div> |
185 |
204 |
|
</div> |
186 |
205 |
|
</div> |
187 |
206 |
|
</div> |
|
@@ -215,28 +234,32 @@ |
215 |
234 |
|
<div class="col-md-6"> |
216 |
235 |
|
<div class="form-group"> |
217 |
236 |
|
<input id="self_phone_affiliate" type="text" class="form-control" name="cell-locale" value="" placeholder="Telefono" tabindex="3" required=""> |
|
237 |
+ |
<script>$('#self_phone_affiliate').attr("placeholder", getText("Telefono", document.documentElement.lang))</script> |
218 |
238 |
|
</div> |
219 |
239 |
|
</div> |
220 |
240 |
|
<div class="col-md-6"> |
221 |
241 |
|
<div class="form-group"> |
222 |
242 |
|
<input id="email-affiliate" type="email" class="form-control" name="email" value="" placeholder="Email" tabindex="4" required=""> |
223 |
243 |
|
</div> |
224 |
|
- |
<div class="alert alert-warning" id="email_invalida" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Inserire una email valida.</div> |
|
244 |
+ |
<div class="alert alert-warning" id="email_invalida" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('.form-affiliate #email_invalida i').after(" " + getText("Inserire una email valida", document.documentElement.lang))</script>.</div> |
225 |
245 |
|
</div> |
226 |
246 |
|
<div class="col-md-6"> |
227 |
247 |
|
<div class="form-group"> |
228 |
248 |
|
<input id="site-address" type="text" class="form-control" name="sito" value="" placeholder="Indirizzo Sito" tabindex="5"> |
|
249 |
+ |
<script>$('#site-address').attr("placeholder", getText("Indirizzo Sito", document.documentElement.lang))</script> |
229 |
250 |
|
</div> |
230 |
251 |
|
</div> |
231 |
252 |
|
<div class="col-md-6"> |
232 |
253 |
|
<div class="form-group"> |
233 |
254 |
|
<input id="charge-stations" type="number" class="form-control" name="punti-ricarica" value="" placeholder="Quantità Punti Ricarica" tabindex="6" required="" min="0"> |
|
255 |
+ |
<script>$('#charge-stations').attr("placeholder", getText("Quantità Punti Ricarica", document.documentElement.lang))</script> |
234 |
256 |
|
</div> |
235 |
257 |
|
</div> |
236 |
258 |
|
<div class="col-md-6"> |
237 |
259 |
|
<div class="form-group"> |
238 |
260 |
|
<input id="affiliate-imgs" type="file" class="form-control" name="immagini-locale" value="" placeholder="Immagini Locale" tabindex="7" ></input> |
239 |
|
- |
<button id="load-images" type="button">Carica</button> |
|
261 |
+ |
<script>$('#affiliate-imgs').attr("placeholder", getText("Immagini Locale", document.documentElement.lang))</script> |
|
262 |
+ |
<button id="load-images" type="button"><script>$('#load-images').text(getText("Carica", document.documentElement.lang))</script></button> |
240 |
263 |
|
</div> |
241 |
264 |
|
|
242 |
265 |
|
<div class="form-group"> |
|
@@ -251,37 +274,38 @@ |
251 |
274 |
|
<div class="col-md-6"> |
252 |
275 |
|
<div class="form-group"> |
253 |
276 |
|
<textarea id="description" class="form-control" name="descrizione" placeholder="Descrizione" tabindex="8" rows="4" cols="50" tabindex="11" ></textarea> |
|
277 |
+ |
<script>$('#description').attr("placeholder", getText("Descrizione", document.documentElement.lang))</script> |
254 |
278 |
|
</div> |
255 |
279 |
|
</div> |
256 |
280 |
|
</div> |
257 |
281 |
|
</div> |
258 |
|
- |
<div class="panel-heading map-search-heading"><span class="glyphicon glyphicon-map-marker"></span> Indirizzo locale</div> |
259 |
|
- |
<iframe id="content-map" src="maps-frame.html" height="100%" width="100%"></iframe> |
260 |
|
- |
<div class="alert alert-warning" id="lat-lon-err" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Inserisci un indirizzo</div> |
261 |
|
- |
<div class="panel-heading"><span class="glyphicon glyphicon-file"></span> Condizioni d'uso</div> |
|
282 |
+ |
<div class="panel-heading map-search-heading"><span class="glyphicon glyphicon-map-marker"></span><script>$('.map-search-heading .glyphicon-map-marker').after(" " + getText("Indirizzo locale", document.documentElement.lang))</script></div> |
|
283 |
+ |
<iframe id="content-map" src="maps-frame.php" height="100%" width="100%"></iframe> |
|
284 |
+ |
<div class="alert alert-warning" id="lat-lon-err" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#lat-lon-err i').after(" " + getText("Inserisci un indirizzo", document.documentElement.lang))</script></div> |
|
285 |
+ |
<div class="panel-heading"><span class="glyphicon glyphicon-file"></span><script>$('#form-affiliate .panel-heading .glyphicon-file').after(" " + getText("Condizioni d'uso", document.documentElement.lang))</script></div> |
262 |
286 |
|
<div class="panel-body"> |
263 |
287 |
|
<div class="col-md-12"> |
264 |
288 |
|
<div class="checkbox"> |
265 |
289 |
|
<label for="condizioni"> |
266 |
290 |
|
<input id="condizioni2" type="checkbox" tabindex="9" required=""> |
267 |
|
- |
<p>Accetti i <a href="popup-term.php" rel="facebox">Termini del Servizio e l'Informativa sulla Privacy</a> e <a href="popup-term2.php" rel="facebox">i requisiti per l'affiliazione</a> di Smart Charging?</p> |
|
291 |
+ |
<p><script>$('#form-affiliate .checkbox p').text(getText("Accetti i", document.documentElement.lang) + " ")</script><a href="popup-term.php" rel="facebox"><script>$('#form-affiliate .checkbox p a').text(getText("Termini del Servizio e l'Informativa sulla Privacy", document.documentElement.lang) + " ")</script></a><script>$('#form-affiliate .checkbox p a').after(getText("e", document.documentElement.lang) + " ")</script><a href="popup-term2.php" rel="facebox"><script>$($('#form-affiliate .checkbox p a')[1]).text(getText("i requisiti per l'affiliazione", document.documentElement.lang) + " ")</script></a><script>$($('#form-affiliate .checkbox p a')[1]).after(getText("di", document.documentElement.lang))</script> Smart Charging?</p> |
268 |
292 |
|
</label> |
269 |
293 |
|
</div> |
270 |
|
- |
<div class="alert alert-warning" id="terms" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Per concludere la registrazione è necessario accettare le condizioni di Smart Charging.</div> |
|
294 |
+ |
<div class="alert alert-warning" id="terms" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#terms i').after(" " + getText("Per concludere la registrazione è necessario accettare le condizioni di", document.documentElement.lang))</script> Smart Charging.</div> |
271 |
295 |
|
</div> |
272 |
296 |
|
</div> |
273 |
|
- |
<div class="alert alert-warning" id="all" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Ci sono dei campi vuoti, completare quelli mancanti.</div> |
274 |
|
- |
<button id="submit_affiliate_reg" type="submit" class="btn-sub btn-primary btn-lg btn-block" tabindex="9">Registrati</button> |
275 |
|
- |
<div class="alert alert-warning" id="errore_generico" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i> Errore registrazione</div> |
|
297 |
+ |
<div class="alert alert-warning" id="all" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#all i').after(" " + getText("Ci sono dei campi vuoti", document.documentElement.lang) + ", " + getText("completare quelli mancanti", document.documentElement.lang))</script>.</div> |
|
298 |
+ |
<button id="submit_affiliate_reg" type="submit" class="btn-sub btn-primary btn-lg btn-block" tabindex="9"><script>$('#submit_affiliate_reg').text(getText("Registrati", document.documentElement.lang))</script></button> |
|
299 |
+ |
<div class="alert alert-warning" id="errore_generico" role="alert" hidden=""><i class="fa fa-exclamation-triangle fa-fw"></i><script>$('#errore_generico i').after(" " + getText("Errore registrazione", document.documentElement.lang))</script></div> |
276 |
300 |
|
</div> |
277 |
301 |
|
</form> |
278 |
302 |
|
</div> |
279 |
303 |
|
</div> |
280 |
304 |
|
|
281 |
305 |
|
<div class="landing-ok" style="display:none;"> |
282 |
|
- |
<h2 align="center"><span class="glyphicon glyphicon-ok-sign"></span></span>Registrazione avvenuta con successo!</h2> |
|
306 |
+ |
<h2 align="center"><span class="glyphicon glyphicon-ok-sign"></span><script>$('.landing-ok h2 span').after(getText("Registrazione avvenuta con successo", document.documentElement.lang))</script>!</h2> |
283 |
307 |
|
<div class="uk-text-center"> |
284 |
|
- |
<h2 class="tm-margin-large-top tm-heading-large">Scarica subito la nostra app dai principali store!</h2> |
|
308 |
+ |
<h2 class="tm-margin-large-top tm-heading-large"><script>$('.landing-ok h2.tm-margin-large-top.tm-heading-large').text(getText("Scarica subito la nostra app dai principali store", document.documentElement.lang))</script>!</h2> |
285 |
309 |
|
|
286 |
310 |
|
<p class="tm-text-large tm-margin-large-bottom"> |
287 |
311 |
|
<a href="https://itunes.apple.com/it/app/smart-charging/id1041905157?mt=8" target="_blank"><img alt="Apple" src="../images/apple-sore.png" style="width: 166px; height: 53px; border-width: 1px; border-style: solid; margin: 10px; display: inline;" /></a><a href="https://play.google.com/store/apps/details?id=it.fedeloper.smartcharging" target="_blank"><img alt="Google Play" src="../images/play-store.png" style="width: 166px; height: 53px; border-width: 1px; border-style: solid; margin: 10px; display: inline;" /></a><a href="https://www.microsoft.com/it-it/store/apps/smartcharging/9nblggh1zm8k" target="_blank"><img alt="Windows Phone" src="../images/wp8-store.png" style="width: 166px; height: 53px; border-width: 1px; border-style: solid; margin: 10px; display: inline;" /></a><a href="index.php?option=com_content&view=article&id=1&Itemid=103"> </a> |
|
@@ -290,7 +314,7 @@ |
290 |
314 |
|
</div> |
291 |
315 |
|
|
292 |
316 |
|
<div class="landing-ko" style="display:none;"> |
293 |
|
- |
<h2 align="center"><span class="glyphicon glyphicon-remove-sign"></span>Impossibile effettuare la Registrazione<br>Riprova più tardi</h2> |
|
317 |
+ |
<h2 align="center"><span class="glyphicon glyphicon-remove-sign"></span><script>$('.landing-ko h2 span').after(getText("Impossibile effettuare la Registrazione", document.documentElement.lang) + '<br>' + getText("Riprova più tardi", document.documentElement.lang))</script></h2> |
294 |
318 |
|
</div> |
295 |
319 |
|
|
296 |
320 |
|
<div class="loader"> |