portal2items: rigidness
This commit is contained in:
parent
a7f9a435ef
commit
765e6339e1
|
@ -34,13 +34,25 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="atom:entry" mode="gallery">
|
||||
<item date="{atom:updated}">
|
||||
<header><xsl:value-of select="atom:title"/></header>
|
||||
<footer><xsl:value-of select="atom:content[@type='html']" disable-output-escaping="yes"/></footer>
|
||||
<content-image><xsl:value-of select="atom:link[@rel='enclosure'][1]/@href"/></content-image>
|
||||
<link><xsl:value-of select="atom:link[@rel='alternate'][1]/@href"/></link>
|
||||
<item date="{atom:updated[1]}">
|
||||
<xsl:apply-templates select="atom:title[1]" mode="gallery"/>
|
||||
<xsl:apply-templates select="atom:content[@type='html'][1]" mode="gallery"/>
|
||||
<xsl:apply-templates select="atom:link[@rel='enclosure'][1]" mode="gallery"/>
|
||||
<xsl:apply-templates select="atom:alternate[@rel='enclosure'][1]" mode="gallery"/>
|
||||
</item>
|
||||
</xsl:template>
|
||||
<xsl:template match="atom:title" mode="gallery">
|
||||
<header><xsl:value-of select="."/></header>
|
||||
</xsl:template>
|
||||
<xsl:template match="atom:content[@type='html']" mode="gallery">
|
||||
<footer><xsl:value-of select="." disable-output-escaping="yes"/></footer>
|
||||
</xsl:template>
|
||||
<xsl:template match="atom:link[@rel='enclosure' and @href]" mode="gallery">
|
||||
<content-image><xsl:value-of select="@href"/></content-image>
|
||||
</xsl:template>
|
||||
<xsl:template match="atom:link[@rel='alternate' and @href]" mode="gallery">
|
||||
<link><xsl:value-of select="@href"/></link>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="atom:entry" mode="wiki">
|
||||
<item date="{atom:updated}">
|
||||
|
|
|
@ -325,7 +325,6 @@
|
|||
<xsl:if test="content-image">
|
||||
<xsl:attribute name="style">
|
||||
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
|
||||
background-size: cover;
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
|
|
Loading…
Reference in New Issue