X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/c46ce78d72a01ec96d627ee79c8d26288673aaac..47350899b24fb9a79bd9f57bcabc7281b9a01e34:/rss_converter_twitter.com.xsl diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 5c48e19..c154141 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -92,8 +92,23 @@ + + + + + + + + + + + - + + + + + @@ -103,9 +118,14 @@ + + <xsl:value-of select="concat($user-name, ': ')"/> + <xsl:if test="$item-has-video"> + <xsl:text>(Video) </xsl:text> + </xsl:if> <!-- Prepend a space in front of the URLs which are not preceded by an open parenthesis, for aestethic reasons. @@ -113,7 +133,7 @@ --> <xsl:variable name="processed-title" - select="php:function('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', string($item-content))"/> + select="php:functionString('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', $item-content)"/> <!-- Also strip   and … --> <xsl:value-of select="normalize-space(translate($processed-title, ' …', ''))"/> @@ -130,12 +150,16 @@ <![CDATA[ + + (Video) + ]]> +