X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/68dbd68eb630fe24eb8ca51756c8d95a44d51205..8a9794cc47a6f389541168ced98e14080907034b:/rss_converter_twitter.com.xsl?ds=inline diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 7367dd8..c154141 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -78,8 +78,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + @@ -87,10 +116,16 @@ + + + <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. @@ -98,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, ' …', ''))"/> @@ -115,11 +150,16 @@ <![CDATA[ + + (Video) + + ]]> +