X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/dadaf9a1b2b883358afec542aab6790d5423cf74..6525c19868a0511abaaac9d2ba452ba640899209:/src/rss_converter_instagram.com.xsl diff --git a/src/rss_converter_instagram.com.xsl b/src/rss_converter_instagram.com.xsl index 2e427b4..71b60a7 100644 --- a/src/rss_converter_instagram.com.xsl +++ b/src/rss_converter_instagram.com.xsl @@ -24,6 +24,8 @@ exclude-result-prefixes="php"> + + @@ -64,12 +66,18 @@ + <xsl:variable name="title-length" select="140"/> - <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/> + <xsl:variable name="item-content-title"> + <xsl:if test="$show-usernames = 1"> + <xsl:value-of select="concat($screen-name, ': ')"/> + </xsl:if> + <xsl:value-of select="normalize-space($item-content-caption)"/> + </xsl:variable> <!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 --> <xsl:choose> <xsl:when test="string-length($item-content-title) > $title-length"> @@ -100,7 +108,9 @@ </xsl:if> <xsl:value-of select="$item-content-caption"/> </p><br /> - <a href="{$item-permalink}"><img src="{$item-content-image}" style="max-width: 100%"/></a> + <xsl:if test="$show-multimedia = 1"> + <a href="{$item-permalink}"><img src="{$item-content-image-data}" style="max-width: 100%"/></a> + </xsl:if> <xsl:text disable-output-escaping="yes">]]></xsl:text> </description> <xsl:if test="$generate-enclosure = 1">