Skip to content

Instantly share code, notes, and snippets.

@PhillipRasmussen
Created July 15, 2014 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhillipRasmussen/1497a2cf6ffd2de50a84 to your computer and use it in GitHub Desktop.
Save PhillipRasmussen/1497a2cf6ffd2de50a84 to your computer and use it in GitHub Desktop.
Display the Gallery postprocess
<cfsetting enablecfoutputonly="true" />
<!--- @@displayname: Image Gallery for Post Process --->
<cfif arrayLen(stobj.aImage)>
<cfoutput>
<div class="row row-wrap" id="popup-gallery">
</cfoutput>
<cfloop from="1" to="#arrayLen(stobj.aImage)#" index="i">
<cfset stImage = application.fapi.getContentObject(typename="dmImage", objectid=stObj.aImage[i])>
<cfoutput>
<div class="span3"> <a class="hover-img popup-gallery-image" href="#stImage.standardImage#" data-effect="mfp-zoom-out"> <img src="#stImage.ThumbnailLargeImage#" alt="#stImage.alt#" title="#stImage.title#"><i class="icon-resize-full box-icon-big round hover-icon i"></i> </a> </div>
</cfoutput>
</cfloop>
<cfoutput>
</div>
</cfoutput>
</cfif>
<cfsetting enablecfoutputonly="false" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment