Ocorreu um erro no processamento do modelo.
The following has evaluated to null or missing: ==> Separador [in template "254#294#60418" at line 154, column 22] ---- 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 Separador.getSiblings()?has_content [in template "254#294#60418" at line 154, column 17] ----
1<#-- Configuration Variables -->
2<#assign displayTags = false> <#-- Possible values are: true false -->
3<#-- Template -->
4
5<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <!-- Usado por causa das tabs -->
6
7<style>
8 /* bootstrap hack: fix content width inside hidden tabs */
9 #${randomNamespace}Tabbable .tab-content > .tab-pane, .pill-content > .pill-pane {
10 display: block; /* undo display:none */
11 height: 0; /* height:0 is also invisible */
12 overflow: hidden; /* no-overflow */
13 }
14 #${randomNamespace}Tabbable .tab-content > .active, .pill-content > .active {
15 height: auto; /* let the content decide it */
16 } /* bootstrap hack end */
17</style>
18
19<style>
20 .tabbable .tab-content.${randomNamespace}showOverflow {
21 overflow: visible;
22 }
23
24 .tabbable li a.${randomNamespace}tabText {
25 font-family: "Roboto", sans-serif;
26 font-size: 1rem;
27 }
28</style>
29<#-- Customization | not needed for generic tabbable -->
30<#assign articleTitle = .vars['reserved-article-title'].data>
31<#assign articleID = .vars['reserved-article-id'].data>
32<#assign articleVersion = .vars['reserved-article-version'].data>
33
34
35<div class="hide">
36 <h1> Acessibilidade </h1>
37 <a href="#titulo"></a>
38</div>
39
40<div class="container-medium inside">
41 <article class="article">
42 <header class="article-header">
43 <h2 id="titulo" class="title">${articleTitle}</h2>
44 <#if themeDisplay??>
45 <#assign themeDisplay = themeDisplay >
46 <#assign layout = themeDisplay.getPlid() >
47 <#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") >
48 <#assign layoutObject = layoutService.getLayout(layout?number) >
49
50 <#assign portalURL = themeDisplay.getPortalURL() />
51 <#assign mainPath = layoutObject.getFriendlyURL(locale) >
52 <#assign currentBaseURL = portalURL + themeDisplay.getPathFriendlyURLPublic() + layoutObject.getGroup().getFriendlyURL() + mainPath>
53
54 <#assign shareURL = currentBaseURL>
55 <#assign currentURL = themeDisplay.getURLPortal()+themeDisplay.getURLCurrent() >
56 <#if currentURL?contains("/-/journal_content/")>
57 <#if currentURL?contains("?")>
58 <#assign shareURL = portalURL + currentURL?split("?")[0]>
59 <#else>
60 <#assign shareURL = portalURL + currentURL>
61 </#if>
62 </#if>
63
64 <div class="actions">
65 <a href="javascript:${randomNamespace}printPage();" class="print">Imprimir <div class="fa fa-print" aria-hidden="true"></div></a>
66 <#if themeDisplay??>
67 <#assign portletPreferencesService = serviceLocator.findService("com.liferay.portal.kernel.service.PortletPreferencesLocalService") >
68 <#assign portletPreferencesInLayout = portletPreferencesService.getPortletPreferencesByPlid(layout?number)>
69 <#assign portletInstanceId = "56_INSTANCE_0000">
70 <#list portletPreferencesInLayout as curPortletPreferences>
71 <#if curPortletPreferences.getPortletId()?starts_with("56")>
72 <#assign preferencesXML = saxReaderUtil.read(curPortletPreferences.getPreferences())>
73 <#if preferencesXML.selectSingleNode("/portlet-preferences/preference[name[text()=\"articleId\"]]/value")??>
74 <#assign XMLnode = preferencesXML.selectSingleNode("/portlet-preferences/preference[name[text()=\"articleId\"]]/value")>
75 <#if XMLnode.getText() == articleID>
76 <#assign portletInstanceId = curPortletPreferences.getPortletId()>
77 <#break>
78 </#if>
79 </#if>
80 </#if>
81 </#list>
82 <script>
83 function ${randomNamespace}printPage() {
84 if(window.location.href.indexOf("viewMode=print")>=0){
85 window.print();
86 }
87 else{
88 window.open('${friendlyURLs[themeDisplay.getLanguageId()]!""}?p_p_state=pop_up&_${portletInstanceId}_page=1&_${portletInstanceId}_viewMode=print', '', "directories=0,height=480,left=80,location=1,menubar=1,resizable=1,scrollbars=yes,status=0,toolbar=0,top=180,width=640");
89 }
90 }
91 </script>
92 </#if>
93 <div class="share-inline">
94 <#assign fbPageURLToShare = "https://www.facebook.com/sharer/sharer.php">
95 <#assign fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "u", shareURL)>
96 <#assign fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "title", articleTitle)>
97 <#assign fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "description", "Infarmed")>
98 <#assign separador1hasImagem = Separador?? && Separador.getSiblings()?has_content && Separador.getSiblings()[0].get("Imagem")?? && Separador.getSiblings()[0].get("Imagem").getSiblings()?has_content && Separador.getSiblings()[0].get("Imagem").getSiblings()[0].getData()?has_content>
99 <#if separador1hasImagem>
100 <#assign fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "picture", portalURL + Separador.getSiblings()[0].get("Imagem").getSiblings()[0].getData())>
101 <#else>
102 <#assign fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "picture", portalURL + "/infarmed-theme/images/infarmed-coloured.png")>
103 </#if>
104 <#assign twitterPageURLToShare = "https://twitter.com/intent/tweet">
105 <#assign twitterPageURLToShare = httpUtil.addParameter(twitterPageURLToShare, "text", articleTitle)>
106 <#assign twitterPageURLToShare = httpUtil.addParameter(twitterPageURLToShare, "url", shareURL)>
107
108 <#assign linkedinPageURLToShare = "https://www.linkedin.com/shareArticle">
109 <#assign linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "mini", true)>
110 <#assign linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "url", shareURL)>
111 <#assign linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "title", articleTitle)>
112 <#assign linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "summary", "Infarmed")>
113
114 <#assign emailToURLToShare = "mailto:?subject=">
115 <#assign emailToURLToShare = emailToURLToShare + urlCodec.encodeURL(articleTitle, true)> <#-- Não seguiu a abordagem anterior porque o encode dos espaços fica com '+' em vez de '%20' -->
116 <#assign emailToURLToShare = emailToURLToShare + "&body=" + urlCodec.encodeURL(shareURL, true)>
117
118 <span class="label-text"><@liferay.language key="share" /></span>
119 <ul>
120 <li><a href="${fbPageURLToShare}" title="Facebook" target="_blank"><div class="fa fa-facebook"></div></a></li>
121 <li><a href="${linkedinPageURLToShare}" title="LinkedIn" target="_blank"><div class="fa fa-linkedin"></div></a></li>
122 <li><a href="${twitterPageURLToShare}" title="Twitter" target="_blank"><div class="fa fa-twitter"></div></a></li>
123 <li><a href="${emailToURLToShare}" title="E-mail"><div class="fa fa-envelope-o"></div></a></li>
124 </ul>
125 </div>
126 </div>
127 </#if>
128 </header>
129 </article>
130</div>
131<#-- End of Customization | not needed for generic tabbable -->
132
133<#assign hasTextoIntro = Texto_intro?? && Texto_intro.getData()?has_content>
134<#assign hasIntroductoryImage = Texto_intro?? && Texto_intro.get("Imagem_introdutória")?? && Texto_intro.get("Imagem_introdutória").getData()?has_content>
135
136<#if hasTextoIntro || hasIntroductoryImage>
137 <div class="article-content"> <#-- class limited to limit the width of the article content-->
138 <div class="cms-editor">
139 <#if hasTextoIntro>
140 ${Texto_intro.getData()}
141 </#if>
142
143 <#if hasIntroductoryImage>
144 <div class="media full">
145 <img src="${Texto_intro.get("Imagem_introdutória").getData()}" style="display:block;" alt="Texto intro">
146 </div>
147 </#if>
148 </div>
149 </div>
150</#if>
151
152<div class="tabbable" id="${randomNamespace}Tabbable"> <!-- Only required for left/right tabs -->
153 <ul class="nav nav-tabs" id="${randomNamespace}TabbedContent">
154 <#if Separador.getSiblings()?has_content>
155 <#list Separador.getSiblings() as cur_Tab>
156 <#assign active = "">
157 <#if cur_Tab_index==0>
158 <#assign active = "active">
159 </#if>
160 <#assign tabID = "tab" + (cur_Tab_index + 1)>
161 <li class="${active}">
162 <a class="${randomNamespace + "tabText"}" href="#${tabID}" data-toggle="tab">${cur_Tab.getData()}</a>
163 </li>
164 </#list>
165 </#if>
166 </ul>
167
168 <div class="tab-content ${randomNamespace + "showOverflow"}">
169 <#if Separador.getSiblings()?has_content>
170 <#list Separador.getSiblings() as cur_Tab>
171 <#assign active = "">
172 <#if cur_Tab_index==0>
173 <#assign active = "active">
174 </#if>
175 <#assign tabID = "tab" + (cur_Tab_index + 1)>
176 <div class="tab-pane ${active}" id="${tabID}">
177 <@drawTabContent cur_Tab tabID/>
178 </div>
179 </#list>
180 </#if>
181 </div>
182</div>
183
184<script>
185 $( document ).ready(function() {
186 $('#${randomNamespace}TabbedContent a').click(function (e) {
187 /*
188 var tabID = e.target.getAttribute("href");
189 var carouselID = tabID + " .${randomNamespace}ImagemSlider";
190 console.log("carousel id: " + carouselID);
191 var slider = $(carouselID);
192 slider.resize();
193 //slider.slick('setOption', null, null, true);
194 console.log(tabID);
195 */
196 e.preventDefault();
197 //$(this).tab('show');
198 });
199
200 var showTab = window.location.hash.substr(1);
201 if (showTab !== ''){if (showTab !== ''){$('#${randomNamespace}TabbedContent a[href="#' + showTab + '"]').tab('show');}}
202 });
203
204 if (location.hash) {
205 setTimeout(function() {
206 window.scrollTo(0, 0);
207 }, 1);
208 }
209</script>
210
211<script src="https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
212
213
214<#function itemsForSectionX items attributeName section allSections isDefaultSection=false>
215 <#assign returnList = []>
216
217 <#list items as cur_Item>
218 <#if cur_Item.get(attributeName)??>
219 <#assign cur_Item_Seccao = cur_Item.get(attributeName).getData()>
220 <#if section == cur_Item_Seccao>
221 <#assign returnList = returnList + [cur_Item]>
222 <#elseif section == seccaoDefault>
223 <#assign isInAnotherSeccao = false>
224 <#list allSections as cur_Seccao>
225 <#if cur_Seccao == cur_Item_Seccao>
226 <#assign isInAnotherSeccao = true>
227 <#break>
228 </#if>
229 </#list>
230 <#if !isInAnotherSeccao>
231 <#assign returnList = returnList + [cur_Item]>
232 </#if>
233 </#if>
234 <#elseif section == seccaoDefault>
235 <#assign returnList = returnList + [cur_Item]>
236 </#if>
237 </#list>
238
239 <#return returnList>
240</#function>
241
242<#macro drawAnexo anexo>
243 <#assign GetterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"]/>
244 <#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
245 <#if anexo?? && anexo.getData()?has_content && anexo.getData() != "">
246 <#assign docAttrs = anexo.getData()?split("/")>
247 <#assign groupId = docAttrs[2]>
248 <#if docAttrs[5]?index_of("?") != -1>
249 <#assign uuid = docAttrs[5]?substring(0, docAttrs[5]?index_of("?"))>
250 <#else>
251 <#assign uuid = docAttrs[5]>
252 </#if>
253 <#if DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid, GetterUtil.getLong(groupId))??>
254 <#assign entry = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid, GetterUtil.getLong(groupId))>
255 <!-- <#assign anexoName = entry.getTitle()> -->
256 <#assign anexoDesc = entry.getDescription()>
257 <li>
258 <a href="${anexo.getData()}" target="_blank">
259 <#if anexo.get("Nome_a_apresentar")?? && anexo.get("Nome_a_apresentar").getData()?has_content>
260 ${anexo.get("Nome_a_apresentar").getData()}
261 <#else>
262 ${anexoDesc}
263 </#if>
264 </a>
265 </li>
266 </#if>
267 </#if>
268</#macro>
269
270<#macro drawLink link>
271 <#assign cur_Link_URL = link.getData()>
272 <#assign URL_target = "">
273 <#if !cur_Link_URL?starts_with("/") && !cur_Link_URL?contains("infarmed.pt")>
274 <#assign URL_target = "_blank">
275 </#if>
276 <#if !cur_Link_URL?starts_with("/") && !cur_Link_URL?starts_with("http")>
277 <#assign cur_Link_URL = "http://" + cur_Link_URL>
278 </#if>
279
280 <li>
281 <a href="${cur_Link_URL}" target="${URL_target}">${link.get("Nome_do_Link").getData()}</a>
282 </li>
283</#macro>
284
285<#macro drawImage image>
286 <#if image?? && image.getData()?has_content && image.getData() != "">
287 <#assign GetterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"]/>
288 <#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
289 <#assign docAttrs = image.getData()?split("/")>
290 <#assign groupId = docAttrs[2]>
291 <#if docAttrs[5]?index_of("?") != -1>
292 <#assign uuid = docAttrs[5]?substring(0, docAttrs[5]?index_of("?"))>
293 <#else>
294 <#assign uuid = docAttrs[5]>
295 </#if>
296
297 <#if DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid, GetterUtil.getLong(groupId))??>
298 <#assign entry = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid, GetterUtil.getLong(groupId))>
299 <#assign img_description = entry.getDescription()>
300 <#assign img_title = entry.getTitle()>
301 <div class="${randomNamespace}ImagemSlide">
302 <#if image.get("Endereco_associado_a_imagem")?? && image.get("Endereco_associado_a_imagem").getData()?has_content>
303 <#assign image_associated_URL = image.get("Endereco_associado_a_imagem").getData()>
304 <#assign URL_target = "">
305 <#if !image_associated_URL?starts_with("/") && !image_associated_URL?contains("infarmed.pt")>
306 <#assign URL_target = "_blank">
307 </#if>
308 <#if !image_associated_URL?starts_with("/") && !image_associated_URL?starts_with("http")>
309 <#assign image_associated_URL = "http://" + image_associated_URL>
310 </#if>
311 <a href="${image_associated_URL}" target="${URL_target}">
312 </#if>
313
314 <img src="${image.getData()}" alt="${img_description}" title="${img_title}">
315
316 <#if image.get("Endereco_associado_a_imagem")?? && image.get("Endereco_associado_a_imagem").getData()?has_content>
317 </a>
318 </#if>
319 </div>
320 </#if>
321 </#if>
322</#macro>
323
324<#macro drawTags>
325 <#if themeDisplay??>
326 <#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") >
327 <#assign assetEntryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
328 <#assign assetTagService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService")>
329
330 <#assign journalArticleObject = journalArticleService.fetchArticle(scopeGroupId?number, articleID, articleVersion?number)>
331
332 <#assign entryObject = assetEntryService.getEntry("com.liferay.journal.model.JournalArticle", journalArticleObject.getResourcePrimKey())>
333 <#assign articleTags = assetTagService.getAssetEntryAssetTags(entryObject.getEntryId())>
334
335 <#if articleTags?has_content>
336 <section class="section ">
337 <header class="section-header ">
338 <h2 class="title "><@liferay.language key="topics" /></h2>
339 </header>
340 <div class="section-content ">
341 <ul id="${randomNamespace}contentTagsList" class="topic-list contentTagsList" style="max-height:6em; overflow-y:hidden; padding-right: 10px;">
342 <div id="${randomNamespace}tagsCarret" class="hidden tagsCarret fa fa-caret-down fa-2x" aria-hidden="true"></div>
343 <#list articleTags as articleTag>
344 <#assign tagSearchURL = "?p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_3_struts_action=%2Fsearch%2Fsearch&_3_assetTagNames=" + articleTag.getName()>
345 <li><a href="${currentBaseURL}${tagSearchURL}" class="button rounded small">${articleTag.getName()}</a></li>
346 </#list>
347 </ul>
348 </div>
349 </section>
350
351 <script>
352 $(document).ready(function() {
353 var contentTags = $("#${randomNamespace}contentTagsList");
354 var tagsCarrets = $("#${randomNamespace}tagsCarret");
355
356 if(contentTags.overflown()) {
357 tagsCarrets.removeClass("hidden");
358 }
359
360 tagsCarrets.click(function(){
361 if($(this).hasClass('fa-caret-down')){
362 $(this).removeClass('fa-caret-down');
363 $(this).addClass('fa-caret-up');
364 } else{
365 $(this).removeClass('fa-caret-up');
366 $(this).addClass('fa-caret-down');
367 }
368 if(this.parentElement.style.maxHeight == 'none' ){
369 this.parentElement.style.maxHeight = '6em';
370 } else{
371 this.parentElement.style.maxHeight = 'none';
372 }
373 });
374 });
375 </script>
376 </#if>
377 </#if>
378</#macro>
379
380<#macro drawTabContent tab tabID>
381 <#local "Subtitulo" = tab.get("Subtitulo")>
382 <#local "Texto" = tab.get("Texto")>
383 <#local "Anexo" = tab.get("Anexo")>
384 <#local "Imagem" = tab.get("Imagem")>
385 <#local "Video" = tab.get("Video")>
386 <#local "Link" = tab.get("Link")>
387
388
389
390 <#local articleTitle = .vars['reserved-article-title'].data>
391 <#local articleID = .vars['reserved-article-id'].data>
392 <#local articleVersion = .vars['reserved-article-version'].data>
393
394 <#if themeDisplay??>
395 <#local themeDisplay = themeDisplay >
396 <#local layout = themeDisplay.getPlid() >
397 <#local layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") >
398 <#local layoutObject = layoutService.getLayout(layout?number) >
399
400 <#local portalURL = httpUtil.getProtocol(currentURL) + "://" + getterUtil.getString(themeDisplay['portal-url']) >
401 <#local mainPath = layoutObject.getFriendlyURL(locale) >
402 <#local currentBaseURL = portalURL + themeDisplay.getPathFriendlyURLPublic() + layoutObject.getGroup().getFriendlyURL() + mainPath>
403
404 <#local shareURL = currentBaseURL>
405 <#if currentURL?contains("/-/journal_content/")>
406 <#if currentURL?contains("?")>
407 <#local shareURL = portalURL + currentURL?split("?")[0]>
408 <#else>
409 <#local shareURL = portalURL + currentURL>
410 </#if>
411 </#if>
412 </#if>
413
414 <#local hasImagem = Imagem?? && Imagem.getSiblings()?has_content && Imagem.getSiblings()[0].getData()?has_content>
415 <#local hasLink = Link?? && Link.getSiblings()?has_content && Link.getSiblings()[0].getData()?has_content>
416 <#local hasAnexo = Anexo?? && Anexo.getSiblings()?has_content && Anexo.getSiblings()[0].getData()?has_content>
417
418 <#assign seccaoDefault = "Relacionados">
419 <#--
420 <#local seccoes = ["Relacionados", "Legislacao", "PerguntasFrequentes"]>
421 -->
422 <#local seccoes = ["Destaques", "AcessoRapido", "Relacionados", "Legislacao", "PerguntasFrequentes"]>
423
424 <#local LanguageUtil = staticUtil["com.liferay.portal.kernel.language.LanguageUtil"]/>
425 <#local RelacionadosLabel = LanguageUtil.get(locale, 'seccao.relacionados')>
426 <#local DestaquesLabel = LanguageUtil.get(locale, 'seccao.destaques')>
427 <#local LegislacaoLabel = LanguageUtil.get(locale, 'seccao.legislacao')>
428 <#local PerguntasFrequentesLabel = LanguageUtil.get(locale, 'seccao.perguntas.frequentes')>
429 <#local AcessoRapidoLabel = LanguageUtil.get(locale, 'seccao.acesso.rapido')>
430 <#local seccoesLabels = {
431 "Relacionados": RelacionadosLabel,
432 "Destaques": DestaquesLabel,
433 "AcessoRapido": AcessoRapidoLabel,
434 "Legislacao": LegislacaoLabel,
435 "PerguntasFrequentes": PerguntasFrequentesLabel
436 }>
437
438 <#if hasAnexo>
439 <#local "AnexosRelacionados" = itemsForSectionX(Anexo.getSiblings(), "SeccaoAnexo", "Relacionados", seccoes, true)>
440 <#local "AnexosLegislacao" = itemsForSectionX(Anexo.getSiblings(), "SeccaoAnexo", "Legislacao", seccoes, false)>
441 <#local "AnexosPerguntasFrequentes" = itemsForSectionX(Anexo.getSiblings(), "SeccaoAnexo", "PerguntasFrequentes", seccoes, false)>
442 <#local "AnexosDestaques" = itemsForSectionX(Anexo.getSiblings(), "SeccaoAnexo", "Destaques", seccoes, false)>
443 <#local "AnexosAcessoRapido" = itemsForSectionX(Anexo.getSiblings(), "SeccaoAnexo", "AcessoRapido", seccoes, false)>
444 </#if>
445
446 <#if hasLink>
447 <#local "LinksRelacionados" = itemsForSectionX(Link.getSiblings(), "SeccaoLink", "Relacionados", seccoes, true)>
448 <#local "LinksLegislacao" = itemsForSectionX(Link.getSiblings(), "SeccaoLink", "Legislacao", seccoes, false)>
449 <#local "LinksPerguntasFrequentes" = itemsForSectionX(Link.getSiblings(), "SeccaoLink", "PerguntasFrequentes", seccoes, false)>
450 <#local "LinksDestaques" = itemsForSectionX(Link.getSiblings(), "SeccaoLink", "Destaques", seccoes, false)>
451 <#local "LinksAcessoRapido" = itemsForSectionX(Link.getSiblings(), "SeccaoLink", "AcessoRapido", seccoes, false)>
452 </#if>
453
454 <#if hasImagem>
455 <style>
456 #${tabID} .${randomNamespace}ImagemSlider .${randomNamespace}ImagemSlide:not(:first-of-type) {
457 display: none;
458 }
459 #${tabID} .${randomNamespace}ImagemSlider .${randomNamespace}ImagemSlide.initialized{
460 display: block;
461 }
462 #${tabID} .${randomNamespace}ImagemSlider .arrow {
463 background: white;
464 line-height: 60px;
465 position: absolute;
466 top: 55%;
467 color: #3a8ca3;
468 padding: 0;
469 margin: 0;
470 border: 0;
471 width: 52px;
472 z-index: 9;
473 font-size: 2.8em;
474 outline: 0;
475 display: none;
476 }
477 #${tabID} .${randomNamespace}ImagemSlider .arrow.arrow-left {
478 left: 0;
479 border-radius: 0 30px 30px 0;
480 }
481 #${tabID} .${randomNamespace}ImagemSlider .arrow.arrow-right {
482 right: 0;
483 border-radius: 30px 0 0 30px;
484 }
485
486 #${tabID} .${randomNamespace}ImagemSlider .slick-dots {
487 margin-top: 20px;
488 }
489
490 @media screen and (max-width: 660px) {
491 #${tabID} .${randomNamespace}ImagemSlider .arrow {
492 line-height: 40px;
493 top: 64%;
494 width: 40px;
495 font-size: 200%;
496 }
497 }
498 </style>
499
500 <script type="text/javascript">
501 $(document).ready(function(){
502 $('#${tabID} .${randomNamespace}ImagemSlider').slick({
503 accessibility: false,
504 dots: true,
505 arrows: true,
506 prevArrow: '<button type="button" data-role="none" class="arrow arrow-left slick-prev" aria-label="Previous" tabindex="0" role="button"><i class="fa fa-angle-left"></i></button>',
507 nextArrow: '<button type="button" data-role="none" class="arrow arrow-right slick-next" aria-label="Next" tabindex="0" role="button"><i class="fa fa-angle-right"></i></button>',
508 infinite: false,
509 speed: 300,
510 slidesToShow: 1,
511 adaptiveHeight: true,
512 fade: true,
513 });
514 $('#${tabID} .${randomNamespace}ImagemSlide').addClass('initialized');
515 });
516 </script>
517 </#if>
518
519 <div class="container-medium inside">
520 <article class="article">
521 <#--
522 <header class="article-header">
523 <h2 class="title">${articleTitle}</h2>
524 <#if themeDisplay??>
525 <div class="actions">
526 <a href="javascript:${randomNamespace}printPage();" class="print">Imprimir <div class="fa fa-print" aria-hidden="true"></div></a>
527 -->
528 <#if themeDisplay??>
529 <#local portletPreferencesService = serviceLocator.findService("com.liferay.portal.kernel.service.PortletPreferencesLocalService") >
530 <#local portletPreferencesInLayout = portletPreferencesService.getPortletPreferencesByPlid(layout?number)>
531 <#local portletInstanceId = "56_INSTANCE_0000">
532 <#list portletPreferencesInLayout as curPortletPreferences>
533 <#if curPortletPreferences.getPortletId()?starts_with("56")>
534 <#local preferencesXML = saxReaderUtil.read(curPortletPreferences.getPreferences())>
535 <#if preferencesXML.selectSingleNode("/portlet-preferences/preference[name[text()=\"articleId\"]]/value")??>
536 <#local XMLnode = preferencesXML.selectSingleNode("/portlet-preferences/preference[name[text()=\"articleId\"]]/value")>
537 <#if XMLnode.getText() == articleID>
538 <#local portletInstanceId = curPortletPreferences.getPortletId()>
539 <#break>
540 </#if>
541 </#if>
542 </#if>
543 </#list>
544 <script>
545 function ${randomNamespace}printPage() {
546 if(window.location.href.indexOf("viewMode=print")>=0){
547 window.print();
548 }
549 else{
550 window.open('${friendlyURLs[themeDisplay.getLanguageId()]!""}?p_p_state=pop_up&_${portletInstanceId}_page=1&_${portletInstanceId}_viewMode=print', '', "directories=0,height=480,left=80,location=1,menubar=1,resizable=1,scrollbars=yes,status=0,toolbar=0,top=180,width=640");
551 }
552 }
553 </script>
554 </#if>
555 <#--
556 <div class="share-inline">
557 <#local fbPageURLToShare = "https://www.facebook.com/sharer/sharer.php">
558 <#local fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "u", shareURL)>
559 <#local fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "title", articleTitle)>
560 <#local fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "description", "Infarmed")>
561 <#if hasImagem?? && hasImagem>
562 <#local fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "picture", portalURL + Imagem.getSiblings()[0].getData())>
563 <#else>
564 <#local fbPageURLToShare = httpUtil.addParameter(fbPageURLToShare, "picture", portalURL + "/infarmed-theme/images/infarmed-coloured.png")>
565 </#if>
566 <#local twitterPageURLToShare = "https://twitter.com/intent/tweet">
567 <#local twitterPageURLToShare = httpUtil.addParameter(twitterPageURLToShare, "text", articleTitle)>
568 <#local twitterPageURLToShare = httpUtil.addParameter(twitterPageURLToShare, "url", shareURL)>
569
570 <#local linkedinPageURLToShare = "https://www.linkedin.com/shareArticle">
571 <#local linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "mini", true)>
572 <#local linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "url", shareURL)>
573 <#local linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "title", articleTitle)>
574 <#local linkedinPageURLToShare = httpUtil.addParameter(linkedinPageURLToShare, "summary", "Infarmed")>
575
576 <#local emailToURLToShare = "mailto:?subject=">
577 <#local emailToURLToShare = emailToURLToShare + urlCodec.encodeURL(articleTitle, true)>
578 <#local emailToURLToShare = emailToURLToShare + "&body=" + urlCodec.encodeURL(shareURL, true)>
579
580 <span class="label-text"><@liferay.language key="share" /></span>
581 <ul>
582 <li><a href="${fbPageURLToShare}" title="Facebook" target="_blank"><div class="fa fa-facebook"></div></a></li>
583 <li><a href="${linkedinPageURLToShare}" title="LinkedIn" target="_blank"><div class="fa fa-linkedin"></div></a></li>
584 <li><a href="${twitterPageURLToShare}" title="Twitter" target="_blank"><div class="fa fa-twitter"></div></a></li>
585 <li><a href="${emailToURLToShare}" title="E-mail"><div class="fa fa-envelope-o"></div></a></li>
586 </ul>
587 </div>
588 </div>
589 </#if>
590 </header>
591 -->
592 <div class="article-content"> <#-- class limited to limit the width of the article content-->
593 <div class="cms-editor">
594 <#if Subtitulo?? && Subtitulo.getData()?has_content>
595 ${Subtitulo.getData()}
596 </#if>
597 <#if Texto?? && Texto.getData()?has_content>
598 ${Texto.getData()}
599 </#if>
600 </div>
601 </div>
602 <#if hasImagem>
603 <div class="article-content"> <#-- class limited to limit the width of the article content-->
604 <div class="${randomNamespace}ImagemSlider">
605 <#list Imagem.getSiblings() as cur_Imagem>
606 <@drawImage cur_Imagem/>
607 </#list>
608 </div>
609 </div>
610 </#if>
611 </article>
612
613 <#if displayTags>
614 <@drawTags/>
615 </#if>
616
617 <#if hasAnexo || hasLink>
618 <section class="section ">
619 <div class="columns-group ">
620
621 <#list seccoes as cur_Seccao>
622 <#if (.vars["Anexos" + cur_Seccao]?? && .vars["Anexos" + cur_Seccao]?size gt 0) || (.vars["Links" + cur_Seccao]?? && .vars["Links" + cur_Seccao]?size gt 0)>
623 <div class="column spread-medium ">
624 <div class="widget ">
625 <h2 class="title-badge small ">
626 <span class="inner ">${seccoesLabels[cur_Seccao]}</span>
627 </h2>
628 <ul class="list-links ">
629 <#if .vars["Anexos" + cur_Seccao]??>
630 <#list .vars["Anexos" + cur_Seccao] as cur_Anexo>
631 <@drawAnexo cur_Anexo/>
632 </#list>
633 </#if>
634
635 <#if .vars["Links" + cur_Seccao]??>
636 <#list .vars["Links" + cur_Seccao] as cur_Link>
637 <@drawLink cur_Link/>
638 </#list>
639 </#if>
640 </ul>
641 </div>
642 </div>
643 </#if>
644 </#list>
645 </div>
646 </section>
647 </#if>
648 </div>
649</#macro>