Back

THE MAGIC OF BASQUE PELOTA

An error occurred while processing the template.
Expression daysInWeek is undefined on line 104, column 41 in 20907#20945#724650.
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<#function getDay x> 
12 
13    <#assign day = "" /> 
14    <#if x == 1> 
15        <#assign day = languageUtil.get(locale, "dit.sunday") /> 
16    <#elseif x == 2> 
17        <#assign day = languageUtil.get(locale, "dit.monday") /> 
18    <#elseif x == 3> 
19        <#assign day = languageUtil.get(locale, "dit.tuesday") /> 
20    <#elseif x == 4> 
21        <#assign day = languageUtil.get(locale, "dit.wednesday") /> 
22    <#elseif x == 5> 
23        <#assign day = languageUtil.get(locale, "dit.thursday") /> 
24    <#elseif x == 6> 
25        <#assign day = languageUtil.get(locale, "dit.friday") /> 
26    <#elseif x == 7> 
27        <#assign day = languageUtil.get(locale, "dit.saturday") /> 
28    </#if> 
29    <#return day> 
30</#function> 
31<div id="izfeSpotCabecera" style="display:none;"> 
32 
33    <img alt="" src="http://sansebastianregion.com/documents/1515268/1555485/fondoTratadoPaz.jpg/470d893a-9fc0-4f9d-b1b5-6a87f332658e?t=1484574215000" /> 
34 
35    <div> 
36        <h2 class="izfeTitular">${title.getData()}</h2> 
37    </div> 
38</div> 
39 
40<script> 
41    var izfeSpotCabecera = $("#izfeSpotCabecera").html(); 
42    $("#izfeCarruselBideoak .izfeCarruselItemDestinationHeader").html(izfeSpotCabecera); 
43</script> 
44 
45<section class="izfeContenedorMenuSecundario"> 
46    <p class="izfeTextoDescripcion">${subtitle.getData()}</p> 
47    <div class="izfeContenedorCarruselGeneral izfeContDetalleEvento"> 
48        <article class="izfeCarruselDestacadosContador izfeEnlacesInformation"> 
49            <dl class="izfeTiempoListado"> 
50                <dt>${languageUtil.get(locale, "dit.events.init.date")}</dt> 
51                <dd> 
52                    <#assign init_date_Data = getterUtil.getLong(init_date.getData())> 
53                    <#if (init_date_Data > 0)> 
54                        <#assign init_date_DateObj = dateUtil.newDate(init_date_Data)> 
55                        <#if locale == "eu_ES"> 
56                            <#assign month = dateUtil.getDate(init_date_DateObj, "MM", locale) /> 
57                            <#assign monthKey = "dit.folk.fest." + month + ".short" /> 
58                            <#assign month_formatted = languageUtil.get(locale, "${monthKey}") />         
59                            ${dateUtil.getDate(init_date_DateObj, "yyyy", locale)} ${month_formatted} ${dateUtil.getDate(init_date_DateObj, "dd", locale)} 
60                        <#else>         
61                            ${dateUtil.getDate(init_date_DateObj, "dd MMM yyyy", locale)} 
62                        </#if> 
63                    </#if> 
64                </dd> 
65                <#if !getterUtil.getBoolean(whole_day.getData())> 
66                    <dt>${languageUtil.get(locale, "dit.events.end.date")}</dt> 
67                    <dd> 
68                        <#assign end_date_Data = getterUtil.getLong(end_date.getData())> 
69                        <#if (end_date_Data > 0)> 
70                            <#assign end_date_DateObj = dateUtil.newDate(end_date_Data)> 
71                            <#if locale == "eu_ES"> 
72                                <#assign month = dateUtil.getDate(end_date_DateObj, "MM", locale) /> 
73                                <#assign monthKey = "dit.folk.fest." + month + ".short" /> 
74                                <#assign month_formatted = languageUtil.get(locale, "${monthKey}") />         
75                                ${dateUtil.getDate(end_date_DateObj, "yyyy", locale)} ${month_formatted} ${dateUtil.getDate(end_date_DateObj, "dd", locale)} 
76                            <#else> 
77                                ${dateUtil.getDate(end_date_DateObj, "dd MMM yyyy", locale)} 
78                            </#if> 
79                        </#if> 
80                    </dd> 
81                </#if> 
82                <#if init_time.getData() != ""> 
83                    <dt>${languageUtil.get(locale, "dit.events.init.time")}</dt> 
84                    <dd>${init_time.getData()}</dd> 
85                </#if> 
86                <#if end_time.getData() != ""> 
87                    <dt>${languageUtil.get(locale, "dit.events.end.time")}</dt> 
88                    <dd>${end_time.getData()}</dd> 
89                </#if> 
90                <#if init_time_afternoon.getData() != ""> 
91                    <dt>${languageUtil.get(locale, "dit.events.init.afternoon")}</dt> 
92                    <dd>${init_time_afternoon.getData()}</dd> 
93                </#if> 
94                <#if end_time_afternoon.getData() != ""> 
95                    <dt>${languageUtil.get(locale, "dit.events.end.afternoon")}</dt> 
96                    <dd>${end_time_afternoon.getData()}</dd> 
97                </#if> 
98                <#if frequency.getData() != ""> 
99                    <dt>${languageUtil.get(locale, "dit.events.frequency")}</dt> 
100                    <dd>${languageUtil.get(locale, frequency.getData())} 
101                    <#if frequency.getData() == "daily"> 
102                    <#elseif frequency.getData() == "weekly"> 
103                        :<br /> 
104                        <#assign days = daysInWeek.getData() /> 
105                        <#list days?split(",") as x> 
106                            - ${getDay(getterUtil.getInteger(x))}<br /> 
107                        </#list> 
108 
109                    <#elseif frequency.getData() == "monthly"> 
110                        :<br /> 
111                        <#assign days = daysInWeek.getData() /> 
112                        <#assign weeks = weeksInMonth.getData() /> 
113                        <#list weeks?split(",") as w> 
114                        - ${languageUtil.get(locale, "week")} ${w}:  
115                            <#assign first = true /> 
116                            <#list days?split(",") as x> 
117                                <#if first> 
118                                    <#assign first = false /> 
119                                <#else> 
120
121                                </#if> 
122                                ${getDay(getterUtil.getInteger(x))} 
123                            </#list> 
124                            <br /> 
125                        </#list> 
126                         
127                    <#elseif frequency.getData() == "yearly"> 
128                     
129                        <#assign cal = calendarFactory.getCalendar(2000, getterUtil.getInteger(yearlyEventMonth.getData()) - 1, getterUtil.getInteger(yearlyEventDay.getData()), 0, 0, 0, 0) /> 
130                        :<br /> 
131                        <#if locale == "eu_ES"> 
132                            <#assign month = dateUtil.getDate(cal.getTime(), "MM", locale) /> 
133                            <#assign monthKey = "dit.folk.fest." + month + ".short" /> 
134                            <#assign month_formatted = languageUtil.get(locale, "${monthKey}") />         
135                            - ${month_formatted} ${dateUtil.getDate(cal.getTime(), "dd", locale)} 
136                        <#else> 
137                            - ${dateUtil.getDate(cal.getTime(), "dd MMM", locale)} 
138                        </#if> 
139                     
140                    </#if> 
141                    </dd> 
142                </#if> 
143                <#assign locations = "" /> 
144                <#assign first = true /> 
145                <#assign empty = true /> 
146                <#if location.getSiblings()?has_content> 
147                	<#list location.getSiblings() as cur_item> 
148                	    <#if first> 
149                            <#assign first = false /> 
150                             
151                        <#else> 
152                            <#assign locations = locations + " / " /> 
153                        </#if> 
154            	        <#assign locations = locations + cur_item.getData() /> 
155                         
156                	</#list> 
157                </#if> 
158            	<#if locations != ""> 
159                	<dt>${languageUtil.get(locale, "event-location")}</dt> 
160                    <dd>${locations}</dd> 
161            	</#if> 
162                <dt>${languageUtil.get(locale, "dit.events.website")}</dt> 
163                <dd><a href="${url.getData()}" target="_blank">${url.getData()}</a></dd> 
164            </dl> 
165        </article> 
166        <div class="izfeImagenDetalleEvento"> 
167            <img src="${poster.getData()}"> 
168        </div> 
169 
170    </div> 
171    <div class="izfeFondoTramado"> 
172        <div class="izfeIntroInformacion izfeIntroInformacionHotels"> 
173            <p class="izfeIntroInformacionTitular">${title.getData()}</p> 
174            <div class="izfeIntroInformacionDescripcion"> 
175                <p>${description.getData()}</p> 
176            </div> 
177        </div> 
178    </div> 
179</section>