An error occurred while processing the template.
Expression portletPreferences["queryValues0"] is undefined on line 96, column 10 in 10157#10197#336276.
1<#-- 
2Application display templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<style> 
10    .aui a.tag2 { 
11    	display: inline-block;  
12    	border-radius: .25em; 
13    	background-image: linear-gradient(#DBEAFA 0%, #DBEAFA 47%, #E2EEFB 100%); 
14        padding: 0.25em .5em; 
15    	text-decoration:none; 
16
17     
18    .aui a.tag2:hover { 
19        color:#FFFFFF; 
20    	background-image: linear-gradient(#585E64 0%, #585E64 47%, #797E83 100%); 
21
22     
23    .aui a.tag3 { 
24    	display: inline-block;  
25    	border-radius: .25em; 
26        color:#FFFFFF; 
27    	background-image: linear-gradient(#585E64 0%, #585E64 47%, #797E83 100%); 
28        padding: 0.25em .5em; 
29    	text-decoration:none; 
30
31     
32    .aui a.tag3:hover { 
33        color:#009ae5; 
34    	background-image: linear-gradient(#DBEAFA 0%, #DBEAFA 47%, #E2EEFB 100%); 
35
36     
37    .aui span.tag4 { 
38    	display: inline-block;  
39    	border-radius: .25em; 
40        color:#FFFFFF; 
41        color:#009ae5; 
42    	background-image: linear-gradient(#DBEAFA 0%, #DBEAFA 47%, #E2EEFB 100%); 
43        padding: 0.25em .5em; 
44    	text-decoration:none; 
45
46     
47    .aui .meta-info { 
48        font-size:10px; 
49        opacity:0.7; 
50
51     
52    @media (max-width: 979px) { 
53        .aui .meta-info { 
54            display:none; 
55
56
57     
58    .aui .asset-abstract { 
59        margin-bottom:0.5em; 
60
61     
62    .aui .article{ 
63        border-bottom-style: dashed; 
64        border-bottom-width: 1px; 
65        border-bottom-color: #c4e4f3; 
66        padding-left: 0; 
67
68     
69    .aui .row .asset-abstract [class*="span"] { 
70        margin-left:0px; 
71
72     
73    .aui .row.category-filters { 
74        margin-bottom:1.2em; 
75
76     
77    .aui .portlet-asset-publisher .asset-title { 
78        border-bottom: none; 
79        margin-right: 0px; 
80        padding-bottom: 0px; 
81
82    .aui .asset-title span { 
83        font-size: 0.7em; 
84
85     
86    .aui .taglib-categorization-filter.entry-title { 
87        display:none; 
88
89 
90 
91</style> 
92 
93<#if serviceLocator??> 
94	<#assign assetCategoryService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
95 
96    <#if portletPreferences["queryValues0"]?size gt 0> 
97     
98        <#if request.getParameter("categoryId")?exists> 
99            <#assign selectedCategory = request.getParameter("categoryId")> 
100        <#else> 
101            <#assign selectedCategory = ""> 
102        </#if> 
103        <#assign namespace = renderResponse.getNamespace()> 
104 
105        <div id="${namespace}categoriesTags" class="row category-filters"> 
106            <#list portletPreferences["queryValues0"] as values> 
107                <#if !values?is_sequence> 
108 
109                    <#assign catId = values?number> 
110                    <#assign category = assetCategoryService.getAssetCategory(catId)> 
111 
112                    <#assign categoryURL = renderResponse.createRenderURL()> 
113        			${categoryURL.setParameter("resetCur", "true")} 
114 
115                    <#if category.getCategoryId()?string==selectedCategory> 
116                     
117        			    ${categoryURL.setParameter("categoryId", "0")} 
118 
119                        <span class="tag4"> 
120                            <i class="icon-tag"></i> ${category.getTitle(locale)}  
121                            <a href="${categoryURL}#${namespace}categoriesTags"> 
122                                <span class="icon icon-remove textboxlistentry-remove"></span> 
123                            </a> 
124                        </span> 
125                         
126                    <#else> 
127        			 
128            			${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
129                     
130                        <a href="${categoryURL}#${namespace}categoriesTags" class="tag3"> 
131                            <i class="icon-tag"></i> ${category.getTitle(locale)} 
132                        </a> 
133                         
134                    </#if>     
135                </#if> 
136            </#list>  
137        </div> 
138    </#if>         
139</#if> 
140 
141<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
142 
143<#list entries as entry> 
144	<#assign entry = entry /> 
145 
146	<#assign assetRenderer = entry.getAssetRenderer() /> 
147 
148	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
149 
150	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
151 
152	<#if assetLinkBehavior != "showFullContent"> 
153	    <#assign renderer = entry.getAssetRenderer() /> 
154		<#assign viewURL = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
155	</#if> 
156 
157	<div class="row asset-abstract"> 
158		<div class="lfr-meta-actions asset-actions"> 
159			<@getPrintIcon /> 
160 
161			<@getFlagsIcon /> 
162 
163			<@getEditIcon /> 
164		</div> 
165		 
166    	<div class="col-md-12 article"> 
167 
168        	<div class="row asset-abstract"> 
169             
170                <div class="row"> 
171            	    <div class="col-md-12"> 
172                		<a href="${viewURL}" class="asset-title"> 
173                		    <span class="glyphicon glyphicon-triangle-right"></span> ${entryTitle} 
174                		</a> 
175            	    </div> 
176<!--            	     
177            	    <div class="span2 meta-info"> 
178                		<@getMetadataField fieldName="modified-date" /> 
179                	</div> 
180-->                	 
181            	</div> 
182<!--            	 
183                <div class="row-fluid meta-info"> 
184    				<#assign categories = entry.getCategories()> 
185        		    <@displayCategories categories=categories /> 
186            	</div> 
187             
188                <div class="row-fluid meta-info"> 
189            		    <@getMetadataField fieldName="view-count" /> 
190            	</div> 
191         
192        		<div class="asset-content"> 
193        			<@getSocialBookmarks /> 
194         
195        			<div class="asset-summary"> 
196        				<@getMetadataField fieldName="author" /> 
197         
198        				${htmlUtil.escape(assetRenderer.getSummary(locale))} 
199 
200        				<a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
201        			</div> 
202         
203        			<@getRelatedAssets /> 
204         
205        			<@getDiscussion /> 
206        		</div> 
207--> 
208    		</div> 
209		</div> 
210	</div> 
211 
212</#list> 
213 
214<#macro getDiscussion> 
215	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
216		<br /> 
217 
218		<#assign discussionURL = renderResponse.createActionURL() /> 
219 
220		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
221 
222		<@liferay_ui["discussion"] 
223			className=entry.getClassName() 
224			classPK=entry.getClassPK() 
225			formAction=discussionURL?string 
226			formName="fm" + entry.getClassPK() 
227			ratingsEnabled=enableCommentRatings == "true" 
228			redirect=portalUtil.getCurrentURL(request) 
229			userId=assetRenderer.getUserId() 
230		/> 
231	</#if> 
232</#macro> 
233 
234<#macro getEditIcon> 
235	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
236		<#assign redirectURL = renderResponse.createRenderURL() /> 
237 
238		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
239		${redirectURL.setWindowState("pop_up")} 
240 
241		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
242 
243		<#if validator.isNotNull(editPortletURL)> 
244			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
245 
246			<@liferay_ui["icon"] 
247				image="edit" 
248				message=title 
249				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
250			/> 
251		</#if> 
252	</#if> 
253</#macro> 
254 
255<#macro getFlagsIcon> 
256	<#if enableFlags == "true"> 
257		<@liferay_ui["flags"] 
258			className=entry.getClassName() 
259			classPK=entry.getClassPK() 
260			contentTitle=entry.getTitle(locale) 
261			label=false 
262			reportedUserId=entry.getUserId() 
263		/> 
264	</#if> 
265</#macro> 
266 
267<#macro displayCategories 
268	categories 
269
270	<#if categories?has_content> 
271		<#list categories as category> 
272				<#assign categoryURL = renderResponse.createRenderURL()> 
273 
274				${categoryURL.setParameter("resetCur", "true")} 
275				${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
276 
277                <a href="${categoryURL}" class="tag2"> 
278                        <i class="icon-tag"></i> ${category.getTitle(locale)} 
279                </a> 
280 
281				<#if serviceLocator??> 
282					<#assign assetCategoryService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryService")> 
283 
284					<#assign childCategories = assetCategoryService.getChildCategories(category.getCategoryId())> 
285 
286					<@displayCategories categories=childCategories /> 
287				</#if> 
288		</#list> 
289	</#if> 
290</#macro> 
291 
292 
293<#macro getMetadataField 
294	fieldName 
295
296	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
297		<span class="metadata-entry metadata-${fieldName}"> 
298			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
299 
300			<#if fieldName == "author"> 
301				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
302			<#elseif fieldName == "categories"> 
303				<@liferay_ui["asset-categories-summary"] 
304					className=entry.getClassName() 
305					classPK=entry.getClassPK() 
306					portletURL=renderResponse.createRenderURL() 
307				/> 
308			<#elseif fieldName == "create-date"> 
309				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
310			<#elseif fieldName == "expiration-date"> 
311				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
312			<#elseif fieldName == "modified-date"> 
313				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
314			<#elseif fieldName == "priority"> 
315				${entry.getPriority()} 
316			<#elseif fieldName == "publish-date"> 
317				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
318			<#elseif fieldName == "tags"> 
319				<@liferay_ui["asset-tags-summary"] 
320					className=entry.getClassName() 
321					classPK=entry.getClassPK() 
322					portletURL=renderResponse.createRenderURL() 
323				/> 
324			<#elseif fieldName == "view-count"> 
325				${entry.getViewCount()} <@liferay.language key="views" /> 
326			</#if> 
327		</span> 
328	</#if> 
329</#macro> 
330 
331<#macro getPrintIcon> 
332	<#if enablePrint == "true" > 
333		<#assign printURL = renderResponse.createRenderURL() /> 
334 
335		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
336		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
337		${printURL.setParameter("viewMode", "print")} 
338		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
339 
340		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
341			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
342				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
343			</#if> 
344 
345			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
346		</#if> 
347 
348		${printURL.setWindowState("pop_up")} 
349 
350		<@liferay_ui["icon"] 
351			image="print" 
352			message="print" 
353			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
354		/> 
355	</#if> 
356</#macro> 
357 
358<#macro getRelatedAssets> 
359	<#if enableRelatedAssets == "true"> 
360		<@liferay_ui["asset-links"] 
361			assetEntryId=entry.getEntryId() 
362		/> 
363	</#if> 
364</#macro> 
365 
366<#macro getSocialBookmarks> 
367	<#if enableSocialBookmarks == "true"> 
368		<@liferay_ui["social-bookmarks"] 
369			displayStyle="${socialBookmarksDisplayStyle}" 
370			target="_blank" 
371			title=entry.getTitle(locale) 
372			url=viewURL 
373		/> 
374	</#if> 
375</#macro>