Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Created January 23, 2015 19:03
Show Gist options
  • Save auniverseaway/4b2939ebebe74060450e to your computer and use it in GitHub Desktop.
Save auniverseaway/4b2939ebebe74060450e to your computer and use it in GitHub Desktop.
AEM TextImage Component
<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>
@sangita1903
Copy link

Can we convert this in sightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment