You are here

opigno-learning-path-training.html.twig in Opigno Learning path 3.x

Same filename and directory in other branches
  1. 8 templates/opigno-learning-path-training.html.twig

Default theme implementation to display the training elements.

Available variables:

  • #label: Training name.
  • elements: The training elements.

File

templates/opigno-learning-path-training.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the training elements.
  5. *
  6. * Available variables:
  7. * - #label: Training name.
  8. * - elements: The training elements.
  9. */
  10. #}
  11. <div class="content-box p-0">
  12. <div class="training">
  13. <div class="training__image">
  14. {% if elements.image %}
  15. {{ elements.image }}
  16. {% else %}
  17. {{ opigno_catalog_get_default_image('learning_path', label) }}
  18. {% endif %}
  19. </div>
  20. <div class="training__container"><h2 class="training__title">{{ 'Training - @label'|t({'@label': elements['#label']}) }}</h2>
  21. {{ elements|without('details', 'image') }}
  22. </div>
  23. </div>
  24. </div>
  25. {{ elements.details }}