-
-
Save clovisdasilvaneto/8be905db05cffbc52970ac1c29d13c89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#-- | |
Application display templates can be used to modify the look of a | |
specific application. | |
Please use the left panel to quickly add commonly used variables. | |
Autocomplete is also available and can be invoked by typing "${". | |
--> | |
<#if entries?has_content> | |
<article class="molecule--carrosel_focus"> | |
<ul class="molecule--carrosel_bxslider"> | |
<#list entries as entry> | |
<#assign renderer = entry.getAssetRenderer()> | |
<#assign className = renderer.getClassName()> | |
<#if className == "com.liferay.journal.model.JournalArticle"> | |
<#assign journalArticle = renderer.getArticle()> | |
<#assign document = saxReaderUtil.read(journalArticle.getContent())> | |
<#assign rootElement = document.getRootElement()> | |
<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='FotoDestaque']")> | |
<#assign imagem = xPathSelector.selectSingleNode(rootElement).getStringValue()> | |
<#assign link = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true)> | |
<li> | |
<figure> | |
<img src="${imagem}" alt="${entry.getTitle(locale)}"> | |
<figcaption> | |
<a href="${link}"><h3 class="white rm-mg">${entry.getTitle(locale)}</h3></a> | |
<a href="${link}"><p class="atom--medium_text white">${entry.getDescription(locale)}</p></a> | |
</figcaption> | |
</figure> | |
</li> | |
</#if> | |
</#list> | |
</ul> | |
</article> | |
</#if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment