Foundry: New tag for templates pIfNotEmpty

git-svn-id: https://svn.libreccm.org/ccm/trunk@3679 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-10-09 07:06:40 +00:00
parent 39da2f1993
commit 11626c2299
1 changed files with 19 additions and 0 deletions

View File

@ -1925,6 +1925,25 @@
</p> </p>
</xsl:template> </xsl:template>
<xsl:template match="pIfNotEmpty">
<xsl:param name="id" select="''"/>
<xsl:param name="class" select="''"/>
<xsl:variable name="p-content">
<xsl:apply-templates/>
</xsl:variable>
<xsl:if test="normalize-space($p-content)">
<p>
<xsl:call-template name="foundry:process-layouttree-attributes">
<xsl:with-param name="id" select="$id"/>
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
<xsl:apply-templates/>
</p>
</xsl:if>
</xsl:template>
<foundry:doc section="user" type="template-tag"> <foundry:doc section="user" type="template-tag">
<foundry:doc-desc> <foundry:doc-desc>
<p> <p>