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

Open in your IDE?
  1. {#
  2. Clefs disponibles
  3. - enabled
  4. - type => default h1
  5. - class
  6. - content
  7. - format 'html'|null
  8. - uc_first => default true
  9. #}
  10. {% if title.content is defined %}
  11. {% if title.uc_first is defined and title.uc_first in [false, true] %}
  12. {% set uc_first_content = title.uc_first %}
  13. {% else %}
  14. {% set uc_first_content = true %}
  15. {% endif %}
  16. <{% 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 %}>
  17. {% if title.format is defined and title.format is same as('html') %}
  18. {{ title.content|replaceKeyInText|raw }}
  19. {% else %}
  20. {{ title.content|replaceKeyInText|trans([], null, null, uc_first_content)|raw }}
  21. {% endif %}
  22. </{% if title.type is defined %}{{ title.type }} {% else %}h1{% endif %}>
  23. {% endif %}