Skip to content

Commit 0c2c850

Browse files
committed
Fixing links to methods and constants
1 parent 7d3bfe1 commit 0c2c850

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed

base/class.sidebar.html.twig

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
1-
{% use 'base/sidebar.html.twig' %}
2-
3-
{% block sidebar_buttons %}
4-
<div class="btn-group visibility" data-toggle="buttons-checkbox">
5-
<button class="btn public active" title="Show public elements">Public</button>
6-
<button class="btn protected" title="Show protected elements">Protected</button>
7-
<button class="btn private" title="Show private elements">Private</button>
8-
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
9-
</div>
10-
{% endblock %}
11-
12-
{% block sidebar_entry %}
13-
<li class="{{ type }} {{ item.visibility }}{{ item.parent.name != node.name ? ' inherited' : '' }}">
14-
<a href="#{{ type }}_{{ item.name }}" title="{{ item.name }} :: {{ item.summary }}">
15-
<span class="methodName">{{ item.name }}</span>
16-
</a>
17-
</li>
18-
{% endblock %}
19-
20-
{% block sidebar_content %}
21-
<ul class="side-nav nav nav-list">
22-
<li class="nav-header">
23-
Methods
24-
<ul>
25-
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
26-
{% for item in node.methods.merge(specialMethods)|sort_asc %}
27-
{% set type = 'method' %}
28-
{% if item.visibility == '' or item.visibility == 'public' %}
29-
{{ block('sidebar_entry') }}
30-
{% endif %}
31-
{% endfor %}
32-
</ul>
33-
</li>
34-
<li class="nav-header protected">» Protected
35-
<ul>
36-
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
37-
{% for item in node.methods.merge(specialMethods)|sort_asc %}
38-
{% set type = 'method' %}
39-
{% if item.visibility == 'protected' %}
40-
{{ block('sidebar_entry') }}
41-
{% endif %}
42-
{% endfor %}
43-
</ul>
44-
</li>
45-
<li class="nav-header private">» Private
46-
<ul>
47-
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
48-
{% for method in node.methods.merge(specialMethods)|sort_asc %}
49-
{% set type = 'method' %}
50-
{% if item.visibility == 'private' %}
51-
{{ block('sidebar_entry') }}
52-
{% endif %}
53-
{% endfor %}
54-
</ul>
55-
</li>
56-
<li class="nav-header">
57-
Constants
58-
{% if node.constants.merge(node.inheritedConstants)|length > 0 %}
59-
<ul>
60-
{% for constant in node.constants.merge(node.inheritedConstants)|sort_asc %}
61-
<li class="constant {{ constant.visibility }}">
62-
<a href="#constant_{{ constant.name }}" title="{{ constant.name }} :: {{ constant.summary }}">
63-
<pre>{{ constant.name }}</pre>
64-
</a>
65-
</li>
66-
{% endfor %}
67-
</ul>
68-
{% endif %}
69-
</li>
70-
</ul>
71-
{% endblock %}
1+
{% use 'base/sidebar.html.twig' %}
2+
3+
{% block sidebar_buttons %}
4+
<div class="btn-group visibility" data-toggle="buttons-checkbox">
5+
<button class="btn public active" title="Show public elements">Public</button>
6+
<button class="btn protected" title="Show protected elements">Protected</button>
7+
<button class="btn private" title="Show private elements">Private</button>
8+
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
9+
</div>
10+
{% endblock %}
11+
12+
{% block sidebar_entry %}
13+
<li class="{{ type }} {{ item.visibility }}{{ item.parent.name != node.name ? ' inherited' : '' }}">
14+
<a href="{{ link(node) }}#{{ type }}_{{ item.name }}" title="{{ item.name }} :: {{ item.summary }}">
15+
<span class="methodName">{{ item.name }}</span>
16+
</a>
17+
</li>
18+
{% endblock %}
19+
20+
{% block sidebar_content %}
21+
<ul class="side-nav nav nav-list">
22+
<li class="nav-header">
23+
Methods
24+
<ul>
25+
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
26+
{% for item in node.methods.merge(specialMethods)|sort_asc %}
27+
{% set type = 'method' %}
28+
{% if item.visibility == '' or item.visibility == 'public' %}
29+
{{ block('sidebar_entry') }}
30+
{% endif %}
31+
{% endfor %}
32+
</ul>
33+
</li>
34+
<li class="nav-header protected">» Protected
35+
<ul>
36+
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
37+
{% for item in node.methods.merge(specialMethods)|sort_asc %}
38+
{% set type = 'method' %}
39+
{% if item.visibility == 'protected' %}
40+
{{ block('sidebar_entry') }}
41+
{% endif %}
42+
{% endfor %}
43+
</ul>
44+
</li>
45+
<li class="nav-header private">» Private
46+
<ul>
47+
{% set specialMethods = node.magicMethods ? node.inheritedMethods.merge(node.magicMethods) : node.inheritedMethods %}
48+
{% for method in node.methods.merge(specialMethods)|sort_asc %}
49+
{% set type = 'method' %}
50+
{% if item.visibility == 'private' %}
51+
{{ block('sidebar_entry') }}
52+
{% endif %}
53+
{% endfor %}
54+
</ul>
55+
</li>
56+
<li class="nav-header">
57+
Constants
58+
{% if node.constants.merge(node.inheritedConstants)|length > 0 %}
59+
<ul>
60+
{% for constant in node.constants.merge(node.inheritedConstants)|sort_asc %}
61+
<li class="constant {{ constant.visibility }}">
62+
<a href="{{ link(node) }}#constant_{{ constant.name }}" title="{{ constant.name }} :: {{ constant.summary }}">
63+
<pre>{{ constant.name }}</pre>
64+
</a>
65+
</li>
66+
{% endfor %}
67+
</ul>
68+
{% endif %}
69+
</li>
70+
</ul>
71+
{% endblock %}

0 commit comments

Comments
 (0)