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: 2.0.2
Show newest version
<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ 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");

AssetEntry assetEntry = (AssetEntry)request.getAttribute("view_entry_content.jsp-assetEntry");
%>


	
		
<% String mvcRenderCommandName = ParamUtil.getString(request, "mvcRenderCommandName"); long assetCategoryId = ParamUtil.getLong(request, "categoryId"); String assetTagName = ParamUtil.getString(request, "tag"); boolean viewSingleEntry = mvcRenderCommandName.equals("/blogs/view_entry") && (assetCategoryId == 0) && Validator.isNull(assetTagName); String colCssClass = StringPool.BLANK; if (viewSingleEntry) { colCssClass = "col-md-offset-2 col-md-8"; } %>
<% String coverImageURL = entry.getCoverImageURL(themeDisplay); %>
<%= entry.getCoverImageCaption() %>

<%= HtmlUtil.escape(entry.getTitle()) %>

<%= HtmlUtil.escape(entry.getTitle()) %>

<% String subtitle = entry.getSubtitle(); %>

<%= HtmlUtil.escape(subtitle) %>

<% String summary = entry.getDescription(); if (Validator.isNull(summary)) { summary = entry.getContent(); } %>

<%= StringUtil.shorten(HtmlUtil.stripHtml(summary), pageAbstractLength) %>

<%= entry.getContent() %>

:

entry-footer">
<% int messagesCount = CommentManagerUtil.getCommentsCount(BlogsEntry.class.getName(), entry.getEntryId()); %>
<% if (searchContainer != null) { searchContainer.setTotal(searchContainer.getTotal() - 1); } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy