+ <xsl:if test="$generate-enclosure = 1">
+ <xsl:variable name="image-thumb-link" select=".//img[contains(@class, 'object-image')]/@src"/>
+ <xsl:if test="$image-thumb-link">
+ <xsl:variable name="image-link" select="php:functionString('str_replace', '_thumb', '', $image-thumb-link)"/>
+ <xsl:copy-of select="php:functionString('Tweeper::generateEnclosure', $image-link)"/>
+ </xsl:if>
+ </xsl:if>