Allow for more than one image per item.
svn path=/trunk/; revision=7078
This commit is contained in:
@@ -4,11 +4,16 @@
|
||||
|
||||
<itemset>
|
||||
<item type="t-shirt" id="latin-white" date="2001-01-01">
|
||||
<available size="S" />
|
||||
<available size="M" />
|
||||
<available size="L" />
|
||||
<available size="XL" />
|
||||
<available size="XXL" />
|
||||
<image>/order/2001/latin-white.jpg</image>
|
||||
<available size="S"/>
|
||||
<available size="M"/>
|
||||
<available size="L"/>
|
||||
<available size="XL"/>
|
||||
<available size="XXL"/>
|
||||
<image
|
||||
small="/order/2001/latin-white-front-small.jpg"
|
||||
large="/order/2001/latin-white-front-large.jpg"/>
|
||||
<image
|
||||
small="/order/2001/latin-white-back-small.jpg"
|
||||
large="/order/2001/latin-white-back-large.jpg"/>
|
||||
</item>
|
||||
</itemset>
|
||||
|
BIN
order/2001/latin-white-back-large.jpg
Normal file
BIN
order/2001/latin-white-back-large.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
order/2001/latin-white-back-small.jpg
Normal file
BIN
order/2001/latin-white-back-small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
order/2001/latin-white-front-large.jpg
Normal file
BIN
order/2001/latin-white-front-large.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -18,17 +18,19 @@
|
||||
|
||||
<!-- Image -->
|
||||
<xsl:element name="td">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="link" />
|
||||
</xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="alt">Image of the item</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="image" />
|
||||
<xsl:for-each select="image">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@large"/>
|
||||
</xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="alt">Image of the item</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="@small"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
|
||||
<!-- Name and description -->
|
||||
|
Reference in New Issue
Block a user