שגיאה קרתה בעת עיבוד התבנית
No signature of method getDate matches the arguments
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2<#assign liferay_ui_ext = taglibLiferayHash["/WEB-INF/tld/liferay-ui-ext.tld"] /> 
3 
4<#list entries as entry> 
5	<#assign entry = entry /> 
6	<#assign assetRenderer = entry.getAssetRenderer() /> 
7	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
8	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
9	<#if assetLinkBehavior != "showFullContent"> 
10		<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
11	</#if> 
12 
13	<div class="asset-abstract"> 
14		<div class="lfr-meta-actions asset-actions"> 
15			<@getFlagsIcon /> 
16			<@getEditIcon /> 
17		</div> 
18 
19		<h3 class="asset-title"> 
20			<a href="${viewURL}"><img alt="" src="${assetRenderer.getIconPath(renderRequest)}" />${entryTitle}</a> 
21		</h3> 
22 
23		<#if assetRenderer.getAvailableLocales()?size gt 1> 
24			<div class="locale-actions"> 
25				<@liferay_ui_ext["language-ext"] viewURL=viewURL assetEntry=entry/> 
26			</div> 
27		</#if> 
28 
29		<div class="asset-content"> 
30			<div class="asset-summary"> 
31				${htmlUtil.escape(assetRenderer.getSummary(locale))}<br/> 
32 
33				<a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
34			</div> 
35        </div> 
36 
37        <div class="asset-metadata"> 
38    		<#list stringUtil.split(metadataFields) as fieldName> 
39    			<#assign dateFormat = "MM/dd/yyyy" /> 
40     
41    			<#if fieldName == "author"> 
42    			<span class="metadata-entry metadata-${fieldName}"> 
43    				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
44    			</span> 
45    			<#elseif fieldName == "categories"> 
46    			<span class="metadata-entry metadata-${fieldName}"> 
47    				<@liferay_ui["asset-categories-summary"] 
48    					className=entry.getClassName() 
49    					classPK=entry.getClassPK() 
50    					portletURL=renderResponse.createRenderURL() 
51    				/> 
52    			</span> 
53    			<#elseif fieldName == "create-date"> 
54    			<span class="metadata-entry metadata-${fieldName}"> 
55    				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
56    			</span> 
57    			<#elseif fieldName == "modified-date"> 
58    			<span class="metadata-entry metadata-${fieldName}"> 
59    				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
60    			</span> 
61    			<#elseif fieldName == "publish-date"> 
62    			<span class="metadata-entry metadata-${fieldName}"> 
63    				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
64    			</span> 
65    			<#elseif fieldName == "priority"> 
66    			<span class="metadata-entry metadata-${fieldName}"> 
67    				${entry.getPriority()} 
68    			</span> 
69    			<#elseif fieldName == "tags"> 
70    			<span class="metadata-entry metadata-${fieldName}"> 
71    				<@liferay_ui["asset-tags-summary"] 
72    					className=entry.getClassName() 
73    					classPK=entry.getClassPK() 
74    					portletURL=renderResponse.createRenderURL() 
75    				/> 
76    			</span> 
77    			<#elseif fieldName == "view-count"> 
78    			<span class="metadata-entry metadata-${fieldName}"> 
79    				<@liferay_ui["icon"] 
80    					image="history" 
81    				/> 
82     
83    				${entry.getViewCount()} <@liferay.language key="views" /> 
84    			</span> 
85    			</#if> 
86    		</#list> 
87        </div> 
88	</div> 
89 
90</#list> 
91 
92<#macro getDiscussion> 
93	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
94		<br /> 
95 
96		<#assign discussionURL = renderResponse.createActionURL() /> 
97 
98		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
99 
100		<@liferay_ui["discussion"] 
101			className=entry.getClassName() 
102			classPK=entry.getClassPK() 
103			formAction=discussionURL?string 
104			formName="fm" + entry.getClassPK() 
105			ratingsEnabled=enableCommentRatings == "true" 
106			redirect=portalUtil.getCurrentURL(request) 
107			userId=assetRenderer.getUserId() 
108		/> 
109	</#if> 
110</#macro> 
111 
112<#macro getEditIcon> 
113	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
114		<#assign redirectURL = renderResponse.createRenderURL() /> 
115 
116		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
117		${redirectURL.setWindowState("pop_up")} 
118 
119		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
120 
121		<#if validator.isNotNull(editPortletURL)> 
122			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
123 
124			<@liferay_ui["icon"] 
125				image="edit" 
126				message=title 
127				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
128			/> 
129		</#if> 
130	</#if> 
131</#macro> 
132 
133<#macro getFlagsIcon> 
134	<#if enableFlags == "true"> 
135		<@liferay_ui["flags"] 
136			className=entry.getClassName() 
137			classPK=entry.getClassPK() 
138			contentTitle=entry.getTitle(locale) 
139			label=false 
140			reportedUserId=entry.getUserId() 
141		/> 
142	</#if> 
143</#macro> 
144 
145<#macro getMetadataField 
146	fieldName 
147
148	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
149		<span class="metadata-entry metadata-"${fieldName}"> 
150			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
151 
152			<#if fieldName == "author"> 
153				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
154			<#elseif fieldName == "categories"> 
155				<@liferay_ui["asset-categories-summary"] 
156					className=entry.getClassName() 
157					classPK=entry.getClassPK() 
158					portletURL=renderResponse.createRenderURL() 
159				/> 
160			<#elseif fieldName == "create-date"> 
161				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
162			<#elseif fieldName == "expiration-date"> 
163				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
164			<#elseif fieldName == "modified-date"> 
165				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
166			<#elseif fieldName == "priority"> 
167				${entry.getPriority()} 
168			<#elseif fieldName == "publish-date"> 
169				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
170			<#elseif fieldName == "tags"> 
171				<@liferay_ui["asset-tags-summary"] 
172					className=entry.getClassName() 
173					classPK=entry.getClassPK() 
174					portletURL=renderResponse.createRenderURL() 
175				/> 
176			<#elseif fieldName == "view-count"> 
177				<@liferay_ui["icon"] 
178					image="history" 
179				/> 
180 
181				${entry.getViewCount()} <@liferay.language key="views" /> 
182			</#if> 
183		</span> 
184	</#if> 
185</#macro> 
186 
187<#macro getPrintIcon> 
188	<#if enablePrint == "true" > 
189		<#assign printURL = renderResponse.createRenderURL() /> 
190 
191		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
192		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
193		${printURL.setParameter("viewMode", "print")} 
194		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
195 
196		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
197			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
198				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
199			</#if> 
200 
201			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
202		</#if> 
203 
204		${printURL.setWindowState("pop_up")} 
205 
206		<@liferay_ui["icon"] 
207			image="print" 
208			message="print" 
209			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
210		/> 
211	</#if> 
212</#macro> 
213 
214<#macro getRatings> 
215	<#if (enableRatings == "true")> 
216		<div class="asset-ratings"> 
217			<@liferay_ui["ratings"] 
218				className=entry.getClassName() 
219				classPK=entry.getClassPK() 
220			/> 
221		</div> 
222	</#if> 
223</#macro> 
224 
225<#macro getRelatedAssets> 
226	<#if enableRelatedAssets == "true"> 
227		<@liferay_ui["asset-links"] 
228			assetEntryId=entry.getEntryId() 
229		/> 
230	</#if> 
231</#macro> 
232 
233<#macro getSocialBookmarks> 
234	<#if enableSocialBookmarks == "true"> 
235		<@liferay_ui["social-bookmarks"] 
236			displayStyle="${socialBookmarksDisplayStyle}" 
237			target="_blank" 
238			title=entry.getTitle(locale) 
239			url=viewURL 
240		/> 
241	</#if> 
242</#macro>