null
Indietro

Heraricarica Business Duplica 1

Si è verificato un errore nell'elaborarazione del modello.
com.liferay.journal.service.JournalArticleServiceUtil

----
FTL stack trace ("~" means nesting-related):
	- Failed at: journalArticleServiceUtil = objectUti...  [in template "20099#20135#93622" at line 25, column 5]
	- Reached through: #assign-container  [in template "20099#20135#93622" at line 17, column 1]
----
1<style> 
2    #tariffa-excerpt .quote-section { 
3        padding-top: 50px !important; 
4
5 
6    @media (max-width: 991px) { 
7        #tariffa-excerpt .quote-section { 
8            padding-top: 130px !important; 
9        }    
10         
11        .fixed-widget-offerta-container { 
12            margin-top:68% !important; 
13
14
15     
16</style> 
17<#assign  
18	title=.vars['reserved-article-title'].data 
19	urlcustom=themeDisplay.getURLCurrent()?keep_before("?") 
20	tryurl=themeDisplay.getPortalURL()+themeDisplay.getURLCurrent()  
21    showWidget=false  
22    showForm=false 
23    showWidgetCallBack = false 
24    colClassSoluzioni="col-lg-12" 
25    journalArticleServiceUtil=objectUtil("com.liferay.journal.service.JournalArticleServiceUtil") 
26    assetVocabularyServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetVocabularyServiceUtil")  
27    vocabularyId=0 
28    docCompare1="HC"  
29    docCompare2="HC"  
30/> 
31 
32<#assign solsottoscrizione=urlcustom+ "/sottoscrizione" /> 
33<#--  <#assign solnoproblemluce=urlcustom+ "/sottoscrizione-luce" /> 
34<#assign solnoproblemgas=urlcustom+ "/sottoscrizione-gas" />   --> 
35 
36<#if tryurl?contains("heracomm-nordest")> 
37 <#assign docCompare1="HNE" /> 
38 <#assign docCompare2="HNE" /> 
39 </#if> 
40 <#if urlcustom?contains("cmvenergia")> 
41 <#assign docCompare1="CMV" /> 
42 <#assign docCompare2="CMV" /> 
43 </#if> 
44 <#if tryurl?contains("heracomm-marche")> 
45    <#assign docCompare1="HCM" docCompare2="HCM" /> 
46</#if> 
47 <#if themeDisplay.getScopeGroup().getParentGroupId() gt 0> 
48 	<#assign 
49 		vocabulariesList = assetVocabularyServiceUtil.getGroupVocabularies(themeDisplay.getScopeGroup().getParentGroupId()) 
50 		journalArticle = journalArticleServiceUtil.getArticle(getterUtil.getLong(themeDisplay.getScopeGroup().getParentGroupId()), .vars['reserved-article-id'].data) 
51 	/> 
52 <#else> 
53 	<#assign 
54 		vocabulariesList = assetVocabularyServiceUtil.getGroupVocabularies(themeDisplay.getScopeGroupId()) 
55 		journalArticle = journalArticleServiceUtil.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data) 
56 	/> 
57 </#if> 
58 <#assign  
59 	assetCategoryServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetCategoryServiceUtil") 
60    journalArticleCategories = assetCategoryServiceUtil.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) 
61    hasLuce=false  
62    hasGas=false  
63    valueLuce=0  
64    valueGas=0 
65    formUrl = "soluzioni-sostenibili/sottoscrizione"  
66    target=""  
67    subtarget="" 
68	offerta = urlcustom?keep_after_last("/soluzioni-sostenibili/") 
69	prefUrl = urlcustom?keep_before("/soluzioni-sostenibili/") 
70	prefUrlCondividi = themeDisplay.getPortalURL() 
71 /> 
72 <#list vocabulariesList as vocabulary> 
73     <#assign vocabularyName = vocabulary.getName() /> 
74     <#if vocabularyName?? && vocabularyName?lower_case == "servizio"> 
75         <#assign vocabularyId = vocabulary.getVocabularyId() /> 
76     </#if> 
77 </#list> 
78 <#if urlcustom?contains("/business/")> 
79     <#assign 
80         isCasa = false 
81         target = "business" 
82     /> 
83 	<#if urlcustom?contains("/business/")> 
84 		<#assign 
85 			subtarget = urlcustom?keep_after_last("/business/") 
86 			subtarget = subtarget?keep_before("/soluzioni-sostenibili/") 
87 		/> 
88 	</#if> 
89 <#else> 
90     <#assign 
91         isCasa = true 
92         target = "casa" 
93     /> 
94 </#if> 
95 <#assign 
96     formUrl = prefUrl + "/" + formUrl 
97     formSottoscriviUrl = urlcustom + "/richiesta-informazioni" 
98     completeUrl = prefUrlCondividi + urlcustom 
99 /> 
100 <#list journalArticleCategories as category> 
101     <#if category.vocabularyId == vocabularyId> 
102         <#switch category.name?lower_case> 
103             <#case "luce"> 
104                 <#assign 
105                     hasLuce = true 
106                     valueLuce = 1 
107                 /> 
108                 <#break /> 
109             <#case "gas"> 
110                 <#assign 
111                     hasGas = true 
112                     valueGas = 1 
113                 /> 
114                 <#break /> 
115             <#default> 
116                 <#break /> 
117         </#switch> 
118     </#if> 
119 </#list> 
120 <#if MostraWidgetAttivaOra??> 
121     <#if MostraWidgetAttivaOra.getData()?? && MostraWidgetAttivaOra.getData() == "si"> 
122         <#assign 
123             showWidget = true 
124             colClassSoluzioni="col-lg-8" 
125         /> 
126     <#elseif MostraFormDiSottoscrizione??> 
127         <#if MostraFormDiSottoscrizione.getData()?? && MostraFormDiSottoscrizione.getData() == "si"> 
128             <#assign 
129                 showForm = true 
130                 colClassSoluzioni="col-lg-8" 
131             /> 
132         </#if> 
133     </#if> 
134 </#if> 
135 <#assign  
136 	showWidgetCallBack = MostraWidgetCallBack.getData() 
137 	titoloCallBack = "" 
138 	sottotitoloCallBack = "" 
139 /> 
140 <#-- Widget CallBack --> 
141 <#if showWidgetCallBack  == "si"> 
142 <#if TitoloWidgetCallBack?? && TitoloWidgetCallBack.SottotitoloWidgetCallBack??> 
143 	<#assign  
144 		titoloCallBack = TitoloWidgetCallBack.getData() 
145 		sottotitoloCallBack = TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData() 
146         colClassSoluzioni="col-lg-8" 
147 	/> 
148 </#if> 
149 <section id="widget-offerta" class="d-none d-lg-block"> 
150  		<div class="container position-relative"> 
151  			<div class="row"> 
152  				<div class="offset-lg-8 col-lg-4 col-widget-offerta px-0 px-sm-3"> 
153  					<div class="fixed-widget-offerta-container py-5 text-center"> 
154  						<div class="fixed-widget-offerta-inner-container white-box position-relative px-4 pt-4 pb-3 mt-4" style="width: 300px;"> 
155  							<h4 class="gradient-text text-uppercase small bolder mb-1">${TitoloWidgetCallBack.getData()}</h4> 
156  							<div class="black-three big letter-spacing-sm">${TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData()}</div> 
157                              <div class="offerta-selected x-bigger letter-spacing-sm greyish-brown l12 mt-3 mb-5 hide"> 
158                                  Hai scelto <strong class="offerta-type">${TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData()}</strong> clicca su informazioni per continuare. 
159                              </div> 
160  						</div> 
161              <div class="white-two-bg position-relative px-4 pb-3" style="width: 300px;"> 
162                  <div class="pb-2"> 
163  					<div class="black-three bold letter-spacing-sm mb-2">SEI INTERESSATO?</div> 
164                    <a id="tichiamiamooff" class="btn gradient white font-weight-bold" href="#" style="font-size:14px"> 
165                        <i class="icon-phone-call title-mid white big align-sub mr-1"></i>Fatti richiamare 
166                      </a> 
167                  </div> 
168                  <div id="vvc-activate-box"> 
169                  </div> 
170                  <!-- <div class="col-xl-6 pb-2"> 
171                    <a class="gradient-text font-weight-bold" href="#" style="font-size:14px"> 
172                      <i class="icon-info-alt title-mid gradient-text big align-sub mr-1"></i>Attiva la chat 
173                    </a> 
174                  </div> --> 
175                </div> 
176              </div> 
177  					</div> 
178  				</div> 
179  			</div> 
180  	</section> 
181  	<!-- Mobile--> 
182      <section class="container mobile d-lg-none"> 
183  		<div class="container position-relative"> 
184  			<div class="row"> 
185  				<div class="offset-lg-8 col-lg-4 px-0 px-sm-3"> 
186  					<div class="fixed-widget-offerta-container" style="margin-top: 0px;"> 
187  						<div class="fixed-widget-offerta-inner-container white-box position-relative text-center px-4 pt-4 pb-3 mt-4"> 
188  							<h4 class="gradient-text text-uppercase small bolder mb-1">${TitoloWidgetCallBack.getData()}</h4> 
189  							<div class="black-three big letter-spacing-sm">${TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData()}</div> 
190                              <div class="offerta-selected x-bigger letter-spacing-sm greyish-brown l12 mt-3 mb-5 hide"> 
191                                  Hai scelto <strong class="offerta-type">${TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData()}</strong> clicca su informazioni per continuare. 
192                              </div> 
193  						</div> 
194              <div class="white-two-bg position-relative text-center px-2 pb-3"> 
195      					<div class="row"> 
196      						<div class="col-xs-12 text-center pb-2"> 
197  									<div class="black-three bold letter-spacing-sm mb-2">SEI INTERESSATO?</div> 
198      							<a id="tichiamiamooff" class="btn gradient white letter-spacing-sm font-weight-bold mt-4" href="#" style="font-size:15px"> 
199      									<i class="icon-phone-call title-mid white big align-sub mr-1"></i>Fatti richiamare 
200      								</a> 
201      						</div> 
202      						<div class="col-xs-12 pb-2 text-center" id="vvc-activate-box-mobile"> 
203      						</div> 
204      						<!-- <div class="col-xs-12 text-center pb-2"> 
205      							<a class="gradient-text letter-spacing-sm font-weight-bold" href="#" style="font-size:15px"> 
206      								<i class="icon-info-alt title-mid gradient-text big align-sub mr-1"></i>Attiva la chat 
207      							</a> 
208      						</div> --> 
209      					</div> 
210      				</div> 
211  					</div> 
212  				</div> 
213  			</div> 
214  		</div> 
215  	</section> 
216  	<!--div class="showmobilewidget mobile d-lg-none container gradient active" 
217      style="position: fixed;bottom: 0px;z-index: 50;"> 
218      <div class="px-5 justify-content-center d-flex"> 
219          <a href="${formUrl}" class="white text-center bold x-bigger my-2"> Richiedi informazioni </a> 
220      </div> 
221  </div--> 
222  
223 <#-- Widget Attiva ora --> 
224 <#elseif showWidget || showForm> 
225 	<section id="widget-offerta" class="d-none d-lg-block"> 
226 		<div class="container position-relative py-5"> 
227  
228 			<div class="row"> 
229 				<div class="offset-lg-8 col-lg-4 col-widget-offerta px-0 px-sm-3"> 
230                 	<div class="fixed-widget-offerta-container"> 
231                 		<div class="fixed-widget-offerta-inner-container white-box position-relative text-center p-4 mt-4"> 
232                 			<h4 class="darkish-pink text-uppercase small bolder mb-1">${title}</h4> 
233                             <#if showWidget> 
234                     			<form action="${formUrl}" method="GET"> 
235                     				<div class="row px-0 big letter-spacing-sm l12"> 
236                     				    <div class="col-md-6 text-left"> 
237                     				        <div class="greyish-brown my-3"> 
238                     					        Disponibile per: 
239                     				        </div> 
240                     				    </div> 
241                     				    <div class="col-md-6 pt-3 text-right"> 
242                     				        <#if hasLuce> 
243                     				            <span class="gradient-text pt-1"> 
244                             					    <i class="icon-energia normal"></i> Luce 
245                             				    </span> 
246                             				</#if> 
247                             				<#if hasGas> 
248                             				    <#assign marginCustom = "" /> 
249                             				    <#if hasLuce> 
250                             				        <#assign marginCustom = "ml-2" /> 
251                             				    </#if> 
252                             				    <span class="gradient-text pt-1"> 
253                             					    <i class="icon-gas normal ${marginCustom}"></i> Gas 
254                             					</span> 
255                         					</#if> 
256                     				    </div> 
257     									<input type="hidden" name="target" value="${target}" required /> 
258     									<input type="hidden" name="subtarget" value="${subtarget}" required /> 
259     									<input type="hidden" name="offerta" value="${offerta}" required /> 
260     									<input type="hidden" name="luce" value="${valueLuce}" required /> 
261     									<input type="hidden" name="gas" value="${valueGas}" required /> 
262                     				</div> 
263                     				<div class="offerta-selected x-bigger letter-spacing-sm greyish-brown l12 my-3"> 
264                     					Hai scelto <strong class="offerta-name">${title}</strong> <strong class="offerta-type"></strong> clicca su attiva per continuare. 
265                     				</div> 
266                     				<div class="justify-content-center"> 
267                                        <#--  <#if urlcustom?contains("hera-no-problem-acqua")> 
268                                        <#assign fullurlluce = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-luce" /> 
269                                        <#assign fullurlgas = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-gas" />  --> 
270                                        <#--  <div class="row"> 
271                                            <div class="col-md-6"> 
272                                                <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurlluce}">Attiva ora Luce!</a> 
273                                            </div> 
274                                            <div class="col-md-6"> 
275                                            <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurlgas}">Attiva ora Gas!</a> 
276                                            </div> 
277                                        </div> 
278 
279                                        <#else>  --> 
280                                        <#assign fullurl = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione" /> 
281 
282                                        <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurl}">Attiva ora!</a> 
283                                        <#--  </#if>  --> 
284     								<!--div class="justify-content-center"> 
285                     				<a id="myBtn" class="gradient-text big bold letter-spacing-sm pt-1" href="#"> 
286                     					<i class="icon-share mr-1 bigger align-text-bottom"></i> Condividi 
287                 					</a> 
288     								</div--> 
289									 </div> 
290                     			</form> 
291                             <#elseif showForm> 
292                            <h4 class="gradient-text text-uppercase small bolder mb-1">SOLUZIONI SOSTENIBILI</h4> 
293                             <div class="black-three big letter-spacing-sm">${TitoloWidgetCallBack.SottotitoloWidgetCallBack.getData()}</div> 
294                                 <div class="row px-0 big letter-spacing-sm l12"> 
295                                     <div class="col-md-6 text-left"> 
296                                         <div class="greyish-brown my-3"> 
297                                             Disponibile per: 
298                                         </div> 
299                                     </div> 
300                                     <div class="col-md-6 pt-3 text-right"> 
301                                         <#if hasLuce> 
302                                             <span class="gradient-text pt-1"> 
303                                                 <i class="icon-energia normal"></i> Luce 
304                                             </span> 
305                                         </#if> 
306                                         <#if hasGas> 
307                                             <#assign marginCustom = "" /> 
308                                             <#if hasLuce> 
309                                                 <#assign marginCustom = "ml-2" /> 
310                                             </#if> 
311                                             <span class="gradient-text pt-1"> 
312                                                 <i class="icon-gas normal ${marginCustom}"></i> Gas 
313                                             </span> 
314                                         </#if> 
315                                     </div> 
316                                 </div> 
317                                 <div class="x-bigger letter-spacing-sm greyish-brown l12 my-3"> 
318                                     Hai scelto <strong>${title}</strong> clicca su attiva per continuare. 
319                                 </div> 
320                                 <div class="justify-content-center"> 
321									<a data-senna-off="true" href="${formSottoscriviUrl}" 
322										style="color:white;border-radius:5px" 
323										class="btn gradient white px-5 justify-content-center mt-3 mb-3" 
324										id="attivaora"> 
325										Attiva ora! 
326									</a>                                 </div> 
327                             </#if> 
328                 		</div> 
329                 		<div class="white-two-bg position-relative text-center px-4 pb-3"> 
330                 			<h4 class="greyish-brown text-uppercase small bolder mb-3">Hai bisogno di aiuto?</h4> 
331                 			<div class="row text-left"> 
332                 				<div class="col-xl-12 pb-2 text-center"> 
333                 					    <a id="tichiamiamosol" class="gradient-text letter-spacing-sm font-weight-bold" 
334                                            href="#"> 
335                                            <i class="icon-phone-call big align-sub mr-1"></i> Ti chiamiamo noi 
336                                        </a> 
337                 				</div> 
338                                 <div class="col-xl-12 pb-2 text-center" id="vvc-activate-box"> 
339         						</div> 
340                 				<!-- <div class="col-xl-6 pb-2 d-none"> 
341                 					<a class="gradient-text letter-spacing-sm font-weight-bold" href="#"> 
342             							  <i class="icon-info-alt big align-sub mr-1"></i> Attiva la chat 
343             						  </a> 
344             					</div> --> 
345             				</div> 
346             			</div> 
347             		</div> 
348             	</div> 
349 			</div> 
350 		</div> 
351 	</section> 
352  
353 	<!-- Mobile --> 
354 	<section class="container mobile d-lg-none" style="margin-top: -7.5rem !important;"> 
355 		<div class="container position-relative py-5"> 
356 			<div class="row"> 
357 				<div class="offset-lg-8 col-lg-4 px-0 px-sm-3"> 
358                 	<div class="fixed-widget-offerta-container"> 
359                 		<div class="fixed-widget-offerta-inner-container white-box position-relative text-center p-4 mt-4"> 
360                 			<h4 class="darkish-pink text-uppercase small bolder mb-1">${title}</h4> 
361                             <#if showWidget> 
362                     			                              <!-- 
363                                    <form action="${formUrl}" method="GET"> 
364                                        <div class="row px-0 big letter-spacing-sm l12"> 
365                                            <div class="col-xs-6 text-left"> 
366                                                <div class="greyish-brown my-3"> 
367                                                    Disponibile per: 
368                                                </div> 
369                                            </div> 
370                                            <div class="col-xs-6 pt-3 text-right"> 
371                                                <#if hasLuce> 
372                                                    <span class="gradient-text pt-1"> 
373                                                        <i class="icon-energia normal"></i> Luce 
374                                                    </span> 
375                                                </#if> 
376                                                <#if hasGas> 
377                                                    <#assign marginCustom="" /> 
378                                                    <#if hasLuce> 
379                                                        <#assign marginCustom="ml-2" /> 
380                                                    </#if> 
381                                                    <span class="gradient-text pt-1"> 
382                                                        <i class="icon-gas normal ${marginCustom}"></i> Gas 
383                                                    </span> 
384                                                </#if> 
385                                            </div> 
386     									<input type="hidden" name="target" value="${target}" required /> 
387     									<input type="hidden" name="subtarget" value="${subtarget}" required /> 
388     									<input type="hidden" name="offerta" value="${offerta}" required /> 
389     									<input type="hidden" name="luce" value="${valueLuce}" required /> 
390     									<input type="hidden" name="gas" value="${valueGas}" required /> 
391                                        </div> 
392                                        <div class="offerta-selected x-bigger letter-spacing-sm greyish-brown l12 my-3"> 
393                                            Hai scelto <strong class="offerta-name">${title}</strong> <strong 
394                                                class="offerta-type"></strong> clicca su attiva per continuare. 
395                                        </div> 
396                                        <div class="justify-content-center"> 
397                                            <input 
398                                                class="attivaorasolmobile btn gradient white w-100 justify-content-center mt-3 mb-3" 
399                                                type="submit" value="Attiva ora!" /> 
400                                        </div> 
401   
402                                    </form> 
403                                    --> 
404									<div clas="d-flex justify-content-center text-center"> 
405                                        <#--  <#if (solsottoscrizione?contains("hera-no-problem")) && 
406                                            (!solsottoscrizione?contains("hera-no-problem-acqua")) 
407                                        >  --> 
408                                        <#--  <#if urlcustom?contains("hera-no-problem-acqua")> 
409                                        <#assign fullurlluce = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-luce" /> 
410                                        <#assign fullurlgas = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-gas" />  --> 
411                                        <#--  <div class="row"> 
412                                            <div class="col-md-6"> 
413                                                <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurlluce}">Attiva ora Luce!</a> 
414                                            </div> 
415                                            <div class="col-md-6"> 
416                                            <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurlgas}">Attiva ora Gas!</a> 
417                                            </div> 
418                                        </div> 
419 
420                                        <#else>  --> 
421                                        <#assign fullurl = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione" /> 
422 
423                                        <a id="attivaora" class="btn gradient white w-100 justify-content-center mt-3 mb-4" href="${fullurl}">Attiva ora!</a> 
424                                        <#--  </#if>  --> 
425                                    </div> 
426                             <#elseif showForm> 
427                                 <div class="row px-0 big letter-spacing-sm l12"> 
428                                     <div class="col-md-6 text-left"> 
429                                         <div class="greyish-brown my-3"> 
430                                             Disponibile per: 
431                                         </div> 
432                                     </div> 
433                                     <div class="col-md-6 pt-3 text-right"> 
434                                         <#if hasLuce> 
435                                             <span class="gradient-text pt-1"> 
436                                                 <i class="icon-energia normal"></i> Luce 
437                                             </span> 
438                                         </#if> 
439                                         <#if hasGas> 
440                                             <#assign marginCustom = "" /> 
441                                             <#if hasLuce> 
442                                                 <#assign marginCustom = "ml-2" /> 
443                                             </#if> 
444                                             <span class="gradient-text pt-1"> 
445                                                 <i class="icon-gas normal ${marginCustom}"></i> Gas 
446                                             </span> 
447                                         </#if> 
448                                     </div> 
449                                 </div> 
450                                 <div class="x-bigger letter-spacing-sm greyish-brown l12 my-3"> 
451                                     Hai scelto <strong>${title}</strong> clicca su attiva per continuare. 
452                                 </div> 
453                                 <div class="justify-content-center"> 
454                                 <a data-senna-off="true" href="${formSottoscriviUrl}" 
455								style="color:white;border-radius:5px" 
456								class="btn gradient white px-5 justify-content-center mt-3 mb-4" 
457								id="attivaora"> 
458								Attiva ora! 
459								</a>                                  
460							</div> 
461                             </#if> 
462                 		</div> 
463                 		<div class="white-two-bg position-relative text-center px-4 pb-3"> 
464                 			<h4 class="greyish-brown text-uppercase small bolder mb-3">Hai bisogno di aiuto?</h4> 
465                 			<div class="row text-left"> 
466                 				<div class="col-xs-12 pb-2 text-center"> 
467                 					<a id="tichiamiamosol" class="gradient-text letter-spacing-sm font-weight-bold" 
468                                            href="#"> 
469                                            <i class="icon-phone-call big align-sub mr-1"></i> Ti chiamiamo noi 
470                                        </a> 
471                 				</div> 
472                                 <div class="col-xs-12 pb-2 text-center" id="vvc-activate-box-mobile"> 
473                                 </div> 
474                                 <!-- <div class="col-xl-6 pb-2 d-none"> 
475                 					<a class="gradient-text letter-spacing-sm font-weight-bold" href="#"> 
476             							  <i class="icon-info-alt big align-sub mr-1"></i> Attiva la chat 
477             						  </a> 
478             					</div> --> 
479             				</div> 
480             			</div> 
481             		</div> 
482             	</div> 
483 			</div> 
484 		</div> 
485         <div class="showmobilewidget mobile d-lg-none container gradient" 
486             style="position: fixed;bottom: 0px;z-index: 50;margin-left: -16px;"> 
487             <div class="row px-5 justify-content-center"> 
488                     <div class="col-xs-12 pb-3"> 
489                     <form action="${formUrl}" method="GET"> 
490                        <input type="hidden" name="target" value="${target}" required /> 
491                        <input type="hidden" name="subtarget" value="${subtarget}" required /> 
492                        <input type="hidden" name="offerta" value="${offerta}" required /> 
493                        <input type="hidden" name="luce" value="${valueLuce}" required /> 
494                        <input type="hidden" name="gas" value="${valueGas}" required /> 
495 
496                        <#--  <#if (solsottoscrizione?contains("hera-no-problem")) && 
497                        (!solsottoscrizione?contains("hera-no-problem-acqua")) 
498                        >  --> 
499						<#--  <#if urlcustom?contains("hera-no-problem-acqua")> 
500                        <#assign fullurlluce = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-luce" /> 
501                        <#assign fullurlgas = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione-gas" />  --> 
502                        <#--  <div class="row"> 
503                            <div class="col-md-6"> 
504                                <a id="attivaora"  
505                                class="btn btn-border darkish-color white-bg w-100 justify-content-center mt-3 mb-1"  
506                                href="${fullurlluce}" style="width: 100% !important">Attiva ora Luce!</a> 
507                            </div> 
508                            <div class="col-md-6"> 
509                            <a id="attivaora"  
510                            class="btn btn-border darkish-color white-bg w-100 justify-content-center mt-3 mb-1"  
511                            href="${fullurlgas}"  style="width: 100% !important">Attiva ora Gas!</a> 
512                            </div> 
513                        </div> 
514                        <#else>  --> 
515                        <#assign fullurl = "https://heracomm.gruppohera.it" + urlcustom + "/sottoscrizione" /> 
516 
517                        <a id="attivaora" class="btn btn-border darkish-color white-bg w-100 justify-content-center mt-3 mb-1" 
518                        href="${fullurl}">Attiva ora!</a> 
519                        <!-- 
520                        <a class="btn btn-border darkish-color white-bg w-100 justify-content-center mt-3 mb-1" 
521                            href="${formUrl}" data-tipoofferta="luce e gas"> 
522                            Attiva Ora 
523                        </a> 
524                        --> 
525                        <#--  </#if>  --> 
526                     </form> 
527                     </div> 
528                 </div> 
529             </div> 
530         </div> 
531 	</section> 
532 <#else> 
533 </#if> 
534  
535    <#-- ************* Modale per avviso Condividi ************** --> 
536 <style> 
537     /* The Modal (background) */ 
538     .offerta-modal { 
539         display: none; /* Hidden by default */ 
540         position: fixed; /* Stay in place */ 
541         z-index: 1; /* Sit on top */ 
542         padding-top: 300px; /* Location of the box */ 
543         left: 0; 
544         top: 0; 
545         width: 100%; /* Full width */ 
546         height: 100%; /* Full height */ 
547         overflow: auto; /* Enable scroll if needed */ 
548         background-color: rgb(0,0,0); /* Fallback color */ 
549         background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ 
550
551  
552     /* Modal Content */ 
553     .offerta-modal-content { 
554         background-color: #fefefe; 
555         margin: auto; 
556         padding: 20px; 
557         border: 1px solid #888; 
558         width: 80%; 
559
560  
561     /* The close_offerta Button */ 
562     .close_offerta { 
563         color: #aaaaaa; 
564         float: right; 
565         font-size: 28px; 
566         font-weight: bold; 
567
568  
569     .close_offerta:hover, 
570     .close_offerta:focus { 
571         color: #000; 
572         text-decoration: none; 
573         cursor: pointer; 
574
575 </style> 
576  
577 <!-- The Modal --> 
578 <div id="myModal" class="modal offerta-modal" style="z-index:100"> 
579     <!-- Modal content --> 
580     <div class="modal-content offerta-modal-content col-lg-3"> 
581 	    <span class="close_offerta text-right" style="color:red;">&times;</span> 
582 	    <div> 
583 	        <h3 class="bigger text-center mb-3">Condividi l'offerta coi tuoi amici inoltrandogli questo link</h3> 
584 	        <input type="text" value="${completeUrl}" id="myInput" class="text-center" disabled> 
585 	    </div> 
586 	    <div class="text-center"> 
587 		    <button id="copyLinkButton" onclick="copyToClipBoard()" class="btn gradient white text-center mt-3">Copia Link</button> 
588 	    </div> 
589     </div> 
590 </div> 
591  
592 <script> 
593     // Get the modal 
594     var modal = document.getElementById("myModal"); 
595     // Get the button that opens the modal 
596     var btn = document.getElementById("myBtn"); 
597     var btnMobile = document.getElementById("myBtn_mobile"); 
598     // Get the <span> element that closes the modal 
599     var span = document.getElementsByClassName("close_offerta")[0]; 
600  
601     if (btn !== null) { 
602         // When the user clicks the button, open the modal 
603         btn.onclick = function() { 
604             modal.style.display = "block"; 
605             $("#copyLinkButton").prop( "disabled", false ); 
606
607
608  
609     if (btnMobile !== null) { 
610         btnMobile.onclick = function() { 
611         modal.style.display = "block"; 
612             $("#copyLinkButton").prop( "disabled", false ); 
613
614
615  
616     // When the user clicks on <span> (x), close the modal 
617     span.onclick = function() { 
618         modal.style.display = "none"; 
619         $("#copiedToClipboard").remove(); 
620
621  
622     // When the user clicks anywhere outside of the modal, close it 
623     window.onclick = function(event) { 
624         if (event.target == modal) { 
625             modal.style.display = "none"; 
626
627
628  
629     function copyToClipBoard() { 
630         /* Get the text field */ 
631         var copyText = document.getElementById("myInput"); 
632  
633         /* Select the text field */ 
634         copyText.select(); 
635  
636         /* Copy the text inside the text field */ 
637         document.execCommand("copy"); 
638  
639         /* Alert the copied text */ 
640  
641         $("#copyLinkButton").after('<div id="copiedToClipboard" class="text-center"><font color="green" size="2">Copiato</font></div>'); 
642         $("#copyLinkButton").prop( "disabled", true ); 
643
644 </script> 
645  
646 <#-- Sezione "Tariffa Except" --> 
647 <#if TitoloIntroComune??> 
648        <section id="tariffa-excerpt" class="quote-section"> 
649            <div class="container position-relative py-5"> 
650                <div class="row"> 
651 			<div class="col-lg-8"> 
652 				<div class="row"> 
653 					<div class="${colClassSoluzioni}"> 
654 					    <#if TitoloIntroComune?has_content>								 
655 						<h3 class="firstTitle--withCircle gradient-text title-big letter-spacing-sm bolder">${TitoloIntroComune.getData()}</h3> 
656 						</#if> 
657 					</div> 
658 				</div> 
659 				<#assign counter = 0/> 
660 				<#list TitoloIntro.getSiblings() as checkTitoloIntro> 
661 					<#assign counter = counter +1/>			   
662 				</#list> 
663 				<#if counter == 1 > 
664 					<#list TitoloIntro.getSiblings()?chunk(2) as titoloIntro> 
665 					<div class="row"> 
666 						<div class="${colClassSoluzioni}"> 
667 						<#if titoloIntro?has_content> 	 
668 							<#list titoloIntro as titolo> 
669 								<#if titolo??> 
670 									<#if titolo.getData() !=""> 
671 										<h3 class="gradient-text title-big letter-spacing-sm bolder mb-5">${titolo.getData()}</h3> 
672 									</#if> 
673 								</#if> 
674 								<#if titolo.DescrizioneIntro??> 
675 									<#if titolo.DescrizioneIntro.getData() !=""> 
676 										<#if titolo.DescrizioneIntro.getData() !=""> 
677 											<blockquote class="black-three big letter-spacing-sm l15 pr-lg-5"> 
678 												${titolo.DescrizioneIntro.getData()} 
679 											</blockquote> 
680 										</#if> 
681 									</#if> 
682 								</#if> 
683 							</#list>				   
684 						</#if> 
685 						</div> 
686 					</div> 
687 					</#list> 
688 				<#else> 
689 					<#list TitoloIntro.getSiblings()?chunk(2) as titoloIntro> 
690 					<div class="row"> 
691 						<#if titoloIntro?has_content> 	 
692 							<#list titoloIntro as titolo>								 
693 								<div class="col-lg-6"> 
694 								<#if titolo??> 
695 									<#if titolo.getData() !=""> 
696 										<h4 class="hc-pdp-subtitle bolder gradient-text">${titolo.getData()}</h4> 
697 									</#if> 
698 								</#if> 
699 								<#if titolo.DescrizioneIntro??> 
700 									<#if titolo.DescrizioneIntro.getData() !=""> 
701 										<blockquote class="black-three big letter-spacing-sm l15 pr-lg-5">${titolo.DescrizioneIntro.getData()}</blockquote> 
702 									</#if> 
703 								</#if> 
704 								</div> 
705 							</#list>				   
706 						</#if> 
707 					</div> 
708 					</#list> 
709 				</#if> 
710 			</div> 
711 		</div> 
712 	</div> 
713 </section> 
714 </#if> 
715  
716 <#-- Sezione "Premio Annuo" --> 
717 <#if DescrizioneTestoEvidenza.getData() != ""> 
718 	<section id="premio-annuo" class="d-none d-lg-block"> 
719 		<div class="container position-relative py-5"> 
720 			<div class="row mt-5 py-5"> 
721 				<div class="${colClassSoluzioni}" style="padding-top: 50px ;"> 
722 					${DescrizioneTestoEvidenza.getData()} 
723 					<#if InfoTestoEvidenza??> 
724 						<#if InfoTestoEvidenza.getData()?? && InfoTestoEvidenza.getData() != ""> 
725 							<hr class="my-3" /> 
726 							${InfoTestoEvidenza.getData()} 
727 						</#if> 
728 					</#if> 
729 				</div> 
730 			</div> 
731 		</div> 
732 	</section> 
733  
734 
735            <!-- Mobile --> 
736 	<section id="premio-annuo-mobile" class="mobile d-lg-none" style="background-image: linear-gradient(281deg,#9b3cb7 0%,#f24474 60%);background-repeat: no-repeat;background-size: 100vw 100%;background-position: top left;"> 
737 		<div class="container position-relative"> 
738 			<div class="row"> 
739 				<div class="${colClassSoluzioni}" style="padding-top: 50px ;"> 
740 					${DescrizioneTestoEvidenza.getData()} 
741 					<#if InfoTestoEvidenza??> 
742 						<#if InfoTestoEvidenza.getData()?? && InfoTestoEvidenza.getData() != ""> 
743 							<hr class="my-3" /> 
744 							${InfoTestoEvidenza.getData()} 
745 						</#if> 
746 					</#if> 
747 				</div> 
748 			</div> 
749 		</div> 
750 	</section> 
751 </#if> 
752  
753 <#-- ************* Sezione "Coperture" ************* --> 
754 <#if TitoloTestoAggiuntivo??> 
755 	<#if TitoloTestoAggiuntivo.getData()?? && TitoloTestoAggiuntivo.getData() != ""> 
756 		<section id="coperture"> 
757 			<div class="container py-5"> 
758 				<div class="row"> 
759 					<div class="${colClassSoluzioni}"> 
760 						<h3 class="title-big black-three letter-spacing-sm bolder pb-4">${TitoloTestoAggiuntivo.getData()}</h3> 
761 						<#if DescrizioneTestoAggiuntivo.getData()?? && DescrizioneTestoAggiuntivo.getData() != ""> 
762 							${DescrizioneTestoAggiuntivo.getData()} 
763 						</#if> 
764 					</div> 
765 				</div> 
766 			</div> 
767 		</section> 
768 	</#if> 
769 </#if> 
770  
771 <#-- ************* Sezione "L'offerta nel Dettaglio" ************* --> 
772 <#if TestoDettaglioOfferta.getSiblings()?has_content && TestoDettaglioOfferta.getData() != ""> 
773 	<section id="list" class="white-two-bg py-5 d-none d-lg-block"> 
774 		<div class="container py-3"> 
775 			<h3 class="title-big black-three letter-spacing-sm bolder">Ulteriori dettagli</h3> 
776 			<div class="row mt-4 pt-3"> 
777 				<div class="${colClassSoluzioni}"> 
778 					<ul class="pl-lg-5 list-unstyled greyish-brown big letter-spacing-sm"> 
779 						<#list TestoDettaglioOfferta.getSiblings() as cur_TestoDettaglioOfferta> 
780 							<#assign colorCheck = cur_TestoDettaglioOfferta.ColoreElencoPuntato.getData() /> 
781 							<#if colorCheck == "verde"> 
782 								<li class="${colorCheck}">${cur_TestoDettaglioOfferta.getData()}</li> 
783 							<#else> 
784 								<li>${cur_TestoDettaglioOfferta.getData()}</li> 
785 							</#if> 
786 						</#list> 
787 					</ul> 
788 				</div> 
789 			</div> 
790 		</div> 
791 	</section> 
792  
793 	<!-- Mobile --> 
794 	<section id="list" class="white-two-bg pt-5 mobile d-lg-none"> 
795 		<div class="container py-3"> 
796 			<h3 class="title-big black-three letter-spacing-sm bolder">Ulteriori dettagli</h3> 
797 			<#if urlcustom?contains("hera-caldaia-sicura")> 
798     			<div class="container"> 
799     			    <div class="row col-lg-12 black-three big letter-spacing-sm l15 pr-lg-5 mt-4"> 
800     			        <p><strong>Nell'offerta è inclusa* una polizza per i primi 24 mesi che copre i piccoli guasti: invio di un tecnico qualificato manodopera e pezzi di ricambio inclusi, fino a 2 interventi all'anno.</strong></br></p><p>Quali sono i tecnici inclusi?</p> 
801     			    </div> 
802     			</div> 
803 			</#if> 
804 			<div class="row mt-4 pt-3"> 
805 				<div class="${colClassSoluzioni}"> 
806 					<ul class="pl-lg-5 list-unstyled greyish-brown big letter-spacing-sm"> 
807 						<#list TestoDettaglioOfferta.getSiblings() as cur_TestoDettaglioOfferta> 
808 							<#assign colorCheck = cur_TestoDettaglioOfferta.ColoreElencoPuntato.getData() /> 
809 							<#if colorCheck == "verde"> 
810 								<li class="${colorCheck}">${cur_TestoDettaglioOfferta.getData()}</li> 
811 							<#else> 
812 								<li>${cur_TestoDettaglioOfferta.getData()}</li> 
813 							</#if> 
814 						</#list> 
815 					</ul> 
816 				</div> 
817 			</div> 
818 		</div> 
819 	</section> 
820 </#if> 
821  
822 <#-- ************* Banner Curvo ************* --> 
823 <#if SottoscrizioneAdOffertaHeraObbligatoria??> 
824 	<#if SottoscrizioneAdOffertaHeraObbligatoria.getData() == 'si'> 
825 		<section class="waves-banner white-waves-bg pt-5 d-none d-lg-block" id="vuoi-risparmiare-tempo"> 
826 			<div class="container pt-5"> 
827 				<div class="row align-items-left"> 
828 					<div class="col-lg-12"> 
829 						<p class="black-three big letter-spacing-sm">La soluzione innovativa può essere acquistata <strong>se hai già attiva una nostra offerta</strong></p> 
830 						<h3 class="x-bigger bolder letter-spacing-sm d-inline-block mr-4 gradient-text pb-2">Non hai ancora una fornitura HERA attiva?</h3> 
831 						<br /> 
832 						<#if urlcustom?contains("/business/")> 
833 						      <a class="btn gradient white mb-2" href="${prefUrl}/offerte-luce-gas/partite-iva-professionisti"><span>Passa a Hera</span></a> 
834 						<#else> 
835 						      <a class="btn gradient white mb-2" href="${prefUrl}/offerte-luce-gas"><span>Passa a Hera</span></a> 
836 						</#if> 
837 					</div> 
838 				</div> 
839 			</div> 
840 		</section> 
841  
842         <!-- Mobile --> 
843 		<section class="waves-banner white-waves-bg pt-5 mobile d-lg-none" id="vuoi-risparmiare-tempo"> 
844 			<div class="container"> 
845 				<div class="row align-items-left"> 
846 					<div class="col-lg-12"> 
847 						<p class="black-three big letter-spacing-sm">La soluzione innovativa può essere acquistata <strong>se hai già attiva una nostra offerta</strong></p> 
848 						<h3 class="x-bigger bolder letter-spacing-sm d-inline-block mr-4 gradient-text pb-2">Non hai ancora una fornitura HERA attiva?</h3> 
849 						<br /> 
850 						<#if urlcustom?contains("/business/")> 
851 						      <a class="btn gradient white mb-2" href="${prefUrl}/offerte-luce-gas/partite-iva-professionisti"><span>Passa a Hera</span></a> 
852 						<#else> 
853 						      <a class="btn gradient white mb-2" href="${prefUrl}/offerte-luce-gas"><span>Passa a Hera</span></a> 
854 						</#if> 
855 					</div> 
856 				</div> 
857 			</div> 
858 		</section> 
859 	</#if> 
860 </#if> 
861  
862 <#-- ************* Sezione "Documenti e Modulistica" ************* --> 
863 <#if DocumentiEModulistica??> 
864     <#if DocumentiEModulistica.getData() != ""> 
865       	<#if DocumentiEModulistica.getSiblings()?has_content> 
866       		<section id="doc-list" class="pt-5 pb-4" > 
867       			<div class="container py-5"> 
868       				<h3 class="title-big black-three letter-spacing-sm bolder mt-5 pt-3">Documenti e Modulistica</h3> 
869       				<div class="row"> 
870       					<div class="${colClassSoluzioni}"> 
871       						<div class="row mt-5 pl-lg-5"> 
872       							<#list DocumentiEModulistica.getSiblings() as cur_documentoAllegato> 
873       								<#assign dlFileEntryService = objectUtil("com.liferay.document.library.kernel.service.DLFileEntryServiceUtil") /> 
874       								<#if cur_documentoAllegato.getData() != ""> 
875       									<#assign counterDocAll = 0 /> 
876       									<#list "${cur_documentoAllegato.getData()}"?split("/") as xDocAll> 
877       										<#if counterDocAll == 2> 
878       											<#assign groupIdDocAll = xDocAll?number /> 
879       										</#if> 
880       										<#if counterDocAll == 5> 
881       											<#assign uuIdDocAll = xDocAll /> 
882       											<#assign counterUuIdDocAll = 0 > 
883       											<#list "${xDocAll}"?split("?") as xUuIdDocAll> 
884       												<#if counterUuIdDocAll == 0> 
885       													<#assign uuIdDocAll = xUuIdDocAll /> 
886       												</#if> 
887       												<#assign counterUuIdDocAll = counterUuIdDocAll + 1 /> 
888       											</#list> 
889       										</#if> 
890       										<#assign counterDocAll = counterDocAll + 1 /> 
891       									</#list> 
892       									<#assign fileDocAll = dlFileEntryService.getFileEntryByUuidAndGroupId(uuIdDocAll, groupIdDocAll) /> 
893 
894                                         <#assign firstdocchars=fileDocAll.fileName?keep_before("_") /> 
895                                         <#if (firstdocchars != "HC" && firstdocchars != "CMV" && 
896                                         firstdocchars != "HCNE" && firstdocchars != "HCM")> 
897                                         <div class="col-md-4 col-sm-6"> 
898 											<div class="row mb-3"> 
899 												<div class="col-2 text-xl-center"> 
900 													<i class="icon-doc gradient-text x-bigger"></i> 
901 												</div> 
902 												<div class="col-10 pl-md-0"> 
903 													<a href="${cur_documentoAllegato.getData()}" class="black-three big letter-spacing-sm" target="_blank"> 
904 														${fileDocAll.fileName?replace('.pdf|.PDF', '', 'r')} 
905 													</a> 
906 												</div> 
907 											</div> 
908 										</div> 
909                                         <#else> 
910                                          
911                                         <#if (firstdocchars==docCompare1) || (firstdocchars==docCompare2)> 
912 										<div class="col-md-4 col-sm-6"> 
913 											<div class="row mb-3"> 
914 												<div class="col-2 text-xl-center"> 
915 													<i class="icon-doc gradient-text x-bigger"></i> 
916 												</div> 
917 												<div class="col-10 pl-md-0"> 
918 													<a href="${cur_documentoAllegato.getData()}" class="black-three big letter-spacing-sm" target="_blank"> 
919 														${fileDocAll.fileName?replace('.pdf|.PDF', '', 'r')} 
920 													</a> 
921 												</div> 
922 											</div> 
923 										</div> 
924 									    </#if> 
925 									   </#if> 
926       									 
927       									 
928       									 
929       									 
930       								</#if> 
931       							</#list> 
932       						</div> 
933       					</div> 
934       				</div> 
935       			</div> 
936       		</section> 
937       	</#if> 
938     </#if> 
939 </#if>