Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
59 righe
2.0 KiB
59 righe
2.0 KiB
<%@page import="com.liferay.portal.util.PortalUtil"%> |
|
<%@page import="com.liferay.portal.kernel.util.Validator"%> |
|
<%@page import="com.liferay.portal.kernel.util.StringPool"%> |
|
<%@page import="com.liferay.portal.model.Group"%> |
|
|
|
<%@ page import="com.liferay.portal.service.PortletLocalServiceUtil" %> |
|
<%@ page import="com.liferay.portal.model.Portlet" %> |
|
<%@ page import="com.liferay.portal.kernel.util.GetterUtil" %> |
|
<%@ page import="com.liferay.portal.kernel.util.PropsUtil" %> |
|
|
|
<%@ include file="/init.jsp" %> |
|
|
|
<% |
|
if(PortalUtil.getControlPanelPlid(company.getCompanyId()) != themeDisplay.getPlid()){ |
|
|
|
|
|
Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletDisplay.getId()); |
|
String articleKey = "cookiesJournalarticleId"; |
|
String articleId = StringPool.BLANK; |
|
Group group = themeDisplay.getScopeGroup(); |
|
if(group.getExpandoBridge().hasAttribute(articleKey)){ |
|
articleId = String.valueOf(group.getExpandoBridge().getAttribute(articleKey,false)); |
|
} |
|
if (Validator.isNotNull(articleId)) { |
|
%> |
|
|
|
<aui:script use="aui-base aui-io-request"> |
|
|
|
if (leggiCookie("accepted_cookie") != "true") { |
|
AUI().one('#cookies').removeClass('cookiesHide'); |
|
AUI().one('#cookies').addClass('cookiesShow'); |
|
} else { |
|
AUI().one('#cookies').addClass('cookiesHide'); |
|
AUI().one('#cookies').removeClass('cookiesShow'); |
|
} |
|
|
|
Liferay.provide( |
|
window, |
|
'cookiesAccepted', |
|
function() { |
|
AUI().one('#cookies').hide(); |
|
scriviCookie("accepted_cookie", "true", 10519200); |
|
} |
|
); |
|
</aui:script> |
|
|
|
<div id="cookies" class="cookies cookiesHide"> |
|
<div class="notifications-button"> |
|
<aui:button id="cookiesClose" name="cookiesClose" type="button" cssClass="btn btn-primary" |
|
inputCssClass="btn btn-primary" value="cookie.accepted.message.accept" onclick="cookiesAccepted()"/> |
|
</div> |
|
<div class="notifications-content"> |
|
<liferay-ui:journal-article articleId="<%= articleId %>" groupId="<%= group.getGroupId() %>" /> |
|
</div> |
|
</div> |
|
<% |
|
} |
|
} |
|
%> |