projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright years in recently modified files
[tweeper.git]
/
src
/
rss_converter_pump.io.xsl
diff --git
a/src/rss_converter_pump.io.xsl
b/src/rss_converter_pump.io.xsl
index
8cdc3d8
..
42f8ac0
100644
(file)
--- a/
src/rss_converter_pump.io.xsl
+++ b/
src/rss_converter_pump.io.xsl
@@
-25,6
+25,7
@@
exclude-result-prefixes="php">
<xsl:param name="generate-enclosure"/>
exclude-result-prefixes="php">
<xsl:param name="generate-enclosure"/>
+ <xsl:param name="show-usernames"/>
<xsl:output method="xml" indent="yes"/>
<xsl:output method="xml" indent="yes"/>
@@
-38,7
+39,10
@@
<xsl:variable name="item-permalink" select=".//p[@class='muted']/small/a/@href"/>
<item>
<title>
<xsl:variable name="item-permalink" select=".//p[@class='muted']/small/a/@href"/>
<item>
<title>
- <xsl:value-of select="concat($user-name, ': ', normalize-space($item-content))"/>
+ <xsl:if test="$show-usernames = 1">
+ <xsl:value-of select="concat($user-name, ': ')"/>
+ </xsl:if>
+ <xsl:value-of select="normalize-space($item-content)"/>
</title>
<link>
<xsl:value-of select="$item-permalink"/>
</title>
<link>
<xsl:value-of select="$item-permalink"/>
@@
-50,8
+54,10
@@
<xsl:value-of select="php:functionString('Tweeper\Tweeper::strToRssDate', .//abbr[@class='easydate']/@title)"/>
</pubDate>
<description>
<xsl:value-of select="php:functionString('Tweeper\Tweeper::strToRssDate', .//abbr[@class='easydate']/@title)"/>
</pubDate>
<description>
- <xsl:value-of select="concat($user-name, ': ')"/>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
+ <xsl:if test="$show-usernames = 1">
+ <xsl:value-of select="concat($user-name, ': ')"/>
+ </xsl:if>
<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>