Skip to content

Commit f32fca1

Browse files
authored
[BUGFIX] Fix deprecation notice in api.typo3.org (#653)
Resolves #648
1 parent ed81e89 commit f32fca1

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{% set tags = node.tags|filter((v,k) => k in ['internal']) %}
2+
3+
{% if tags|length > 0 and tags|first|length > 0 %}
4+
{% for name,seriesOfTag in tags %}
5+
{% for tag in seriesOfTag %}
6+
<div class="phpdocumentor-admonition">
7+
<svg class="phpdocumentor-admonition__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg>
8+
<article>
9+
<strong>Internal</strong> {{ tag.description|description|markdown }}
10+
</article>
11+
</div>
12+
{% endfor %}
13+
{% endfor %}
14+
{% endif %}
15+
16+
{% set tags = node.tags|filter((v,k) => k not in ['var', 'param', 'property', 'property-read', 'property-write', 'method', 'return', 'package', 'api', 'deprecated', 'internal']) %}
17+
18+
{% if tags|length > 0 and tags|first|length > 0 %}
19+
<h5 class="phpdocumentor-tag-list__heading" id="tags">
20+
Tags
21+
{{ include('components/headerlink.html.twig', {'on': node, 'at': 'tags'}, with_context = false) }}
22+
</h5>
23+
<dl class="phpdocumentor-tag-list">
24+
{% for name,seriesOfTag in tags %}
25+
{% for tag in seriesOfTag %}
26+
<dt class="phpdocumentor-tag-list__entry">
27+
<span class="phpdocumentor-tag__name">{{ name }}</span>
28+
</dt>
29+
<dd class="phpdocumentor-tag-list__definition">
30+
{% if tag.version %}
31+
<span class="phpdocumentor-tag-link">{{ tag.version }}</span>
32+
{% endif %}
33+
{% if tag.type %}
34+
<span class="phpdocumentor-tag-link">{{ tag.type|route('class:short')|join('|')|raw }}</span>
35+
{% endif %}
36+
{% if tag.reference %}
37+
<span class="phpdocumentor-tag-link">{{ tag.reference|route('class:short')|join('|')|raw }}</span>
38+
{% endif %}
39+
{% if tag.link %}
40+
<a class="phpdocumentor-tag-link" href="{{ tag.link }}">{% if not tag.description.empty %} {{ tag.description | description | markdown }} {% else %} {{ tag.link }} {% endif %}</a>
41+
{% endif %}
42+
43+
{% if not tag.link %}
44+
{{ include('components/description.html.twig', {'node': tag}) }}
45+
{% endif %}
46+
</dd>
47+
{% endfor %}
48+
{% endfor %}
49+
</dl>
50+
{% endif %}

0 commit comments

Comments
 (0)