|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
|
<%@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">
|
|
|
|
Il sito utilizza cookies. Navigando ne accetti l'uso. <a href="#">Informazioni</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%>
|