Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Commit 5cc453d

Browse files
committed
Merge branch 'master' of github.com:phpDocumentor/template.responsive
2 parents 4f6c251 + 03494d8 commit 5cc453d

File tree

9 files changed

+87
-51
lines changed

9 files changed

+87
-51
lines changed

css/template.css

+9-7
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,6 @@ i.icon-custom
340340
display: none;
341341
}
342342

343-
.btn-group.view
344-
{
345-
margin-left: 20px;
346-
margin-bottom: 20px;
347-
}
348-
349343
.visibility button
350344
{
351345
height: 24px;
@@ -437,6 +431,14 @@ div.labels
437431
font-size: 13px;
438432
}
439433

434+
.nav-list .nav-header .side-nav-header
435+
{
436+
font-weight: bold;
437+
line-height: 18px;
438+
color: #999999;
439+
text-transform: uppercase;
440+
}
441+
440442
.detail-description code {
441443
white-space: pre;
442444
display: inline-block;
@@ -501,7 +503,7 @@ div.labels
501503
{
502504
font-size: 0.80em;
503505
margin-bottom: 7px;
504-
display: block;
506+
display: inline-block;
505507
float: right;
506508
}
507509
}

elements/class.xsl

+20-18
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@
44
<!-- Sidebar index for classes and interfaces -->
55
<xsl:template match="/project/file/class|/project/file/interface" mode="sidebar">
66
<!-- Visibility toggles -->
7-
<span class="btn-group visibility" data-toggle="buttons-checkbox">
8-
<button class="btn public active" title="Show public elements">Public</button>
9-
<button class="btn protected" title="Show protected elements">Protected</button>
10-
<button class="btn private" title="Show private elements">Private</button>
11-
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
12-
</span>
13-
14-
<div class="btn-group view pull-right" data-toggle="buttons-radio">
15-
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
16-
<button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
7+
<div class="btn-toolbar">
8+
<div class="btn-group visibility" data-toggle="buttons-checkbox">
9+
<button class="btn public active" title="Show public elements">Public</button>
10+
<button class="btn protected" title="Show protected elements">Protected</button>
11+
<button class="btn private" title="Show private elements">Private</button>
12+
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
13+
</div>
14+
15+
<div class="btn-group view pull-right" data-toggle="buttons-radio">
16+
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
17+
<button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
18+
</div>
1719
</div>
1820

1921
<ul class="side-nav nav nav-list">
2022
<xsl:if test="method">
2123
<li class="nav-header">
22-
<i class="icon-custom icon-method"></i>&#160;Methods
24+
<i title="Methods" class="icon-custom icon-method"></i>&#160;Methods
2325
<ul>
2426
<xsl:apply-templates select="method[@visibility != 'protected' and @visibility != 'private']" mode="sidebar">
2527
<xsl:sort select="name" />
@@ -50,7 +52,7 @@
5052

5153
<xsl:if test="property">
5254
<li class="nav-header">
53-
<i class="icon-custom icon-property"></i>&#160;Properties
55+
<i title="Properties" class="icon-custom icon-property"></i>&#160;Properties
5456
<ul>
5557
<xsl:apply-templates select="property[@visibility != 'protected' and @visibility != 'private']" mode="sidebar">
5658
<xsl:sort select="name" />
@@ -81,7 +83,7 @@
8183

8284
<xsl:if test="constant">
8385
<li class="nav-header">
84-
<i class="icon-custom icon-constant"></i>&#160;Constants
86+
<i title="Constants" class="icon-custom icon-constant"></i>&#160;Constants
8587
<ul>
8688
<xsl:apply-templates select="constant" mode="sidebar">
8789
<xsl:sort select="name" />
@@ -159,7 +161,7 @@
159161

160162
<ul class="breadcrumb">
161163
<li>
162-
<a href="{$root}index.html"><i class="icon-custom icon-class"></i></a>
164+
<a href="{$root}index.html"><i title="Classes" class="icon-custom icon-class"></i></a>
163165
<span class="divider">\</span>
164166
</li>
165167
<xsl:apply-templates select="//namespace[@full_name=$namespace]" mode="breadcrumb">
@@ -188,23 +190,23 @@
188190
</xsl:if>
189191

190192
<xsl:if test="method">
191-
<h3><i class="icon-custom icon-method"></i>&#160;Methods</h3>
193+
<h3><i title="Methods" class="icon-custom icon-method"></i>&#160;Methods</h3>
192194
<xsl:apply-templates select="method" mode="contents">
193195
<xsl:sort select="@visibility" order="descending"/>
194196
<xsl:sort select="name"/>
195197
</xsl:apply-templates>
196198
</xsl:if>
197199

198200
<xsl:if test="property">
199-
<h3><i class="icon-custom icon-property"></i>&#160;Properties</h3>
201+
<h3><i title="Properties" class="icon-custom icon-property"></i>&#160;Properties</h3>
200202
<xsl:apply-templates select="property" mode="contents">
201203
<xsl:sort select="@visibility" order="descending" />
202204
<xsl:sort select="name" />
203205
</xsl:apply-templates>
204206
</xsl:if>
205207

206208
<xsl:if test="constant">
207-
<h3><i class="icon-custom icon-constant"></i>&#160;Constants</h3>
209+
<h3><i title="Constants" class="icon-custom icon-constant"></i>&#160;Constants</h3>
208210
<xsl:apply-templates select="constant" mode="contents">
209211
<xsl:sort select="name" />
210212
</xsl:apply-templates>
@@ -213,4 +215,4 @@
213215
</div>
214216
</xsl:template>
215217

216-
</xsl:stylesheet>
218+
</xsl:stylesheet>

elements/common.xsl

+8-2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
<xsl:with-param name="exclude-link" select="$exclude-link"/>
8282
</xsl:apply-templates>
8383
<xsl:value-of select="name"/>
84+
<xsl:if test="default[.!='']">
85+
<code>
86+
<xsl:text>&#160;=&#160;</xsl:text>
87+
<xsl:value-of select="default"/>
88+
</code>
89+
</xsl:if>
8490
</xsl:template>
8591

8692
<!-- Property/Constant list item in the sidebar -->
@@ -158,7 +164,7 @@
158164
</tr>
159165
</xsl:template>
160166

161-
<xsl:template match="tag[@name = 'license' or @name = 'link' or @name = 'see' or @name = 'author']" mode="tabular">
167+
<xsl:template match="tag[@name = 'license' or @name = 'link' or @name = 'see' or @name = 'uses' or @name = 'author']" mode="tabular">
162168
<tr>
163169
<th><xsl:value-of select="@name"/></th>
164170
<td>
@@ -224,4 +230,4 @@
224230
</li>
225231
</xsl:template>
226232

227-
</xsl:stylesheet>
233+
</xsl:stylesheet>

elements/constant.xsl

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
<xsl:param name="exclude-link" />
1717

1818
<xsl:variable name="name" select="."/>
19+
<xsl:variable name="value" select="../value"/>
1920
<pre>
2021
<xsl:value-of select="$name"/>
22+
<xsl:text>&#160;=&#160;</xsl:text>
23+
<xsl:value-of select="$value"/>
2124
<xsl:text>&#160;</xsl:text>
2225
<xsl:apply-templates select="../docblock/tag[@name='var']" mode="signature">
2326
<xsl:with-param name="exclude-link" select="$exclude-link"/>
@@ -30,7 +33,7 @@
3033
<xsl:variable name="desc">
3134
<xsl:apply-templates select="name" />
3235
</xsl:variable>
33-
<div class="element clickable {local-name(.)} {@visibility} {local-name(.)}_{translate(name, '$', '')}" data-toggle="collapse" data-target=".{local-name(.)}_{translate(name, '$', '')} .collapse">
36+
<div class="element clickable {local-name(.)} {@visibility} {local-name(.)}_{translate(name, '$', '')}" data-toggle="collapse" data-target=".{local-name(.)}_{translate(name, '$', '')} .collapse" title="{@visibility}">
3437
<h2>
3538
<xsl:if test="not($desc)">
3639
<xsl:value-of select="name"/>

elements/function.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<xsl:template match="function|method" mode="contents">
5858
<a id="{local-name(.)}_{name}"></a>
59-
<div class="element clickable {local-name(.)} {@visibility} {local-name(.)}_{name}" data-toggle="collapse" data-target=".{local-name(.)}_{name} .collapse">
59+
<div class="element clickable {local-name(.)} {@visibility} {local-name(.)}_{name}" data-toggle="collapse" data-target=".{local-name(.)}_{name} .collapse" title="{@visibility}">
6060
<h2><xsl:apply-templates select="name" /></h2>
6161
<xsl:apply-templates select="name" mode="signature" />
6262
<div class="labels">

elements/namespace.xsl

+8-8
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<xsl:variable name="functions" select="/project/file/function[@namespace=$fqnn]"/>
6868
<xsl:if test="count($functions) > 0">
69-
<h3><i class="icon-custom icon-function"></i> Functions</h3>
69+
<h3><i title="Functions" class="icon-custom icon-function"></i> Functions</h3>
7070
<xsl:apply-templates select="$functions" mode="contents">
7171
<xsl:sort select="name" />
7272
</xsl:apply-templates>
@@ -75,7 +75,7 @@
7575
<xsl:variable name="classes" select="/project/file/class[@namespace=$fqnn]"/>
7676
<xsl:variable name="interfaces" select="/project/file/interface[@namespace=$fqnn]"/>
7777
<xsl:if test="count($classes)+count($interfaces) > 0">
78-
<h3><i class="icon-custom icon-class"></i> Classes and interfaces</h3>
78+
<h3><i title="Class" class="icon-custom icon-class"></i> Classes and interfaces</h3>
7979
<xsl:apply-templates select="$classes|$interfaces" mode="compact">
8080
<xsl:sort select="local-name()" order="descending" />
8181
<xsl:sort select="full_name" />
@@ -84,7 +84,7 @@
8484

8585
<xsl:variable name="constants" select="/project/file/constant[@namespace=$fqnn]"/>
8686
<xsl:if test="count($constants) > 0">
87-
<h3><i class="icon-custom icon-constant"></i> Constants</h3>
87+
<h3><i title="Constants" class="icon-custom icon-constant"></i> Constants</h3>
8888
<xsl:apply-templates select="$constants" mode="contents">
8989
<xsl:sort select="name" />
9090
</xsl:apply-templates>
@@ -119,36 +119,36 @@
119119

120120
<xsl:variable name="functions" select="/project/file/function[@namespace=$parent_name]"/>
121121
<xsl:if test="count($functions) > 0">
122-
<li class="nav-header"><i class="icon-custom icon-function"></i> Functions</li>
122+
<li class="nav-header"><i title="Functions" class="icon-custom icon-function"></i> Functions</li>
123123
<xsl:apply-templates select="$functions" mode="sidebar">
124124
<xsl:sort select="name" />
125125
</xsl:apply-templates>
126126
</xsl:if>
127127

128128
<xsl:variable name="interfaces" select="/project/file/interface[@namespace=$parent_name]"/>
129129
<xsl:if test="count($interfaces) > 0">
130-
<li class="nav-header"><i class="icon-custom icon-interface"></i> Interfaces</li>
130+
<li class="nav-header"><i title="Interfaces" class="icon-custom icon-interface"></i> Interfaces</li>
131131
<xsl:for-each select="$interfaces">
132132
<li><a href="#{name}" title="{docblock/description}"><xsl:value-of select="name" /></a></li>
133133
</xsl:for-each>
134134
</xsl:if>
135135

136136
<xsl:variable name="classes" select="/project/file/class[@namespace=$parent_name]"/>
137137
<xsl:if test="count($classes) > 0">
138-
<li class="nav-header"><i class="icon-custom icon-class"></i> Classes</li>
138+
<li class="nav-header"><i title="Classes" class="icon-custom icon-class"></i> Classes</li>
139139
<xsl:for-each select="$classes">
140140
<li><a href="#{name}" title="{docblock/description}"><xsl:value-of select="name" /></a></li>
141141
</xsl:for-each>
142142
</xsl:if>
143143

144144
<xsl:variable name="constants" select="/project/file/constant[@namespace=$parent_name]"/>
145145
<xsl:if test="count($constants) > 0">
146-
<li class="nav-header"><i class="icon-custom icon-constant"></i> Constants</li>
146+
<li class="nav-header"><i title="Constants" class="icon-custom icon-constant"></i> Constants</li>
147147
<xsl:apply-templates select="$constants" mode="sidebar">
148148
<xsl:sort select="name" />
149149
</xsl:apply-templates>
150150
</xsl:if>
151151
</ul>
152152
</xsl:template>
153153

154-
</xsl:stylesheet>
154+
</xsl:stylesheet>

elements/package.xsl

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464

6565
<xsl:variable name="functions" select="/project/file/function[@package=$fqnn]"/>
6666
<xsl:if test="count($functions) > 0">
67-
<h3><i class="icon-custom icon-function"></i> Functions</h3>
67+
<h3><i title="Functions" class="icon-custom icon-function"></i> Functions</h3>
6868
<xsl:apply-templates select="$functions" mode="contents">
6969
<xsl:sort select="name" />
7070
</xsl:apply-templates>
7171
</xsl:if>
7272

7373
<xsl:variable name="classes" select="/project/file/class[@package=$fqnn]|/project/file/interface[@package=$fqnn]"/>
7474
<xsl:if test="count($classes) > 0">
75-
<h3><i class="icon-custom icon-class"></i> Classes and interfaces</h3>
75+
<h3><i title="Classes" class="icon-custom icon-class"></i> Classes and interfaces</h3>
7676
<xsl:apply-templates select="$classes" mode="compact">
7777
<xsl:sort select="local-name()" order="descending" />
7878
<xsl:sort select="full_name" />
@@ -81,7 +81,7 @@
8181

8282
<xsl:variable name="constants" select="/project/file/constant[@package=$fqnn]"/>
8383
<xsl:if test="count($constants) > 0">
84-
<h3><i class="icon-custom icon-constant"></i> Constants</h3>
84+
<h3><i title="Constants" class="icon-custom icon-constant"></i> Constants</h3>
8585
<xsl:apply-templates select="$constants" mode="contents">
8686
<xsl:sort select="name" />
8787
</xsl:apply-templates>
@@ -116,36 +116,36 @@
116116

117117
<xsl:variable name="functions" select="/project/file/function[@package=$name]"/>
118118
<xsl:if test="count($functions) > 0">
119-
<li class="nav-header"><i class="icon-custom icon-function"></i> Functions</li>
119+
<li class="nav-header"><i title="Functions" class="icon-custom icon-function"></i> Functions</li>
120120
<xsl:apply-templates select="$functions" mode="sidebar">
121121
<xsl:sort select="name" />
122122
</xsl:apply-templates>
123123
</xsl:if>
124124

125125
<xsl:variable name="interfaces" select="/project/file/interface[@package=$name]"/>
126126
<xsl:if test="count($interfaces) > 0">
127-
<li class="nav-header"><i class="icon-custom icon-interface"></i> Interfaces</li>
127+
<li class="nav-header"><i title="Interfaces" class="icon-custom icon-interface"></i> Interfaces</li>
128128
<xsl:for-each select="$interfaces">
129129
<li><a href="#{name}" title="{docblock/description}"><xsl:value-of select="name" /></a></li>
130130
</xsl:for-each>
131131
</xsl:if>
132132

133133
<xsl:variable name="classes" select="/project/file/class[@package=$name]"/>
134134
<xsl:if test="count($classes) > 0">
135-
<li class="nav-header"><i class="icon-custom icon-class"></i> Classes</li>
135+
<li class="nav-header"><i title="Classes" class="icon-custom icon-class"></i> Classes</li>
136136
<xsl:for-each select="$classes">
137137
<li><a href="#{name}" title="{docblock/description}"><xsl:value-of select="name" /></a></li>
138138
</xsl:for-each>
139139
</xsl:if>
140140

141141
<xsl:variable name="constants" select="/project/file/constant[@package=$name]"/>
142142
<xsl:if test="count($constants) > 0">
143-
<li class="nav-header"><i class="icon-custom icon-constant"></i> Constants</li>
143+
<li class="nav-header"><i title="Constants" class="icon-custom icon-constant"></i> Constants</li>
144144
<xsl:apply-templates select="$constants" mode="sidebar">
145145
<xsl:sort select="name" />
146146
</xsl:apply-templates>
147147
</xsl:if>
148148
</ul>
149149
</xsl:template>
150150

151-
</xsl:stylesheet>
151+
</xsl:stylesheet>

elements/property.xsl

+14-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@
2727
<xsl:with-param name="exclude-link" select="$exclude-link"/>
2828
</xsl:apply-templates>
2929
</pre>
30+
31+
<div class="row collapse">
32+
<div class="detail-description">
33+
<h3>Default</h3>
34+
<div class="subelement argument">
35+
<xsl:if test="../default[.!='']">
36+
<code>
37+
<xsl:value-of select="../default" disable-output-escaping="yes"/>
38+
</code>
39+
</xsl:if>
40+
</div>
41+
</div>
42+
</div>
3043
</xsl:template>
3144

32-
</xsl:stylesheet>
45+
</xsl:stylesheet>

0 commit comments

Comments
 (0)