Permalink
Browse files

Added QuickNav for widgets.

  • Loading branch information...
1 parent e4a2969 commit e855f842d33429a2b9ae0467b11c1c518fb2e1c2 @scottgonzalez scottgonzalez committed Sep 2, 2012
Showing with 24 additions and 0 deletions.
  1. +24 −0 entries2html-base.xsl
View
@@ -297,6 +297,30 @@
<xsl:template name="entry-body-widget">
<xsl:variable name="entry-name" select="@name"/>
+ <section class="quick-nav">
+ <header>
+ <h2>QuickNav</h2>
+ </header>
+
+ <h3>Options</h3>
+ <xsl:for-each select="options/option">
+ <xsl:variable name="name" select="@name"/>
+ <div><a href="#option-{$name}"><xsl:value-of select="$name"/></a></div>
+ </xsl:for-each>
+
+ <h3>Methods</h3>
+ <xsl:for-each select="methods/method">
+ <xsl:variable name="name" select="@name"/>
+ <div><a href="#method-{$name}"><xsl:value-of select="$name"/></a></div>
+ </xsl:for-each>
+
+ <h3>Events</h3>
+ <xsl:for-each select="events/event">
+ <xsl:variable name="name" select="@name"/>
+ <div><a href="#event-{$name}"><xsl:value-of select="$name"/></a></div>
+ </xsl:for-each>
+ </section>
+
<xsl:if test="options">
<section id="options">
<header>

0 comments on commit e855f84

Please sign in to comment.