Revision: 25
http://picfinity.svn.sourceforge.net/picfinity/?rev=25&view=rev
Author: espadav8
Date: 2007-08-09 11:26:05 -0700 (Thu, 09 Aug 2007)
Log Message:
-----------
IE6 now works (kind of) none of the JS works, but because of the linked images/folders it can render them
The breadcrumb trail isn't working yet, but that shouldn't be too hard to correct
Modified Paths:
--------------
.themes/ajax/ajax.xsl
Modified: .themes/ajax/ajax.xsl
===================================================================
--- .themes/ajax/ajax.xsl 2007-08-09 18:24:11 UTC (rev 24)
+++ .themes/ajax/ajax.xsl 2007-08-09 18:26:05 UTC (rev 25)
@@ -96,8 +96,11 @@
<xsl:choose>
<xsl:when test="count(image) > 0">
+ <xsl:variable name="path">
+ <xsl:apply-templates select="ancestor::folder" mode="getpath" />
+ </xsl:variable>
<img>
- <xsl:attribute name="src"><xsl:value-of select="concat('.thumbs/' , @name, '/', image[1]/@file)" /></xsl:attribute>
+ <xsl:attribute name="src"><xsl:value-of select="concat('.thumbs/' , $path, @name, '/', image[1]/@file)" /></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="image[1]/@file" /></xsl:attribute>
</img>
</xsl:when>
@@ -179,13 +182,31 @@
<xsl:apply-templates select="themes" />
-
- <!-- the passed in ID is an image -->
- <xsl:if test="$folder = 0">
- <xsl:apply-templates select="//image[@id = $post_id]" mode="post" />
- </xsl:if>
+ <xsl:choose>
+ <!-- the passed in ID is an image -->
+ <xsl:when test="$folder = 0">
+ <xsl:apply-templates select="//image[@id = $post_id]" mode="post" />
+ </xsl:when>
+
+ <!-- the passed in ID is an folder -->
+ <xsl:when test="$folder = 1">
+ <xsl:apply-templates select="//folder[@id = $post_id]" mode="post" />
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
+ <xsl:template match="folder" mode="post">
+ <div id="breadcrumbtrail">
+ <xsl:apply-templates select="self::*" mode="breadcrumbtrail" />
+ </div>
+ <div id="albums">
+ <div id="selectedalbum">
+ <xsl:apply-templates select="folder"/>
+ <xsl:apply-templates select="image"/>
+ </div>
+ </div>
+ </xsl:template>
+
<xsl:template match="folder" mode="breadcrumbtrail">
<xsl:if test="parent::folder">
<xsl:apply-templates select="parent::folder" mode="breadcrumbtrail" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|