META-INF.resources.edit_sharing.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portlet.configuration.web
Show all versions of com.liferay.portlet.configuration.web
Liferay Portlet Configuration Web
<%--
/**
* 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="/init.jsp" %>
<%
String returnToFullPageURL = ParamUtil.getString(request, "returnToFullPageURL");
Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletResource);
boolean portletPublished = true;
Layout publishedLayout = null;
if (layout.isDraftLayout()) {
publishedLayout = LayoutLocalServiceUtil.getLayout(layout.getClassPK());
LayoutTypePortlet publishedLayoutTypePortlet = (LayoutTypePortlet)publishedLayout.getLayoutType();
portletPublished = publishedLayoutTypePortlet.hasPortletId(portletResource);
}
%>
<%
if (publishedLayout != null) {
themeDisplay.setLayout(publishedLayout);
}
String widgetURL = PortalUtil.getWidgetURL(portlet, themeDisplay);
String opensocialGadgetURL = PortalUtil.getGoogleGadgetURL(portlet, themeDisplay);
String netvibesWidgetURL = PortalUtil.getNetvibesURL(portlet, themeDisplay);
themeDisplay.setLayout(layout);
%>
<%
String facebookAPIKey = GetterUtil.getString(portletPreferences.getValue("lfrFacebookApiKey", null));
String facebookCanvasPageURL = GetterUtil.getString(portletPreferences.getValue("lfrFacebookCanvasPageUrl", null));
%>
http://www.liferay.com/