META-INF.resources.blogs.edit_entry.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" %>
<%
BlogsEditEntryDisplayContext blogsEditEntryDisplayContext = (BlogsEditEntryDisplayContext)request.getAttribute(BlogsEditEntryDisplayContext.class.getName());
BlogsEntry entry = blogsEditEntryDisplayContext.getBlogsEntry();
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(blogsEditEntryDisplayContext.getRedirect());
renderResponse.setTitle(blogsEditEntryDisplayContext.getPageTitle(resourceBundle));
%>
<%= StringUtil.merge(blogsEditEntryDisplayContext.getImageExtensions()) %>.
<%
FileSizeException fileSizeException = (FileSizeException)errorException;
%>
<%
int titleMaxLength = ModelHintsUtil.getMaxLength(BlogsEntry.class.getName(), "title");
%>
<%
Portlet portlet = PortletLocalServiceUtil.getPortletById(BlogsPortletKeys.BLOGS);
boolean automaticURL = false;
if (entry == null) {
automaticURL = Validator.isNull(blogsEditEntryDisplayContext.getURLTitle());
}
else {
automaticURL = blogsEditEntryDisplayContext.isAutomaticURL();
}
String inputAddon = StringUtil.shorten("/-/" + portlet.getFriendlyURLMapping(), 40) + StringPool.SLASH;
%>
<%= StringUtil.merge(blogsEditEntryDisplayContext.getImageExtensions()) %>.
' inlineLabel="right" label="allow-pingbacks" labelCssClass="simple-toggle-switch" name="allowPingbacks" type="toggle-switch" value="<%= blogsEditEntryDisplayContext.isAllowPingbacks() %>" />
<%
int i = 0;
for (String trackback : StringUtil.split(entry.getTrackbacks())) {
%>
<%
}
%>
<%
Group scopeGroup = themeDisplay.getScopeGroup();
%>
<%
boolean pending = false;
if (entry != null) {
pending = entry.isPending();
}
%>
<%
if (entry != null) {
PortalUtil.addPortletBreadcrumbEntry(request, BlogsEntryUtil.getDisplayTitle(resourceBundle, entry), blogsEditEntryDisplayContext.getViewEntryURL());
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "edit"), currentURL);
}
else {
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "add-entry"), currentURL);
}
%>