{% set session_image = 'window_list.png'|img(32, row.title) %} {% for row in session %}
{% set collapsable = '' %} {% if not row.show_simple_session_info %} {% if row.course_list_session_style %}
{% if row.course_list_session_style == 1 or row.course_list_session_style == 2 %} {# Session link #} {% if remove_session_url == true %} {{ session_image }} {{ row.title }} {% else %} {# Default link #} {% set session_link = _p.web_main ~ 'session/index.php?session_id=' ~ row.id %} {% if row.course_list_session_style == 2 and row.courses|length == 1 %} {# Linkt to first course #} {% set session_link = row.courses.0.link %} {% endif %} {{ session_image }} {{ row.title }} {% endif %} {% elseif row.course_list_session_style == 4 %} {{ session_image }} {{ row.title }} {% elseif row.course_list_session_style == 3 %} {# Collapsible/Foldable panel #} {% set collapsable = 'collapse' %} {% endif %} {% if row.show_actions %} {% endif %} {% if row.collapsable_link %}
{{ row.collapsable_link }}
{% endif %}
{% endif %} {% if row.collapsable_link %} {% if row.collapsed == 1 %} {% set collapsable = 'collapse' %} {% endif %} {% endif %}
{% if row.show_description %} {{ row.description }} {% endif %}
    {% if row.coach_name %}
  • {{ row.coach_name }}
  • {% endif %} {% if row.date %}
  • {{ row.date }}
  • {% elseif row.duration %}
  • {{ row.duration }}
  • {% endif %}
{% for item in row.courses %}

{{ item.title }}

{% if item.coaches|length > 0 %} {% for coach in item.coaches %} {{ loop.index > 1 ? ' | ' }} {{ coach.firstname }}, {{ coach.lastname }} {% endfor %} {% endif %}
{% if item.student_info %} {% if item.student_info.progress is not null or item.student_info.score is not null or item.student_info.certificate is not null %}
{% if (item.student_info.progress is not null) %} {{ "StudentCourseProgressX" | get_lang | format(item.student_info.progress) }} {% endif %} {% if (item.student_info.score is not null) %} {{ "StudentCourseScoreX" | get_lang | format(item.student_info.score) }} {% endif %} {% if (item.student_info.certificate is not null) %} {{ "StudentCourseCertificateX" | get_lang | format(item.student_info.certificate) }} {% endif %}
{% endif %} {% endif %}
{% endfor %}
{% else %}
{{ row.title }} {{ row.title }}

{{ row.subtitle }}

{% if row.show_description %}
{{ row.description }}
{% endif %}
{% endif %}
{% endfor %}