{% extends 'base.html.twig' %}{% block title %}{{ channel.name }} - {{ parent() }}{% endblock %}{% block content %}<div class="background-image-channel channel-page font-poppins"><div class="container py-3 px-0"><div class="col-12" style="margin-top: 5rem;margin-bottom: 5rem;"><div class="row"><div class="col-12 col-md-8"><div class="d-flex flex-row">{% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': channel, 'custom_class_channel': 'channel-avatar-presentation'} %}{% if channel.name or channel.slogan %}<div class="ml-3 d-flex flex-column justify-content-center">{% if channel.name %}<p class="v2-title-small full-black mb-0">{{ channel.name }}</p>{% endif %}{% if channel.slogan %}<div><p class="full-black mb-0">{{ channel.slogan }}</p></div>{% endif %}</div>{% endif %}</div></div><div class="col-12 col-md-4 social-top">{% include 'Front/Channel/social-links.twig' with {'channel': channel, 'icon_color': 'black'} %}</div><div class="col-12 mt-4"><div class="row">{% if channel.presentationTitle %}<div class="col-12"><p class="v2-title-big full-black mt-3 text-center">{{ channel.presentationTitle }}</p></div>{% endif %}{% if channel.presentationText %}<div class="col-12"><p class="mt-3 text-center white-space-pre-wrap">{{ channel.presentationText }}</p></div>{% endif %}<div class="col-12 mt-4 text-center text-md-left d-flex buttons"><a href="#our-trainings" class="mt-2 btn-nellapp-v2 btn-nellap-v2-responsive-small">{{ 'front.channel.show.our_trainings.label'|trans }}</a>{% if channel.institutions|length > 0 or channel.contactPhone or channel.contactEmail or channel.links|length > 0 %}<a href="#contact-us" class="mt-2 btn-nellapp-v2-secondary btn-nellap-v2-responsive-small">{{ 'front.home.welcome.button.contact'|trans }}</a>{% endif %}</div></div></div></div></div></div></div>{{ parent() }}{% endblock content %}{% block inner_content %}{# Trainings #}<div class="row" id="our-trainings"><div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"><div class="section-title-type-formation"><h2 class="ml-0">{{ 'front.channel.show.tabs.home.subtitles.trainings.label'|trans({'%count%': count_trainings}) }}</h2></div></div></div><div class="row flex-nowrap flex-sm-nowrap flex-md-nowrap flex-lg-nowrap flex-xl-wrap v3-cards"><div class="scrollable-bar-hidden" style="--_grid-columns: 4">{% for training in last_four_trainings %}<twig:TrainingCard :training="training"/>{% endfor %}</div></div>{% if count_trainings > 4 %}<div class="col-12 mt-2 pb-5"><div class="all-trainings"><a href="{{ path('front_channel_trainings', {'id': channel.id}) }}" class="text-decoration-none">{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': last_four_trainings|length, '%count_all_items%': count_trainings}) }}</a></div></div>{% endif %}{# Gallery #}{% if channel.galleryImages|length >= 5 %}<div class="row gallery mt-4 justify-content-center text-center">{% for galleryImage in channel.galleryImages %}{% if loop.index0 % 2 == 1 %}{% set imageTopColumn = true %}{% endif %}{% if loop.index0 % 2 == 0 %}{% set imageTopColumn = false %}{% endif %}{% if loop.index0 == 0 %}<div class="col-12 col-md-6"><div data-size="{{ galleryImage.image|image_size }}" class="gallery-big-one gallery-image"style="background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});"></div></div>{% endif %}{% if loop.index0 > 0 and loop.index0 < 5 %}{% if imageTopColumn %}<div class="col-3 d-none d-md-block"><div data-size="{{ galleryImage.image|image_size }}" class="gallery-small-top gallery-image"style="background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});"></div>{% else %}<div>{% if loop.index0 == 4 and channel.galleryImages|length > 5 %}{% set countMoreContent = channel.galleryImages|length - 5 %}<div class="more-content font-poppins font-weight-bold d-flex justify-content-center flex-column"><div class="counter">+{{ countMoreContent }}</div></div>{% endif %}<div data-size="{{ galleryImage.image|image_size }}" class="gallery-bottom-top gallery-image"style="background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});"></div></div></div>{% endif %}{% endif %}{% if loop.index0 >= 5 %}<div data-size="{{ galleryImage.image|image_size }}" class="gallery-image d-none"style="background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});"></div>{% endif %}{% endfor %}</div><div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"><div class="pswp__bg"></div><div class="pswp__scroll-wrap"><div class="pswp__container"><div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"><div class="pswp__top-bar"><div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="Close (Esc)"></button><button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button><button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button><div class="pswp__preloader"><div class="pswp__preloader__icn"><div class="pswp__preloader__cut"><div class="pswp__preloader__donut"></div></div></div></div></div><button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button><button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button><div class="pswp__caption"><div class="pswp__caption__center"></div></div></div></div></div>{% endif %}{# Partners #}{% if channel.partners|length > 0 %}<div class="row mt-5"><div class="col-12"><h2 class="v2-title-small mt-5 mb-2">{{ 'front.channel.show.partners.label'|trans }} ({{ channel.partners|length }})</h2></div><div class="col-lg-12 col-md-12"><div class="row"><div class="col-12"><div class="slider-container"><ul class="slider-controls" id="customize-controls-partner" aria-label="Carousel Navigation" tabindex="0"><li class="prev" data-controls="prev" aria-controls="customize" tabindex="-1"><img src="{{ asset('build/common/background-white-left.svg', 'common') }}" alt="Go to left"/></li><li class="next" data-controls="next" aria-controls="customize" tabindex="-1"><img src="{{ asset('build/common/background-white-right.svg', 'common') }}" alt="Go to right"/></li></ul><div class="my-slider partner-slider">{% for partner in channel.partners %}<div class="slider-item"><div class="slider-card"><img class="slider-img" src="{{ asset('uploads/channel_images/' ~ partner.image.name ~ '.' ~ partner.image.extension) }}" alt="{{ partner.name }}"/></div></div>{% endfor %}</div></div></div></div></div></div>{% endif %}{# Key informations #}{% if channel.channelDescriptions|length > 0 %}<div class="row channel-key-informations"><div class="col-12"><h2 class="v2-title-small mt-5 mb-2">{{ 'front.channel.show.some_key_information.label'|trans }}</h2></div><div class="col-lg-12 col-md-12 font-poppins"><div class="row">{% for channelDescription in channel.channelDescriptions %}<div class="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4">{% include 'Front/Channel/channel-description.html.twig' with {'channelDescription' : channelDescription} %}</div>{% endfor %}</div></div></div>{% endif %}{# Teachers #}{% if teachers|length > 0 %}<div class="row mt-3 channel-teachers"><div class="col-12"><h2 class="v2-title-small mt-5 mb-2">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}({{ teachers|length }})</h2></div>{% for teacher in teachers %}{% if loop.index0 < 5 %}<div class="col-12"><div class="mt-3">{% include 'Front/Scholar/Card/teacher-channel.html.twig' with {'teacher' : teacher} %}</div></div>{% endif %}{% endfor %}{% if teachers|length > 5 %}<div class="col-12 div-more-teacher"><div class="row">{% for teacher in teachers %}{% if loop.index0 >= 5 %}<div class="col-12"><div class="mt-3">{% include 'Front/Scholar/Card/teacher-channel.html.twig' with {'teacher' : teacher} %}</div></div>{% endif %}{% endfor %}</div></div>{% endif %}</div>{% if teachers|length > 5 %}<div class="row pb-2 mb-5"><div class="col-12"><div class="all-trainings"><button class="see-more-btn text-decoration-none" id="teacher-see-more">{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': 5, '%count_all_items%': teachers|length}) }}</button></div></div></div>{% endif %}{% endif %}{# Comments #}{% if advices|length > 0 %}<div class="row mt-3 {{ advices|length <= 5 ? 'mb-5 pb-2' : '' }}"><div class="col-12"><div class="row"><div class="col-12"><div class="div-title-between mt-5 mb-2"><h2 class="v2-title-small">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}({{ advices|length }})</h2><p class=""><i class="far fa-star"></i> {{ channel|advice_avg_by_channel }}</p></div></div><div class="col-12"><div class="mt-3">{% for advice in advices|slice(0, 5) %}{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}{% endfor %}<div class="div-more-advice">{% for advice in advices|slice(5) %}{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}{% endfor %}</div></div></div></div></div></div>{% endif %}{% if advices|length > 5 %}<div class="row pb-2 mb-5"><div class="col-12"><div class="all-trainings"><button class="see-more-btn text-decoration-none" id="training-advice-see-more">{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': 5, '%count_all_items%': advices|length}) }}</button></div></div></div>{% endif %}{% include 'Front/Channel/find-us-contact-us.html.twig' with {'channel' : channel} %}{% endblock inner_content %}