Publicador de continguts

Proxy Portlet

Agenda | Inici portal

Agenda

 

Publicador de continguts

S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing:
==> subtitol  [in template "20116#20160#127560" at line 9, column 60]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${subtitol.getData()}  [in template "20116#20160#127560" at line 9, column 58]
	- Reached through: @liferay_util["html-top"]  [in template "20116#20160#127560" at line 8, column 1]
----
1<style> 
2    ul.breadcrumb.fil-ariadna li:last-child, 
3    .component-title.h4, 
4		.metadata-author{ 
5        display: none; 
6
7</style> 
8<@liferay_util["html-top"]>     
9		<meta property="og:description" content="${subtitol.getData()}"> 
10		<meta property="og:locale" content="ca_ES"> 
11		<meta property="og:locale:alternate" content="ca_ES"> 
12		<meta property="og:site_name" content="Ajuntament de Girona"> 
13		<meta property="og:title" content="${titol.getData()} - Ajuntament de Girona"> 
14		<meta property="og:type" content="website"> 
15		<meta property="og:url" content="https://web.girona.cat${themeDisplay.getURLCurrent()}"> 
16		<meta property="twitter:card" content="summary_large_image"> 
17		<meta property="twitter:description" content="${subtitol.getData()}"> 
18		<meta property="twitter:title" content="${titol.getData()} - Ajuntament de Girona"> 
19		<meta property="twitter:site" content="@Girona_Cat"> 
20		<meta property="twitter:image" content="https://web.girona.cat${imatge.getData()}"> 
21		<meta property="twitter:creator" content="@Girona_Cat"> 
22		<meta property="og:image" content="https://web.girona.cat${imatge.getData()}"> 
23		<meta property="og:image:url" content="https://web.girona.cat${imatge.getData()}"> 
24</@> 
25 
26 
27<#assign journalArticleId = .vars['reserved-article-id'].data/> 
28 
29<div class='web-ajuntament-girona-template'> 
30<#if titol?? && titol.getData() != ""> 
31    <h1>${titol.getData()}</h1> 
32    <script> 
33        document.title = "${titol.getData()}"; 
34    </script> 
35</#if> 
36 
37<#if subtitol?? && subtitol.getData() != ""> 
38		<p class="news_intro2">${subtitol.getData()}</p> 
39</#if> 
40 
41    <div class="entradeta"> 
42 
43<#-- OBTENCIÓ I PRESENTACIÓ DATA PUBLICACIÓ --> 
44<#assign articleDisplayDate = .vars['reserved-article-display-date'].data> 
45<#assign originalLocale = locale> 
46<#setting locale = 'ca_ES'> 
47<#assign date = articleDisplayDate?date("EEE, dd MMM yyyy HH:mm:ss zzz")> 
48<#assign dateTimeFormat = languageUtil.get(originalLocale, "EEEE dd/MM/yyyy - H.mm 'h'")> 
49<#assign data_hivern = (date?long  + 1*3600*1000)?number_to_date> 
50<#assign data_hivern = data_hivern?string(dateTimeFormat)> 
51<#assign data_estiu = (date?long  + 2*3600*1000)?number_to_date> 
52<#assign data_estiu = data_estiu?string(dateTimeFormat)> 
53<#assign dateTimeFormat = languageUtil.get(originalLocale, "yyyy/MM/dd/H/mm")> 
54<#assign data_js = date?long?number_to_date> 
55<#assign data_js = data_js?string(dateTimeFormat)> 
56<#setting locale = originalLocale> 
57        <p class="news_data2" id="data_noticia"></p> 
58<script> 
59    if (UTC_offset("${data_js}") == 1) document.getElementById('data_noticia').innerText = "${data_hivern?cap_first}"; 
60    else document.getElementById('data_noticia').innerText = "${data_estiu?cap_first}"; 
61</script> 
62<#-- FI DATA PUBLICACIÓ --> 
63 
64    </div> 
65     
66<#-- MANIPULACIÓ FOTOS --> 
67<#if imatge??> 
68<#assign peu_foto="" text_alt=""> 
69    <#if imatge.getData()?? && imatge.getData() != ""> 
70        <#if imatge.getAttribute('alt') != "" && imatge.getAttribute('alt')[0..2] == "(c)"> 
71            <#assign peu_foto = "" text_alt = imatge.getAttribute('alt')> 
72        </#if> 
73        <#if imatge.getAttribute('alt') != "" && imatge.getAttribute('alt')[0..2] != "(c)"> 
74            <#assign peu_foto = imatge.getAttribute('alt') text_alt = imatge.getAttribute('alt')> 
75        </#if> 
76        <div class="foto_box" id="AUIgaleria"> 
77            <div class="grossa" style="background-image: url(/o/si?&i=${imatge.getData()})"> 
78                <a href="/o/si?&i=${imatge.getData()}" title="${text_alt}" class="AUI${journalArticleId}"><img src="/o/si?&i=${imatge.getData()}" style="display: none" alt=""><img src="/o/ajuntament-theme/img/b.gif" alt=""></a> 
79            </div> 
80            <#if peu_foto != ""> 
81    	    <div class="peu_foto">${peu_foto}</div> 
82    	    </#if> 
83    <#if imatges?? && imatges.getData() != "">   
84        <#if imatges.getSiblings()?has_content> 
85            <#if peu_foto == ""> 
86        	    <div class="peu_foto"></div> 
87        	</#if> 
88        	<#list imatges.getSiblings() as cur_imatges> 
89        		<#if cur_imatges.getData()?? && cur_imatges.getData() != ""> 
90        		 
91                <div class="petita" style="background-image: url(/o/si?&i=${cur_imatges.getData()})"><a href="/o/si?&i=${cur_imatges.getData()}" title="${cur_imatges.getAttribute('alt')}" class="AUI${journalArticleId}"><img src="/o/si?&i=${cur_imatges.getData()}" style="display: none" alt=""><img src="/o/ajuntament-theme/img/b.gif" alt=""></a></div> 
92         
93        		</#if> 
94        	</#list> 
95        </#if>    	     
96    </#if>    	     
97    	    <div class="reset"></div> 
98 
99        </div> 
100        <script> 
101            AUI().use( 
102              'aui-image-viewer', 
103              function(Y) { 
104                new Y.ImageViewer( 
105
106                    caption: '${titol.getData()?js_string}', 
107                    captionFromTitle: true, 
108                    centered: true, 
109                    imageAnim: { 
110                     duration: 1, 
111                     easing: 'easeIn' 
112                    }, 
113                    intervalTime: 2, 
114                    links: '#AUIgaleria a.AUI${journalArticleId}', 
115                    playing: false, 
116                    preloadAllImages: true, 
117                    preloadNeighborImages: true, 
118                    showInfo: true, 
119                    showPlayer: true, 
120                    zIndex: 1 
121
122                ).render(); 
123
124            ); 
125        </script> 
126 
127    </#if> 
128</#if> 
129 
130<#if descPrincipal1.getData()?? && descPrincipal1.getData() != ""> 
131    <div class='supernoticia'> 
132     
133    <#-- Vídeo --> 
134	<#if video?? && video.getData() != ""> 
135	    <#assign codi_video = video.getData()> 
136	    <#if codi_video[0..4] == "list="> 
137            <#-- CODI PLAYLIST --> 
138		    <div class="video-noticies"> 
139   		        <iframe width="583" height="300" src="https://www.youtube.com/embed/videoseries?list=${codi_video[5..]}&autoplay=0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="border: none"></iframe> 
140   	        </div> 
141    	<#else> 
142		    <div class="video-noticies"> 
143			    <iframe width="583" height="300" src="https://www.youtube.com/embed/${codi_video}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 
144		    </div> 
145	    </#if> 
146    </#if> 
147     
148        ${descPrincipal1.getData()} 
149    </div> 
150</#if> 
151 
152 
153<#-- ENLLAÇOS I DOCUMENTS --> 
154<#-- preparant array amb valors dels botons --> 
155<#assign array_botons = []> 
156<#if text_boto?? && text_boto.getData() != "">	  
157    <#if text_boto.getSiblings()?has_content> 
158    	<#list text_boto.getSiblings() as cur_link> 
159            <#assign array_botons = array_botons + [{ 
160                "nom": cur_link.getData(), 
161                "ordre": cur_link.getChild('ordre').getData(), 
162                "url": cur_link.getChild('url').getData(), 
163                "document": cur_link.getChild('document').getData() 
164            }]> 
165        </#list> 
166    </#if> 
167</#if> 
168<#-- reordenant botons i presentant-los --> 
169<#list array_botons?sort_by("ordre") as cur_boto> 
170    <#if cur_boto.url != "" || cur_boto.document != ""> 
171        <#if cur_boto.document != ""> 
172            <#assign link = "https://web.girona.cat"+cur_boto.document icona = "file"> 
173        <#else> 
174            <#assign link = cur_boto.url> 
175            <#if link?lower_case?contains(".pdf") || link?lower_case?contains(".xls") || link?lower_case?contains(".xlsx") || link?lower_case?contains(".pps") || link?lower_case?contains(".ppt") || link?lower_case?contains(".pptx")> 
176	            <#assign icona = "file"> 
177	        <#else> 
178	            <#assign icona = "new-window"> 
179	        </#if> 
180        </#if> 
181        <a href="${link}" target="_blank" class="btn btn-pdf" role="button"><span class="glyphicon glyphicon-${icona}"></span> ${cur_boto.nom}</a><br> 
182    </#if> 
183</#list> 
184<a id="volver-atras" class="btn" href="#" role="button" title="Tornar">Tornar</a> 
185<script> 
186    const urlActual = window.location.href; 
187    const indexAsset = urlActual.indexOf("/-/"); 
188    const indexQuery = urlActual.indexOf("?"); 
189    let urlBase = urlActual; 
190    if (indexAsset !== -1) { 
191        urlBase = urlActual.substring(0, indexAsset); 
192    } else if (indexQuery !== -1) { 
193        urlBase = urlActual.substring(0, indexQuery); 
194    }     
195    document.getElementById("volver-atras").href = urlBase; 
196</script> 
197</div> 

Carrusel bàners: Inici

Publicador de continguts

S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing:
==> descripcio  [in template "20116#20160#220965" at line 103, column 6]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if descripcio.getData()?? && descrip...  [in template "20116#20160#220965" at line 103, column 1]
----
1<style> 
2    ul.breadcrumb.fil-ariadna li:last-child, 
3    .component-title.h4, 
4    .metadata-author{ 
5        display: none; 
6
7</style> 
8<#assign journalArticleId = .vars['reserved-article-id'].data/> 
9 
10<#assign icona = "fa-car" tipus_assignat = "mobilitat" classe = ""> 
11<#if tipus??> 
12    <#assign tipus_assignat = tipus.getData()?replace("[\"","")?replace("\"]","")> 
13</#if> 
14<#if tipus_assignat == "fitosanitari"><#assign icona = "fa-bug"></#if> 
15<#if tipus_assignat == "canvi"><#assign icona = "fa-calendar-times-o"></#if> 
16<#if tipus_assignat == "emergencia"><#assign icona = "fa-exclamation-triangle" classe=" class='emergencia'"></#if> 
17<#if tipus_assignat == "avis"><#assign icona = "fa-info-circle"></#if> 
18<#if tipus_assignat == "residus"><#assign icona = "fa-trash"></#if> 
19<#-- 
20<div${classe}><i class="icona fa ${icona}" aria-hidden="true"></i>${titol.getData()} <i class="fletxa fa fa-chevron-right" aria-hidden="true"></i></div> 
21--> 
22 
23 
24 
25 
26<div class='web-ajuntament-girona-template'> 
27<#if titol?? && titol.getData() != ""> 
28    <h1>${titol.getData()}</h1> 
29    <script> 
30        document.title = "${titol.getData()}"; 
31    </script> 
32</#if> 
33 
34<#if subtitol?? && subtitol.getData() != ""> 
35		<p class="news_intro2">${subtitol.getData()}</p> 
36</#if> 
37 
38 
39<#-- MANIPULACIÓ FOTOS --> 
40<#if imatge??> 
41<#assign peu_foto="" text_alt=""> 
42    <#if imatge.getData()?? && imatge.getData() != ""> 
43        <#if imatge.getAttribute('alt') != "" && imatge.getAttribute('alt')[0..2] == "(c)"> 
44            <#assign peu_foto = "" text_alt = imatge.getAttribute('alt')> 
45        </#if> 
46        <#if imatge.getAttribute('alt') != "" && imatge.getAttribute('alt')[0..2] != "(c)"> 
47            <#assign peu_foto = imatge.getAttribute('alt') text_alt = imatge.getAttribute('alt')> 
48        </#if> 
49        <div class="foto_box" id="AUIgaleria"> 
50            <div class="grossa" style="background-image: url(/o/si?&i=${imatge.getData()})"> 
51                <a href="/o/si?&i=${imatge.getData()}" title="${text_alt}" class="AUI${journalArticleId}"><img src="/o/si?&i=${imatge.getData()}" style="display: none" alt=""><img src="/o/ajuntament-theme/img/b.gif" alt=""></a> 
52            </div> 
53            <#if peu_foto != ""> 
54    	    <div class="peu_foto">${peu_foto}</div> 
55    	    </#if> 
56    <#if imatges?? && imatges.getData() != "">   
57        <#if imatges.getSiblings()?has_content> 
58            <#if peu_foto == ""> 
59        	    <div class="peu_foto"></div> 
60        	</#if> 
61        	<#list imatges.getSiblings() as cur_imatges> 
62        		<#if cur_imatges.getData()?? && cur_imatges.getData() != ""> 
63        		 
64                <div class="petita" style="background-image: url(/o/si?&i=${cur_imatges.getData()})"><a href="/o/si?&i=${cur_imatges.getData()}" title="${cur_imatges.getAttribute('alt')}" class="AUI${journalArticleId}"><img src="/o/si?&i=${cur_imatges.getData()}" style="display: none" alt=""><img src="/o/ajuntament-theme/img/b.gif" alt=""></a></div> 
65         
66        		</#if> 
67        	</#list> 
68        </#if>    	     
69    </#if>    	     
70    	    <div class="reset"></div> 
71 
72        </div> 
73        <script> 
74            AUI().use( 
75              'aui-image-viewer', 
76              function(Y) { 
77                new Y.ImageViewer( 
78
79                    caption: '${titol.getData()}', 
80                    captionFromTitle: true, 
81                    centered: true, 
82                    imageAnim: { 
83                     duration: 1, 
84                     easing: 'easeIn' 
85                    }, 
86                    intervalTime: 2, 
87                    links: '#AUIgaleria a.AUI${journalArticleId}', 
88                    playing: false, 
89                    preloadAllImages: true, 
90                    preloadNeighborImages: true, 
91                    showInfo: true, 
92                    showPlayer: true, 
93                    zIndex: 1 
94
95                ).render(); 
96
97            ); 
98        </script> 
99 
100    </#if> 
101</#if> 
102 
103<#if descripcio.getData()?? && descripcio.getData() != ""> 
104    <div class='supernoticia'> 
105        ${descripcio.getData()} 
106    </div> 
107</#if> 
108 
109<#-- ENLLAÇOS I DOCUMENTS --> 
110<#-- preparant array amb valors dels botons --> 
111<#assign array_botons = []> 
112<#if text_boto?? && text_boto.getData() != "">	  
113    <#if text_boto.getSiblings()?has_content> 
114    	<#list text_boto.getSiblings() as cur_link> 
115            <#assign array_botons = array_botons + [{ 
116                "nom": cur_link.getData(), 
117                "ordre": cur_link.getChild('ordre').getData(), 
118                "url": cur_link.getChild('url').getData(), 
119                "document": cur_link.getChild('document').getData() 
120            }]> 
121        </#list> 
122    </#if> 
123</#if> 
124<#-- reordenant botons i presentant-los --> 
125<#list array_botons?sort_by("ordre") as cur_boto> 
126    <#if cur_boto.url != "" || cur_boto.document != ""> 
127        <#if cur_boto.document != ""> 
128            <#assign link = "https://web.girona.cat"+cur_boto.document icona = "file"> 
129        <#else> 
130            <#assign link = cur_boto.url> 
131            <#if link?lower_case?contains(".pdf") || link?lower_case?contains(".xls") || link?lower_case?contains(".xlsx") || link?lower_case?contains(".pps") || link?lower_case?contains(".ppt") || link?lower_case?contains(".pptx")> 
132	            <#assign icona = "file"> 
133	        <#else> 
134	            <#assign icona = "new-window"> 
135	        </#if> 
136        </#if> 
137        <a href="${link}" target="_blank" class="btn btn-pdf" role="button"><span class="glyphicon glyphicon-${icona}"></span> ${cur_boto.nom}</a><br> 
138    </#if> 
139</#list> 
140 
141 
142 
143<#if tipus_assignat == "mobilitat"> 
144    <div class='incidencia_nota'> 
145        <p>Esperem que sapigueu disculpar les molèsties que aquesta actuació pugui ocasionar. Per a qualsevol dubte o suggeriment us podeu dirigir al servei de Mobilitat de l’Ajuntament (972 419 002) o bé a la  <a href="//www.girona.cat/avisos">Bústia d’Avisos</a> del web municipal.</p> 
146         
147        <p>Us recordem que podeu seguir les incidències a través del canal de RSS. Pel Twitter de l’Ajuntament amb l’etiqueta <b>#incidències</b> i pel web <a href="//www.girona.cat/incidencies">www.girona.cat/incidencies</a> i ara també a través del Telegram de l’Ajuntament de Girona.</p> 
148    </div> 
149</#if> 
150<a id="volver-atras" class="btn" href="#" role="button" title="Tornar">Tornar</a> 
151<script> 
152    const urlActual = window.location.href; 
153    const indexAsset = urlActual.indexOf("/-/"); 
154    const indexQuery = urlActual.indexOf("?"); 
155    let urlBase = urlActual; 
156    if (indexAsset !== -1) { 
157        urlBase = urlActual.substring(0, indexAsset); 
158    } else if (indexQuery !== -1) { 
159        urlBase = urlActual.substring(0, indexQuery); 
160    }     
161    document.getElementById("volver-atras").href = urlBase; 
162</script> 
163</div>