Foundry: New tag for templates pIfNotEmpty
git-svn-id: https://svn.libreccm.org/ccm/trunk@3679 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
39da2f1993
commit
11626c2299
|
|
@ -1925,6 +1925,25 @@
|
|||
</p>
|
||||
</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-desc>
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue