Atzealdea

Talaia Route - GR 121

Errorea gertatu da txantiloia prozesatzerakoan.
Method public void com.liferay.portlet.asset.service.persistence.AssetEntryQuery.setAllCategoryIds(long[]) threw an exception when invoked on {allCategoryIds=, allTagIds=, andOperator=false, anyCategoryIds=, anyTagIds=, classNameIds=, classTypeIds=null, description=, end=-1, excludeZeroViewCount=false, expirationDate=Wed May 23 15:02:24 GMT 2018, groupIds=1515268, keywords=null, linkedAssetEntryId=0, notAllCategoryIds=, notAllTagIds=, notAnyCategoryIds=, notAnyTagIds=, orderByCol1=null, orderByCol2=null, orderByType1=null, orderByType2=null, paginationType=null, publishDate=Wed May 23 15:02:24 GMT 2018, start=-1, title=null, userName=null, visible=true}
1<#assign PortalUtil = staticUtil["com.liferay.portal.util.PortalUtil"] /> 
2<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
3<#assign httpServletRequest = serviceContext.getRequest()> 
4<#if .vars['keywords']??> 
5    <#assign kWords = .vars['keywords'].getData()> 
6<#else> 
7    <#assign kWords = ""> 
8</#if> 
9${PortalUtil.addPageKeywords(kWords, httpServletRequest)} 
10 
11<#include "${templatesPath}/1980550" /> 
12 
13<style> 
14.izfeContenedorGral .taglib-header { 
15    display: none; 
16
17 
18.izfeContenedorMenu .asset-full-content.default-asset-publisher.show-asset-title { 
19    margin: 0; 
20
21</style> 
22<div id="izfeSpotCabecera" style="display:none;"> 
23 
24<img src="${head_image.getData()}" alt=""> 
25${plan.getData()} 
26</div> 
27<script> 
28var codes = [ 
29
30		en_US : "tornado", 
31		es_ES : "tormenta", 
32		eu_ES : "ekaitza", 
33	}, 
34
35		en_US : "tropical storm", 
36		es_ES : "tormenta", 
37		eu_ES : "ekaitza", 
38	}, 
39
40		en_US : "hurricane", 
41		es_ES : "tormenta", 
42		eu_ES : "ekaitza", 
43	}, 
44
45		en_US : "severe thunderstorms", 
46		es_ES : "tormenta", 
47		eu_ES : "ekaitza", 
48	}, 
49
50		en_US : "thunderstorms", 
51		es_ES : "tormenta", 
52		eu_ES : "ekaitza", 
53	}, 
54
55		en_US : "mixed rain and snow", 
56		es_ES : "nieve", 
57		eu_ES : "elurra", 
58	}, 
59
60		en_US : "mixed rain and sleet", 
61		es_ES : "lluvioso", 
62		eu_ES : "euria", 
63	}, 
64
65		en_US : "mixed snow and sleet", 
66		es_ES : "nieve", 
67		eu_ES : "elurra", 
68	}, 
69
70		en_US : "freezing drizzle", 
71		es_ES : "lluvioso", 
72		eu_ES : "euria", 
73	}, 
74
75		en_US : "drizzle", 
76		es_ES : "lluvioso", 
77		eu_ES : "euria", 
78	}, 
79
80		en_US : "freezing rain", 
81		es_ES : "lluvioso", 
82		eu_ES : "euria", 
83	}, 
84
85		en_US : "showers", 
86		es_ES : "lluvioso", 
87		eu_ES : "euria", 
88	}, 
89
90		en_US : "snow flurries", 
91		es_ES : "nieve", 
92		eu_ES : "elurra", 
93	}, 
94
95		en_US : "light snow showers", 
96		es_ES : "nieve", 
97		eu_ES : "elurra", 
98	}, 
99
100		en_US : "blowing snow", 
101		es_ES : "nieve", 
102		eu_ES : "elurra", 
103		video : "elurra" 
104	}, 
105
106		en_US : "snow", 
107		es_ES : "nieve", 
108		eu_ES : "elurra", 
109	}, 
110
111		en_US : "hail", 
112		es_ES : "lluvioso", 
113		eu_ES : "euria", 
114	}, 
115
116		en_US : "sleet", 
117		es_ES : "lluvioso", 
118		eu_ES : "euria", 
119	}, 
120
121		en_US : "dust", 
122		es_ES : "nieve", 
123		eu_ES : "elurra", 
124	}, 
125
126		en_US : "foggy", 
127		es_ES : "niebla", 
128		eu_ES : "lanbroa", 
129	}, 
130
131		en_US : "haze", 
132		es_ES : "niebla", 
133		eu_ES : "lanbroa", 
134	}, 
135
136		en_US : "smoky", 
137		es_ES : "niebla", 
138		eu_ES : "lanbroa", 
139	}, 
140
141		en_US : "blustery", 
142		es_ES : "tormenta", 
143		eu_ES : "ekaitza", 
144	}, 
145
146		en_US : "windy", 
147		es_ES : "viento", 
148		eu_ES : "haizea", 
149	}, 
150
151		en_US : "cold", 
152		es_ES : "nuboso", 
153		eu_ES : "hodeiak", 
154	}, 
155
156		en_US : "cloudy", 
157		es_ES : "nuboso", 
158		eu_ES : "hodeiak", 
159	}, 
160
161		en_US : "mostly cloudy (night)", 
162		es_ES : "nuboso", 
163		eu_ES : "hodeiak", 
164	}, 
165
166		en_US : "mostly cloudy (day)", 
167		es_ES : "nuboso", 
168		eu_ES : "hodeiak" 
169	}, 
170
171		en_US : "partly cloudy (night)", 
172		es_ES : "nuboso", 
173		eu_ES : "hodeiak", 
174	}, 
175
176		en_US : "partly cloudy (day)", 
177		es_ES : "nuboso", 
178		eu_ES : "hodeiak", 
179	}, 
180
181		en_US : "clear (night)", 
182		es_ES : "despejado", 
183		eu_ES : "garbi", 
184	}, 
185
186		en_US : "sunny", 
187		es_ES : "soleado", 
188		eu_ES : "eguzkia", 
189	}, 
190
191		en_US : "fair (night)", 
192		es_ES : "despejado", 
193		eu_ES : "garbi", 
194	}, 
195
196		en_US : "fair (day)", 
197		es_ES : "despejado", 
198		eu_ES : "garbi", 
199	}, 
200
201		en_US : "mixed rain and hail", 
202		es_ES : "lluvioso", 
203		eu_ES : "euria", 
204	}, 
205
206		en_US : "hot", 
207		es_ES : "soleado", 
208		eu_ES : "eguzkia", 
209	}, 
210
211		en_US : "isolated thunderstorms", 
212		es_ES : "tormenta", 
213		eu_ES : "ekaitza", 
214	}, 
215
216		en_US : "scattered showers", 
217		es_ES : "lluvioso", 
218		eu_ES : "euria", 
219	}, 
220
221		en_US : "heavy snow", 
222		es_ES : "nieve", 
223		eu_ES : "elurra", 
224	}, 
225
226		en_US : "scattered snow showers", 
227		es_ES : "nieve", 
228		eu_ES : "elurra", 
229	}, 
230
231		en_US : "partly cloudy", 
232		es_ES : "nuboso", 
233		eu_ES : "hodeiak", 
234	}, 
235
236		en_US : "thundershowers", 
237		es_ES : "tormenta", 
238		eu_ES : "ekaitza", 
239	}, 
240
241		en_US : "snow showers", 
242		es_ES : "nieve", 
243		eu_ES : "elurra", 
244	}, 
245
246		en_US : "isolated thundershowers", 
247		es_ES : "tormenta", 
248		eu_ES : "ekaitza", 
249	}, 
250
251		en_US : "cloudy", 
252		es_ES : "nuboso", 
253		eu_ES : "hodeiak", 
254	} ]; 
255codes[3200] = { 
256		en_US : "undefined", 
257		es_ES : "undefined", 
258		eu_ES : "undefined", 
259	}; 
260	 
261var izfeSpotCabecera = $("#izfeSpotCabecera").html(); 
262$("#izfeCarruselBideoak .izfeCarruselItemDestinationHeader").html(izfeSpotCabecera); 
263$.simpleWeather({ 
264location: '${latitude.getData()},${longitude.getData()}', 
265woeid: '', 
266unit: 'c', 
267language: 'es-ES', 
268success: function(weather) { 
269    $(".izfeTextoInformacion .icoWeather").addClass("izfeIcoClima" + weather.code); 
270    $(".izfeTextoInformacion .izfeTemperatura").html(weather.temp+'&deg;' + weather.units.temp); 
271}, 
272error: function(error) {console.error(error);} 
273}); 
274</script> 
275 
276<#assign journalArticleId = .vars['reserved-article-id'].data> 
277<#assign journalArticleTitle = .vars['reserved-article-title'].data> 
278<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> 
279<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
280<#assign DDMStructureLocalService = serviceLocator.findService("com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService")> 
281<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")> 
282<#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil"]> 
283<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"]> 
284<#assign assetCategoryPropertyService = objectUtil('com.liferay.portlet.asset.service.AssetCategoryPropertyLocalServiceUtil')> 
285 
286<#assign spotStrKey = "" /> 
287 
288<#assign currentJournalArticle = journalArticleLocalService.getArticle(groupId, journalArticleId) /> 
289 
290<#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> 
291<#assign categoryList = assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle",articleResourcePK) > 
292 
293<#assign currentDestinationCategory = "" > 
294<#assign currentDestinationCategoryName = "" > 
295<#assign currentActivityCategory = "" > 
296<#if categoryList?has_content> 
297    <#list categoryList as category> 
298        <#if category.getVocabularyId()?string == vocabularyDestination> 
299            <#assign currentDestinationCategory = category.getCategoryId() > 
300            <#assign currentDestinationCategoryName = category.getTitle(locale) > 
301        </#if> 
302        <#if category.getVocabularyId()?string == vocabularyActivity> 
303            <#assign currentActivityCategory = category.getCategoryId() >  
304        </#if> 
305    </#list> 
306</#if> 
307 
308<section> 
309	<div class="izfeTextoInformacion izfeInfoSpot"> 
310        <p>${latitude.getData()}ºN, ${longitude.getData()}ºW</p> 
311        <p style="text-transform:uppercase;">${currentDestinationCategoryName}</p> 
312        <#assign aDateTime = .now> 
313        <#assign aTime = aDateTime?time?string.short> 
314        <#assign aTime = ""> 
315        <p class="hora">${aTime}</p> 
316        <br class="izfeSeparadorInfospot" /> 
317        <p class="izfeTemperatura">ºC</p> 
318        <p><span class="icoWeather"></span></p> 
319        <#if getterUtil.getBoolean(accesible.getData())> 
320           <p><span class="izfeIcoAccesibilidad">${languageUtil.get(locale, "dit.spot.accesibility")}</span></p> 
321        </#if> 
322        <#if getterUtil.getBoolean(family.getData())> 
323           <p><span class="izfeIcoFamilia">${languageUtil.get(locale, "dit.spot.family")}</span></p> 
324        </#if> 
325         
326        <#assign currentCompleteUrl = request['scheme'] + "://" + request['server-name'] + request['attributes']['CURRENT_URL']> 
327        <#assign portalURL = httpUtil.getProtocol(request['attributes']['CURRENT_URL']) + "://" + getterUtil.getString(request['theme-display']['portal-url']) /> 
328        <section class="izfeBlogRedes"> 
329        	<h4>${languageUtil.get(locale, 'sharing')}</h4> 
330        	<ul> 
331            <#assign currentCompleteUrlHREF = htmlUtil.escapeHREF(currentCompleteUrl) /> 
332        	<#assign facebookShareUrl = "https://www.facebook.com/sharer/sharer.php?u=" + currentCompleteUrlHREF + "&picture=" + portalURL + head_image.getData()/> 
333                <li><a alt="Facebook" target="_blank" href="${facebookShareUrl}"><i aria-hidden="true" class="fa fa-facebook fa-fw" title="Facebook">&nbsp;</i></a></li> 
334            <#assign articleTitle = htmlUtil.escapeHREF(currentJournalArticle.getTitle(locale)) /> 
335        	<#assign twitterShareUrl = "https://twitter.com/home?status=" + articleTitle + "+" + currentCompleteUrlHREF /> 
336                <li><a alt="Twitter" target="_blank" href="${twitterShareUrl}" ><i aria-hidden="true" class="fa fa-twitter fa-fw" title="Twitter">&nbsp;</i></a></li> 
337        	</ul> 
338        </section> 
339         
340    </div> 
341 
342    <p class="izfeTextoDescripcion">${description.getData()}</p> 
343</section> 
344 
345<!-- ENLACES INFO --> 
346<section class="izfeEnlacesInfo"> 
347	<h2>${languageUtil.get(locale, "dit.spot.info")}</h2> 
348    <article> 
349		<div> 
350        <h3><a href="${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.link')}">${languageUtil.get(locale, "dit.spot.info.how.to.get.here")}</a></h3> 
351        <p>${languageUtil.get(locale, "dit.spot.info.how.to.get.here.description")}</p> 
352        <ul class="izfeListadoIconos"> 
353            <li class="izfeIcoTren"><a href="${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.link')}">${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.by.train')}</a></li> 
354            <li class="izfeIcoAvion"><a href="${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.link')}">${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.by.plane')}</a></li> 
355            <li class="izfeIcoTaxi"><a href="${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.link')}">${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.by.car')}</a></li> 
356            <li class="izfeIcoBarco"><a href="${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.link')}">${languageUtil.get(locale, 'dit.spot.info.how.to.get.here.by.boat')}</a></li> 
357        </ul> 
358		</div> 
359    </article> 
360    <article> 
361		<div> 
362        <h3>${languageUtil.get(locale, "dit.spot.info.useful.links")}</h3> 
363        <ul> 
364            <#if link_text.getSiblings()?has_content> 
365            	<#list link_text.getSiblings() as cur_highlighted_link_name> 
366                    <li><a href="${cur_highlighted_link_name.link_url.getData()}" target="_blank">${cur_highlighted_link_name.getData()}</a></li> 
367            	</#list> 
368            </#if> 
369        </ul> 
370		</div> 
371    </article> 
372    <article>  
373		<div> 
374        <h3><a href="${languageUtil.get(locale, 'dit.spot.info.central.booking.link')}" target="_blank">${languageUtil.get(locale, "dit.spot.info.central.booking")}</a></h3> 
375        <p>${languageUtil.get(locale, 'dit.spot.info.central.booking.description')}</p> 
376        <ul> 
377            <li><a href=""></a></li> 
378            <li><a href=""></a></li> 
379            <li><a href=""></a></li>  
380        </ul> 
381		</div> 
382    </article> 
383    <article> 
384		<div> 
385        <h3><a href="${languageUtil.get(locale, 'dit.spot.info.maps.link')}">${languageUtil.get(locale, 'dit.spot.info.maps')}</a></h3> 
386        <p>${languageUtil.get(locale, 'dit.spot.info.maps.description')}</p> 
387        <ul> 
388            <li><a href=""></a></li> 
389            <li><a href=""></a></li> 
390            <li><a href=""></a></li> 
391            <li><a href=""></a></li> 
392        </ul> 
393		</div> 
394    </article> 
395	<br class="separador"> 
396</section> 
397 
398<#assign planListAux = assetVocabularyLocalServiceUtil.getVocabulary(getterUtil.getLong(vocabularyPlan)).getCategories() > 
399<#assign planIdsList = [] /> 
400<#if planListAux?has_content> 
401	<#assign max = 0 /> 
402	<#list planListAux as plan> 
403	    <#assign property = assetCategoryPropertyService.getCategoryProperty(getterUtil.getLong(plan.getCategoryId()), "order") > 
404	    <#if max lt getterUtil.getInteger(property.getValue())> 
405	        <#assign max = getterUtil.getInteger(property.getValue()) /> 
406	    </#if> 
407	</#list> 
408    <#list 0..max as i> 
409    	<#list planListAux as plan> 
410    	    <#assign property = assetCategoryPropertyService.getCategoryProperty(getterUtil.getLong(plan.getCategoryId()), "order") > 
411    	    <#if i == getterUtil.getInteger(property.getValue())> 
412	            <#assign planIdsList = planIdsList + [plan.getCategoryId()] /> 
413    	    </#if> 
414    	</#list> 
415    </#list> 
416</#if> 
417 
418<!-- SPOTS --> 
419<div class="izfeDestacados"> 
420	<div class="izfeCarruselDestacados">	 
421<#assign htmlAside = "" /> 
422<#assign cont = 0 /> 
423<#assign assetEntryQueryService = objectUtil('com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil')> 
424<#if planIdsList?has_content> 
425	<#assign cont = 0 /> 
426	<#list planIdsList as planId> 
427	<#assign plan = assetCategoryLocalServiceUtil.getAssetCategory(getterUtil.getLong(planId))> 
428             
429            <#assign assetEntryQuery = objectUtil('com.liferay.portlet.asset.service.persistence.AssetEntryQuery')> 
430            <#assign V = assetEntryQuery.setGroupIds([groupId]) /> 
431            <#assign V = assetEntryQuery.setAllCategoryIds([plan.getCategoryId(),currentDestinationCategory]) /> 
432            <#assign V = assetEntryQuery.setClassTypeIds([getterUtil.getLong(spotStrId)]) /> 
433            <#assign entries = assetEntryQueryService.getEntries(assetEntryQuery)> 
434            <#if entries?has_content> 
435             
436            <#if cont == 0> 
437                <#assign htmlAside = htmlAside + "<li class='izfeOpcionLateralActiva'><span>" + plan.getTitle(locale) + "</span></li>" /> 
438            <#else> 
439                <#assign htmlAside = htmlAside + "<li><span>" + plan.getTitle(locale) + "</span></li>" /> 
440            </#if> 
441            <#assign cont = cont + 1 /> 
442            <#assign contSpot = 1 /> 
443            <#assign locations = "" /> 
444            <article class="izfeDestacadosAccesible"> 
445			    <h3>${plan.getTitle(locale)}</h3> 
446			    <div class="izfeMapa izfeDestacado_Mapa"> 
447			        <div id="gmap${cont}" class="izfeContenedorMapa">&nbsp;</div> 
448			    </div> 
449				<div class="izfeCarruselGeneral owl-carousel owl-theme"> 
450                <#assign divClosed = true /> 
451                <#assign first = true> 
452                <#list entries as spot> 
453                 
454                    <#assign journalArticleResource = journalArticleResourceLocalServiceUtil.getJournalArticleResource(spot.getClassPK()) /> 
455                    <#assign journalArticle = journalArticleLocalService.getLatestArticle(journalArticleResource.getResourcePrimKey()) /> 
456                     
457                    <#assign renderer = spot.getAssetRenderer() /> 
458                    <#assign ja = renderer.getArticle() /> 
459                    <#assign docXml = saxReaderUtil.read(ja.getContentByLocale(locale)) /> 
460                    <#assign rootElement = docXml.getRootElement() /> 
461                     
462                    <#assign head_image = docXml.valueOf("//dynamic-element[@name='head_image']/dynamic-content/text()") /> 
463                    <#assign thumbnail = docXml.valueOf("//dynamic-element[@name='thumbnail']/dynamic-content/text()") /> 
464                    <#assign enlaceSpot = "/-/" + ja.getUrlTitle() /> 
465                     
466                    <#assign spotCategories = spot.getCategoryIds() /> 
467                    <#list spotCategories as spotCat> 
468                        <#if spotCat == getterUtil.getLong(categoryFolkFest)> 
469                            <#assign enlaceSpot = docXml.valueOf("//dynamic-element[@name='schedule_link']/dynamic-content/text()") /> 
470                            <#if enlaceSpot == ''> 
471                                <#assign enlaceSpot = "${languageUtil.get(locale, 'dit.general.events.link')}"/> 
472                            </#if> 
473                        </#if> 
474                    </#list> 
475                    <#assign classNameSpot = "" /> 
476                    <#if contSpot == 1> 
477						<div> 
478						<#assign divClosed = false /> 
479					<#elseif contSpot == 2> 
480					</#if> 
481                     
482                    <div class="${classNameSpot} spotLink${spot.getEntryId()}"> 
483                        <#if thumbnail == ''> 
484						    <img alt="" src="${defaultImage}" /> 
485						 <#else> 
486						    <img alt="" src="${thumbnail}" /> 
487						 </#if> 
488						<div> 
489						    <h4>${spot.getTitle(locale)}</h4> 
490						</div> 
491                        <script> 
492                            $(".spotLink${spot.getEntryId()}").click(function(){ 
493                                window.location.href = "${enlaceSpot}"; 
494                            }); 
495                        </script> 
496					</div> 
497                    <#if contSpot == 2> 
498						</div> 
499						<#assign divClosed = true /> 
500						<#assign contSpot = 1 /> 
501					<#else> 
502						<#assign contSpot = contSpot + 1 /> 
503					</#if> 
504                </#list> 
505               
506                <#if divClosed == false> 
507                    </div> 
508                </#if> 
509                </div> 
510    			<ul class="izfeCarruselPaginado"> 
511    				<li class="izfeCarruselAnt">${languageUtil.get(locale, "dit.general.previous")}</li> 
512    				<li class="izfePagCarrusel"></li> 
513                    <li class="izfeCarruselSig">${languageUtil.get(locale, "dit.general.next")}</li> 
514    			</ul> 
515		    </article> 
516            </#if> 
517        </#list> 
518    </#if> 
519	</div> 
520	<aside class="izfeMenuLateral"> 
521		<h2>${languageUtil.get(locale, "dit.spot.options")}</h2> 
522		<ul> 
523		    ${htmlAside} 
524		</ul> 
525	</aside> 
526</div> 
527 
528<script> 
529<#if planIdsList?has_content> 
530	<#assign cont = 0 /> 
531	<#list planIdsList as planId> 
532	<#assign plan = assetCategoryLocalServiceUtil.getAssetCategory(getterUtil.getLong(planId))> 
533	     
534	    <#assign assetEntryQuery = objectUtil('com.liferay.portlet.asset.service.persistence.AssetEntryQuery')> 
535        <#assign V = assetEntryQuery.setGroupIds([groupId]) /> 
536        <#assign V = assetEntryQuery.setAllCategoryIds([plan.getCategoryId(),currentDestinationCategory]) /> 
537        <#assign V = assetEntryQuery.setClassTypeIds([getterUtil.getLong(spotStrId)]) /> 
538        <#assign entries = assetEntryQueryService.getEntries(assetEntryQuery)> 
539 
540        <#if entries?has_content> 
541	    <#assign cont = cont + 1 /> 
542         
543var map${cont} = new Maplace({ 
544map_div: '#gmap${cont}', 
545generate_controls: false, 
546controls_on_map: false, 
547listeners: { 
548	click: function(map, event) { 
549		closeAllInfoView${cont}(); 
550
551}, 
552locations: [ 
553<#assign first = true> 
554<#assign contSpots = 0> 
555<#list entries as spot> 
556    <#assign contSpots = contSpots + 1> 
557	<#assign journalArticleResource = journalArticleResourceLocalServiceUtil.getJournalArticleResource(spot.getClassPK()) /> 
558	<#assign journalArticle = journalArticleLocalService.getLatestArticle(journalArticleResource.getResourcePrimKey()) /> 
559	<#assign renderer = spot.getAssetRenderer() /> 
560	<#assign ja = renderer.getArticle() /> 
561	<#assign docXml = saxReaderUtil.read(ja.getContentByLocale(locale)) /> 
562	 
563	<#assign enlaceSpot = "/-/" + ja.getUrlTitle() /> 
564                     
565    <#assign spotCategories = spot.getCategoryIds() /> 
566    <#list spotCategories as spotCat> 
567        <#if spotCat == getterUtil.getLong(categoryFolkFest)> 
568            <#assign enlaceSpot = docXml.valueOf("//dynamic-element[@name='schedule_link']/dynamic-content/text()") /> 
569            <#if enlaceSpot == ''> 
570                <#assign enlaceSpot = "${languageUtil.get(locale, 'dit.general.events.link')}"/> 
571            </#if> 
572        </#if> 
573    </#list> 
574	 
575	<#assign latitude = docXml.valueOf("//dynamic-element[@name='latitude']/dynamic-content/text()") /> 
576	<#assign longitude = docXml.valueOf("//dynamic-element[@name='longitude']/dynamic-content/text()") /> 
577	<#assign empty = "" />     
578	<#if "${latitude}" != "${empty}"> 
579		<#assign titleReplaced = ja.getTitle(locale)?replace("'", "") /> 
580		<#if first == true> 
581			<#assign first = false> 
582		<#else> 
583
584		</#if> 
585
586			lat: ${latitude}, 
587			lon: ${longitude}, 
588			title: '${titleReplaced}', 
589            map_options: { 
590                zoom: 12 
591            }, 
592			html: '<p>${titleReplaced}<br /><a href="${enlaceSpot}">${languageUtil.get(locale, "dit.general.see.more")}</a></p>', 
593			show_infowindow: true, 
594			icon: 'http://sansebastianregion.com/DIT-turismo-theme/img/marker.png', 
595			animation: google.maps.Animation.DROP 
596
597	</#if> 
598</#list> 
599], 
600map_options: { 
601  scrollwheel: false, 
602  <#if contSpots < 2> 
603    zoom: 12 
604  </#if> 
605}, 
606styles: { 
607'Pale Down': [{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#6195a0"}]},{"featureType":"administrative.province","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"lightness":"76"},{"saturation":"-62"},{"gamma":"1"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"lightness":"-3"},{"gamma":"1.00"}]},{"featureType":"landscape.natural.terrain","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.attraction","elementType":"geometry.fill","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"hue":"#00c2ff"},{"lightness":"23"}]},{"featureType":"poi.government","elementType":"geometry.fill","stylers":[{"visibility":"off"},{"color":"#d70707"}]},{"featureType":"poi.medical","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"hue":"#00ebff"},{"saturation":"-29"},{"lightness":"43"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#bae5ce"},{"visibility":"on"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#fac9a9"},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"labels.text","stylers":[{"color":"#4e4e4e"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"color":"#787878"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"transit.station.airport","elementType":"labels.icon","stylers":[{"hue":"#0a00ff"},{"saturation":"-77"},{"gamma":"0.57"},{"lightness":"0"}]},{"featureType":"transit.station.rail","elementType":"labels.text.fill","stylers":[{"color":"#43321e"}]},{"featureType":"transit.station.rail","elementType":"labels.icon","stylers":[{"hue":"#ff6c00"},{"lightness":"4"},{"gamma":"0.75"},{"saturation":"-68"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#eaf6f8"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#c7eced"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"lightness":"-49"},{"saturation":"-53"},{"gamma":"0.79"}]}] 
608}, 
609beforeViewAll: function() { 
610	for (i=0;i<map${cont}.markers.length;i++) { 
611		var marker = map${cont}.markers[i]; 
612		if(i == 0) { 
613		    marker.setIcon("http://sansebastianregion.com/DIT-turismo-theme/img/markerSelected.png"); 
614
615		marker.info = new google.maps.InfoWindow({ 
616			content:marker.html 
617		}); 
618		google.maps.event.addListener(marker, 'click', (function(marker, i) { 
619			return function() { 
620				for (j=0;j<map${cont}.markers.length;j++) { 
621					map${cont}.markers[j].setIcon("http://sansebastianregion.com/DIT-turismo-theme/img/marker.png");            
622
623				map${cont}.markers[i].setIcon("http://sansebastianregion.com/DIT-turismo-theme/img/markerSelected.png"); 
624				saltarDestacado(map${cont}.map_div, i); 
625
626		})(marker, i)); 
627
628
629}).Load(); 
630 
631function closeAllInfoView${cont}() { 
632    map${cont}.CloseInfoWindow(); 
633
634	 
635</#if> 
636</#list> 
637</#if> 
638</script> 
639<script type="text/javascript" src="https://www.gipuzkoa.eus/documents/1031592/1083054/moment.min.js/32a32b7c-b9f3-46cc-9f95-d3d20e4b9e2e"></script> 
640<script type="text/javascript" src="https://www.gipuzkoa.eus/documents/1031592/1083054/moment-timezone-with-data-2010-2020.min.js/c8fe3be5-f2dc-4194-8cf8-dac48cf7ab9c"></script> 
641<script> 
642$(function(){ 
643  setInterval(function(){ 
644    $('.hora').text(moment.tz('Europe/Madrid').format('HH:mm A')); 
645  },1000); 
646}); 
647</script> 

"Noiztik" atalari dagokion eguna ezin da "noiz arte" atalekoaren ondorengoa izan.

"Noiztik" atalari dagokion eguna ezin da "noiz arte" atalekoaren ondorengoa izan.

Agenda

Agenda

  • Aurrekoa
  • Hurrengoa