forked from phpDocumentor/template.responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xsl
61 lines (55 loc) · 2.31 KB
/
index.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="html" />
<xsl:include href="layout.xsl" />
<xsl:template match="/project" mode="contents">
<div class="hero-unit">
<h1>
<xsl:value-of select="$title" disable-output-escaping="yes"/>
<xsl:if test="$title = ''">phpDocumentor</xsl:if>
</h1>
<h2>Documentation</h2>
</div>
<div class="row">
<div class="span7">
<xsl:if test="count(/project/namespace[@name != 'default']) > 0">
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Namespaces</li>
<xsl:apply-templates select="/project/namespace" mode="menu">
<xsl:sort select="@full_name" />
</xsl:apply-templates>
</ul>
</div>
</xsl:if>
<xsl:if test="count(/project/package[@name != '' and @name != 'default']) > 0">
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Packages</li>
<xsl:apply-templates select="/project/package" mode="menu">
<xsl:sort select="@name"/>
</xsl:apply-templates>
</ul>
</div>
</xsl:if>
</div>
<div class="span5">
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Charts</li>
<li>
<a href="{$root}graph_class.html">
<i class="icon-list-alt"></i> Class inheritance diagram
</a>
</li>
</ul>
</div>
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Reports</li>
<xsl:apply-templates select="/" mode="report-overview" />
</ul>
</div>
</div>
</div>
</xsl:template>
</xsl:stylesheet>