{% extends 'layouts/front.html.twig' %}
{% block bodyClass %}interne{% endblock %}
{% block content %}
<section class="title-page cours-page" style="background:url({{ asset('uploads/'~blocs.e_bloc_title.image) }})">
<div class="container">
<div class="row">
<div class="head_page">
<div class="head"> {{ blocs.e_bloc_title.title }} </div>
<div class="sperateur"></div>
<div class="sub_title"> {{ blocs.e_bloc_title.description|raw }} </div>
<!--<div class="acces">
<a href="#" class="btn-head"> <i class="icon icon-left-arrow gly-rotate"></i> E-mail </a>
<a href="#" class="btn-head"> <i class="icon icon-left-arrow gly-rotate"></i> Code d’accès Premium </a>
</div>-->
</div>
<div class="arrows_head">
</div>
</div>
</div>
</section>
<section class="breadcumbs">
<div class="container">
<div class="row">
<div class="crumbs"><a href="#"> Home </a> > <a href=""> E-Learning </a></div>
</div>
</div>
</section>
<section class="section-tags">
<div class="container">
<div class="row section-head">
<h2 class="title"> Vous recherchez ? </h2>
<div class="sperateur"></div>
</div>
<div class="row">
<div class="filter-items">
<a href="{{ path('page_elearning') }}"
{% if '' == app.request.get('category') %}class="active"{% endif %}> ALL</a>
{% for category in categories %}
<a href="{{ path('page_elearning', {'category': category.slug}) }}"
{% if category.slug == app.request.get('category', '') %}class="active"{% endif %}> {{ category.libelle }}</a>
{% endfor %}
</div>
</div>
<div class="row">
<div class="stage_list learning_item">
{% if videos|length > 0 %}
{% for video in videos %}
<div class="forma forma_stage live forma_coach learning-item_bloc">
<div class="image"><a class="pointer_link" href="{{ path('page_elearning_single', {slug: video.slug}) }}"> </a>
<img src="{{ asset('uploads/'~video.image) }}">
<div class="formation_live coach">
<div class="cat_live"> #{{ video.category }}</div>
</div>
</div>
<div class="conten-formation">
<div class="title-content-formation">
<a href="{{ path('page_elearning_single', {slug: video.slug}) }}">{{ video.title }}</a>
</div>
<div class="location">
<a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> avec <b> {{ video.coach }} </b> </a>
</div>
<div class="sperateur"></div>
<div class="expert">{{ video.description|excerpt(100) }}</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="alert alert-info" role="alert">
Pas de vidéos disponible pour le moment.
</div>
{% endif %}
</div>
</div>
{% if videos|length > 0 %}
<div class="row">
<div class="link_actus">
<input type="hidden" id="page" value="{{ page }}"/>
<input type="hidden" id="limit" value="{{ limit }}"/>
<a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
<img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
</div>
</div>
{% endif %}
</div>
</section>
<section class="learning-abone" style="background:url({{ asset('build/images/fond-learning1.jpg') }})">
<div class="container">
<div class="row">
<div class="demo_elearning">
<div class="col-md-5 col-sm-5 col-xs-12 learning-abone-after"></div>
<div class="col-md-7 col-sm-7 col-xs-12">
<h2> {{ blocs.e_bloc_abonnement.title }} </h2>
<div class="sperateur"></div>
<div class="texte-video">
<p> {{ blocs.e_bloc_abonnement.description|raw }} </p>
</div>
<a href="{{ path('page_abonnnements_elearning') }}" class="btn"> <i class="icon icon-left-arrow gly-rotate"></i> Nos abonnements </a>
</div>
</div>
</div>
</div>
</section>
{% if formations|length > 0 %}
<section class="actualite vidoes">
<div class="container">
<div class="row section-head">
<h2 class="title">Découvrez aussi nos formations Live </h2>
<div class="sperateur"></div>
</div>
<div class="row">
<div class="list-actus live_video">
{% for formation in formations %}
<div class="forma forma_stage live">
<div class="image">
<a class="pointer_link" href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> </a>
<img src="{{ asset('uploads/'~formation.image) }}">
<div class="bande_live"> LIVE</div>
</div>
<div class="conten-formation">
<div class="title-content-formation"><a
href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.coach }} </a></div>
<div class="location"><a href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> Live Modern Salon </a></div>
<div class="sperateur"></div>
<div class="expert">Description de la formation ou une petite
présentation du formateur Lorem ipsum dolore iusmod tempor incididunt ...
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="row">
<div class="link_actus">
<a href="{{ path('page_nos_formations_live') }}"> <i class="icon icon-left-arrow gly-rotate"></i> Tous les lives </a>
</div>
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
$(function () {
$('#load-more').on('click', function (e) {
e.preventDefault();
$('#load-more').hide();
$('#img-loading').show();
$.ajax({
url: Routing.generate('page_elearning_paginate'),
data: {
'page': $('#page').val(),
'limit': $('#limit').val(),
'keywords': $('#keywords').val(),
'date': $('#date').val(),
'category': '{{ app.request.get('category') }}'
},
success: function (html) {
if (html != '') {
$('.stage_list').append(html);
var page = parseInt($('#page').val()) + 1;
$('#page').val(page);
$('#load-more').show();
}
$('#img-loading').hide();
}
});
});
});
</script>
{% endblock %}