1<#-- Widget Template
2Nome do template: Saber Mais - Home Page
3Descrição: template para a secção Saber Mais na Homepage -->
4<section class="container know-more">
5 <h2 class="section-header"><@liferay.language key="mobie.homepage.banner.link.knowMore" /></h2>
6 <div class="know-more-wrapper">
7 <section class="know-more-list">
8 <#if entries?has_content>
9 <#list entries as curEntry>
10 <#-- Make sure it's a web content -->
11 <#if curEntry.getClassName() == "com.liferay.journal.model.JournalArticle">
12 <#assign
13 assetRenderer = curEntry.getAssetRenderer()
14 journalArticle = assetRenderer.getAssetObject()
15 document = saxReaderUtil.read(journalArticle.getContent())
16 rootElement = document.getRootElement()
17
18 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='prioridade']")
19 prioridade = xPathSelector.selectSingleNode(rootElement).getStringValue()
20 />
21 <#if prioridade?trim?starts_with("1")>
22 <#assign new1 = journalArticle />
23 <#elseif prioridade?trim?starts_with("2")>
24 <#assign new2 = journalArticle />
25 <#elseif prioridade?trim?starts_with("3")>
26 <#assign new3 = journalArticle />
27 <#elseif prioridade?trim?starts_with("4")>
28 <#assign new4 = journalArticle />
29 </#if>
30 </#if>
31 </#list>
32 <#-- <#list [new1,new2,new3,new4] as currentNew>
33 <#if currentNew?has_content>
34 <@liferay_journal["journal-article"]
35 articleId=currentNew.getArticleId()
36 ddmTemplateKey="60035"
37 groupId=currentNew.getGroupId()
38 />
39 </#if>
40 </#list> -->
41 <#if new1?? && new1?has_content>
42 <@liferay_journal["journal-article"]
43 articleId=new1.getArticleId()
44 ddmTemplateKey="60035"
45 groupId=new1.getGroupId()
46 />
47 </#if>
48 <#if new2?? && new2?has_content>
49 <@liferay_journal["journal-article"]
50 articleId=new2.getArticleId()
51 ddmTemplateKey="60035"
52 groupId=new2.getGroupId()
53 />
54 </#if>
55 <#if new3?? && new3?has_content>
56 <@liferay_journal["journal-article"]
57 articleId=new3.getArticleId()
58 ddmTemplateKey="60035"
59 groupId=new3.getGroupId()
60 />
61 </#if>
62 <#if new4?? && new4?has_content>
63 <@liferay_journal["journal-article"]
64 articleId=new4.getArticleId()
65 ddmTemplateKey="60035"
66 groupId=new4.getGroupId()
67 />
68 </#if>
69 <#-- dummy elements (to align last row items to the left) -->
70 <div class="journal-content-article flex-placeholder"></div>
71 <div class="journal-content-article flex-placeholder"></div>
72 </#if>
73 </section>
74 </div>
75</section>
76<#-- /Saber Mais - Home Page -->