Skip to content

Instantly share code, notes, and snippets.

@jdorrance
Created July 10, 2013 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdorrance/5968139 to your computer and use it in GitHub Desktop.
Save jdorrance/5968139 to your computer and use it in GitHub Desktop.
<%@include file="/apps/acs/components/shared/global.jsp"%>
<%@ page session="false"
import="org.acs.cq.sso.SsoConfigurationProperties,
org.acs.cq.configuration.AcsConfigurationPropertiesService" %><head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<title><%= StringUtils.isNotEmpty(pageProperties.get("pageTitle", "")) ? pageProperties.get("pageTitle", "") : pageProperties.get("jcr:title", currentPage.getName())%></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="content_id" content="<%=StringUtils.isNotEmpty(pageProperties.get("content_id", "")) ? pageProperties.get("content_id", "") : pageProperties.get("jcr:uuid", "") %>" />
<cq:include script="/libs/wcm/core/components/init/init.jsp" />
<% currentDesign.writeCssIncludes(pageContext); %>
<%
SsoConfigurationProperties sso = sling.getService(SsoConfigurationProperties.class);
pageContext.setAttribute("sso",sso);
AcsConfigurationPropertiesService acs = sling.getService(AcsConfigurationPropertiesService.class);
pageContext.setAttribute("acs",acs);
//String foreseeReplayId = bindings.getSling().getService(AcsConfigurationPropertiesService.class).getForeseeReplayId();
%>
<script type="text/javascript">
// setup the ACS name space
acs = {
assetDomain : '${assetsHost}',
assetUrl : '//${assetsHost}/v2.0/acs-bootstrap/',
jsBaseUrl : '//${assetsHost}/v2.0/acs-bootstrap/js/',
search : {
configs : {
sayt : {
responderUrl : '//portal.acs.org/gsa01/saytresp',
maxGSAResults: 5,
maxWsoResults: 5,
saytOrder: 1
}
}
},
foresee : {
configs: {
files : '//${assetsHost}/v2.0/cq5/js/vendor/foresee/',
replay_id : '${acs.foreseeReplayId}'
}
},
sso: {
heartbeat: {
gif: '${sso.heartbeat}',
promptDuration: ${sso.expiringSessionConfirmation},
sessionDuration: ${sso.sessionTimeout * 60000},
expmessage: '${sso.expirationMessage}',
promptmessage: '${sso.promptMessage}'
},
logoutUrl: '${sso.logoutpoint}',
localLogout: '${sso.sessionCreation}?action=logout',
globalLogoutUrl: '${sso.globalLogout}',
acctManagementUrl: '${sso.acctManagementUrl}',
omrUrl: '${sso.omrUrl}',
appid: '${sso.appid}'
}
}
</script>
<c:if test="${acs.foreseeEnabled}">
<script src="//${assetsHost}/v2.0/cq5/js/vendor/foresee/foresee-alive.js"></script>
</c:if>
<script src="//${assetsHost}/v2.0/acs-bootstrap/js/vendor/modernizr.js"></script>
<link rel="stylesheet" type="text/css" media="screen, projection" href="//${assetsHost}/v2.0/acs-bootstrap/css/acs-bootstrap.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="//${assetsHost}/v2.0/cq5/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="//${assetsHost}/v2.0/cq5/css/responsive.css" />
<!-- <link rel="stylesheet" type="text/css" media="print" href="//${assetsHost}/v1.0/prod/css/print.css" /> -->
<link rel="shortcut icon" href="//${assetsHost}/v2.0/acs-bootstrap/images/favicon.ico" />
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment