All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.blogs.view_entry_content.jsp Maven / Gradle / Ivy

There is a newer version: 6.0.134
Show newest version
<%--
/**
 * 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);

BlogsViewEntryContentDisplayContext blogsViewEntryContentDisplayContext = (BlogsViewEntryContentDisplayContext)request.getAttribute(BlogsViewEntryContentDisplayContext.class.getName());

String viewEntryURL = blogsViewEntryContentDisplayContext.getViewEntryURL(entry);
%>


	
		

<%= HtmlUtil.escape(BlogsEntryUtil.getDisplayTitle(resourceBundle, entry)) %>

<% String subtitle = entry.getSubtitle(); %>
<%= HtmlUtil.escape(subtitle) %>
<% BlogsEntryActionDropdownItemsProvider blogsEntryActionDropdownItemsProvider = new BlogsEntryActionDropdownItemsProvider(renderRequest, renderResponse, permissionChecker, resourceBundle, trashHelper); %>
<% 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 summary = entry.getDescription(); if (Validator.isNull(summary)) { summary = entry.getContent(); } %>

<%= StringUtil.shorten(StringUtil.removeSubstring(HtmlUtil.stripHtml(summary), StringPool.NEW_LINE + StringPool.SPACE), PropsValues.BLOGS_PAGE_ABSTRACT_LENGTH) %>

<%= 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); } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy