X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/1d3e3dda8f5ca37a4d3aac594f87374cbea51243..09a776a04669c542dd1f8465385aaf3e40a75a6f:/src/rss_converter_twitter.com.xsl diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 88f3b94..1c20e70 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -21,10 +21,11 @@ + + @@ -35,6 +36,11 @@ + @@ -67,15 +73,17 @@ too instead of the t.co redirections. --> - - - - + + + + + + + - - - - + + + @@ -120,9 +128,12 @@ + - <xsl:value-of select="concat($user-name, ': ')"/> + <xsl:if test="($show-usernames = 1) or ($screen-name != $user-name)"> + <xsl:value-of select="concat($user-name, ': ')"/> + </xsl:if> <xsl:if test="$item-has-video"> <xsl:text>(Video) </xsl:text> </xsl:if> @@ -149,17 +160,25 @@ </pubDate> <description> <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> - <xsl:value-of select="concat($user-name, ':')"/> - <xsl:element name="br"/> + <xsl:if test="($show-usernames = 1) or ($screen-name != $user-name)"> + <xsl:value-of select="concat($user-name, ':')"/> + <xsl:element name="br"/> + </xsl:if> <xsl:if test="$item-has-video"> <xsl:text> (Video)</xsl:text> <xsl:element name="br"/> </xsl:if> + <xsl:if test="$item-has-gif"> + <xsl:text> (GIF)</xsl:text> + <xsl:element name="br"/> + </xsl:if> <xsl:element name="span"> <xsl:attribute name="style">white-space: pre-wrap;</xsl:attribute> <xsl:apply-templates select="$item-content/node()"/> </xsl:element> - <xsl:apply-templates select="$item-media/node()"/> + <xsl:if test="$show-multimedia = 1"> + <xsl:apply-templates select="$item-media/node()"/> + </xsl:if> <xsl:text disable-output-escaping="yes">]]></xsl:text> </description> <xsl:if test="$generate-enclosure = 1">