templates/front/elearning/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/front.html.twig' %}
  2. {% block bodyClass %}interne{% endblock %}
  3. {% block content %}
  4.     <section class="title-page cours-page" style="background:url({{ asset('uploads/'~blocs.e_bloc_title.image) }})">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="head_page">
  8.                     <div class="head">  {{ blocs.e_bloc_title.title }} </div>
  9.                     <div class="sperateur"></div>
  10.                     <div class="sub_title"> {{ blocs.e_bloc_title.description|raw }}  </div>
  11.                     <!--<div class="acces">
  12.                         <a href="#" class="btn-head"> <i class="icon icon-left-arrow gly-rotate"></i> E-mail </a>
  13.                         <a href="#" class="btn-head"> <i class="icon icon-left-arrow gly-rotate"></i> Code d’accès Premium </a>
  14.                     </div>-->
  15.                 </div>
  16.                 <div class="arrows_head">
  17.                 </div>
  18.             </div>
  19.         </div>
  20.     </section>
  21.     <section class="breadcumbs">
  22.         <div class="container">
  23.             <div class="row">
  24.                 <div class="crumbs"><a href="#"> Home </a> > <a href=""> E-Learning </a></div>
  25.             </div>
  26.         </div>
  27.     </section>
  28.     <section class="section-tags">
  29.         <div class="container">
  30.             <div class="row section-head">
  31.                 <h2 class="title"> Vous recherchez ? </h2>
  32.                 <div class="sperateur"></div>
  33.             </div>
  34.             <div class="row">
  35.                 <div class="filter-items">
  36.                     <a href="{{ path('page_elearning') }}"
  37.                        {% if '' == app.request.get('category') %}class="active"{% endif %}> ALL</a>
  38.                     {% for category in categories %}
  39.                         <a href="{{ path('page_elearning', {'category': category.slug}) }}"
  40.                            {% if category.slug == app.request.get('category', '') %}class="active"{% endif %}> {{ category.libelle }}</a>
  41.                     {% endfor %}
  42.                 </div>
  43.             </div>
  44.             <div class="row">
  45.                 <div class="stage_list learning_item">
  46.                     {% if videos|length > 0 %}
  47.                         {% for video in videos %}
  48.                             <div class="forma forma_stage live forma_coach learning-item_bloc">
  49.                                 <div class="image"><a class="pointer_link" href="{{ path('page_elearning_single', {slug: video.slug}) }}"> </a>
  50.                                     <img src="{{ asset('uploads/'~video.image) }}">
  51.                                     <div class="formation_live coach">
  52.                                         <div class="cat_live"> #{{ video.category }}</div>
  53.                                     </div>
  54.                                 </div>
  55.                                 <div class="conten-formation">
  56.                                     <div class="title-content-formation">
  57.                                         <a href="{{ path('page_elearning_single', {slug: video.slug}) }}">{{ video.title }}</a>
  58.                                     </div>
  59.                                     <div class="location">
  60.                                         <a href="{{ path('page_elearning_single', {slug: video.slug}) }}"> avec <b> {{ video.coach }} </b> </a>
  61.                                     </div>
  62.                                     <div class="sperateur"></div>
  63.                                     <div class="expert">{{ video.description|excerpt(100) }}</div>
  64.                                 </div>
  65.                             </div>
  66.                         {% endfor %}
  67.                     {% else %}
  68.                         <div class="alert alert-info" role="alert">
  69.                             Pas de vidéos disponible pour le moment.
  70.                         </div>
  71.                     {% endif %}
  72.                 </div>
  73.             </div>
  74.             {% if videos|length > 0 %}
  75.                 <div class="row">
  76.                     <div class="link_actus">
  77.                         <input type="hidden" id="page" value="{{ page }}"/>
  78.                         <input type="hidden" id="limit" value="{{ limit }}"/>
  79.                         <a id="load-more" href="#"> <i class="icon icon-left-arrow gly-rotate"></i> charger plus </a>
  80.                         <img id="img-loading" src="{{ asset('build/images/loading.gif') }}" style="width: 80px; height: 80px; display: none;">
  81.                     </div>
  82.                 </div>
  83.             {% endif %}
  84.         </div>
  85.     </section>
  86.     <section class="learning-abone" style="background:url({{ asset('build/images/fond-learning1.jpg') }})">
  87.         <div class="container">
  88.             <div class="row">
  89.                 <div class="demo_elearning">
  90.                     <div class="col-md-5 col-sm-5 col-xs-12 learning-abone-after"></div>
  91.                     <div class="col-md-7 col-sm-7 col-xs-12">
  92.                         <h2> {{ blocs.e_bloc_abonnement.title }} </h2>
  93.                         <div class="sperateur"></div>
  94.                         <div class="texte-video">
  95.                             <p> {{ blocs.e_bloc_abonnement.description|raw }} </p>
  96.                         </div>
  97.                         <a href="{{ path('page_abonnnements_elearning') }}" class="btn"> <i class="icon icon-left-arrow gly-rotate"></i> Nos abonnements </a>
  98.                     </div>
  99.                 </div>
  100.             </div>
  101.         </div>
  102.     </section>
  103.     {% if formations|length > 0 %}
  104.         <section class="actualite vidoes">
  105.             <div class="container">
  106.                 <div class="row section-head">
  107.                     <h2 class="title">Découvrez aussi nos formations Live </h2>
  108.                     <div class="sperateur"></div>
  109.                 </div>
  110.                 <div class="row">
  111.                     <div class="list-actus live_video">
  112.                         {% for formation in formations %}
  113.                             <div class="forma forma_stage live">
  114.                                 <div class="image">
  115.                                     <a class="pointer_link" href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> </a>
  116.                                     <img src="{{ asset('uploads/'~formation.image) }}">
  117.                                     <div class="bande_live"> LIVE</div>
  118.                                 </div>
  119.                                 <div class="conten-formation">
  120.                                     <div class="title-content-formation"><a
  121.                                                 href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> {{ formation.coach }} </a></div>
  122.                                     <div class="location"><a href="{{ path('page_formation_live_single', {slug: formation.slug}) }}"> Live Modern Salon </a></div>
  123.                                     <div class="sperateur"></div>
  124.                                     <div class="expert">Description de la formation ou une petite
  125.                                         présentation du formateur Lorem ipsum dolore iusmod tempor incididunt ...
  126.                                     </div>
  127.                                 </div>
  128.                             </div>
  129.                         {% endfor %}
  130.                     </div>
  131.                 </div>
  132.                 <div class="row">
  133.                     <div class="link_actus">
  134.                         <a href="{{ path('page_nos_formations_live') }}"> <i class="icon icon-left-arrow gly-rotate"></i> Tous les lives </a>
  135.                     </div>
  136.                 </div>
  137.             </div>
  138.         </section>
  139.     {% endif %}
  140. {% endblock %}
  141. {% block javascripts %}
  142.     {{ parent() }}
  143.     <script type="text/javascript">
  144.         $(function () {
  145.             $('#load-more').on('click', function (e) {
  146.                 e.preventDefault();
  147.                 $('#load-more').hide();
  148.                 $('#img-loading').show();
  149.                 $.ajax({
  150.                     url: Routing.generate('page_elearning_paginate'),
  151.                     data: {
  152.                         'page': $('#page').val(),
  153.                         'limit': $('#limit').val(),
  154.                         'keywords': $('#keywords').val(),
  155.                         'date': $('#date').val(),
  156.                         'category': '{{ app.request.get('category') }}'
  157.                     },
  158.                     success: function (html) {
  159.                         if (html != '') {
  160.                             $('.stage_list').append(html);
  161.                             var page = parseInt($('#page').val()) + 1;
  162.                             $('#page').val(page);
  163.                             $('#load-more').show();
  164.                         }
  165.                         $('#img-loading').hide();
  166.                     }
  167.                 });
  168.             });
  169.         });
  170.     </script>
  171. {% endblock %}