concurso
Ocorreu um erro ao processar o template.
The following has evaluated to null or missing: ==> journalArticleService.fetchArticleByUrlTitle(groupId, urlTitle?url('UTF-8')) [in template "61028#61055#90525" 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#90525" 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<#assign maisInformacoesArray = [] >
186<#assign imagemEvento = "" />
187<#assign imageURL = "" />
188<#assign DataDoEvento = "" />
189<#assign titulo = "" />
190<#assign subtitulo = "" />
191<#assign corpoDoTexto = "" />
192<#assign hora = "" />
193<#assign entidadeOrganizadora = "" />
194<#assign sessaoString = "" />
195<#assign currentUrl = themeDisplay.getPortalURL() />
196
197<#list rootElement.elements() as el>
198 <#list el.elements() as il>
199 <#if il.attributeValue("name")??>
200
201 <#if "DataDoEvento" == il.attributeValue("name")>
202 <#assign DataDoEvento = il.element("dynamic-content").getData() />
203 </#if>
204
205 <#if "Hora" == il.attributeValue("name")>
206 <#assign hora = il.element("dynamic-content").getData() />
207 </#if>
208
209 <#if "titulo" == il.attributeValue("name")>
210 <#assign titulo = il.element("dynamic-content").getData() />
211 </#if>
212
213 <#if "subtitulo" == il.attributeValue("name")>
214 <#assign subtitulo = il.element("dynamic-content").getData() />
215 </#if>
216
217 <#if "corpoDoTexto" == il.attributeValue("name")>
218 <#assign corpoDoTexto = il.element("dynamic-content").getData() />
219 </#if>
220
221 <#if "GeralMaisInformacoes" == il.attributeValue("name")>
222 <#assign ficheiro = il.element("dynamic-content").getData() />
223 <#if ficheiro?has_content>
224 <#assign ficheiro = ficheiro?eval />
225 <#assign ficheirosArray += ["/c/document_library/get_file?uuid=" + ficheiro.uuid + "&groupId=" + ficheiro.groupId + "|" + ficheiro.title] />
226 </#if>
227 </#if>
228
229 <#if "imagemEvento" == il.attributeValue("name")>
230 <#assign imagem = il.element("dynamic-content").getData()?eval />
231 <#assign imagensArray += [imagem] />
232 </#if>
233
234 <#if "entidadeOrganizadora" == il.attributeValue("name")>
235 <#assign entidadeOrganizadora = il.element("dynamic-content").getData() />
236 </#if>
237
238 <#if "telefone" == il.attributeValue("name")>
239 <#if il.element("dynamic-content").getData()?has_content>
240 <#assign telefonesArray += [il.element("dynamic-content").getData()] />
241 </#if>
242 </#if>
243
244 <#if "email" == il.attributeValue("name")>
245 <#if il.element("dynamic-content").getData()?has_content>
246 <#assign emailsArray += [il.element("dynamic-content").getData()] />
247 </#if>
248 </#if>
249
250
251
252 <#if "site" == il.attributeValue("name")>
253 <#if il.element("dynamic-content").getData()?has_content>
254 <#assign sitesArray += [il.element("dynamic-content").getData()] />
255 </#if>
256 </#if>
257
258 <#if "redesocial" == il.attributeValue("name")>
259 <#assign redeSocial = il.element("dynamic-content").getData() />
260 <#if redeSocial?has_content>
261 <#assign redesSociaisArray += [redeSocial]/>
262 </#if>
263 </#if>
264
265 <#if "dataInicioDoEvento" == il.attributeValue("name")>
266 <#if il.element("dynamic-content").getData()?has_content>
267 <#assign dataInicioDoEventoTemp = il.element("dynamic-content").getData() />
268 <#assign sessaoString += dataInicioDoEventoTemp?split("-")[2] + "/"+ dataInicioDoEventoTemp?split("-")[1] + "/" + dataInicioDoEventoTemp?split("-")[0] + "||" />
269 <#else>
270 <#assign sessaoString += "N/A||" />
271 </#if>
272
273 </#if>
274
275 <#if "horaInicio" == il.attributeValue("name")>
276 <#if il.element("dynamic-content").getData()?has_content>
277 <#assign sessaoString += il.element("dynamic-content").getData() + "||" />
278 <#else>
279 <#assign sessaoString += "N/A||" />
280 </#if>
281 </#if>
282
283 <#if "dataFimDoEvento" == il.attributeValue("name")>
284 <#if il.element("dynamic-content").getData()?has_content>
285 <#assign dataFimDoEventoTemp = il.element("dynamic-content").getData() />
286 <#assign sessaoString += dataFimDoEventoTemp?split("-")[2] + "/"+ dataFimDoEventoTemp?split("-")[1] + "/" + dataFimDoEventoTemp?split("-")[0] + "||" />
287 <#else>
288 <#assign sessaoString += "N/A||" />
289 </#if>
290 </#if>
291
292 <#if "horaFim" == il.attributeValue("name")>
293 <#if il.element("dynamic-content").getData()?has_content>
294 <#assign sessaoString += il.element("dynamic-content").getData() + "||" />
295 <#else>
296 <#assign sessaoString += "N/A||" />
297 </#if>
298 </#if>
299
300 <#if "localizacao" == 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
309
310 </#if>
311 </#list>
312</#list>
313
314
315<div class="container-fluid">
316
317 <div class="container">
318
319 <div class="row">
320 <div class="col-12">
321 <nav class="breadcrumb-nav">
322 <ul class="breadcrumb-ul list-unstyled list-inline">
323 <li class="breadcrumb-element list-inline-item"><a href="/"><i class="fa fa-home"></i></a></li>
324 <li class="breadcrumb-element list-inline-item"><a href="/concursos-a-decorrer">Concursos</a></li>
325 <li class="breadcrumb-element list-inline-item active">${titulo}</li>
326 </ul>
327 </nav>
328 </div>
329 <div class="col-md-8">
330
331 <section id="event">
332
333 <div class="row conteudo">
334 <div class="col-md-12">
335 <h1>${titulo}</h1>
336 <h2>${subtitulo}</h2>
337 <h4>${entidadeOrganizadora}</h4>
338 <div class="data-criacao clearfix">
339 <div class="float-left">
340 <span><i class="fas fa-clock"></i>${DataDoEvento} <span
341 class="laranja">${hora}</span></span>
342 </div>
343 <div class="float-left">
344
345 <#list sessaoString?remove_ending("@@")?split("@@") as evento>
346 <p>
347 <#if evento??>
348 <#assign eventoSplitted = evento?split("||") />
349 <#if eventoSplitted?size gte 1 && !eventoSplitted[0]?contains("N/A")>${eventoSplitted[0]}</#if>
350 <#if eventoSplitted?size gte 2 && !eventoSplitted[1]?contains("N/A")><span class="laranja">${eventoSplitted[1]}</span></#if>
351 <#if eventoSplitted?size gte 3 && !eventoSplitted[2]?contains("N/A")>- ${eventoSplitted[2]}</#if>
352 <#if eventoSplitted?size gte 4 && !eventoSplitted[3]?contains("N/A")><span class="laranja">${eventoSplitted[3]}</span></#if>
353 <#if eventoSplitted?size == 5 && !eventoSplitted[4]?contains("N/A")>- ${eventoSplitted[4]}</#if>
354 </#if>
355 </p>
356
357 </#list>
358 </div>
359 </div>
360 </div>
361 </div>
362 <div class="row">
363 <div class="image-center">
364 <div id="carouselIndicators" class="carousel slide"
365 data-ride="carousel">
366 <ol class="carousel-indicators">
367 <#list imagensArray as item>
368 <#if item?is_first>
369 <li data-target="#carouselIndicators" data-slide-to="${item?index}"
370 class="active"></li>
371 <#else>
372 <li data-target="#carouselIndicators"
373 data-slide-to="${item?index}"></li>
374 </#if>
375 </#list>
376 </ol>
377 <div class="carousel-inner">
378 <#list imagensArray as item>
379 <#if item?is_first>
380 <div class="carousel-item active">
381 <#else>
382 <div class="carousel-item">
383 </#if>
384 <#assign imagemFileEntry = dlAppServiceUtil.getFileEntry(item.fileEntryId?number) />
385 <#if !shareImgFileEntry??>
386 <#assign shareImgFileEntry = imagemFileEntry />
387 </#if>
388 <@adaptive_media_image["img"] class="d-block w-100 container-image img-responsive" fileVersion=imagemFileEntry.getFileVersion() alt="${item.alt}"/>
389 </div>
390 </#list>
391 </div>
392
393 <a class="carousel-control-prev" href="#carouselIndicators" role="button"
394 data-slide="prev">
395 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
396 <span class="sr-only">Previous</span>
397 </a>
398 <a class="carousel-control-next" href="#carouselIndicators" role="button"
399 data-slide="next">
400 <span class="carousel-control-next-icon" aria-hidden="true"></span>
401 <span class="sr-only">Next</span>
402 </a>
403 </div>
404 </div>
405
406 </div>
407
408 <div class="row">
409 <div class="col-12">
410 <div class="corpoDoTexto">
411 ${corpoDoTexto}
412 </div>
413 </div>
414 </div>
415 <#if ficheirosArray?has_content>
416
417 <div class="row conteudo">
418 <div class="col-12">
419 <h3>Mais Informações</h3>
420 </div>
421 <div class="col-12">
422 <ul>
423 <#list ficheirosArray as item>
424 <li><a class="laranja" target="_blank"
425 href="${item?split("|")?first}">${item?split("|")?last}</a>
426 </li>
427 </#list>
428 </ul>
429 </div>
430 </div>
431
432 </#if>
433
434 <#if telefonesArray?has_content || emailsArray?has_content || sitesArray?has_content || redesSociaisArray?has_content>
435 <div class="conteudo">
436
437 <h3>Contatos</h3>
438
439
440 <#if telefonesArray?has_content>
441 <div class="info-contato">
442 <div class="row">
443 <div class="col-md-2">
444 <b>Telefone</b>
445 </div>
446 <div class="col-md-10">
447 <#list telefonesArray as item>
448 <p>${item}</p>
449 </#list>
450 </div>
451 </div>
452 </div>
453 </#if>
454
455 <#if emailsArray?has_content>
456 <div class="info-contato">
457 <div class="row">
458 <div class="col-md-2">
459 <b>Email</b>
460 </div>
461 <div class="col-md-10">
462 <#list emailsArray as item>
463 <p>${item}</p>
464 </#list>
465 </div>
466 </div>
467 </div>
468 </#if>
469
470 <#if sitesArray?has_content>
471 <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
472 <#assign baseURL = portalUtil.getPortalURL(request) />
473 <div class="info-contato">
474 <div class="row">
475 <div class="col-md-2">
476 <b>Site</b>
477 </div>
478 <div class="col-md-10">
479
480 <#list sitesArray as item>
481 <p><a class="laranja" href="${item}" target="${item?starts_with(baseURL)?then('_self', '_blank')}" >${item}</a></p>
482 </#list>
483 </div>
484 </div>
485 </div>
486 </#if>
487
488 <#if redesSociaisArray?has_content>
489 <div class="info-contato">
490 <div class="row">
491 <div class="col-md-2">
492 <b>Redes Sociais</b>
493 </div>
494 <div class="col-md-10">
495 <#list redesSociaisArray as item>
496 <#if item?contains("linked")>
497 <a href="${item}" target="_blank"><i
498 class="fab fa-linkedin fa-2x"></i></a>
499 </#if>
500 <#if item?contains("facebook")>
501 <a href="${item}" target="_blank"><i
502 class="fab fa-facebook-square fa-2x"></i></a>
503 </#if>
504 <#if item?contains("insta")>
505 <a href="${item}"><i
506 class="fab fa-instagram fa-2x"></i></a>
507 </#if>
508 <#if item?contains("twitter")>
509 <a href="${item}" target="_blank"><i
510 class="fab fa-twitter fa-2x"></i></a>
511 </#if>
512 <#if item?contains("youtube")>
513 <a href="${item}" target="_blank"><i
514 class="fab fa-youtube fa-2x"></i></a>
515 </#if>
516 </#list>
517 </div>
518 </div>
519 </div>
520 </#if>
521
522 </#if>
523
524 <div class="col-12 text-right">
525 <p style="color:#9e9797">Atualizado
526 em: ${ article.getModifiedDate()?string["dd/MM/yyyy"]}</p>
527 </div>
528
529 <div class="a2a_kit a2a_kit_size_32 a2a_default_style"
530 data-a2a-icon-color = "transparent, black">
531 <a class="a2a_button_facebook"></a>
532 <a class="a2a_button_twitter"></a>
533 <a class="a2a_button_whatsapp"></a>
534 <a class="a2a_button_facebook_messenger"></a>
535 <a class="a2a_button_email"></a>
536 <a class="a2a_button_copy_link"></a>
537 <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
538 </div>
539
540 <#if assetEntry.getTags()?has_content>
541 <#assign tags = [] />
542 <div class="col-12 mt-4">
543 <#list assetEntry.getTags() as tag>
544 <#assign tags += [tag.name] />
545 <a href="/pesquisa?q=${tag.name}" class="badge badge-pill badge-silver p-2">${tag.name}</a>
546 </#list>
547 </div>
548 </#if>
549
550 <@liferay_util["html-top"]>
551 <script crossorigin="anonymous" src="https://kit.fontawesome.com/9f47eedf41.js"></script>
552 <script src="https://static.addtoany.com/menu/page.js"></script>
553 <meta property="og:title" content="${titulo}" />
554 <meta property="og:description" content="${subtitulo}" />
555 <meta property="og:type" content="article" />
556 <meta property="og:locale" content="${locale}" />
557 <meta property="og:site_name" content="${company.getName()}" />
558 <meta property="og:url" content="${themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()}">
559 <#if tagsArray?has_content>
560 <meta property="article:tag" content="${tags?join(",")}" />
561 </#if>
562
563 <#if shareImgFileEntry??>
564 <meta property="og:image" itemprop="image" content="${themeDisplay.getURLPortal()}/o/adaptive-media/image/${shareImgFileEntry.getFileEntryId()}/thumbnail-600x0/${shareImgFileEntry.getFileName()}" />
565 </#if>
566 </@>
567 </div>
568
569
570 </section>
571 </div>
572
573 <div class="col-md-4">
574 <#if currentArticleRelatedLinks?has_content>
575 <aside id="relatedEvents">
576 <div class="container-fluid">
577 <div class="container">
578 <h2>Outros Eventos</h2>
579 <div class="row">
580 <#list currentArticleRelatedLinks as related>
581 <#assign assertRelated = assetEntryService.getEntry(related.getEntryId2()) />
582 <#assign assetRendererRelated = assertRelated.getAssetRenderer() />
583 <#assign articleRelated = assetRendererRelated.getArticle() />
584 <#assign documentRelated = saxReaderUtil.read(articleRelated.getContent()) />
585 <#assign rootElementRelated = documentRelated.getRootElement() />
586 <#assign assetRelatedUrlTitle = articleRelated.getUrlTitle(locale) />
587
588 <#assign imagensArrayRelated = []>
589 <#assign imagemURLRelated = "" />
590 <#assign tituloRelated = "" />
591 <#assign subtituloRelated = "" />
592
593 <#list rootElementRelated.elements() as el>
594 <#list el.elements() as il>
595 <#if "imagemEvento" == il.attributeValue("name") && il.element("dynamic-content").getData()?has_content>
596 <#assign imagemURLRelated = il.element("dynamic-content").getData()?eval />
597 <#assign imagensArrayRelated += [imagemURLRelated] />
598 </#if>
599
600 <#if "titulo" == il.attributeValue("name")>
601 <#assign tituloRelated = il.element("dynamic-content").getData() />
602 </#if>
603
604 <#if "subtitulo" == il.attributeValue("name")>
605 <#assign subtituloRelated = il.element("dynamic-content").getData() />
606
607 </#if>
608
609 </#list>
610 </#list>
611
612 <div class="col-md-12">
613 <div class="card"
614 style="background-color: white;">
615 <#if imagemURLRelated?has_content>
616 <@adaptive_media_image["img"] class="card-img-top" fileVersion=dlAppServiceUtil.getFileEntry(imagemURLRelated.fileEntryId?number).getFileVersion() alt="${imagemURLRelated.alt}"/>
617 </#if>
618 <div class="card-body" style="color: #3B3B3B">
619 <p class="card-text card-text-title laranja"> ${tituloRelated}</p>
620 <br/>
621 <p class="card-text card-text-subtitle"> ${subtituloRelated}</p>
622 <a href="/evento?titulo=${assetRelatedUrlTitle}"
623 class="stretched-link"></a>
624
625 <div class="a2a_kit a2a_kit_size_32 a2a_default_style"
626 data-a2a-icon-color = "transparent, black"
627 data-url="${currentUrl}/evento?titulo=${assetRelatedUrlTitle}">
628 <a class="a2a_button_facebook"></a>
629 <a class="a2a_button_twitter"></a>
630 <a class="a2a_button_whatsapp"></a>
631 <a class="a2a_button_facebook_messenger"></a>
632 <a class="a2a_button_email"></a>
633 <a class="a2a_button_copy_link"></a>
634 <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
635 </div>
636 </div>
637 </div>
638 </div>
639 </#list>
640 </div>
641 </div>
642 </div>
643 </aside>
644 </#if>
645 </div>
646 </div>
647 </div>
648
649</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.