projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30a31fb
)
rss_converter_pump.io.xsl: add enclosure element for images
author
Antonio Ospite <ao2@ao2.it>
Mon, 23 May 2016 12:51:38 +0000
(14:51 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 23 May 2016 12:51:38 +0000
(14:51 +0200)
rss_converter_pump.io.xsl
patch
|
blob
|
history
diff --git
a/rss_converter_pump.io.xsl
b/rss_converter_pump.io.xsl
index
c505a50
..
1577dcf
100644
(file)
--- a/
rss_converter_pump.io.xsl
+++ b/
rss_converter_pump.io.xsl
@@
-54,6
+54,13
@@
<xsl:copy-of select="$item-content/node()"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<xsl:copy-of select="$item-content/node()"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
+ <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>
</item>
</xsl:template>
</item>
</xsl:template>