Campañas Municipales | Ayuntamiento de Valencia - València
Martes
05
Noviembre
Búsqueda avanzada
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> imagen.getAttribute("alt") [in template "20115#20151#44485" at line 112, column 37] ---- 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: ${imagen.getAttribute("alt")} [in template "20115#20151#44485" at line 112, column 35] ----
1<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
2<@liferay_theme["defineObjects"] />
3<#assign themeRootPath = themeDisplay.getPathThemeRoot() />
4<#assign themeImagesPath = themeDisplay.getPathThemeImages() />
5<#assign portalUrl = themeDisplay.getPortalURL() />
6
7<script>
8 if(window.hasOwnProperty("define") && define.amd){
9 define._amd = define.amd;
10 define.amd = false;
11 }
12</script>
13<script src="${themeRootPath}/js/lightslider.min.js"></script>
14<script src="${themeRootPath}/js/ekko-lightbox.js"></script>
15<link type="text/css" rel="stylesheet" href="${themeRootPath}/css/ext/lightslider.min.css" />
16<link type="text/css" rel="stylesheet" href="${themeRootPath}/css/ext/ekko-lightbox.css" />
17<script>
18 if(window.hasOwnProperty("define") && define._amd){
19 define.amd = define._amd;
20 }
21</script>
22
23<#assign titulo = .vars['reserved-article-title'].data/>
24<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
25<#assign backUrl = "" />
26<#if request.getHeader("Referer")?? >
27 <#assign backUrl = request.getHeader("Referer") />
28</#if>
29
30<#if backUrl?contains("/buscador")>
31 <#assign redirectSessionAttr = (request.getSession().getAttribute("LIFERAY_SHARED_redirectToBuscador")??)?then(request.getSession().getAttribute("LIFERAY_SHARED_redirectToBuscador"),"")/>
32 <#if redirectSessionAttr != "" >
33 <#assign backUrl = redirectSessionAttr />
34 </#if>
35</#if>
36
37<#assign subvencionesCat = 37886 />
38
39<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
40<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
41
42<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
43<#assign journalId = .vars['reserved-article-id'].data/>
44
45<#attempt>
46<#assign article = JournalArticleLocalService.getArticle( groupId ,journalId) >
47<#recover>
48</#attempt>
49
50<#assign categories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(article.getResourcePrimKey())) />
51
52<div class="container container-municipal">
53 <div class="row">
54 <div class="col-12">
55
56
57
58 <a alt="" href="#" class="volver link-styles-hover"><img alt="" src="${themeImagesPath}/icons/icono_volver.svg"> <@liferay.language key="volver" /></a>
59 <div class="sharethis-inline-share-buttons"></div>
60
61 <h2 class="municipal-titulo">${titulo}</h2>
62
63 <div class="row">
64 <div class="col-sm-12 col-md-6">
65 <#if locale == "es_ES">
66 <a class="link-styles-hover" href="/cas/campañas-municipales">
67 <#else>
68 <a class="link-styles-hover" href="/val/campanyes-municipals">
69 </#if>
70 <img alt="" src="${themeImagesPath}/icons/icono_agenda.svg"> <@liferay.language key="ircampanya" /></a>
71 </div>
72 <div class="col-sm-12 col-md-6">
73 <!-- redes sociales -->
74 <nav aria-label='<@liferay.language key="compartir-en-redes-sociales"/>' id="compartir" class="compartir-redes-sociales text-md-right">
75 <ul>
76 <li class="whatsapp" data-lang="compartir_whatsapp">
77 <a id="enlace-whatsapp" class="social-icon" href="" target="_blank" title="Se abre en ventana nueva">
78 <img id="imagen-social-whatsapp" src='${themeImagesPath}/social-media-icons/whatsapp-social-icon.png' alt="<@liferay.language key="share-whatsapp" />">
79 </a>
80 </li>
81
82 <li class="twitter" data-lang="compartir_twitter">
83 <a id="enlace-twitter" class="social-icon" href="" target="_blank" title="Se abre en ventana nueva">
84 <img id="imagen-social-twitter" src='${themeImagesPath}/social-media-icons/twitter-social-icon.png' alt="<@liferay.language key="share-twitter"/>">
85 </a>
86 </li>
87
88 <li class="facebook" data-lang="compartir_facebook">
89 <a id="enlace-facebook" class="social-icon" href="" target="_blank" title="Se abre en ventana nueva">
90 <img id="imagen-social-facebook" src='${themeImagesPath}/social-media-icons/facebook-social-icon.png' alt="<@liferay.language key="share-facebook"/>">
91 </a>
92 </li>
93
94 <li class="mail" data-lang="compartir_email">
95 <a id="enlace-email" class="social-icon" href="mailto:?Subject=${titulo}?Body=" title="Se abre en ventana nueva">
96 <img id="imagen-social-email" src='${themeImagesPath}/social-media-icons/email-social-icon.png' alt="<@liferay.language key="send-by-mail"/>">
97 </a>
98 </li>
99
100 <li class="print">
101 <a id="enlace-print" href="#" class="social-icon mr-0" onClick="imprimir();" title="Se abre en ventana nueva">
102 <img id="imagen-print" src='${themeImagesPath}/social-media-icons/172530-48.png' alt="<@liferay.language key="send-to-print"/>">
103 </a>
104 </li>
105 </ul>
106 </nav>
107 </div>
108 </div>
109
110 <div class="bloquesdata">
111 <#if (imagen.getData())?? && imagen.getData() != "">
112 <img alt="${imagen.getAttribute("alt")}" data-fileentryid="${imagen.getAttribute("fileEntryId")}" src="${imagen.getData()}" style="margin-bottom:2em;display: block;width:100%;margin-left: auto;margin-right: auto;"/>
113 </#if>
114 ${bloques.getData()}
115 <#if Geoportal?? && Geoportal.getData()?has_content >
116 <#if locale == "es_ES">
117 <iframe class="autoHeight" frameborder="0" height="700px" scrolling="no" src="${getterUtil.getString(Geoportal.getData())}&lang=1" width="100%"></iframe>
118 <#else>
119 <iframe class="autoHeight" frameborder="0" height="700px" scrolling="no" src="${getterUtil.getString(Geoportal.getData())}&lang=2" width="100%"></iframe>
120 </#if>
121 </#if>
122 </div>
123
124 <#assign expedientedata = getterUtil.getString(Expediente.getData())>
125 <#assign publicacionoficialdata = getterUtil.getString(PublicacionOficial.getData())>
126 <#assign plazodesdedata = getterUtil.getString(PlazoDesde.getData())>
127 <#assign plazohastadata = getterUtil.getString(PlazoHasta.getData())>
128 <#assign instanciatipodata = getterUtil.getString(InstanciaTipo.getData())>
129 <#assign instancianombredata = getterUtil.getString(InstanciaNombre.getData())>
130 <#assign instanciaficherodata = getterUtil.getString(InstanciaFichero.getData())>
131 <#assign instanciaenlacedata = getterUtil.getString(InstanciaEnlace.getData())>
132 <#assign instanciaimpresospdfdata = getterUtil.getString(InstanciaImpresosPdf.getData())>
133 <#assign lugarpresentaciondata = getterUtil.getString(lugarPresentacion.getData())>
134 <#assign subtitulodata = getterUtil.getString(Subtitulo.getData())>
135
136 <div class="row m-0">
137 <#if expedientedata?has_content || publicacionoficialdata?has_content || plazodesdedata?has_content || plazohastadata?has_content || instanciatipodata?has_content || instancianombredata?has_content || instanciaficherodata?has_content || instanciaenlacedata?has_content || instanciaimpresospdfdata?has_content || lugarpresentaciondata?has_content || regmunicipalesdata?has_content || novedadesdata?has_content || subtitulodata?has_content >
138 <h3 class="campanyas_h4 col-12 p-0"><@liferay.language key="campanyas-datos-de-la-campanya" />:</h3>
139 <div class="col-12 col-sm-6 p-0">
140 <div class="row m-1">
141 <div class="col-12 datoscampanyas">
142
143 <#if validator.isNotNull(expedientedata)>
144 <div><p><@liferay.language key="campanyas-expediente" />: <strong>${expedientedata}</strong></p></div>
145 </#if>
146 <#if validator.isNotNull(publicacionoficialdata)>
147 <div><p><@liferay.language key="campanyas-publicacion-oficial" />: <strong>${publicacionoficialdata}</strong></p></div>
148 </#if>
149 <#if validator.isNotNull(plazodesdedata)>
150 <div><p><@liferay.language key="campanyas-plazo-desde" />: <strong>${plazodesdedata}</strong></p></div>
151 </#if>
152 <#if validator.isNotNull(plazohastadata)>
153 <div><p><@liferay.language key="campanyas-plazo-hasta" />: <strong>${plazohastadata}</strong></p></div>
154 </#if>
155 <#if validator.isNotNull(instanciatipodata)>
156 <div><p><@liferay.language key="campanyas-instancia-tipo" />: <strong>${instanciatipodata}</strong></p></div>
157 </#if>
158 <#if validator.isNotNull(instancianombredata)>
159 <div><p><@liferay.language key="campanyas-instancia-nombre" />: <strong>${instancianombredata}</strong></p></div>
160 </#if>
161 <#if validator.isNotNull(instanciaficherodata)>
162 <div><p><@liferay.language key="campanyas-instancia-fichero" />: <strong>${instanciaficherodata}</strong></p></div>
163 </#if>
164 <#if validator.isNotNull(instanciaenlacedata)>
165 <div><p><@liferay.language key="campanyas-instancia-enlace" />: <strong><a href="${instanciaenlacedata}">Link</a></strong></p></div>
166 </#if>
167 <#if validator.isNotNull(instanciaimpresospdfdata)>
168 <div><p><@liferay.language key="campanyas-instancia-pdf" />: <strong>${instanciaimpresospdfdata}</strong></p></div>
169 </#if>
170 <#if validator.isNotNull(lugarpresentaciondata)>
171 <div><p><@liferay.language key="campanyas-lugar-presentacion" />: <strong>${lugarpresentaciondata}</strong></p></div>
172 </#if>
173 <#if validator.isNotNull(subtitulodata)>
174 <div><p><@liferay.language key="campanyas-subtititulo" />: <strong>${subtitulodata}</strong></p></div>
175 </#if>
176 </div>
177 </div>
178 </div>
179 </#if>
180 <#if subvencion?? && subvencion.getData() == "S" && categories?seq_contains(subvencionesCat)>
181 <div class="col-12 col-sm-6 p-0">
182 <div class="row m-1">
183 <div class="col-12 datoscampanyas">
184 <div class="row">
185 <div class="col-12">
186 <#if locale == "es_ES">
187 <a href="https://sede.valencia.es/sede/?lang=1" target="" title=""><img alt="Sede Electrónica" id="img27F0F938CC496D86C125829E0043DF7E" src="/documents/20142/44448/sede_castellano_160x50.gif/9a54cfa6-e3ed-eb72-ae71-319c66254bff?t=1594967830967" title="Sede Electrónica" /></a>
188 <#else>
189 <a href="https://sede.valencia.es/sede/?lang=2" title="" target=""> <img src="/documents/20142/44448/sede_valencia_160x50.gif/2ab2b7f8-3886-5ea0-4ba4-b34393dbb8b4?t=1594967811946" alt="Seu Electrònica" title="Seu Electrònica" id="img27F0F938CC496D86C125829E0043DF7E"></a>
190 </#if>
191 </div>
192 <div class="col-12">
193 <#if locale == "es_ES">
194 <div class="bloque_imagen">
195 <div class="imagenPie">
196 <img alt="Base de datos Nacional de Subvenciones" id="img71BD829492C4DB57C1257FEA00425B91" src="/documents/20142/44448/100bsns1.gif/b7d07efb-f088-be60-e4e8-8c6cb352e627?t=1594967831018" title="Base de datos Nacional de Subvenciones" />
197 </div>
198 </div>
199
200 <p>
201 <span class="bloque_enlace">
202 <a href="http://www.pap.minhap.gob.es/bdnstrans/GE/es/concesiones" target="_blank" title="">Acceso a la Base de Datos Nacional de Subvenciones
203 </a>
204 </span>
205 </p>
206 <#else>
207 <div class="bloque_imagen">
208 <div class="imagenPie">
209 <img src="/documents/20142/44448/100bsns1.gif/b7d07efb-f088-be60-e4e8-8c6cb352e627?t=1594967831018" alt="Base de dades Nacional de Subvencions" title="Base de dades Nacional de Subvencions" id="img71BD829492C4DB57C1257FEA00425B91">
210 </div>
211 </div>
212 <p>
213 <span class="bloque_enlace">
214 <a href="http://www.pap.minhap.gob.es/bdnstrans/GE/es/concesiones" target="_blank" title="">Accés a la Base de Dades Nacionals de Subvencions
215 </a>
216 </span>
217 </p>
218 </#if>
219 </div>
220 </div>
221 </div>
222 </div>
223 </div>
224 </#if>
225 </div>
226
227 <#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
228 <#assign articleEntry = AssetEntryLocalService.getEntry(journalArticleClassname, article.getResourcePrimKey())>
229 <#assign articleRelatedEntries = AssetLinkLocalService.getDirectLinks(articleEntry.getEntryId()) >
230
231 <#assign agendas = []/>
232 <#assign campanyas = []/>
233 <#assign tieneCol = false />
234 <#if articleRelatedEntries?has_content>
235 <#assign ddmKeyAgenda = "46341" >
236 <#assign ddmKeyCampanya = "44452" >
237 <#assign ddmKeyCol = "38105" >
238 <#list articleRelatedEntries as relatedAsset>
239 <#assign relatedEntry = AssetEntryLocalService.getEntry(relatedAsset.getEntryId2()) >
240 <#assign entryClassPK = relatedEntry.getClassPK() >
241
242 <#assign journalArticleClassname = "com.liferay.journal.model.JournalArticle" >
243 <#if journalArticleClassname==relatedEntry.getClassName() >
244 <#assign relatedArticle = JournalArticleLocalService.getLatestArticle(entryClassPK) >
245 </#if>
246
247 <#if relatedArticle.getDDMStructureKey() == ddmKeyAgenda >
248 <#assign agendas = agendas + [relatedArticle] />
249 </#if>
250 <#if relatedArticle.getDDMStructureKey() == ddmKeyCampanya >
251 <#assign campanyas = campanyas + [relatedArticle] />
252 </#if>
253 <#if relatedArticle.getDDMStructureKey() == ddmKeyCol >
254 <#assign colApoyo = relatedArticle />
255 <#assign tieneCol = true />
256 </#if>
257 </#list>
258 </#if>
259
260 <#if agendas?has_content>
261 <div class="row container-municipal" style="width:100%;">
262 <div class="col-12">
263 <h3 class="campanyas_h4"><@liferay.language key="agenda_ciudad" /></h3>
264 <#list agendas as relatedAgenda>
265 <a class="relatedAgenda" href="${relatedAgenda.getUrlTitle()}">${relatedAgenda.getTitle(locale)}</a>
266 <br></br>
267 </#list>
268 </div>
269 </div>
270 </#if>
271 <#if campanyas?has_content>
272 <div class="row container-municipal" style="width:100%;">
273 <div class="col-12">
274 <h3 class="campanyas_h4"><@liferay.language key="campaña_municipal" /></h3>
275 <#list campanyas as relatedCampanya>
276 <a class="relatedAgenda" href="${relatedCampanya.getUrlTitle()}">${relatedCampanya.getTitle(locale)}</a>
277 <br></br>
278 </#list>
279 </div>
280 </div>
281 </#if>
282 <#if RegMunicipales.getData()?has_content && RegMunicipales.getData() == 'S' >
283 <#assign regMunId = "3725049">
284 <#assign regMunArt = JournalArticleLocalService.getLatestArticle(groupId, regMunId) >
285 <#if regMunArt?? && regMunArt != ''>
286 <#assign rootElementInf = saxReaderUtil.read(regMunArt.getContentByLocale(locale)).getRootElement() />
287 <!-- Cogemos el Titulo de infociudad -->
288 <#assign selector = saxReaderUtil.createXPath("dynamic-element[@name='titulo']") />
289 <#if selector.selectSingleNode(rootElementInf)?has_content>
290 <#assign titulo = selector.selectSingleNode(rootElementInf).getStringValue()?replace("\"", "")?trim />
291 </#if>
292 <#if locale == 'es_ES'>
293 <#assign regUrl = '/cas/infociudad/-/asset_publisher/zLt1BRtYvpBF/content/infociudad-registros-municipales'>
294 <#else>
295 <#assign regUrl = '/val/infociutat/-/asset_publisher/zLt1BRtYvpBF/content/infociudad-registros-municipales' >
296 </#if>
297 <div class="row">
298 <div class="col-12">
299 <h3 class="campanyas_h4"><@liferay.language key="registros_municipales" /></h3>
300 <a class="regMun" href="${regUrl}"><@liferay.language key="registros_municipales" /></a>
301 </div>
302 </div>
303 </#if>
304 </#if>
305
306 <#assign vocabularyId = "37860"/>
307 <#assign cats = [] />
308 <#if categories?has_content>
309 <#list categories as c>
310 <#assign cat = catLocalService.getCategory(getterUtil.getLong(c)) />
311 <#if cat.getVocabularyId() == getterUtil.getLong(vocabularyId) >
312 <#assign cats = cats + [cat] />
313 </#if>
314 </#list>
315 <#if cats?has_content>
316 <#assign catIP = catLocalService.getAssetCategory(getterUtil.getLong("37865")) />
317 <#if cats?seq_contains(catIP)>
318 <div class="row">
319 <div class="col-12">
320 <h3 class="campanyas_h4"><@liferay.language key="campanyas_encontrar_documento" />:</h3>
321 <ul>
322 <#list 0..cats?size-1 as i>
323 <#if cats[0].getCategoryId() != getterUtil.getLong("37865")>
324 <#break>
325 </#if>
326 <#if cats[i].getCategoryId() != 37865 && cats[i].getParentCategoryId() == 37865>
327 <li class="enlaces-inline">
328 <span> /
329 <#if locale == "es_ES" >
330 <a class="enlace-colores" href="/cas/tramites/informacion-publica" >${catIP.getTitle(locale)}</a></span><span> /<a class="enlace-colores" href="/cas/tramites/informacion-publica/-/categories/${cats[i].getCategoryId()}" >${cats[i].getTitle(locale)}</a>
331 <#else>
332 <a class="enlace-colores" href="/val/tramits/informacio-publica/" >${catIP.getTitle(locale)}</a></span><span> /<a class="enlace-colores" href="/val/tramits/informacio-publica/-/categories/${cats[i].getCategoryId()}" >${cats[i].getTitle(locale)}</a>
333 </#if>
334 </span>
335 </li>
336 </#if>
337 </#list>
338 </ul>
339 </div>
340 </div>
341 </#if>
342 </#if>
343 </#if>
344 </div>
345 </div>
346
347 <#if tieneCol>
348 <div class="row">
349 <div class="col-12">
350 <h4 class="campanyas_h4"> + información</h4>
351 <#assign colApoyoContent = JournalArticleLocalService.getArticleContent(colApoyo, ddmKeyCol, "view", locale,portletRequestModel, themeDisplay)>
352 </div>
353 <div class="collapse show" id="related-content">${colApoyoContent}</div>
354 </div>
355 </#if>
356</div>
357
358
359
360<!-- Go to www.addthis.com/dashboard to customize your tools -->
361<!-- <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5c596fa008abbd1b"></script> -->
362
363
364<script src="${themeRootPath}/js/share-this-metatags.js"></script>
365
366<script type="text/javascript">
367$(document).ready(function(){
368 var backUrl = "${backUrl}";
369
370 // Modificamos los enlaces de los social media buttons
371 var urlNoticiaActual = window.location.href;
372
373 var enlaceWhatsapp = document.getElementById("enlace-whatsapp");
374 var cadenaWhatsapp = "whatsapp://send?text=";
375 enlaceWhatsapp.setAttribute("href", cadenaWhatsapp.concat(urlNoticiaActual));
376
377 var enlaceTwitter = document.getElementById("enlace-twitter");
378 var cadenaTwitter = "https://twitter.com/intent/tweet?original_referer=";
379 cadenaTwitter = cadenaTwitter.concat(urlNoticiaActual);
380 cadenaTwitter = cadenaTwitter.concat("&text=").concat("${titulo}").concat(" ").concat(urlNoticiaActual);
381 cadenaTwitter = cadenaTwitter.concat("&via=AjuntamentVLC");
382 enlaceTwitter.setAttribute("href", cadenaTwitter);
383
384 var enlaceFacebook = document.getElementById("enlace-facebook");
385 var cadenaFacebook = "http://www.facebook.com/sharer/sharer.php?u=";
386 enlaceFacebook.setAttribute("href", cadenaFacebook.concat(urlNoticiaActual));
387
388 var enlaceEmail = document.getElementById("enlace-email");
389 var cadenaEmail = enlaceEmail.getAttribute("href");
390 enlaceEmail.setAttribute("href", cadenaEmail.concat(urlNoticiaActual));
391
392 jQuery.urlParam = function(name){
393 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
394 return results?results[1]:0;
395 }
396 var redirectParam = jQuery.urlParam("redirect");
397 $(".volver").on("click", function(){
398 if(redirectParam !== 0){
399 window.location.href = decodeURIComponent(redirectParam);
400 }else if(backUrl != ""){
401 window.location.href = backUrl;
402 }else{
403 history.go(-1);
404 }
405 });
406
407 $('.lexicon-icon-share-alt').replaceWith('<img class="img-compartir" src="${themeImagesPath}/icons/icono_compartir.svg">')
408 var shareButtons = $('.pull-right');
409 $('.div-share').append(shareButtons);
410
411
412 /////////////////////////////
413 // meta tags SocialNetworks//
414 /////////////////////////////
415 // busca posible imagen
416 var imgShare = $('.bloquesdata .bloque_subtitulo').find('img').attr('src');
417 if (imgShare) {
418 imgShare = "${themeDisplay.getPortalURL()}" + imgShare;
419
420 var socialNetworksTags = {
421 "pageURL": window.location.href,
422 "pageTitle": document.title,
423 "pageDescription": "",
424 "imageShareUrl": imgShare,
425 "videoShareUrl": ""
426 };
427 shareThisMetaTags(socialNetworksTags);
428 }
429
430});
431
432function imprimir(){
433
434 $('#compartir').hide();
435 $('#social-footer').hide();
436 $('.container-cabecera-no-menu').hide();
437 $('#footer-enlaces').hide();
438 window.print();
439 $('#compartir').show();
440 $('#social-footer').show();
441 $('.container-cabecera-no-menu').show();
442 $('#footer-enlaces').show();
443
444}
445
446</script>