{#
Clefs disponibles
- enabled
- type => default h1
- class
- content
- format 'html'|null
- uc_first => default true
#}
{% if title.content is defined %}
{% if title.uc_first is defined and title.uc_first in [false, true] %}
{% set uc_first_content = title.uc_first %}
{% else %}
{% set uc_first_content = true %}
{% endif %}
<{% if title.type is defined and title.type not in ['', null] %}{{ title.type }} {% else %}h1{% endif %} {% if title.class is defined %}class="{{ title.class }}"{% endif %}>
{% if title.format is defined and title.format is same as('html') %}
{{ title.content|replaceKeyInText|raw }}
{% else %}
{{ title.content|replaceKeyInText|trans([], null, null, uc_first_content)|raw }}
{% endif %}
</{% if title.type is defined %}{{ title.type }} {% else %}h1{% endif %}>
{% endif %}