campanha
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> journalArticleService.fetchArticleByUrlTitle(groupId, urlTitle?url('UTF-8')) [in template "61028#61055#90537" at line 169, column 20] ---- Tip: If the failing expression is known to be 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: #assign article = journalArticleServi... [in template "61028#61055#90537" at line 169, column 1] ----
1<style>
2
3 /* BREADCRUMB */
4 nav.breadcrumb-nav {
5 margin-top: 50px;
6 margin-right: 70px;
7 }
8
9 .breadcrumb-element.list-inline-item {
10 padding: 2px 10px;
11 margin-right: 0;
12 }
13
14
15 .breadcrumb-element.list-inline-item:not(:first-child) {
16 border-left: 1px solid #E2E2E2;
17 }
18
19 .breadcrumb-element.list-inline-item:last-child {
20 border-left: 1px solid #015174;
21 }
22
23
24 li.breadcrumb-element {
25 font-size: 0.875rem;
26 }
27
28 li.breadcrumb-element.active {
29 color: #015174;
30 }
31
32 li.breadcrumb-element a {
33 color: #7E7E7E;
34 }
35
36 /* END BREADCRUMB */
37
38 .container-image {
39 background-color: white;
40 background-size: cover;
41 }
42
43 .conteudo {
44 background-color: white;
45 padding-top: 40px;
46 padding-bottom: 40px;
47 }
48
49 .conteudo h1 {
50 font-size: 1.875rem;
51 }
52
53
54 .conteudo h2 {
55 color: #EF7105;
56 padding-top: 20px;
57 font-size: 1.5rem;
58 }
59
60 .conteudo h4 {
61 padding-top: 20px;
62 }
63
64 .corpoDoTexto {
65 padding-top: 20px;
66 }
67
68 .data-criacao {
69 border-bottom: 2px solid #E2E2E2;
70 padding-top: 30px;
71 padding-bottom: 10px;
72 }
73
74 .data-criacao .fas {
75 color: #EF7105;
76 padding-right: 10px;
77 }
78
79 #event {
80 padding-bottom: 50px;
81 }
82
83 h3 {
84 border-bottom: 2px solid #E2E2E2;
85 padding-bottom: 10px;
86 }
87
88 #relatedEvents {
89
90 color: #EF7105;
91 }
92
93 #relatedEvents h2 {
94 font-size: 1rem;
95 padding-bottom: 20px;
96 text-transform: uppercase;
97 letter-spacing: 5px;
98 word-spacing: 10px;
99 }
100
101 .laranja, a.laranja:hover {
102 color: #EF7105;
103 }
104
105 .info-contato {
106 padding: 0.5rem 0;
107 }
108
109 .card-img-top {
110 width: 100%;
111 height: auto;
112 }
113
114 .card-text-title {
115 font-size: 1.125rem;
116 }
117
118 .image-center {
119 display: block;
120 margin-left: auto;
121 margin-right: auto;
122 }
123
124 .a2a_kit {
125 z-index: 1000;
126 }
127
128 .stretched-link::after {
129 z-index: 0 !important;
130 }
131
132 .badge-silver {
133 background-color: #e0e0e0;
134 color: #272833;
135 font-size: 1rem;
136 letter-spacing: 0.09rem;
137 }
138
139 .badge-silver:hover {
140 background-color: #c3c3c3;
141 color: #272833;
142 }
143
144 .fa-facebook-square {
145 color: #3b5998;
146 }
147
148 .fa-instagram {
149 color: #405DE6;
150 }
151
152 .fa-twitter {
153 color: #00acee;
154 }
155
156 .fa-youtube {
157 color: #c4302b;
158 }
159</style>
160
161<#assign urlTitle = paramUtil.getString(themeDisplay.getRequest(), "titulo", "") />
162<#assign assetEntryService = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
163<#assign assetLinkLocalService = staticUtil["com.liferay.asset.kernel.service.AssetLinkLocalServiceUtil"] />
164<#assign layoutLocalService = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] />
165<#assign dlAppServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppServiceUtil"] />
166<#assign classNameUtil = staticUtil["com.liferay.portal.kernel.service.ClassNameServiceUtil"] />
167<#assign articleClassName = classNameUtil.fetchClassName("com.liferay.journal.model.JournalArticle") />
168<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
169<#assign article = journalArticleService.fetchArticleByUrlTitle(groupId, urlTitle?url('UTF-8')) />
170
171<#assign assetEntry = assetEntryService.fetchEntry(articleClassName.getClassNameId(), article.getResourcePrimKey()) />
172<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(assetEntry.getEntryId()) />
173
174<#assign document = saxReaderUtil.read(article.getContent()) />
175<#assign rootElement = document.getRootElement() />
176
177<#assign relationsNewsArray = []>
178<#assign imagensArray = []>
179<#assign telefonesArray = []>
180<#assign ficheirosArray = []>
181<#assign emailsArray = []>
182<#assign sitesArray = []>
183<#assign redesSociaisArray = []>
184<#assign sessoesArray = []>
185
186<#assign imagemEvento = "" />
187<#assign imageURL = "" />
188<#assign data = "" />
189<#assign titulo = "" />
190<#assign subtitulo = "" />
191<#assign corpoDoTexto = "" />
192<#assign hora = "" />
193<#assign entidadeOrganizadora = "" />
194<#assign sessaoString = "" />
195<#assign currentUrl = themeDisplay.getPortalURL() />
196<#assign ficheiro = "" />
197<#assign ficheiroURL = "" />
198
199<#list rootElement.elements() as el>
200 <#list el.elements() as il>
201 <#if il.attributeValue("name")??>
202
203 <#if "data" == il.attributeValue("name")>
204
205 <#assign data = il.element("dynamic-content").getData() />
206 <#if data?has_content>
207 <#assign data = data?split("-")[2] + "/"+ data?split("-")[1] + "/" + data?split("-")[0]/>
208 </#if>
209 </#if>
210
211
212 <#if "Hora" == il.attributeValue("name")>
213 <#assign hora = il.element("dynamic-content").getData() />
214 </#if>
215
216 <#if "titulo" == il.attributeValue("name")>
217 <#assign titulo = il.element("dynamic-content").getData() />
218 </#if>
219
220 <#if "subtitulo" == il.attributeValue("name")>
221 <#assign subtitulo = il.element("dynamic-content").getData() />
222 </#if>
223
224 <#if "corpoDoTexto" == il.attributeValue("name")>
225 <#assign corpoDoTexto = il.element("dynamic-content").getData() />
226
227 </#if>
228
229 <#if "DocumentosEMdias19f7" == il.attributeValue("name")>
230 <#assign ficheiro = il.element("dynamic-content").getData() />
231 <#if ficheiro?has_content>
232 <#assign ficheiro = ficheiro?eval />
233 <#assign ficheirosArray += ["/c/document_library/get_file?uuid=" + ficheiro.uuid + "&groupId=" + ficheiro.groupId + "|" + ficheiro.title] />
234 </#if>
235 </#if>
236
237 <#if "imagemEvento" == il.attributeValue("name")>
238 <#assign imagem = il.element("dynamic-content").getData()?eval />
239 <#assign imagensArray += [imagem] />
240 </#if>
241
242 <#if "entidadeOrganizadora" == il.attributeValue("name")>
243 <#assign entidadeOrganizadora = il.element("dynamic-content").getData() />
244 </#if>
245
246 <#if "telefone" == il.attributeValue("name")>
247 <#if il.element("dynamic-content").getData()?has_content>
248 <#assign telefonesArray += [il.element("dynamic-content").getData()] />
249 </#if>
250 </#if>
251
252 <#if "email" == il.attributeValue("name")>
253 <#if il.element("dynamic-content").getData()?has_content>
254 <#assign emailsArray += [il.element("dynamic-content").getData()] />
255 </#if>
256 </#if>
257
258
259
260 <#if "site" == il.attributeValue("name")>
261 <#if il.element("dynamic-content").getData()?has_content>
262 <#assign sitesArray += [il.element("dynamic-content").getData()] />
263 </#if>
264 </#if>
265
266 <#if "redesocial" == il.attributeValue("name")>
267 <#assign redeSocial = il.element("dynamic-content").getData() />
268 <#if redeSocial?has_content>
269 <#assign redesSociaisArray += [redeSocial]/>
270 </#if>
271 </#if>
272
273 <#if "dataInicioDoEvento" == il.attributeValue("name")>
274 <#if il.element("dynamic-content").getData()?has_content>
275 <#assign dataInicioDoEventoTemp = il.element("dynamic-content").getData() />
276 <#assign sessaoString += dataInicioDoEventoTemp?split("-")[2] + "/"+ dataInicioDoEventoTemp?split("-")[1] + "/" + dataInicioDoEventoTemp?split("-")[0] + "||" />
277 <#else>
278 <#assign sessaoString += "N/A||" />
279 </#if>
280
281 </#if>
282
283 <#if "horaInicio" == il.attributeValue("name")>
284 <#if il.element("dynamic-content").getData()?has_content>
285 <#assign sessaoString += il.element("dynamic-content").getData() + "||" />
286 <#else>
287 <#assign sessaoString += "N/A||" />
288 </#if>
289 </#if>
290
291 <#if "dataFimDoEvento" == il.attributeValue("name")>
292 <#if il.element("dynamic-content").getData()?has_content>
293 <#assign dataFimDoEventoTemp = il.element("dynamic-content").getData() />
294 <#assign sessaoString += dataFimDoEventoTemp?split("-")[2] + "/"+ dataFimDoEventoTemp?split("-")[1] + "/" + dataFimDoEventoTemp?split("-")[0] + "||" />
295 <#else>
296 <#assign sessaoString += "N/A||" />
297 </#if>
298 </#if>
299
300 <#if "horaFim" == il.attributeValue("name")>
301 <#if il.element("dynamic-content").getData()?has_content>
302 <#assign sessaoString += il.element("dynamic-content").getData() + "||" />
303 <#else>
304 <#assign sessaoString += "N/A||" />
305 </#if>
306 </#if>
307
308 <#if "localizacao" == il.attributeValue("name")>
309 <#if il.element("dynamic-content").getData()?has_content>
310 <#assign sessaoString += il.element("dynamic-content").getData() + "@@" />
311 <#else>
312 <#assign sessaoString += "N/A@@" />
313 </#if>
314 </#if>
315
316
317
318 </#if>
319 </#list>
320</#list>
321
322
323<div class="container-fluid">
324
325 <div class="container">
326
327 <div class="row">
328 <div class="col-12">
329 <nav class="breadcrumb-nav">
330 <ul class="breadcrumb-ul list-unstyled list-inline">
331 <li class="breadcrumb-element list-inline-item"><a href="/"><i class="fa fa-home"></i></a></li>
332 <li class="breadcrumb-element list-inline-item"><a href="/campanhas-a-decorrer">Campanhas</a></li>
333 <li class="breadcrumb-element list-inline-item active">${titulo}</li>
334 </ul>
335 </nav>
336 </div>
337 <div class="col-md-8">
338
339 <section id="event">
340
341 <div class="row conteudo">
342 <div class="col-md-12">
343 <h1>${titulo}</h1>
344 <h2>${subtitulo}</h2>
345 <h4>${entidadeOrganizadora}</h4>
346 <div class="data-criacao clearfix">
347 <div class="float-left">
348 <span><i class="fas fa-clock"></i>${data} <span
349 class="laranja">${hora}</span></span>
350 </div>
351 <div class="float-left">
352
353 <#list sessaoString?remove_ending("@@")?split("@@") as evento>
354 <p>
355 <#if evento??>
356 <#assign eventoSplitted = evento?split("||") />
357 <#if eventoSplitted?size gte 1 && !eventoSplitted[0]?contains("N/A")>${eventoSplitted[0]}</#if>
358 <#if eventoSplitted?size gte 2 && !eventoSplitted[1]?contains("N/A")><span class="laranja">${eventoSplitted[1]}</span></#if>
359 <#if eventoSplitted?size gte 3 && !eventoSplitted[2]?contains("N/A")>- ${eventoSplitted[2]}</#if>
360 <#if eventoSplitted?size gte 4 && !eventoSplitted[3]?contains("N/A")><span class="laranja">${eventoSplitted[3]}</span></#if>
361 <#if eventoSplitted?size == 5 && !eventoSplitted[4]?contains("N/A")>- ${eventoSplitted[4]}</#if>
362 </#if>
363 </p>
364
365 </#list>
366 </div>
367 </div>
368 </div>
369 </div>
370 <div class="row">
371 <div class="image-center">
372 <div id="carouselIndicators" class="carousel slide"
373 data-ride="carousel">
374 <ol class="carousel-indicators">
375 <#list imagensArray as item>
376 <#if item?is_first>
377 <li data-target="#carouselIndicators" data-slide-to="${item?index}"
378 class="active"></li>
379 <#else>
380 <li data-target="#carouselIndicators"
381 data-slide-to="${item?index}"></li>
382 </#if>
383 </#list>
384 </ol>
385 <div class="carousel-inner">
386 <#list imagensArray as item>
387 <#if item?is_first>
388 <div class="carousel-item active">
389 <#else>
390 <div class="carousel-item">
391 </#if>
392 <#assign imagemFileEntry = dlAppServiceUtil.getFileEntry(item.fileEntryId?number) />
393 <#if !shareImgFileEntry??>
394 <#assign shareImgFileEntry = imagemFileEntry />
395 </#if>
396 <@adaptive_media_image["img"] class="d-block w-100 container-image img-responsive" fileVersion=imagemFileEntry.getFileVersion() alt="${item.alt}"/>
397 </div>
398 </#list>
399 </div>
400
401 <a class="carousel-control-prev" href="#carouselIndicators" role="button"
402 data-slide="prev">
403 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
404 <span class="sr-only">Previous</span>
405 </a>
406 <a class="carousel-control-next" href="#carouselIndicators" role="button"
407 data-slide="next">
408 <span class="carousel-control-next-icon" aria-hidden="true"></span>
409 <span class="sr-only">Next</span>
410 </a>
411 </div>
412 </div>
413
414 </div>
415
416 <div class="row">
417 <div class="col-12">
418 <div class="corpoDoTexto">
419 ${corpoDoTexto}
420 </div>
421 </div>
422 </div>
423 <#if ficheirosArray?has_content>
424
425 <div class="row conteudo">
426 <div class="col-12">
427 <h3>Mais Informações</h3>
428 </div>
429 <div class="col-12">
430 <ul>
431 <#list ficheirosArray as item>
432 <li><a class="verde" target="_blank"
433 href="${item?split("|")?first}">${item?split("|")?last}</a>
434 </li>
435 </#list>
436 </ul>
437 </div>
438 </div>
439
440 </#if>
441
442 <#if telefonesArray?has_content || emailsArray?has_content || sitesArray?has_content || redesSociaisArray?has_content>
443 <div class="conteudo">
444
445 <h3>Contatos</h3>
446
447
448 <#if telefonesArray?has_content>
449 <div class="info-contato">
450 <div class="row">
451 <div class="col-md-2">
452 <b>Telefone</b>
453 </div>
454 <div class="col-md-10">
455 <#list telefonesArray as item>
456 <p>${item}</p>
457 </#list>
458 </div>
459 </div>
460 </div>
461 </#if>
462
463 <#if emailsArray?has_content>
464 <div class="info-contato">
465 <div class="row">
466 <div class="col-md-2">
467 <b>Email</b>
468 </div>
469 <div class="col-md-10">
470 <#list emailsArray as item>
471 <p>${item}</p>
472 </#list>
473 </div>
474 </div>
475 </div>
476 </#if>
477
478 <#if sitesArray?has_content>
479 <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
480 <#assign baseURL = portalUtil.getPortalURL(request) />
481 <div class="info-contato">
482 <div class="row">
483 <div class="col-md-2">
484 <b>Site</b>
485 </div>
486 <div class="col-md-10">
487
488 <#list sitesArray as item>
489 <p><a class="laranja" href="${item}" target="${item?starts_with(baseURL)?then('_self', '_blank')}" >${item}</a></p>
490 </#list>
491 </div>
492 </div>
493 </div>
494 </#if>
495
496 <#if redesSociaisArray?has_content>
497 <div class="info-contato">
498 <div class="row">
499 <div class="col-md-2">
500 <b>Redes Sociais</b>
501 </div>
502 <div class="col-md-10">
503 <#list redesSociaisArray as item>
504 <#if item?contains("linked")>
505 <a href="${item}" target="_blank"><i
506 class="fab fa-linkedin fa-2x"></i></a>
507 </#if>
508 <#if item?contains("facebook")>
509 <a href="${item}" target="_blank"><i
510 class="fab fa-facebook-square fa-2x"></i></a>
511 </#if>
512 <#if item?contains("insta")>
513 <a href="${item}"><i
514 class="fab fa-instagram fa-2x"></i></a>
515 </#if>
516 <#if item?contains("twitter")>
517 <a href="${item}" target="_blank"><i
518 class="fab fa-twitter fa-2x"></i></a>
519 </#if>
520 <#if item?contains("youtube")>
521 <a href="${item}" target="_blank"><i
522 class="fab fa-youtube fa-2x"></i></a>
523 </#if>
524 </#list>
525 </div>
526 </div>
527 </div>
528 </#if>
529
530 </#if>
531
532 <div class="col-12 text-right">
533 <p style="color:#9e9797">Atualizado
534 em: ${ article.getModifiedDate()?string["dd/MM/yyyy"]}</p>
535 </div>
536
537 <div class="a2a_kit a2a_kit_size_32 a2a_default_style"
538 data-a2a-icon-color = "transparent, black">
539 <a class="a2a_button_facebook"></a>
540 <a class="a2a_button_twitter"></a>
541 <a class="a2a_button_whatsapp"></a>
542 <a class="a2a_button_facebook_messenger"></a>
543 <a class="a2a_button_email"></a>
544 <a class="a2a_button_copy_link"></a>
545 <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
546 </div>
547
548 <#if assetEntry.getTags()?has_content>
549 <#assign tags = [] />
550 <div class="col-12 mt-4">
551 <#list assetEntry.getTags() as tag>
552 <#assign tags += [tag.name] />
553 <a href="/pesquisa?q=${tag.name}" class="badge badge-pill badge-silver p-2">${tag.name}</a>
554 </#list>
555 </div>
556 </#if>
557
558 <@liferay_util["html-top"]>
559 <script crossorigin="anonymous" src="https://kit.fontawesome.com/9f47eedf41.js"></script>
560 <script src="https://static.addtoany.com/menu/page.js"></script>
561 <meta property="og:title" content="${titulo}" />
562 <meta property="og:description" content="${subtitulo}" />
563 <meta property="og:type" content="article" />
564 <meta property="og:locale" content="${locale}" />
565 <meta property="og:site_name" content="${company.getName()}" />
566 <meta property="og:url" content="${themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()}">
567 <#if tagsArray?has_content>
568 <meta property="article:tag" content="${tags?join(",")}" />
569 </#if>
570
571 <#if shareImgFileEntry??>
572 <meta property="og:image" itemprop="image" content="${themeDisplay.getURLPortal()}/o/adaptive-media/image/${shareImgFileEntry.getFileEntryId()}/thumbnail-600x0/${shareImgFileEntry.getFileName()}" />
573 </#if>
574 </@>
575 </div>
576
577
578 </section>
579 </div>
580
581 <div class="col-md-4">
582 <#if currentArticleRelatedLinks?has_content>
583 <aside id="relatedEvents">
584 <div class="container-fluid">
585 <div class="container">
586 <h2>Outros Eventos</h2>
587 <div class="row">
588 <#list currentArticleRelatedLinks as related>
589 <#assign assertRelated = assetEntryService.getEntry(related.getEntryId2()) />
590 <#assign assetRendererRelated = assertRelated.getAssetRenderer() />
591 <#assign articleRelated = assetRendererRelated.getArticle() />
592 <#assign documentRelated = saxReaderUtil.read(articleRelated.getContent()) />
593 <#assign rootElementRelated = documentRelated.getRootElement() />
594 <#assign assetRelatedUrlTitle = articleRelated.getUrlTitle(locale) />
595
596 <#assign imagensArrayRelated = []>
597 <#assign imagemURLRelated = "" />
598 <#assign tituloRelated = "" />
599 <#assign subtituloRelated = "" />
600
601 <#list rootElementRelated.elements() as el>
602 <#list el.elements() as il>
603 <#if "imagemEvento" == il.attributeValue("name") && il.element("dynamic-content").getData()?has_content>
604 <#assign imagemURLRelated = il.element("dynamic-content").getData()?eval />
605 <#assign imagensArrayRelated += [imagemURLRelated] />
606 </#if>
607
608 <#if "titulo" == il.attributeValue("name")>
609 <#assign tituloRelated = il.element("dynamic-content").getData() />
610 </#if>
611
612 <#if "subtitulo" == il.attributeValue("name")>
613 <#assign subtituloRelated = il.element("dynamic-content").getData() />
614
615 </#if>
616
617 </#list>
618 </#list>
619
620 <div class="col-md-12">
621 <div class="card"
622 style="background-color: white;">
623 <#if imagemURLRelated?has_content>
624 <@adaptive_media_image["img"] class="card-img-top" fileVersion=dlAppServiceUtil.getFileEntry(imagemURLRelated.fileEntryId?number).getFileVersion() alt="${imagemURLRelated.alt}"/>
625 </#if>
626 <div class="card-body" style="color: #3B3B3B">
627 <p class="card-text card-text-title laranja"> ${tituloRelated}</p>
628 <br/>
629 <p class="card-text card-text-subtitle"> ${subtituloRelated}</p>
630 <a href="/evento?titulo=${assetRelatedUrlTitle}"
631 class="stretched-link"></a>
632
633 <div class="a2a_kit a2a_kit_size_32 a2a_default_style"
634 data-a2a-icon-color = "transparent, black"
635 data-url="${currentUrl}/evento?titulo=${assetRelatedUrlTitle}">
636 <a class="a2a_button_facebook"></a>
637 <a class="a2a_button_twitter"></a>
638 <a class="a2a_button_whatsapp"></a>
639 <a class="a2a_button_facebook_messenger"></a>
640 <a class="a2a_button_email"></a>
641 <a class="a2a_button_copy_link"></a>
642 <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
643 </div>
644 </div>
645 </div>
646 </div>
647 </#list>
648 </div>
649 </div>
650 </div>
651 </aside>
652 </#if>
653 </div>
654 </div>
655 </div>
656
657</div>
SUBSCREVER NEWSLETTER
Newsletter subscrito com sucesso Não foi subscrever o Newsletter. Por favor tente mais tardeUtilizamos cookies no nosso site para lhe proporcionar a melhor experiência. Ao continuar a navegar, está a autorizar a nossa utilização destes cookies. No entanto, se pretender saber mais informações, nomeadamente como alterar as suas definições, consulte a nossa Politica.