templates/platform/component/atom/title.html.twig line 1

Open in your IDE?
  1. {#
  2. Clefs disponibles
  3.     - enabled
  4.     - type => h1 par défaut
  5.     - class
  6.     - content
  7. #}
  8. {% if title.content is defined and canDisplayComponent(app.user, title) %}
  9.     <{% 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 %}>
  10.     {% if title.format is defined and title.format is same as('html') %}
  11.         {{ title.content|replaceKeyInText|raw }}
  12.     {% else %}
  13.         {{ title.content|trans|capitalize|replaceKeyInText|raw }}
  14.     {% endif %}
  15.     </{% if title.type is defined %}{{ title.type }} {% else %}h1{% endif %}>
  16. {% endif %}