Created
September 27, 2012 22:09
-
-
Save jdsimcoe/3796748 to your computer and use it in GitHub Desktop.
Featured object
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template name="component-featured"> | |
<xsl:param name="component" select="'featured'" /> | |
<xsl:param name="entries" /> | |
<xsl:if test="count($entries)"> | |
<div class="row featured"> | |
<xsl:for-each select="$entries"> | |
<div class="span4"> | |
<a target="_blank"> | |
<xsl:attribute name="href"> | |
<xsl:value-of select="url" /> | |
</xsl:attribute> | |
<img style="width: 100%; height: 169px;" class="inline" data-responsimage-anchor="5"> | |
<xsl:attribute name="data-responsimage"> | |
<xsl:value-of select="image/filename" /> | |
</xsl:attribute> | |
</img> | |
</a> | |
</div> | |
</xsl:for-each> | |
</div> | |
</xsl:if> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment