Created
August 16, 2015 05:55
-
-
Save Dan4IT/098556df75e235ab98ba to your computer and use it in GitHub Desktop.
Mura - Featured Pages Iterator
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
<cfoutput> | |
<cfset it=$.getBean('feed').loadBy(name='Featured Pages').getIterator()> | |
<cfloop condition="it.hasNext()"> | |
<cfset sub1=it.next()> | |
<div class="thumbnails thumbnail-style thumbnail-kenburn"> | |
<div class="thumbnail-img"> | |
<div class="overflow-hidden"> | |
<cfif sub1.getImageURL(size = 'standardimage') IS ''> | |
<a href="#sub1.getURL()#"><img class="img-responsive" src="#$.siteConfig('themeAssetPath')#/assets/img/main/img1.jpg" alt=""></a> | |
<cfelse> | |
<a href="#sub1.getURL()#"><img alt="#sub1.getMenuTitle()#" class="img-responsive" src="#sub1.getImageURL(size = 'accommodationsummary')#" /></a> | |
</cfif> | |
</div> | |
<a class="btn-u btn-u-light-green" href="#sub1.getURL()#">read more +</a> | |
</div> | |
<div class="caption"> | |
<h3><a class="hover-effect" href="#sub1.getURL()#">#sub1.getMenuTitle()#</a></h3> | |
<p>#sub1.getSummary()#</p> | |
</div> | |
</div> | |
</cfloop> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment