Back

THE MAGIC OF BASQUE PELOTA

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