META-INF.resources.sites.site_administration_header.jsp Maven / Gradle / Ivy
<%--
/**
* 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="/init.jsp" %>
<%
SiteAdministrationPanelCategoryDisplayContext siteAdministrationPanelCategoryDisplayContext = new SiteAdministrationPanelCategoryDisplayContext(liferayPortletRequest, liferayPortletResponse, null);
Group group = siteAdministrationPanelCategoryDisplayContext.getGroup();
PanelCategory panelCategory = siteAdministrationPanelCategoryDisplayContext.getPanelCategory();
%>
<%
String eventName = liferayPortletResponse.getNamespace() + "selectSite";
ItemSelector itemSelector = (ItemSelector)request.getAttribute(SiteAdministrationWebKeys.ITEM_SELECTOR);
SiteItemSelectorCriterion siteItemSelectorCriterion = new SiteItemSelectorCriterion();
List desiredItemSelectorReturnTypes = new ArrayList();
desiredItemSelectorReturnTypes.add(new URLItemSelectorReturnType());
siteItemSelectorCriterion.setDesiredItemSelectorReturnTypes(desiredItemSelectorReturnTypes);
PortletURL itemSelectorURL = itemSelector.getItemSelectorURL(RequestBackedPortletURLFactoryUtil.create(liferayPortletRequest), eventName, siteItemSelectorCriterion);
%>
$('# manageSitesLink').on(
'click',
function(event) {
Liferay.Util.selectEntity(
{
dialog: {
constrain: true,
destroyOnHide: true,
modal: true
},
eventName: '<%= eventName %>',
id: ' selectSite',
title: ' ',
uri: '<%= itemSelectorURL.toString() %>'
},
function(event) {
location.href = event.url;
}
);
}
);
<%= siteAdministrationPanelCategoryDisplayContext.isCollapsedPanel() ? StringPool.BLANK : "collapsed" %> site-administration-toggler" data-parent="# Accordion" data-qa-id="productMenuSiteAdministrationPanelCategory" data-toggle="collapse" href="# <%= AUIUtil.normalizeId(panelCategory.getKey()) %>Collapse" id=" <%= AUIUtil.normalizeId(panelCategory.getKey()) %>Toggler" <%= (group != null) ? "role=\"button\"" : StringPool.BLANK %>>
<%= HtmlUtil.escape(siteAdministrationPanelCategoryDisplayContext.getGroupName()) %>
-
<%= siteAdministrationPanelCategoryDisplayContext.getNotificationsCount() %>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy