templates/front/theme1/page_cms.html.twig line 1

Open in your IDE?
  1. {% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
  2. {% block preload %}
  3.     {% if post.image is defined  and post.image is not empty %}
  4.         {% if post.image %}
  5.             <link rel="preload" as="image" href="{{asset_image(post.image)}}" />
  6.         {% endif %}
  7.     {% endif %}
  8.      {% if galleries is defined and galleries is not empty %}
  9.            {% for item in galleries %}
  10.                 {% if item.path is defined %}
  11.                     <link rel="preload" as="image" href="{{asset_image_gallery(item.path)}}" />
  12.                 {% endif %}
  13.            {% endfor %}
  14.     {% endif %}
  15. {% endblock %}
  16. {% block stylesheets %}
  17.     {{parent()}}
  18.     {% if modele_galerie[0].type == 4 %}
  19.         <link rel="stylesheet" type="text/css" href="{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}" media="screen" >
  20.     {% endif %}
  21. {% endblock %}
  22. {% block body %}
  23.     {% set titre_page = post.title %}
  24.     {% if post.imageBandeau %}
  25.         {% set imagebandeau = post.imageBandeau %}
  26.     {% elseif parametre.imageBandeau %}
  27.         {% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
  28.     {% else %}
  29.         {% set imagebandeau = '' %}
  30.     {% endif %}
  31.     
  32.     {% if imagebandeau != '' %}
  33.         <section class="image-bandeau text-center">
  34.             <img class="lazyload" alt="{{post.title}}" title="{{post.title}}" data-srcset="{{imagebandeau}}" src="{{asset(imagebandeau)}}" />
  35.             <div class="cnt-bandeau text-center">
  36.                 <div class="container-fluid wrapper">
  37.                     <ol class="breadcrumb d-flex justify-content-center" itemscope itemtype="http://schema.org/BreadcrumbList">
  38.                         <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('index_page_home')}}" itemprop="item"><span itemprop="name">{{title_home_ariane|raw}}</span></a><meta itemprop="position" content="1" /></li>
  39.                         {% set niveau = 2 %}
  40.                         {% if categorieTree %}
  41.                                 {% for item in categorieTree %}
  42.                                     <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('page',{slug:item.slug})}}" title="{{item.titre|replace({'<span>':' ','</span>':' '})}}" itemprop="item"><span itemprop="name">{{item.titre|raw}}</span></a><meta itemprop="position" content="2" /></li> 
  43.                                     {% set niveau = 3 %}
  44.                                     {% if item.child is defined %}
  45.                                         {% for item in item.child %}
  46.                                             <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('page',{slug:item.slug})}}" title="{{item.titre|replace({'<span>':' ','</span>':' '})}}" itemprop="item"><span itemprop="name">{{item.titre|raw}}</span></a><meta itemprop="position" content="3" /></li> 
  47.                                             {% set niveau = 4 %}
  48.                                         {% endfor %}
  49.                                     {% endif %}
  50.                                 {% endfor %}
  51.                         {% endif %}
  52.                         <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title|raw}}{% endif %}</span><meta itemprop="position" content="{{niveau}}" /></li>
  53.                     </ol>
  54.                     <h1 class="page-title">{{post.title|raw}}</h1>
  55.                 </div>
  56.             </div>
  57.         </section>
  58.     {% endif %}
  59.     {% set bgimage = post.imageCouverture ? post.imageCouverture : "" %}
  60.     <div class="page_cms pt-5" {% if bgimage %}style="background-image:url('{{bgimage}}');background-repeat: no-repeat;background-size:cover;"{% endif %} >
  61.         {% if imagebandeau == '' %}
  62.         <div class="breadcrumb-style-default">
  63.             <div class="container-fluid wrapper">
  64.                 <div class="row">
  65.                     <div class="col-lg-12">
  66.                         <div class="inner text-center">
  67.                             <ol class="breadcrumb d-flex justify-content-center" itemscope itemtype="http://schema.org/BreadcrumbList">
  68.                                 <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('index_page_home')}}" itemprop="item"><span itemprop="name">{{title_home_ariane|raw}}</span></a><meta itemprop="position" content="1" /></li>
  69.                                 {% set niveau = 2 %}
  70.                                 {% if categorieTree %}
  71.                                         {% for item in categorieTree %}
  72.                                             <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('page',{slug:item.slug})}}" title="{{item.titre|replace({'<span>':' ','</span>':' '})}}" itemprop="item"><span itemprop="name">{{item.titre|raw}}</span></a><meta itemprop="position" content="2" /></li> 
  73.                                             {% set niveau = 3 %}
  74.                                             {% if item.child is defined %}
  75.                                                 {% for item in item.child %}
  76.                                                     <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('page',{slug:item.slug})}}" title="{{item.titre|replace({'<span>':' ','</span>':' '})}}" itemprop="item"><span itemprop="name">{{item.titre|raw}}</span></a><meta itemprop="position" content="3" /></li> 
  77.                                                     {% set niveau = 4 %}
  78.                                                 {% endfor %}
  79.                                             {% endif %}
  80.                                         {% endfor %}
  81.                                 {% endif %}
  82.                                 <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title|raw}}{% endif %}</span><meta itemprop="position" content="{{niveau}}" /></li>
  83.                             </ol>
  84.                             <h1 class="page-title">{{post.title|raw}}</h1>
  85.                         </div>
  86.                     </div>
  87.                 </div>
  88.             </div>
  89.         </div>
  90.         {% endif %}
  91.         {% if post.summary != "" or post.image is not empty or post.content != "" or galleries is not empty or post.urlvideo is not empty %}
  92.         <section class="content-page">
  93.             <div class="container-fluid wrapper mt-3">
  94.                 <div id="post-{{post.id}}" class="bloc-texte-principal gx-5 py-2">
  95.                     {% if post.summary is not empty and post.summary != "" and (post.positionimage != 2 and post.positionimage != 3) %}
  96.                         <div class="col-sm-12 text-center">
  97.                             <h2 class="sub-title wow">{{post.summary|raw}}</h2>
  98.                         </div>
  99.                     {% endif %}
  100.                     {% set position_image = post.positionimage %}
  101.                     {% set class_position = "" %}
  102.                     {% if post.positionimage == 2 %}
  103.                         {% set class_position = "float-md-left mb-2 mr-md-3"  %}
  104.                     {% elseif post.positionimage == 3 %}
  105.                         {% set class_position = "float-md-right mb-2 ml-md-3" %}
  106.                     {% endif %}
  107.                     
  108.                     {% if post.image and post.image is not empty %}
  109.                         <div class="col-image-post text-center my-4 {{class_position}}">
  110.                             <img class="lazyload img-fluid principal-img" src="{{asset_image(post.image)}}" alt="{{post.title|raw}}" />
  111.                         </div>
  112.                     {% endif %}
  113.                     {% if post.content is not empty and post.content != "" %}
  114.                         <div class="content_post">
  115.                             {% if post.summary is not empty and post.summary != "" and (post.positionimage == 2 or post.positionimage == 3) %}
  116.                                 <div class="col-sm-12">
  117.                                     <h2 class="sub-title wow">{{post.summary|raw}}</h2>
  118.                                 </div>
  119.                             {% endif %}
  120.                             {% set lien_site = "<a href="~url_site()~" title="~parametre.titre~">"~url_site()~"</a>" %}
  121.                             <div class="texte-content">{{post.content|replace({'[NDD]':lien_site})|raw}}</div>
  122.                             {% if post.typelien == null %}
  123.                                 {% if categorieTree is defined and categorieTree[0] is defined  %}
  124.                                     <div class="text-center py-2">
  125.                                         <a href="{{path('page',{slug:categorieTree[0].slug})}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">Retour à la liste {{categorieTree[0].titre}}</a>
  126.                                     </div>
  127.                                 {% endif %}
  128.                             {% elseif post.typelien != 1 %}
  129.                                     {% if post.typelien == '4' %}
  130.                                         <div class="text-center py-2">
  131.                                             <a href="tel:{{post.telephone}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
  132.                                         </div>
  133.                                     {% elseif post.typelien == '2' %}
  134.                                         <div class="text-center py-2">
  135.                                             <a href="{{slug_link_interne(post.lieninterne)}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
  136.                                         </div>
  137.                                     {% elseif post.typelien == '3' %}
  138.                                         <div class="text-center py-2">
  139.                                             <a href="{{post.lienexterne}}" target="_blank" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
  140.                                         </div>
  141.                                     {% endif %}
  142.                             {% endif %}
  143.                             {# autres articles associés #}
  144.                             {% if all_others_posts_associes is defined and all_others_posts_associes is not empty %}
  145.                                 <div class="others-posts mt-3">
  146.                                     {% for item in all_others_posts_associes %}
  147.                                     <div class="other-post">
  148.                                         <a class="article-titre" href="{{item.slug == "home" ? "/" : item.slug}}" title="{{item.title|raw}}">{{item.title|raw}}</a> 
  149.                                     </div>
  150.                                     {% endfor %}
  151.                                 </div>    
  152.                             {% endif %}
  153.                             {# fin autres articles associés #}
  154.                             {% if docs and docs is not empty %}
  155.                                 <div class="col-md-12 bloc-docs d-flex justify-content-center">
  156.                                     {% for doc in docs %}
  157.                                         <a class="btn-back-pulse m-2" href="{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}" title="{{doc.titre}}" target="_blank"><i class="fa fa-file-pdf-o mr-2"></i>{{doc.titre}}</a>   
  158.                                     {% endfor %}
  159.                                 </div>
  160.                             {% endif %}
  161.                             {# Debut champs personnalisés#}
  162.                                 {% if champsPersonnalisesPost is defined and champsPersonnalisesPost is not empty %}
  163.                                     <div class="sx-social-icons mt-3 col-md-12 text-center">
  164.                                     {% for champ_personnalise_post in champsPersonnalisesPost %}
  165.                                         {% if champ_personnalise_post.value != "" %}
  166.                                             {% if champ_personnalise_post.type == "link" %}
  167.                                                 {% if champ_personnalise_post.alias == "lien-instagram" %}
  168.                                                         <a href="{{champ_personnalise_post.value}}" title="champ_personnalise_post.label" target="_blank"><i class="fa fa-instagram"></i></a>
  169.                                                 {% endif %}
  170.                                                 {% if champ_personnalise_post.alias == "lien-linkedin" %}
  171.                                                         <a href="{{champ_personnalise_post.value}}" title="champ_personnalise_post.label" target="_blank"><i class="fa fa-linkedin"></i></a>
  172.                                                 {% endif %}
  173.                                                 
  174.                                                 {% if champ_personnalise_post.alias == "lien-facebook" %}
  175.                                                         <a href="{{champ_personnalise_post.value}}" title="champ_personnalise_post.label" target="_blank"><i class="fa fa-facebook"></i></a>
  176.                                                 {% endif %}
  177.                                                 
  178.                                                 {% if champ_personnalise_post.alias == "lien-email" %}
  179.                                                         <a href="mailto:{{champ_personnalise_post.value}}" title="champ_personnalise_post.label" target="_blank"><i class="fa fa-envelope"></i></a>
  180.                                                 {% endif %}
  181.                                                         
  182.                                             {% endif %}
  183.                                         {% endif %}
  184.                                         
  185.                                     {% endfor %}
  186.                                     </div>
  187.                                 {% endif %}
  188.                             {# Fin champs personnalisés#}
  189.                         </div>
  190.                     {% endif %}
  191.                 </div>
  192.             </div>
  193.             <div class="clearfix"></div>
  194.             {# {% if galleries and galleries is not empty %}
  195.                 {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/galleries.html.twig',{galleries: galleries,post:post}, with_context = false)}}
  196.             {% endif %} #}
  197.             {% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
  198.                 {{ include(template_from_string(template_model_gallerie)) }}
  199.             {% endif %}
  200.             {% if post.urlvideo is not empty %}
  201.                 <div class="container-fluid wrapper mt-3">
  202.                     <div class="col-md-12 mt-1">
  203.                         <div class="video">
  204.                             {% set id_video_externe = post.urlvideo|split('?v=')[1] %}
  205.                             <a class="video-thumbnail m-0" href="{{post.urlvideo}}" data-fancybox="video">
  206.                                 <img src="https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg" class="img-fluid" alt=""/>
  207.                             </a>
  208.                         </div>
  209.                     </div>
  210.                 </div>
  211.             {% endif %}
  212.         </section>
  213.         {% endif %}
  214.         {# article associer #}
  215.         
  216.         {% if all_posts_associes is defined and all_posts_associes is not empty %}
  217.             <section class="">
  218.                     <div class="container-fluid  mt-3">
  219.                         <div class="row gx-5 py-2">
  220.                        
  221.                             <div class="col-sm-12 text-center">
  222.                                 {% if parametre.titreArticleAssocier %}
  223.                                     <h2 class="sub-title wow">{{parametre.titreArticleAssocier}}</h2>
  224.                                 {% endif %}
  225.                             </div>
  226.                             <div class="col-sm-12">
  227.                                 <div class="list_blocs pos1">
  228.                                     <div class="blocs">
  229.                                         <section class="results dynam-affichage affichage1 type_affiche3 ">
  230.                                             {% for item in all_posts_associes %}
  231.                                                 {% set duree = 0.1 %}
  232.                                                 {% for item_one in item %}
  233.                                                     {% set image_item = item_one.image != null? asset_image(item_one.image): null %}
  234.                                                 
  235.                                                 {% set image_item = image_item != null? image_item :asset('uploads/images/' ~ parametre.imagevide) %}
  236.                                                 <div class="article wow zoomIn animated" data-wow-delay="{{duree}}s" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
  237.                                                     <span class="article-image lazyloaded"  style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>                 
  238.                                                     <span class="article-cnt">
  239.                                                         {% if item_one.title %}
  240.                                                             <a class="article-titre" href="{{item_one.slug}}" title="{{item_one.title|raw}}">{{item_one.title|raw}}</a> 
  241.                                                         {% endif %} 
  242.                                                         {% if item_one.summary is not empty %}
  243.                                                             <span class="article-txt">
  244.                                                                 {{item_one.summary|raw}}
  245.                                                             </span>
  246.                                                         {% else %}
  247.                                                             <span class="article-txt">
  248.                                                             {% if item_one.content != "" %}
  249.                                                                 {{cutText(item_one.content)|raw}}
  250.                                                             {% endif %}
  251.                                                             </span>
  252.                                                         {% endif %}
  253.                                                        
  254.                                                        <span class="article-bts">
  255.                                                                 <button class="article-plus btn-fade" onclick="window.open('{{item_one.slug}}', '_self');" title="En savoir plus">En savoir plus</button>
  256.                                                             </span> 
  257.                                                     </span>
  258.                                                 </div>
  259.                                                 {% endfor %}
  260.                                                 {% set duree = duree + 0.2 %}
  261.                                             {% endfor %}
  262.                                         </section>
  263.                                     </div>
  264.                                 </div>
  265.                             </div>
  266.                         </div>
  267.                     </div>
  268.             </section>
  269.         {% endif %}
  270.         {# fin article associer #}
  271.         {% if blocs is defined  %}
  272.             {% for bloc in blocs.Bloc %}
  273.                 {% if is_mobile() and  bloc.mobile == true   %}
  274.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  275.                         bloc: bloc,
  276.                         product_interesse:product_interesse,
  277.                         annonce_interesse:annonce_interesse,
  278.                     }, with_context = false)}}
  279.                 {% endif %}
  280.                 
  281.                 {% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
  282.                     {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
  283.                         bloc: bloc,
  284.                         product_interesse:product_interesse,
  285.                         annonce_interesse:annonce_interesse,
  286.                     }, with_context = false)}}
  287.                 {% endif %}
  288.             {% endfor %}
  289.         {% endif %} 
  290.         {% if ref_pages_principal is defined and ref_pages_principal is not empty %}
  291.             <section class="bg-section-ref">
  292.                 <div class="container-fluid  mt-3">
  293.                     <div class="row gx-5 py-2">
  294.                         <div class="col-sm-12 text-center">
  295.                             <h2 class="sub-title wow">{{parametreRef.titreblocactivitearticle|default('')}} </h2>
  296.                         </div>
  297.                         <div class="col-sm-12">
  298.                             <div class="list_blocs pos1">
  299.                                 <div class="blocs">
  300.                                     <section class="results dynam-affichage affichage1 type_affiche3">
  301.                                         {% for item in ref_pages_principal %}
  302.                                             {% set duree = 0.1 %}
  303.                                             {% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ parametre.imagevide %}
  304.                                             <div class="article wow zoomIn animated" data-wow-delay="{{duree}}s" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
  305.                                                 <span class="article-image lazyloaded"  style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>                 
  306.                                                 <span class="article-cnt">
  307.                                                     <a class="article-titre" href="{{path('page',{slug:item.slug})}}" title="" >{{item.title}}</a>
  308.                                                     <span class="article-txt">
  309.                                                         {% if item.summary is not empty %}
  310.                                                             {{item.summary|raw}}
  311.                                                         {% else %}
  312.                                                             {{cutText(item.content)|raw}}
  313.                                                         {% endif %}
  314.                                                     </span>
  315.                                                     <span class="article-bts">
  316.                                                         <button class="article-plus btn-fade" onclick="window.open('{{path('page',{slug:item.slug})}}', '_self');" title="En savoir plus">En savoir plus</button>
  317.                                                     </span>
  318.                                                 </span>
  319.                                             </div>
  320.                                             {% set duree = duree + 0.2 %}
  321.                                         {% endfor %}
  322.                                     </section>
  323.                                 </div>
  324.                             </div>
  325.                         </div>
  326.                     </div>
  327.                 </div>
  328.             </section>
  329.         {% endif %}
  330.         {% if ref_pages_secondaire is defined and ref_pages_secondaire is not empty %}
  331.             <section class="{{ref_pages_principal is defined and ref_pages_principal is empty?'bg-section-ref':''}}">
  332.                 <div class="container-fluid mt-3">
  333.                     <div class="row gx-5 py-2">
  334.                         <div class="col-sm-12 text-center">
  335.                             <h2 class="sub-title wow">{{parametreRef.titreblocsousactivitearticle|default('')}}</h2>
  336.                         </div>
  337.                         <div class="col-sm-12">
  338.                             <div class="list_blocs pos1">
  339.                                 <div class="blocs">
  340.                                     <section class="results dynam-affichage affichage1 type_affiche3">
  341.                                         {% for item in ref_pages_secondaire %}
  342.                                             {% set duree = 0.1 %}
  343.                                             {% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ parametre.imagevide %}
  344.                                             <div class="article wow zoomIn animated" data-wow-delay="{{duree}}s" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
  345.                                                 <span class="article-image lazyloaded"  style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>                 
  346.                                                 <span class="article-cnt">
  347.                                                     <a class="article-titre" href="{{path('page',{slug:item.slug})}}" title="" >{{item.title}}</a>
  348.                                                     <span class="article-txt">
  349.                                                         {% if item.summary is not empty %}
  350.                                                             {{item.summary|raw}}
  351.                                                         {% else %}
  352.                                                             {{cutText(item.content)|raw}}
  353.                                                         {% endif %}
  354.                                                     </span>
  355.                                                     <span class="article-bts">
  356.                                                         <button class="article-plus btn-fade" onclick="window.open('{{path('page',{slug:item.slug})}}', '_self');" title="En savoir plus">En savoir plus</button>
  357.                                                     </span>
  358.                                                 </span>
  359.                                             </div>
  360.                                             {% set duree = duree + 0.2 %}
  361.                                         {% endfor %}
  362.                                     </section>
  363.                                 </div>
  364.                             </div>
  365.                         </div>
  366.                     </div>
  367.                 </div>
  368.             </section>
  369.         {% endif %}
  370.         {% if next_article is defined and next_article is not empty or prev_article is defined and prev_article is not empty %}
  371.         <div class="container-fluid wrapper mt-3">
  372.             <div class="row gx-5 py-4">
  373.                 <div class="col-lg-12 d-flex justify-content-between">
  374.                     <div class="">
  375.                         {% if prev_article is defined and prev_article is not empty %}
  376.                             <a href="{{path('page',{'slug':prev_article.slug})}}" title="{{prev_article.title|replace({'<span>':' ','</span>':' '})}}"><span class="signe1"><i class="fa fa-arrow-left"></i></span> {{prev_article.title|raw}}</a>
  377.                         {% endif %}
  378.                     </div>
  379.                     <div class="">
  380.                         {% if next_article is defined and next_article is not empty %}
  381.                             <a href="{{path('page',{'slug':next_article.slug})}}"  title="{{next_article.title|replace({'<span>':' ','</span>':' '})}}">{{next_article.title|raw}}  <span class="signe1"><i class="fa fa-arrow-right"></i></span></a>
  382.                         {% endif %}
  383.                     </div>
  384.                 </div>
  385.             </div>
  386.         </div>
  387.         {% endif %}
  388.     </div> 
  389. {% endblock %}
  390. {% block javascripts %}
  391.     {{parent()}}
  392.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
  393.     {% if modele_galerie[0].type == 4 %}
  394.         {{parent()}}
  395.         <script src="{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}" ></script>
  396.         <script>    
  397.             /*-------------------------------------------------*/
  398.             /* =  Sx flexslider 
  399.             /*-------------------------------------------------*/
  400.             if ($(".sx_flexslider").length) {
  401.             $('.flex-carousel').flexslider({
  402.             animation: "slide",
  403.             controlNav: false,
  404.             animationLoop: true,
  405.             slideshow: false,
  406.             itemWidth: 150,
  407.             asNavFor: '.flex-slider'
  408.             });
  409.             $('.flex-slider').flexslider({
  410.             animation: "slide",
  411.             controlNav: false,
  412.             animationLoop: true,
  413.             slideshow: false,
  414.             sync: ".flex-carousel"
  415.             });
  416.             }
  417.         </script>
  418.     {% endif %}
  419.     
  420. {% endblock %}