<section class="rowCourseProgram"> {% set showCourseProgram = module.showCourseProgram is defined and module.showCourseProgram == true %} <a name="{{ module.type }}-{{ module.id }}"></a> <div class="container"> <div class="row"> <div class="col rowCourseProgram__header"> <h2>{% if module.titleName is defined and module.titleName is not empty %}{{ module.titleName|raw }}{% else %}{{ 'uniqskills.landing.nl.courseProgram'|trans }}{% endif %}</h2> </div> </div> {% for key, item in module.json %} <div class="row rowCourseProgram__module" style="position: relative; overflow: hidden;"> <div class="col"> {% if item.list[0] is defined %} {% set isFree = false %} {% for point in item.list[0].list %} {% if point.free is defined and point.free %} {% set isFree = true %} {% endif %} {% endfor %} {% if isFree == true %} <img class="imgForFree" src="{{ asset('uniqskills/new_landing/images/free.png') }}"/> {% endif %} {% endif %} {% if item.moduleTitle is defined and item.moduleTitle is not null %} {% if item.list is defined %} {% set isPointsEmpty = item.list|filter(v => v.list is not empty) is empty %} {% else %} {% set isPointsEmpty = true %} {% endif %} <div class="row accordionTab"{% if showCourseProgram or isPointsEmpty %} style="cursor: default;" data-no-slide="1"{% endif %}> <div class="col-10"> <div class="rowCourseProgram__module__title">{{ item.moduleTitle|raw }}</div> </div> {% if not (showCourseProgram or isPointsEmpty) %} <div class="col-2 text-center"> <span class="rowCourseProgram__module__more" data-id="mod-{{ loop.index }}">+</span> </div> {% endif %} </div> {% endif %} {% if item.list is defined %} {% for list in item.list %} {% if list.title is not null %} {% if item.moduleTitle is null and loop.first %} <div class="row accordionTab"{% if showCourseProgram or list.list is empty %} style="cursor: default;" data-no-slide="1"{% endif %}> {% else %} <div class="row accordionChild"{% if showCourseProgram or list.list is empty %} style="cursor: default;" data-no-slide="1"{% endif %}> {% endif %} <div class="col-10"> <div class="rowCourseProgram__module__description"> {% if item.list|length > 1 %} ✔ {% endif %} {{ list.title|raw }} </div> </div> {% if item.moduleTitle is not null and loop.first %} <div class="col-2 text-center"> <span class="rowCourseProgram__module__more" data-id="mod-{{ loop.parent.loop.index }}">+</span> </div> {% endif %} </div> {% endif %} <div class="rowCourseProgram__module__elements" id="mod-{{ loop.parent.loop.index }}" {% if showCourseProgram %}style="display: block;"{% endif %} > {% if item.list is defined %} {% for point in list.list %} <div class="row"> <div class="col-12 col-md-10 rowCourseProgram__module__elements__vertical"> <div class="bgs2-rowCourseProgram_elementIcon"></div> <div> {{ point.title|raw }} </div> </div> <div class="col-12 col-md-2 text-md-center mt-2 mt-md-0 mb-4 mb-md-0 ml-4 pl-4 ml-md-0 pl-md-0"> {% if point.free is defined and point.free %} <a data-login={{ path('uniqskills_login') }} data-temporary="{{ temporaryUserLogin }}" class="rowCourseProgram__module__elements__check{% if 'vimeo.com' in point.free or 'bbvms.com' in point.free %} showFreeLessonVimeo{% else %} sm-download{% endif %}" {% if 'vimeo.com' in point.free or 'bbvms.com' in point.free %} data-vimeoUrl="{{ point.free }}" {% else %} href="{{ point.free }}" target="_blank" {% endif %} > <i style="font-style: normal;" class="fas fa-play"></i>{{ 'uniqskills.landing.nl.freematerials'|trans }} </a> {% endif %} </div> </div> {% endfor %} {% endif %} </div> {% endfor %} {% endif %} </div> </div> {% endfor %} </div> <!-- Modal --> <div class="modal fade" id="vimeoVideoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> {#<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>#} <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <iframe id="vimeoVideoModalIframe" src="https://player.vimeo.com/video/76979871" width="640" height="460" frameborder="0" allowfullscreen style="display: block; margin: 0 auto;" ></iframe> </div> {#<div class="modal-footer">#} {#<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>#} {#<button type="button" class="btn btn-primary">Save changes</button>#} {#</div>#} </div> </div> </div></section>