Skip to content

Instantly share code, notes, and snippets.

View jdorrance's full-sized avatar

John Dorrance jdorrance

View GitHub Profile
<div class="security-login" <c:if test="${!empty fn:trim(properties.cssid)}">id="${properties.cssid}"</c:if> >
<div id="login-block">
<c:if test="${ not empty properties.loginHeaderText }">
<div class="login-header">${ properties.loginHeaderText }</div>
</c:if>
<c:if test="${!empty errorMessage}">
<span class="login-error-msg">${errorMessage}</span>
if (gigya) {
var pwfeGigya = new PWFE.Gigya();
var params = {
categoryID: 'Insert Fire Engineering Ratings',
streamID: '/content/fe/en/articles/print/volume-166/issue-7/features/ventilation-limited-fires-in-residential-buildings',
containerID: 'fe-gigya-comments-reviews-div',
cid:'/content/fe/en/articles/print/volume-166/issue-7/features/ventilation-limited-fires-in-residential-buildings',
onCommentSubmitted: function() {pwfeGigya.publishFeed("http://www.fireengineering.com/articles/print/volume-166/issue-7/features/ventilation-limited-fires-in-residential-buildings.html", "Ventilation-Limited Fires in Residential Buildings", "Firefighters used to breathe a sigh of relief when they found fire showing from a window or two on arrival: Visible fire meant you knew the fire's location, and a simple check by the first-arriving truck officer would define the fire area.", "commented on");},
enabledShareProviders: 'linkedin,fa
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Activator>com.lexmark.mce.Activator</Bundle-Activator>
<Embed-Transitive>true</Embed-Transitive>
@jdorrance
jdorrance / gist:6090323
Last active December 20, 2015 06:59 — forked from anonymous/gist:6090315
<%@include file="/libs/foundation/global.jsp" %>
<%@ page import="javax.jcr.Repository,
javax.jcr.Session,
javax.jcr.SimpleCredentials,
javax.jcr.Node,
java.net.URLEncoder,
java.util.Calendar,
java.util.Date,
java.util.List,
java.util.Iterator,
package com.mavendc.util
import com.day.cq.wcm.api.PageManager;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ValueMap;
import org.apache.sling.api.wrappers.ValueMapDecorator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import javax.jcr.Node;
<%@include file="/apps/af-foundation/components/shared/global.jsp"%>
<%@page session="false" import="org.apache.sling.api.wrappers.ValueMapDecorator,
com.mavendc.MultiUtil,
com.day.cq.contentbus.UUID,
com.day.text.Text,
java.util.ArrayList" %>
<%
final String IDPROP = "id";
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:Dialog"
stateful="false"
width="850"
xtype="dialog">
<items
jcr:primaryType="cq:Widget"
xtype="tabpanel">
<items jcr:primaryType="cq:WidgetCollection">
function jumpToElement(id,guid,activeState){
if($(id).length >0){
var activePanelID = $(id+"."+guid).attr('sectionCount');
if(typeof activePanelID != 'undefined' && activePanelID.length >0){
var lastChar = activePanelID.charAt( activePanelID.length-1 );
if(!isNaN(lastChar))activeState = lastChar-1;
}
}
$('.sections-accordion.'+guid).multiOpenAccordion('option', 'active', activeState);
package org.mavendc.cq.sso;
public interface SsoConfigurationProperties {
public String getSessionTimeout();
public String getDefaultPage();
public String getAcctManagementUrl();
package org.mavendc.cq.sso.impl;
import java.util.Dictionary;
import org.mavendc.cq.sso.SsoConfigurationProperties;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Deactivate;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;