opigno-learning-path-training.html.twig in Opigno Learning path 3.x
Same filename and directory in other branches
Default theme implementation to display the training elements.
Available variables:
- #label: Training name.
 - elements: The training elements.
 
1 theme call to opigno-learning-path-training.html.twig
- LearningPathAchievementController::build_training in src/
Controller/ LearningPathAchievementController.php  - Returns training array.
 
File
templates/opigno-learning-path-training.html.twigView source
- {#
 - /**
 -  * @file
 -  * Default theme implementation to display the training elements.
 -  *
 -  * Available variables:
 -  * - #label: Training name.
 -  * - elements: The training elements.
 -  */
 - #}
 - <div class="content-box p-0">
 -   <div class="training">
 -     <div class="training__image">
 -       {% if elements.image %}
 -         {{ elements.image }}
 -       {% else %}
 -         {{ opigno_catalog_get_default_image('learning_path', label) }}
 -       {% endif %}
 -     </div>
 -     <div class="training__container"><h2 class="training__title">{{ 'Training - @label'|t({'@label': elements['#label']}) }}</h2>
 -       {{ elements|without('details', 'image') }}
 -     </div>
 -   </div>
 - </div>
 - {{ elements.details }}