META-INF.resources.blogs.view_entry_content_detail.jsp Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/blogs/init.jsp" %>
<%
SearchContainer> searchContainer = (SearchContainer)request.getAttribute("view_entry_content.jsp-searchContainer");
BlogsEntry entry = (BlogsEntry)request.getAttribute("view_entry_content.jsp-entry");
BlogsPortletInstanceConfiguration blogsPortletInstanceConfiguration = BlogsPortletInstanceConfigurationUtil.getBlogsPortletInstanceConfiguration(themeDisplay);
%>
<%= HtmlUtil.escape(BlogsEntryUtil.getDisplayTitle(resourceBundle, entry)) %>
<%
String subtitle = entry.getSubtitle();
%>
<%= HtmlUtil.escape(subtitle) %>
<%
User entryUser = UserLocalServiceUtil.fetchUser(entry.getUserId());
String entryUserURL = StringPool.BLANK;
if ((entryUser != null) && !entryUser.isGuestUser() && !user.isGuestUser()) {
entryUserURL = entryUser.getDisplayURL(themeDisplay);
}
%>
-
<%
AssetEntry assetEntry = BlogsEntryAssetEntryUtil.getAssetEntry(request, entry);
%>
-
<%
String coverImageURL = entry.getCoverImageURL(themeDisplay);
%>
<%
String coverImageCaption = entry.getCoverImageCaption();
%>
<%= entry.getContent() %>
<%
request.setAttribute("entry_toolbar.jsp-entry", entry);
%>
<%
AssetEntry assetEntry = BlogsEntryAssetEntryUtil.getAssetEntry(request, entry);
%>
<%
if (searchContainer != null) {
searchContainer.setResultsAndTotal(searchContainer::getResults, searchContainer.getTotal() - 1);
}
%>