templates/platform/component/molecule/default_title_paragraph.html.twig line 1

Open in your IDE?
  1. {# configuration example
  2. ###########
  3. enabled: false
  4. container: w-100
  5. title:
  6. type: h1
  7. content: Bienvenue
  8. class: ''
  9. enabled: true
  10. text:
  11. content: 'Bienvenue sur votre plateforme'
  12. type: p
  13. class: ''
  14. enabled: true
  15. link:
  16. enabled: false
  17. tel: ''
  18. mailto: null
  19. url: ''
  20. route: ''
  21. params: ''
  22. class: ''
  23. target: _self
  24. content: dsdsd
  25. #}
  26. {% if componentKey is not defined %}
  27. {% set componentKey = "default_title_paragraph" %}
  28. {% endif %}
  29. {% set item_config = generateComponentOptions(value, componentKey)%}
  30. {% if canDisplayComponentByAcl(item_config) %}
  31. <div data-component-acl="{{ componentKey }}" class="{{ item_config.container.class }}">
  32. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.title, atom_key: componentKey ~ '.title'} %}
  33. {% block atom %}
  34. {% include'@component/atom/title.html.twig' with {'title': value} %}
  35. {% endblock atom %}
  36. {% endembed %}
  37. {% if value.text is defined %}
  38. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.text, atom_key: componentKey ~ '.text'} %}
  39. {% block atom %}
  40. {% include'@component/atom/paragraph.html.twig' with {'value': value} %}
  41. {% endblock atom %}
  42. {% endembed %}
  43. {% endif %}
  44. {% if value.link is defined %}
  45. {% embed '@component/_template/_atom_wrapper.html.twig' with {value: value.link, atom_key: componentKey ~ '.link'} %}
  46. {% block atom %}
  47. <div {% if value.wrapper is defined and value.wrapper.class is defined %}class="{{ value.wrapper.class }}"{% endif %}>
  48. {% include '@component/atom/link.html.twig' with {'link': value} %}
  49. </div>
  50. {% endblock atom %}
  51. {% endembed %}
  52. {% endif %}
  53. </div>
  54. {% endif %}