Foundry: Current section of MPA now gets a class
git-svn-id: https://svn.libreccm.org/ccm/trunk@3620 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
82013214d9
commit
cd0fab5723
|
|
@ -92,6 +92,10 @@
|
||||||
<xsl:apply-templates select="$section-layout-tree/*">
|
<xsl:apply-templates select="$section-layout-tree/*">
|
||||||
<xsl:with-param name="mpa-section-title" tunnel="yes" select="."/>
|
<xsl:with-param name="mpa-section-title" tunnel="yes" select="."/>
|
||||||
<xsl:with-param name="href" tunnel="yes" select="@link"/>
|
<xsl:with-param name="href" tunnel="yes" select="@link"/>
|
||||||
|
<xsl:with-param name="class"
|
||||||
|
select="if(./@rank = ../../cms:item/rank)
|
||||||
|
then 'active'
|
||||||
|
else ''"/>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
@ -102,7 +106,7 @@
|
||||||
|
|
||||||
<xsl:variable name="current-rank" select="./rank"/>
|
<xsl:variable name="current-rank" select="./rank"/>
|
||||||
<xsl:variable name="page-number"
|
<xsl:variable name="page-number"
|
||||||
select="count($contentitem-tree/sections[./pageBreak = 'true'
|
select="count($contentitem-tree/sections[./pageBreak = 'true'
|
||||||
and ./rank < ($current-rank + 1)])"/>
|
and ./rank < ($current-rank + 1)])"/>
|
||||||
|
|
||||||
<xsl:apply-templates select="$section-layout-tree/*">
|
<xsl:apply-templates select="$section-layout-tree/*">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue