2 <h1 class="title">Table of Contents</h1>
\r
4 {assign var="lastcontext" value='refsect1'}
\r
5 {section name=toc loop=$toc}
\r
7 {if $toc[toc].tagname != $lastcontext}
\r
8 {if $lastcontext == 'refsect1'}
\r
10 <li>{$toc[toc].link}</li>
\r
12 {if $lastcontext == 'refsect2'}
\r
13 {if $toc[toc].tagname == 'refsect1'}
\r
15 <li>{$toc[toc].link}</li>
\r
17 {if $toc[toc].tagname == 'refsect3'}
\r
19 <li>{$toc[toc].link}</li>
\r
23 <li>{$toc[toc].link}</li>
\r
26 {assign var="lastcontext" value=$toc[toc].tagname}
\r
28 <li>{$toc[toc].link}</li>
\r
31 {if $lastcontext == 'refsect2'}
\r
34 {if $lastcontext == 'refsect3'}
\r