Created
January 23, 2015 19:03
-
-
Save auniverseaway/4b2939ebebe74060450e to your computer and use it in GitHub Desktop.
AEM TextImage Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-xs-12 text-center sd-home-asset-icon" id="<%= xssAPI.encodeForHTMLAttr(divId) %>"> | |
<% image.draw(out); %> | |
</div> | |
</div> | |
<cq:text property="image/jcr:description" placeholder="" tagName="small" escapeXml="true"/> | |
<%@include file="/libs/foundation/components/image/tracking-js.jsp"%> | |
<% } | |
String placeholder = (isAuthoringUIModeTouch && !image.hasContent()) | |
? Placeholder.getDefaultPlaceholder(slingRequest, component, "", ddClassName): ""; | |
%> | |
<div class="row"> | |
<div class="col-md-12 text-center"> | |
<h2>${properties.textTitle}</h2> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-12 text-center"> | |
<cq:text property="text" tagClass="<%= "text " + ddClassName %>" escapeXml="true" placeholder="<%= placeholder %>"/> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we convert this in sightly