|
1 | 1 | {% extends 'base.html.twig' %} |
2 | 2 |
|
3 | 3 | {% block content %} |
4 | | - {% include 'breadcrumbs.html.twig' %} |
| 4 | + {% include 'components/breadcrumbs.html.twig' %} |
5 | 5 |
|
6 | | - <article class="phpdocumentor-element phpdocumentor-class"> |
7 | | - <h2 class="phpdocumentor-content__title"> |
8 | | - {{ node.name }} |
9 | | - {% if node.parent %} |
10 | | - <span class="phpdocumentor-class__extends"> |
11 | | - extends {{ node.parent|route('class:short') }} |
12 | | - </span> |
13 | | - {% endif %} |
14 | | - {% if usesPackages %} |
15 | | - <div class="phpdocumentor-element__package"> |
16 | | - in |
17 | | - <ul class="phpdocumentor-breadcrumbs"> |
18 | | - {% for breadcrumb in packages(node) %} |
19 | | - <li><a href="{{ link(breadcrumb) }}">{{ breadcrumb.name }}</a></li> |
20 | | - {% endfor %} |
21 | | - </ul> |
22 | | - </div> |
23 | | - {% endif %} |
24 | | - {% if node.interfaces is not empty %} |
25 | | - <span class="phpdocumentor-class__implements"> |
26 | | - implements |
27 | | - {% for interface in node.interfaces %} |
28 | | - {{ interface|route('class:short') }}{% if not loop.last %}, {% endif %} |
29 | | - {% endfor %} |
30 | | - </span> |
31 | | - {% endif %} |
32 | | - {% if node.usedTraits is not empty %} |
33 | | - <span class="phpdocumentor-class__extends"> |
34 | | - Uses |
35 | | - {% for trait in node.usedTraits %} |
36 | | - {{ trait|route('class:short') }}{% if not loop.last %}, {% endif %} |
37 | | - {% endfor %} |
38 | | - </span> |
39 | | - {% endif %} |
40 | | - </h2> |
41 | | - <aside class="phpdocumentor-element-found-in"> |
42 | | - <abbr class="phpdocumentor-element-found-in__file" title="{{ node.file.path }}">{{ node.file|route('file:short') }}</abbr> |
43 | | - : |
44 | | - <span class="phpdocumentor-element-found-in__line">{{ node.line }}</span> |
45 | | - </aside> |
| 6 | + <article class="phpdocumentor-element -class"> |
| 7 | + {{ include('components/class-title.html.twig') }} |
| 8 | + {{ include('components/element-found-in.html.twig') }} |
| 9 | + {{ include('components/element-header.html.twig') }} |
46 | 10 |
|
47 | | - <p class="phpdocumentor-class__summary">{{ node.summary }}</p> |
48 | | - <section class="phpdocumentor-class__description">{{ node.description|markdown }}</section> |
49 | | - |
50 | | - <h3>Table of Contents</h3> |
51 | | - <table class="phpdocumentor-table_of_contents"> |
52 | | - {% for constant in node.constants %} |
53 | | - <tr> |
54 | | - <th class="phpdocumentor-heading"><a href="{{ link(constant) }}">{{ constant.name }}</a></th> |
55 | | - <td class="phpdocumentor-cell">{{ constant.summary }}</td> |
56 | | - <td class="phpdocumentor-cell">{{ constant.value }}</td> |
57 | | - </tr> |
58 | | - {% endfor %} |
59 | | - {% for property in node.properties %} |
60 | | - <tr> |
61 | | - <th class="phpdocumentor-heading"><a href="{{ link(property) }}">${{ property.name }}</a></th> |
62 | | - <td class="phpdocumentor-cell">{{ property.summary }}</td> |
63 | | - <td class="phpdocumentor-cell">{{ property.type|route('class:short')|join('|')|raw }}</td> |
64 | | - </tr> |
65 | | - {% endfor %} |
66 | | - {% for property in node.magicProperties %} |
67 | | - <tr> |
68 | | - <th class="phpdocumentor-heading"><a href="{{ link(property) }}">${{ property.name }}</a></th> |
69 | | - <td class="phpdocumentor-cell">{{ property.summary }}</td> |
70 | | - <td class="phpdocumentor-cell">{{ property.type|route('class:short')|join('|')|raw }}</td> |
71 | | - </tr> |
72 | | - {% endfor %} |
73 | | - {% for property in node.inheritedProperties %} |
74 | | - <tr> |
75 | | - <th class="phpdocumentor-heading"><a href="{{ link(property) }}">${{ property.name }}</a></th> |
76 | | - <td class="phpdocumentor-cell">{{ property.summary }}</td> |
77 | | - <td class="phpdocumentor-cell">{{ property.type|route('class:short')|join('|')|raw }}</td> |
78 | | - </tr> |
79 | | - {% endfor %} |
80 | | - {% for method in node.methods %} |
81 | | - <tr> |
82 | | - <th class="phpdocumentor-heading"><a href="{{ link(method) }}">{{ method.name }}()</a></th> |
83 | | - <td class="phpdocumentor-cell">{{ method.summary }}</td> |
84 | | - <td class="phpdocumentor-cell">{{ method.response.type|route('class:short')|join('|')|raw }}</td> |
85 | | - </tr> |
86 | | - {% endfor %} |
87 | | - {% for method in node.magicMethods %} |
88 | | - <tr> |
89 | | - <th class="phpdocumentor-heading"><a href="{{ link(method) }}">{{ method.name }}()</a></th> |
90 | | - <td class="phpdocumentor-cell">{{ method.summary }}</td> |
91 | | - <td class="phpdocumentor-cell">{{ method.response.type|route('class:short')|join('|')|raw }}</td> |
92 | | - </tr> |
93 | | - {% endfor %} |
94 | | - {% for method in node.inheritedMethods %} |
95 | | - <tr> |
96 | | - <th class="phpdocumentor-heading"><a href="{{ link(method) }}">{{ method.name }}()</a></th> |
97 | | - <td class="phpdocumentor-cell">{{ method.summary }}</td> |
98 | | - <td class="phpdocumentor-cell">{{ method.response.type|route('class:short')|join('|')|raw }}</td> |
99 | | - </tr> |
100 | | - {% endfor %} |
101 | | - </table> |
102 | | - |
103 | | - {% if node.constants is not empty %} |
104 | | - <section> |
105 | | - <h3 class="phpdocumentor-constants__header">Constants</h3> |
106 | | - {% for constant in node.constants %} |
107 | | - {% include 'constant.html.twig' %} |
108 | | - {% endfor %} |
109 | | - {% for constant in node.inheritedConstants %} |
110 | | - {% include 'constant.html.twig' %} |
111 | | - {% endfor %} |
112 | | - </section> |
113 | | - {% endif %} |
114 | | - |
115 | | - {% if node.properties is not empty or node.magicProperties is not empty or node.inheritedProperties is not empty %} |
116 | | - <section> |
117 | | - <h3 class="phpdocumentor-properties__header">Properties</h3> |
118 | | - {% for property in node.properties %} |
119 | | - {% include 'property.html.twig' %} |
120 | | - {% endfor %} |
121 | | - {% for property in node.magicProperties %} |
122 | | - {% include 'property.html.twig' %} |
123 | | - {% endfor %} |
124 | | - {% for property in node.inheritedProperties %} |
125 | | - {% include 'property.html.twig' %} |
126 | | - {% endfor %} |
127 | | - </section> |
128 | | - {% endif %} |
129 | | - |
130 | | - {% if node.methods is not empty or node.magicMethods is not empty or node.inheritedMethods is not empty %} |
131 | | - <section> |
132 | | - <h3 class="phpdocumentor-methods__header">Methods</h3> |
133 | | - {% for method in node.methods %} |
134 | | - {% include 'method.html.twig' %} |
135 | | - {% endfor %} |
136 | | - {% for method in node.magicMethods %} |
137 | | - {% include 'method.html.twig' %} |
138 | | - {% endfor %} |
139 | | - {% for method in node.inheritedMethods %} |
140 | | - {% include 'method.html.twig' %} |
141 | | - {% endfor %} |
142 | | - </section> |
143 | | - {% endif %} |
| 11 | + {{ include('components/constants.html.twig') }} |
| 12 | + {{ include('components/properties.html.twig') }} |
| 13 | + {{ include('components/methods.html.twig') }} |
144 | 14 | </article> |
145 | 15 | {% endblock %} |
0 commit comments