Pular para o conteúdo
Galeria de Fotos | Banco de Imagens
Um erro ocorreu enquanto processava o modelo.
Expression xPathSelector.selectSingleNode(rootElement) is undefined on line 29, column 32 in 20154#20194#25333.
1<style> 
2.gal-row{margin-bottom: 20px;} 
3.gal-item{min-height:180px !important;} 
4.pagetitle-content input[type="text"] { 
5    color: #fff; 
6    background: rgba(255,255,255,0.3); 
7    border: 0; 
8    padding: 3px 5px; 
9    margin-top: 5px; 
10
11.lfr-token-list{display:none;} 
12.search-layout{display:none;} 
13.control-group{margin-bottom:0 !important;} 
14.pagetitle-content form{margin-bottom:0;display:-webkit-inline-box;margin-left: 20px;} 
15.pagetitle-content{padding:5px 0 0 !important;} 
16</style> 
17 
18<#assign count = 1 > 
19 
20<#list entries as entry> 
21	<#assign renderer = entry.getAssetRenderer() > 
22	<#assign className = renderer.getClassName() > 
23	<#if className == "com.liferay.portlet.journal.model.JournalArticle" > 
24		<#assign journalArticle = renderer.getArticle() > 
25		<#assign document = saxReaderUtil.read(journalArticle.getContent()) > 
26		<#assign rootElement = document.getRootElement() > 
27		 
28		<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='image']") > 
29		<#assign img = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
30		 
31		<#assign imgNumb = xPathSelector.selectNodes(rootElement)?size > 
32		 
33		<#assign link = entry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, '') /> 
34		<#assign date = journalArticle.displayDate?string["dd 'de' MMMM 'de' yyyy 'às' HH:mm"] > 
35		<#assign titulo = entry.getTitle(locale) /> 
36         
37        <#if count == 1 > 
38            <div class="row-fluid gal-row"> 
39		</#if> 
40		 
41		<div class="span4"> 
42			<a href="${link}"> 
43				<div class="sm gal-item" style="background:url('${img?trim}+&imageThumbnail=2');background-size: cover;"> 
44					<span class="foto-overlay"> 
45						<span class="foto-title">${titulo}</span><span class="total-fotos">${imgNumb} <i class="icon-camera"></i></span> 
46					</span> 
47				</div> 
48			</a> 
49		</div> 
50         
51		<#assign count = count + 1 > 
52		<#if count == 4 > 
53            </div> 
54			<#assign count = 1 > 
55		</#if> 
56	</#if> 
57</#list> 
58 
59<#if count == 2 || count == 3 > 
60	</div> 
61</#if> 
62 
63<script> 
64    searchInterno(); 
65</script>