META-INF.resources.view.jsp Maven / Gradle / Ivy
The 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="/init.jsp" %>
<%
Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletDisplay.getId());
%>
" rel="stylesheet" type="text/css" />
Liferay.Poller.init({
encryptedUserId:
'<%= EncryptorUtil.encrypt(company.getKeyObj(), String.valueOf(themeDisplay.getUserId())) %>',
});
<%
Status status = StatusLocalServiceUtil.getUserStatus(themeDisplay.getUserId());
boolean online = status.getOnline();
JSONObject activePanelIdsJSONObject = null;
String openPanelId = StringPool.BLANK;
if (Validator.isNotNull(status.getActivePanelIds())) {
activePanelIdsJSONObject = JSONFactoryUtil.createJSONObject(status.getActivePanelIds());
openPanelId = activePanelIdsJSONObject.getString("open");
}
String statusMessage = HtmlUtil.escape(status.getMessage());
boolean playSound = status.getPlaySound();
List