-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpage_title.html.twig
More file actions
25 lines (25 loc) · 1.1 KB
/
page_title.html.twig
File metadata and controls
25 lines (25 loc) · 1.1 KB
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
{% if title is defined %}
<div class="ibexa-page-title {% if page_title_class is defined %}{{ page_title_class }}{% endif %}">
<div class="ibexa-page-title__top">
<h1 class="ibexa-page-title__title">
<span class="ibexa-page-title__content" title="{{ title }}">{{ title }}</span>
{% block tag %}
{% if tag is defined %}
{% set tag_attr = tag_attr|default({}) %}
<twig:ibexa:tag
:type="tag_type|default('neutral')"
class="{{ (tag_attr.class|default('') ~ ' ' ~ tag_extra_classes|default(''))|trim }}"
style="{{ tag_attr.style|default('') }}"
>
{{ tag }}
</twig:ibexa:tag>
{% endif %}
{% endblock %}
</h1>
{% block top_side %}{% endblock %}
</div>
<div class="ibexa-page-title__bottom">
{% block bottom %}{% endblock %}
</div>
</div>
{% endif %}