templates/Theme/Produit/Service/Article/articlesblog.html.twig line 1

Open in your IDE?
  1. {% extends "Theme/Users/User/layoutbase.html.twig" %}
  2. {% block meta %}
  3.     {{ parent() }}
  4.     <meta name="keywords" content="{{ site }}, "/>
  5.     <meta name="author" content="Noel Kenfack"/>
  6.     <meta name="description" content="{{ site }}" />
  7. {% endblock %}
  8. {% block title %}
  9.     {{ parent() }} - Détails du service ..
  10. {% endblock %}
  11. {% block stylesheets %}
  12.     {{ parent() }}
  13. {% endblock %}
  14. {% block userblog_body %}
  15.   <style>
  16.     {# End Breadcrumb #}
  17.     {# :root {
  18.   --swiper-pagination-color: #fff;
  19.   --swiper-pagination-bullet-inactive-color: #fff;
  20.  } #}
  21.   /*  CARDS */
  22. .testing-one {
  23.   /*border: 1px solid #0000003f;*/
  24.   box-shadow: 2px 2px 2px 2px rgba(46, 61, 73, 0.2);
  25.   width: 100%;
  26.   border-radius: 10px;
  27.   padding: 20px;
  28.   margin-bottom: 20px;
  29.   padding-bottom: 50px;
  30. }
  31. .testing-one:hover {
  32.   box-shadow: 2px 4px 8px 2px rgba(46, 61, 73, 0.2);
  33. }
  34. .testing-one:hover .articleTitle {
  35.   text-decoration: underline;
  36.   color: rgba(12, 145, 228, 0.96);
  37. }
  38. .img {
  39.   float: left;
  40.   height: auto;
  41.   width: 300px;
  42.   margin-right: 50px;
  43.   margin-left: none;
  44. }
  45. .article-description {
  46.     padding-top: 20px;
  47. }
  48. a {
  49.   text-decoration: none;
  50. }
  51. .articleTitle {
  52.   font-size: 25px;
  53.   color: black;
  54. }
  55. .btn-home {
  56.   font-family: "Barlow", sans-serif;
  57.   font-weight: 700;
  58.   font-size: 18px;
  59.   padding: 15px 40px;
  60.   background: #fff;
  61.   border: none;
  62.   cursor: pointer;
  63.   transition: 0.4s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
  64.   position: relative;
  65.   z-index: 2;
  66.   border-radius: 50px;
  67.   overflow: hidden;
  68. }
  69. .btn-home:after {
  70.   content: "";
  71.   position: absolute;
  72.   transition: 0.4s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
  73. }
  74. .btn-4 {
  75.   color: #252D4A;
  76.   border: 2px solid currentColor;
  77. }
  78. .btn-4:after {
  79.   border: solid #5568AA;
  80.   border-width: 0 2px 2px 0;
  81.   display: inline-block;
  82.   padding: 4px;
  83.   transform: rotate(-45deg) translateY(-48%);
  84.   top: 48%;
  85.   right: 27%;
  86.   opacity: 0;
  87.   visibility: hidden;
  88.   z-index: -1;
  89. }
  90. .btn-4:hover, .btn-4:focus {
  91.   color: #5568AA;
  92.   border: 2px solid transparent;
  93.   padding: 15px 70px;
  94. }
  95. .btn-4:hover:after, .btn-4:focus:after {
  96.   opacity: 1;
  97.   visibility: visible;
  98.   right: 18%;
  99. }
  100. .btn-4:focus {
  101.   border-color: currentColor;
  102. }
  103. .btn-4:hover{
  104.   box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  105. }
  106. .img-card {
  107.   float: left;
  108.   height: 200px;
  109.   width: 300px;
  110.   margin-right: 50px;
  111.   margin-top: 10px;
  112.   margin-left: none;
  113. }
  114. {# css indice sections  #}
  115.     .section-head.center.wt-small-separator-outer {
  116.         margin-bottom: 50px;
  117.         text-align: left;
  118.     }
  119.     .section-head {
  120.         position: relative;
  121.     }
  122.     .site-text-primary, .wt-small-separator {
  123.         color: #ea130e;
  124.     }
  125.     .wt-small-separator {
  126.         font-family: "Heebo", sans-serif;
  127.         text-transform: uppercase;
  128.         letter-spacing: 1px;
  129.         padding-right: 40px;
  130.         font-size: 26px;
  131.         line-height: 26px;
  132.         margin-bottom: 15px;
  133.         position: relative;
  134.         display: inline-block;
  135.         font-weight: 700;
  136.     }
  137.     .section-head.center .wt-small-separator div.sep-leaf-left {
  138.         position: relative;
  139.     }
  140.     .section-head.center .wt-small-separator div.sep-leaf-left:before, .section-head.center .wt-small-separator div.sep-leaf-left:after {
  141.         background-color: #ea130e;
  142.     }
  143.     .section-head.center .wt-small-separator div.sep-leaf-left:before {
  144.         right: -20px;
  145.         width: 10px;
  146.     }
  147.     .section-head.center .wt-small-separator div.sep-leaf-left:before, .section-head.center .wt-small-separator div.sep-leaf-left:after {
  148.         position: absolute;
  149.         content: '';
  150.         height: 22px;
  151.         bottom: 0px;
  152.         top: 0px;
  153.         transform: skew(-20deg);
  154.     }
  155.     .section-head.center .wt-small-separator div.sep-leaf-left:after {
  156.         right: -27px;
  157.         width: 4px;
  158.     }
  159.     .section-head.center.wt-small-separator-outer h2 {
  160.         max-width: 630px;
  161.         margin: 0px auto;
  162.     }
  163. </style>
  164. <!-- page title -->
  165. {# <section class="page-title-section overlay">
  166.   <div class="container">
  167.     <div class="row">
  168.       <div class="col-md-12">
  169.         {% if aboutBlog != null %}
  170.         <h2 style="color: #fff;">
  171.           {{ aboutBlog.title }}
  172.         </h2>
  173.         <p class="text-lighten">{{ aboutBlog.valeur }}</p>
  174.         {% else %}
  175.         <h2 style="color: #fff;">
  176.             {{ site }} est l'agence qu'il vous faut pour la modernisation de votre entreprise !
  177.           </h2>
  178.           <p class="text-lighten">Avez-vous d'autres questions? Ne vous inquiétez pas, il n'y a pas de questions idiotes. Remplissez simplement le formulaire ci-dessous et nous vous répondrons dans les plus brefs délais.</p>
  179.         {% endif %}
  180.       </div>
  181.     </div>
  182.   </div>
  183. </section> #}
  184. <!-- /page title -->
  185. <!-- CTA Section -->
  186. <section class="cta " style="padding: 1rem 0;">
  187.     <div class="container">
  188.         <div class="section-head center wt-small-separator-outer mt-3 text-center" style="margin-bottom: 0px;">
  189.             <div class="wt-small-separator site-text-primary">
  190.                 <div class="sep-leaf-left"></div>
  191.                 <div>Notre blog</div>
  192.             </div>
  193.         </div>
  194.         <div>Notre blog est une ressource précieuse pour rester informé des dernières tendances en comptabilité, fiscalité et finance. Nous partageons des conseils pratiques, des analyses approfondies et des actualités pour aider nos lecteurs à prendre des décisions éclairées et à optimiser leur gestion financière.</div>
  195.     </div>
  196. </section>
  197. <section class="section-sm">
  198.         <div class="content" style="padding-bottom: 5px;">
  199.             <div class="wrap">
  200.                 <div class="container">
  201.                     <ol class="breadcrumb">
  202.                         <li href="#">
  203.                             <a>Home</a>
  204.                         </li>
  205.                         <li href="#">
  206.                             <a>Blog</a>
  207.                         </li>
  208.                     </ol>
  209.                 </div>
  210.             </div>
  211.         </div>
  212.   </section>
  213.   <div class="container">
  214.     
  215.     <div class="row" style="margin-top: 10px;">
  216.         <!-- Normal Demo-->
  217.         <div class="col-md-4">
  218.             <!-- Post-->
  219.             <div class="post-module">
  220.                 <!-- Thumbnail-->
  221.                 <div class="thumbnail">
  222.                     <div class="date">
  223.                         <div class="day">27</div>
  224.                         <div class="month">Mar</div>
  225.                     </div><img src="{{ asset('templateSyscofie/images/cabinet2.jpg') }}"/>
  226.                 </div>
  227.                 <!-- Post Content-->
  228.                 <div class="post-content">
  229.                     <a href="#"><div class="category">En savoir plus</div></a>
  230.                     <h1 class="title">Conseil en fiscalite des societes et des dirigeants</h1>
  231.                     <h2 class="sub_title" style="font-size: 15px;">Assurer la conformite des declarations fiscales.</h2>
  232.                     <p class="description">Améliorez la gestion de votre activité grâce à nos outils simples et efficaces. Profitez d'une solution complète pour vous concentrer sur votre croissance et atteindre vos objectifs.</p>
  233.                     <div class="post-meta">
  234.                         <span class="timestamp">
  235.                             <i class="bi bi-star-fill"></i>
  236.                             85% de satisfaction
  237.                         </span>
  238.                         <span class="comments">
  239.                             <i class="bi bi-person-check"></i>
  240.                             259 clients suivis
  241.                         </span>
  242.                     </div>
  243.                 </div>
  244.             </div>
  245.         </div>
  246.         <!-- Hover Demo-->
  247.         <div class="col-md-4">
  248.             <!-- Post-->
  249.             <div
  250.                 class="post-module">
  251.                 <!-- Thumbnail-->
  252.                 <div class="thumbnail">
  253.                     <div class="date">
  254.                         <div class="day">27</div>
  255.                         <div class="month">Mar</div>
  256.                     </div><img src="{{ asset('templateSyscofie/images/negociations-commerciales-dans-bureau-moderne.jpg') }}"/>
  257.                 </div>
  258.                 <!-- Post Content-->
  259.                 <div class="post-content">
  260.                     <a href="#"><div class="category">En savoir plus</div></a>
  261.                     <h1 class="title">Calcul et optimisation des impôts et taxes</h1>
  262.                     <h2 class="sub_title" style="font-size: 15px;">Optimiser la fiscalité des entreprises</h2>
  263.                     <p class="description">Simplifiez le calcul et l'optimisation de vos impôts et taxes. Bénéficiez de solutions personnalisées pour réduire vos charges fiscales et maximiser vos économies.</p>
  264.                     <div class="post-meta">
  265.                         <span class="timestamp">
  266.                             <i class="bi bi-star-fill"></i>
  267.                             98% de satisfaction
  268.                         </span>
  269.                         <span class="comments">
  270.                             <i class="bi bi-person-check"></i>
  271.                             134 clients suivis
  272.                         </span>
  273.                     </div>
  274.                 </div>
  275.             </div>
  276.         </div>
  277.         <div class="col-md-4">
  278.             <!-- Post-->
  279.             <div class="post-module">
  280.                 <!-- Thumbnail-->
  281.                 <div class="thumbnail">
  282.                     <div class="date">
  283.                         <div class="day">27</div>
  284.                         <div class="month">Mar</div>
  285.                     </div><img src="{{ asset('templateSyscofie/images/deux-hommes-affaires.jpg') }}"/>
  286.                 </div>
  287.                 <!-- Post Content-->
  288.                 <div class="post-content">
  289.                     <a href="#"><div class="category">En savoir plus</div></a>
  290.                     <h1 class="title">Assistance en cas de contrôle fiscal</h1>
  291.                     <h2 class="sub_title" style="font-size: 15px;">Prévenir les risques de redressements ou de sanctions</h2>
  292.                     <p class="description">Recevez une assistance professionnelle lors de contrôles fiscaux. Notre équipe vous accompagne pour garantir la conformité et défendre vos intérêts, minimisant ainsi les risques et les pénalités.</p>
  293.                     <div class="post-meta">
  294.                         <span class="timestamp">
  295.                             <i class="bi bi-star-fill"></i>
  296.                             89% de satisfaction
  297.                         </span>
  298.                         <span class="comments">
  299.                             <i class="bi bi-person-check"></i>
  300.                             390 clients suivis
  301.                         </span>
  302.                     </div>
  303.                 </div>
  304.             </div>
  305.         </div>
  306.     </div> 
  307.     
  308.     <div class="col-md-12">
  309.       <div class="my-div">
  310.         <section class="testing-one">
  311.           <div class="description2 to-expand">
  312.             <h2 class="article-title">
  313.               <a href="{{ path('produit_service_detail_blog_article') }}" class="toggle-overlay-article articleTitle">
  314.                 Actualités fiscales
  315.               </a>
  316.             </h2>
  317.             
  318.             <div class="img">
  319.               <img class="img-card" src="{{ asset('templateSyscofie/images/homme-affaires-afro-americain.jpg') }}" alt="..."/>
  320.             </div>
  321.             <p class="article-description">
  322.               Restez informé des dernières évolutions fiscales et obtenez des conseils pratiques pour votre déclaration d'impôts.
  323.             </p>
  324.             <div style="margin-bottom: 50px;">
  325.               <a href="{{ path('produit_service_detail_blog_article') }}" class="toggle-overlay-article" style="display: inline-block;">
  326.                 <button class="btn-home btn-4 btn-mulberry">En savoir plus</button>
  327.               </a>
  328.             </div>
  329.           </div></hr>
  330.         </section>
  331.       </div>
  332.     </div>
  333.     <div class="col-md-12">
  334.       <div class="my-div">
  335.         <section class="testing-one">
  336.           <div class="description2 to-expand">
  337.             <h2 class="article-title">
  338.               <a href="#!" class="toggle-overlay-article articleTitle">
  339.                 Études de cas
  340.               </a>
  341.             </h2>
  342.             <div class="img">
  343.               <img class="img-card" src="{{ asset('templateSyscofie/images/business/business-img-6-min.jpg') }}" alt="..."/>
  344.             </div>
  345.             <p class="article-description">
  346.               Examinez des exemples concrets de réussites grâce à une gestion comptable efficace et apprenez des solutions à des problèmes complexes.
  347.             </p>
  348.             <div style="margin-bottom: 20px;">
  349.               <a href="#!" class="toggle-overlay-article" style="display: inline-block;">
  350.                 <button class="btn-home btn-4 btn-mulberry">En savoir plus</button>
  351.               </a>
  352.             </div>
  353.           </div></hr>
  354.         </section>
  355.       </div>
  356.     </div>
  357.     <div class="col-md-12">
  358.       <div class="my-div">
  359.         <section class="testing-one">
  360.           <div class="description2 to-expand">
  361.             <h2 class="article-title">
  362.               <a href="#!" class="toggle-overlay-article articleTitle">
  363.                 Les bases de la comptabilité
  364.               </a>
  365.             </h2>
  366.             <div class="img">
  367.               <img class="img-card" src="{{ asset('templateSyscofie/images/business/business-img-5-min.jpg') }}" alt="..."/>
  368.             </div>
  369.             <p class="article-description">
  370.               Découvrez les principes fondamentaux de la comptabilité, y compris les notions clés et les types de documents à connaître.
  371.             </p>
  372.             <div style="margin-bottom: 50px;">
  373.               <a href="#!" class="toggle-overlay-article" style="display: inline-block;">
  374.                 <button class="btn-home btn-4 btn-mulberry">En savoir plus</button>
  375.               </a>
  376.             </div>
  377.           </div></hr>
  378.         </section>
  379.       </div>
  380.     </div>
  381.     <div class="col-md-12">
  382.       <div class="my-div">
  383.         <section class="testing-one">
  384.           <div class="description2 to-expand">
  385.             <h2 class="article-title">
  386.               <a href="#!" class="toggle-overlay-article articleTitle">
  387.                 Comptabilité pour les travailleurs indépendants
  388.               </a>
  389.             </h2>
  390.             <div class="img">
  391.               <img class="img-card" src="{{ asset('templateSyscofie/images/portfolio-details-img-5-min.jpg') }}" alt="..."/>
  392.             </div>
  393.             <p class="article-description">
  394.               Explorez les spécificités de la comptabilité pour freelances, y compris la facturation et la gestion des dépenses.
  395.             </p>
  396.             <div style="margin-bottom: 50px;">
  397.               <a href="#!" class="toggle-overlay-article" style="display: inline-block;">
  398.                 <button class="btn-home btn-4 btn-mulberry">En savoir plus</button>
  399.               </a>
  400.             </div>
  401.           </div></hr>
  402.         </section>
  403.       </div>
  404.     </div>
  405.     <div class="col-md-12">
  406.       <div class="my-div">
  407.         <section class="testing-one">
  408.           <div class="description2 to-expand">
  409.             <h2 class="article-title">
  410.               <a href="#!" class="toggle-overlay-article articleTitle">
  411.                 Outils et logiciels comptables
  412.               </a>
  413.             </h2>
  414.             <div class="img">
  415.               <img class="img-card" src="{{ asset('templateSyscofie/images/hero-bg-2-min.jpg') }}" alt="..."/>
  416.             </div>
  417.             <p class="article-description">
  418.               Comparez les meilleures solutions logicielles de comptabilité et découvrez comment les utiliser pour simplifier vos tâches.
  419.             </p>
  420.             <div style="margin-bottom: 50px;">
  421.               <a href="#!" class="toggle-overlay-article" style="display: inline-block;">
  422.                 <button class="btn-home btn-4 btn-mulberry">En savoir plus</button>
  423.               </a>
  424.             </div>
  425.           </div></hr>
  426.         </section>
  427.       </div>
  428.     </div>
  429.   </div>
  430.   <!-- ======= Breadcrumbs ======= -->
  431.     {# <div class="breadcrumbs">
  432.         <nav>
  433.             <div class="container">
  434.                 <div class="row"> #}
  435.                     {# <div class="col-md-6">
  436.                         <nav>
  437.                             <ol>
  438.                             <li><a href="{{ path('users_user_accueil') }}">Accueil</a></li>
  439.                             <li>Blog</li>
  440.                             {% if typearticle != null %}
  441.                             <li>{{ typearticle.name }}</li>
  442.                             {% endif %}
  443.                             </ol>
  444.                         </nav>
  445.                     </div> #}
  446.                     {# <div class="col-md-6">
  447.                         <form class="search-select-form" >
  448.                             <input id="filter-select-input" style="height: 45px; padding: 7px 15px;" placeholder="Filtrer par catégorie" list=text_editors>
  449.                             <button type="button" class="filter-select" style="height: 45px; background-color: #2fa84b; color: #fff;">▼</button>
  450.                             <datalist id="text_editors">
  451.                                 <select multiple size=8 class="select-input">
  452.                                     {% for article in type_article %}
  453.                                     <option value="{{ article.name }}" data-value="{{ path('produit_service_blog_pagine', {'type': article.id, 'page': page}) }}">{{ article.name }}</option>
  454.                                     {% endfor %}
  455.                                     <option value="Tous les articles" data-value="{{ path('produit_service_blog_pagine', {'type': 0, 'page': 1}) }}">Tous les articles</option>
  456.                                 </select>
  457.                             </datalist>
  458.                         </form>
  459.                     </div> #}
  460.                   {# </div>
  461.             </div>
  462.         </nav>
  463.     </div><!-- End Breadcrumbs --> #}
  464.     <!-- ======= Blog Section ======= -->
  465.     {# <section id="blog" class="blog">
  466.       <div class="container" data-aos="fade-up">
  467.         <div class="row gy-4 posts-list">
  468.         {% for article in liste_article %}
  469.         <div class="col-xl-4 col-md-6">
  470.             <article>
  471.             <div class="post-img">
  472.                 <img src="{% if article.imgarticle != null  %}{{ vich_uploader_asset(article.imgarticle) }}{% else %}{{ asset('template/assets/img/blog/blog-3.jpg') }}{% endif %}" alt="" class="img-fluid">
  473.             </div>
  474.             <p class="post-category">{{ article.typearticle.name }}</p>
  475.             <h2 class="title">
  476.                 <a href="{{ path('produit_service_description_article_blog', {'id': article.id }) }}">{{ article.title }}</a>
  477.             </h2>
  478.             <div class="d-flex align-items-center">
  479.                 <img src="{{ asset('template/images/co.png') }}" alt="" class="img-fluid post-author-img flex-shrink-0">
  480.                 <div class="post-meta">
  481.                 <p class="post-author-list">{{ article.user.name(50) }}</p>
  482.                 <p class="post-date">
  483.                     <time datetime="2022-01-01">{{ article.createdAt|date('d') }} {{ article.createdAt|date('m') }} {{ article.createdAt|date('Y') }}</time>
  484.                 </p>
  485.                 </div>
  486.             </div>
  487.             </article>
  488.         </div><!-- End post list item -->
  489.         {% else %}
  490.         <div class="col-xl-12 col-md-12">
  491.             <article style="background: #fff; min-height: 500px; padding-top: 150px;">
  492.               <h3 class="text-center">Aucune donnée.</h3>
  493.             </article>
  494.         </div><!-- End post list item -->
  495.         {% endfor %}
  496.         </div><!-- End blog posts list --> #}
  497.         {# {% if nombrepage > 0 %}
  498.                         
  499.             {% if page > 1 and page <= nombrepage %}
  500.             {% set pagepre = page - 1 %}
  501.             {% else %}
  502.                 {% set pagepre = nombrepage %}
  503.             {% endif %}
  504.             {% if page < nombrepage %}
  505.                 {% set pagesuiv = page + 1 %}
  506.             {% else %}
  507.                 {% set pagesuiv =  1 %}
  508.             {% endif %}
  509.             {% if nombrepage < 5 %}
  510.                 {% set debut = 1 %}
  511.                 {% set fin = nombrepage %}
  512.             {% else %}
  513.                 {% if page > 2 and page < (nombrepage - 2) %}
  514.                     {% set debut = page - 2 %}
  515.                     {% if page + 2 >= nombrepage %}
  516.                         {% set fin = nombrepage %}
  517.                     {% else %}
  518.                         {% set fin = page + 2 %}
  519.                     {% endif %}
  520.                 {% else %}
  521.                     {% if page <= 2 %}
  522.                         {% if page == 1 %}
  523.                             {% set debut = 1 %}
  524.                             {% set fin = page + 3 %}
  525.                         {% else %}
  526.                             {% set debut = 1 %}
  527.                             {% set fin = page + 2 %}
  528.                         {% endif %}
  529.                     {% else %}
  530.                         {% set debut = page - 2 %}
  531.                         {% if page + 2 >= nombrepage %}
  532.                             {% set fin = nombrepage %}
  533.                         {% else %}
  534.                             {% set fin = page + 2 %}
  535.                         {% endif %}
  536.                     {% endif %}
  537.                 {% endif %}
  538.                 
  539.             {% endif %}
  540.             
  541.             <div class="blog-pagination">
  542.                 <ul class="justify-content-center">
  543.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': 1 }) }}" title="Première page"><span class="bi bi-arrow-left"></span></a></li>
  544.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': pagepre }) }}" title="Page précedente"><span class="bi bi-chevron-compact-left" ></span></a></li>
  545.                     {% for p in debut..fin %}
  546.                     <li class="page {% if p == page %}active{% endif %}"><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': p }) }}">{{ p }}</a></li>
  547.                     {% endfor %}
  548.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': pagesuiv }) }}"  title="Page suivante"><span class="bi bi-chevron-compact-right"></span></a></li>
  549.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': nombrepage }) }}" title="Dernière page"><span class="bi bi-arrow-right"></span></a></li>
  550.                 </ul>
  551.             </div>
  552.             
  553.             {% else %}
  554.             <div class="blog-pagination">
  555.                 <ul class="justify-content-center">
  556.                     <li><a  href="{{ path('produit_service_blog_pagine', {'type': type, 'page': page }) }}" title="Première page"><span class="fa fa-fast-backward"></span></a></li>
  557.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': page }) }}" title="Page précedente"><span class="fa fa-step-backward"></span></a></li>
  558.                     
  559.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': 1 }) }}" class="page active">1</a></li>
  560.                     
  561.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': page }) }}"  title="Page suivante"><span class="fa fa-step-forward" style="font-size: 13px;"></span></a></li>
  562.                     <li><a href="{{ path('produit_service_blog_pagine', {'type': type, 'page': page }) }}" title="Dernière page"><span class="fa fa-fast-forward" style="font-size: 13px;"></span></a></li>
  563.                 </ul>
  564.             </div>
  565.             {% endif %}
  566.       </div>
  567.     </section><!-- End Blog Section --> #}
  568.   </main><!-- End #main -->
  569.   <div class="text-center" style="margin-top: 60px; margin-bottom: 60px;">
  570.     {# {% if nombrepage > 0 %}
  571.         {% if page > 1 and page <= nombrepage %}
  572.             {% set pagepre = page - 1 %}
  573.         {% else %}
  574.             {% set pagepre = nombrepage %}
  575.         {% endif %}
  576.         {% if page < nombrepage %}
  577.             {% set pagesuiv = page + 1 %}
  578.         {% else %}
  579.             {% set pagesuiv =  1 %}
  580.         {% endif %}
  581.         {% if nombrepage < 5 %}
  582.             {% set debut = 1 %}
  583.             {% set fin = nombrepage %}
  584.         {% else %}
  585.             {% if page > 2 and page < (nombrepage - 2) %}
  586.                 {% set debut = page - 2 %}
  587.                 {% if page + 2 >= nombrepage %}
  588.                     {% set fin = nombrepage %}
  589.                 {% else %}
  590.                     {% set fin = page + 2 %}
  591.                 {% endif %}
  592.             {% else %}
  593.                 {% if page <= 2 %}
  594.                     {% if page == 1 %}
  595.                         {% set debut = 1 %}
  596.                         {% set fin = page + 3 %}
  597.                     {% else %}
  598.                         {% set debut = 1 %}
  599.                         {% set fin = page + 2 %}
  600.                     {% endif %}
  601.                 {% else %}
  602.                     {% set debut = page - 2 %}
  603.                     {% if page + 2 >= nombrepage %}
  604.                         {% set fin = nombrepage %}
  605.                     {% else %}
  606.                         {% set fin = page + 2 %}
  607.                     {% endif %}
  608.                 {% endif %}
  609.             {% endif %}
  610.         {% endif %} #}
  611.         {# <div class="btn-group mb-4 text-center" role="group" aria-label="Basic example">
  612.             <a href="#" title="Première page" class="btn btn-outline-primary mx-2">
  613.                 <span><i class="bi bi-chevron-double-left"></i></span>
  614.             </a>
  615.             <a href="#" title="Page précedente" class="btn btn-outline-primary mx-2">
  616.                 <span><i class="bi bi-chevron-left"></i></span>
  617.             </a> #}
  618.             {# {% for p in debut..fin %}
  619.                 <a href="#" value="{{ p }}" class="btn btn-outline-primary mx-2 {% if p == page %}active{% endif %}">{{ p }}</a>
  620.             </li> #}
  621.         {# {% endfor %} #}
  622.         {# <a href="#" title="Page suivante" class="btn btn-outline-primary mx-2">
  623.             <span><i class="bi bi-chevron-right"></i></span>
  624.         </a>
  625.         <a href="#" title="Dernière page" class="btn btn-outline-primary mx-2">
  626.             <span><i class="bi bi-chevron-double-right"></i></spam>
  627.         </a>
  628.     </div>
  629.     <div class="clearfix"></div> #}
  630. {# {% else %} #}
  631.     <div class="btn-group mb-4 text-center" role="group" aria-label="Basic example">
  632.         <a href="#" title="Première page" class="btn btn-outline-primary mx-2">
  633.             <span><i class="bi bi-chevron-double-left"></i></span>
  634.         </a>
  635.         <a href="#" title="Page précedente" class="btn btn-outline-primary mx-2">
  636.             <span><i class="bi bi-chevron-left"></i></span>
  637.         </a>
  638.         <a href="#" class="btn btn-outline-primary mx-2 active" style="margin: 0px 0px;">1</a>
  639.         <a href="#" title="Page suivante" class="btn btn-outline-primary mx-2">
  640.             <span><i class="bi bi-chevron-right"></i></span>
  641.         </a>
  642.         <a href="#" title="Dernière page" class="btn btn-outline-primary mx-2">
  643.             <span><i class="bi bi-chevron-double-right"></i></spam>
  644.         </a>
  645.     </div>
  646. </div>
  647.     <script>
  648.     var swiperFade = new Swiper(".swiperFade", {
  649.     loop: true,
  650.     effect: 'fade',
  651.     navigation: {
  652.       nextEl: ".swiper-button-next",
  653.       prevEl: ".swiper-button-prev"
  654.     },
  655.     pagination: {
  656.       el: ".swiper-pagination",
  657.     },
  658.     });
  659.     var swiperVertical = new Swiper(".swiperVertical", {
  660.       loop: true,
  661.       effect: 'fade',
  662.       direction: "vertical",
  663.       pagination: {
  664.         el: ".swiper-pagination",
  665.         clickable: true,
  666.       }
  667.     });
  668.     var swiperEffect = new Swiper(".swiperEffect", {
  669.       loop: true,
  670.       effect: "cards",
  671.       grabCursor: true,
  672.       navigation: {
  673.         nextEl: ".swiper-button-next",
  674.         prevEl: ".swiper-button-prev"
  675.       },
  676.       pagination: {
  677.         el: ".swiper-pagination",
  678.       },
  679.     });
  680. </script>
  681. {% endblock %}
  682. {% block javascripttemplate %}
  683. button = document.querySelector('button.filter-select');
  684. datalist = document.querySelector('datalist#text_editors');
  685. select = document.querySelector('select.select-input');
  686. options = select.options;
  687. /* on arrow button click, show/hide the DDL*/
  688. button.addEventListener('click', toggle_ddl);
  689. function toggle_ddl() {
  690.   if (datalist.style.display === '') {
  691.     datalist.style.display = 'block';
  692.     this.textContent = "▲";
  693.     /* If input already has a value, select that option from DDL */
  694.     var val = input.value;
  695.     for (var i = 0; i < options.length; i++){
  696.       if (options[i].text === val){
  697.         select.selectedIndex = i;
  698.         break;
  699.       }
  700.     }
  701.   } else hide_select();
  702. }
  703. /* when user selects an option from DDL, write it to text field */
  704. select.addEventListener('change', fill_input);
  705. function fill_input() {
  706.   input.value = options[this.selectedIndex].value;
  707.   //alert(options[this.selectedIndex].getAttribute('data-value'))
  708.   document.location.href= ''+options[this.selectedIndex].getAttribute('data-value');
  709.   hide_select();
  710. }
  711. /* when user wants to type in text field, hide DDL */
  712. input = document.querySelector('input#filter-select-input');
  713. input.addEventListener('focus', hide_select);
  714. function hide_select() {
  715.   datalist.style.display = '';
  716.   button.textContent = "▼";
  717. }
  718. input.addEventListener('change', change_select);
  719. function change_select(){
  720.     var val = input.value;
  721.     for (var i = 0; i < options.length; i++) {
  722.       if (options[i].text === val) {
  723.         //alert(options[i].getAttribute('data-value'))
  724.         document.location.href= ''+options[i].getAttribute('data-value');
  725.         break;
  726.       }
  727.     }
  728. }
  729. {% endblock %}