var/cache/dev/twig/26/26be63da4c1cb75a6a342d811524d14e01a6f593379465f82a9af504265cd427.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/blog/articles.html.twig */
  14. class __TwigTemplate_c5da21c9c33274615739aad02ef8a28f7bfa9929bc9db3daf9b8ac8982cf73a9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/articles.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/articles.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""front/blog/articles.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo " Blog | ";
  55.         $this->displayParentBlock("title"$context$blocks);
  56.         echo " ";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 6
  71.         echo "<section class=\"grey-blue-bg small-padding\">
  72.     <div class=\"container\">
  73.         <div class=\"row\">
  74.             <div class=\"col-md-8\">
  75.                 <div class=\"post-container fl-wrap\">
  76.                     ";
  77.         // line 11
  78.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'11$this->source); })()), "totalItemCount", [], "any"falsefalsefalse11), 0))) {
  79.             echo 
  80.                         ";
  81.             // line 12
  82.             $context['_parent'] = $context;
  83.             $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'12$this->source); })()));
  84.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  85.                 // line 13
  86.                 echo "                        <article class=\"post-article\">
  87.                             <div class=\"title-devis\">
  88.                                 <span>";
  89.                 // line 15
  90.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse15), "html"nulltrue);
  91.                 echo "</span>
  92.                             </div>
  93.                             <div class=\"list-single-main-media fl-wrap\">
  94.                                 <div class=\"single-slider-wrapper fl-wrap\">
  95.                                     <div class=\"single-slider fl-wrap\">
  96.                                         <div class=\"slick-slide-item\">
  97.                                             ";
  98.                 // line 22
  99.                 if (twig_get_attribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse22)) {
  100.                     // line 23
  101.                     echo "                                            <img src=\"";
  102.                     echo twig_escape_filter($this->env$this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/files/articles/" twig_get_attribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse23))), "806x250"), "html"nulltrue);
  103.                     echo "\" alt=\"";
  104.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse23), "html"nulltrue);
  105.                     echo "\">
  106.                                             ";
  107.                 } else {
  108.                     // line 25
  109.                     echo "                                            <img src=\"";
  110.                     echo twig_escape_filter($this->env$this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/all/ryvup.jpeg"), "806x250"), "html"nulltrue);
  111.                     echo "\" alt=\"";
  112.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse25), "html"nulltrue);
  113.                     echo "\">
  114.                                             ";
  115.                 }
  116.                 // line 27
  117.                 echo "                                        </div>
  118.                                     </div>
  119.                                 </div>
  120.                             </div>
  121.                             <div class=\"list-single-main-item fl-wrap\">
  122.                                 <div class=\"control-description\">
  123.                                     ";
  124.                 // line 33
  125.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse33)), 410))) {
  126.                     // line 34
  127.                     echo "                                    ";
  128.                     echo twig_slice($this->envtwig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse34), 0410);
  129.                     echo "...
  130.                                     ";
  131.                 } else {
  132.                     // line 36
  133.                     echo "                                    ";
  134.                     echo twig_slice($this->envtwig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse36), 0410);
  135.                     echo "
  136.                                     ";
  137.                 }
  138.                 // line 38
  139.                 echo "                                </div>
  140.                                 <div class=\"post-opt\">
  141.                                     <ul>
  142.                                         <li><i class=\"fal fa-tags\"></i> <a href=\"";
  143.                 // line 41
  144.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_by_category", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "category", [], "any"falsefalsefalse41), "slug", [], "any"falsefalsefalse41)]), "html"nulltrue);
  145.                 echo "\" class=\"text-theme-blue\">";
  146.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "category", [], "any"falsefalsefalse41), "name", [], "any"falsefalsefalse41), "html"nulltrue);
  147.                 echo "</a></li>
  148.                                         <li><i class=\"fal fa-calendar\"></i> <span>";
  149.                 // line 42
  150.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse42), "medium""medium""dd MMMM YYYY"null"gregorian""fr"), "html"nulltrue);
  151.                 echo "</span></li>
  152.                                         <li><i class=\"fal fa-share-alt\"></i> <span>RYVUP</span></li>
  153.                                     </ul>
  154.                                 </div>
  155.                                 ";
  156.                 // line 46
  157.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse46)), 410))) {
  158.                     // line 47
  159.                     echo "                                <span class=\"fw-separator\"></span>
  160.                                 <a href=\"";
  161.                     // line 48
  162.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_read", ["cat_slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "category", [], "any"falsefalsefalse48), "slug", [], "any"falsefalsefalse48), "slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse48)]), "html"nulltrue);
  163.                     echo "\" class=\"btn float-btn color-bg\">Lire la suite<i class=\"fal fa-angle-right\"></i></a>
  164.                                 ";
  165.                 }
  166.                 // line 50
  167.                 echo "                            </div>
  168.                         </article>
  169.                         ";
  170.             }
  171.             $_parent $context['_parent'];
  172.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  173.             $context array_intersect_key($context$_parent) + $_parent;
  174.             // line 53
  175.             echo "                    ";
  176.         }
  177.         // line 54
  178.         echo "                    
  179.                     ";
  180.         // line 55
  181.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'55$this->source); })()));
  182.         echo "
  183.                 </div>
  184.             </div>
  185.             <div class=\"col-md-4\">
  186.                 <div class=\"box-widget-wrap fl-wrap fixed-bar\">
  187.                     <div class=\"box-widget-item fl-wrap\">
  188.                         <div class=\"box-widget\">
  189.                             <div class=\"box-widget-content\">
  190.                                 <div class=\"box-widget-item-header mb-3\">
  191.                                     <h3> Demander un devis </h3>
  192.                                 </div>
  193.                                 <div class=\"text-left\">
  194.                                     <p>Location d'autocar, minibus, voiture privée et sanitaire avec chauffeur pour tous vos déplacements</p>
  195.                                     <p>Avec Ryvup, trouver votre transport sur mesure !</p>
  196.                                 </div>
  197.                                 <div class=\"text-left\">
  198.                                     <a href=\"";
  199.         // line 72
  200.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_home");
  201.         echo "\" class=\"btn color2-bg mt-3\">
  202.                                        Devis immédiat
  203.                                        <i class=\"fal fa-angle-right\"></i>
  204.                                     </a>
  205.                                 </div>
  206.                             </div>
  207.                         </div>
  208.                     </div>
  209.                     <div class=\"box-widget-item fl-wrap\">
  210.                         <div class=\"box-widget widget-posts\">
  211.                             <div class=\"box-widget-content\">
  212.                                 <div class=\"box-widget-item-header\">
  213.                                     <h3>Les articles récents</h3>
  214.                                 </div>
  215.                                 ";
  216.         // line 87
  217.         $context['_parent'] = $context;
  218.         $context['_seq'] = twig_ensure_traversable((isset($context["lastArticles"]) || array_key_exists("lastArticles"$context) ? $context["lastArticles"] : (function () { throw new RuntimeError('Variable "lastArticles" does not exist.'87$this->source); })()));
  219.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  220.             // line 88
  221.             echo "                                <div class=\"box-image-widget\">
  222.                                     <div class=\"box-image-widget-media\">
  223.                                         ";
  224.             // line 90
  225.             if (twig_get_attribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse90)) {
  226.                 // line 91
  227.                 echo "                                        <img src=\"";
  228.                 echo twig_escape_filter($this->env$this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/files/articles/" twig_get_attribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse91))), "115x76"), "html"nulltrue);
  229.                 echo "\" alt=\"";
  230.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse91), "html"nulltrue);
  231.                 echo "\">
  232.                                         ";
  233.             } else {
  234.                 // line 93
  235.                 echo "                                        <img src=\"";
  236.                 echo twig_escape_filter($this->env$this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/all/ryvup.jpeg"), "115x76"), "html"nulltrue);
  237.                 echo "\" alt=\"";
  238.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse93), "html"nulltrue);
  239.                 echo "\">
  240.                                         ";
  241.             }
  242.             // line 95
  243.             echo "                                        <a href=\"";
  244.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_read", ["cat_slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "category", [], "any"falsefalsefalse95), "slug", [], "any"falsefalsefalse95), "slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse95)]), "html"nulltrue);
  245.             echo "\" class=\"color-bg\">Détails</a>
  246.                                     </div>
  247.                                     <div class=\"box-image-widget-details\">
  248.                                         <h4>";
  249.             // line 98
  250.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse98), "html"nulltrue);
  251.             echo "</h4>
  252.                                         <span class=\"widget-posts-date\">
  253.                                             <i class=\"fal fa-calendar\"></i> 
  254.                                             ";
  255.             // line 101
  256.             if (twig_get_attribute($this->env$this->source$context["article"], "updatedAt", [], "any"falsefalsefalse101)) {
  257.                 // line 102
  258.                 echo "                                                Modifié le ";
  259.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source$context["article"], "updatedAt", [], "any"falsefalsefalse102), "medium""medium""dd MMMM YYYY"null"gregorian""fr"), "html"nulltrue);
  260.                 echo "
  261.                                             ";
  262.             } else {
  263.                 // line 104
  264.                 echo "                                                Publié le ";
  265.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse104), "medium""medium""dd MMMM YYYY"null"gregorian""fr"), "html"nulltrue);
  266.                 echo "
  267.                                             ";
  268.             }
  269.             // line 106
  270.             echo "                                        </span>
  271.                                     </div>
  272.                                 </div>    
  273.                                 ";
  274.         }
  275.         $_parent $context['_parent'];
  276.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  277.         $context array_intersect_key($context$_parent) + $_parent;
  278.         // line 109
  279.         echo "                            
  280.                             </div>
  281.                         </div>
  282.                     </div>
  283.                                         
  284.                     <div class=\"box-widget-item fl-wrap\">
  285.                         <div class=\"box-widget\">
  286.                             <div class=\"box-widget-content\">
  287.                                 <div class=\"box-widget-item-header\">
  288.                                     <h3>Catégories</h3>
  289.                                 </div>
  290.                                 <ul class=\"cat-item\">
  291.                                     ";
  292.         // line 121
  293.         $context['_parent'] = $context;
  294.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'121$this->source); })()));
  295.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  296.             // line 122
  297.             echo "                                    <li><a href=\"";
  298.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_blog_by_category", ["slug" => twig_get_attribute($this->env$this->source$context["category"], "slug", [], "any"falsefalsefalse122)]), "html"nulltrue);
  299.             echo "\" title=\"";
  300.             if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse122)), 28))) {
  301.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse122), "html"nulltrue);
  302.             }
  303.             echo "\">";
  304.             if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse122)), 28))) {
  305.                 echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse122), 028), "html"nulltrue);
  306.                 echo "...";
  307.             } else {
  308.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse122), "html"nulltrue);
  309.             }
  310.             echo "</a> <span>";
  311.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "articles", [], "any"falsefalsefalse122)), "html"nulltrue);
  312.             echo "</span></li>
  313.                                     ";
  314.         }
  315.         $_parent $context['_parent'];
  316.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  317.         $context array_intersect_key($context$_parent) + $_parent;
  318.         // line 124
  319.         echo "                                </ul>
  320.                             </div>
  321.                         </div>
  322.                     </div>
  323.                 </div>
  324.             </div>
  325.         </div>
  326.     </div>
  327.     <div class=\"limit-box fl-wrap\"></div>
  328. </section>
  329. ";
  330.         
  331.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  332.         
  333.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  334.     }
  335.     /**
  336.      * @codeCoverageIgnore
  337.      */
  338.     public function getTemplateName()
  339.     {
  340.         return "front/blog/articles.html.twig";
  341.     }
  342.     /**
  343.      * @codeCoverageIgnore
  344.      */
  345.     public function isTraitable()
  346.     {
  347.         return false;
  348.     }
  349.     /**
  350.      * @codeCoverageIgnore
  351.      */
  352.     public function getDebugInfo()
  353.     {
  354.         return array (  341 => 124,  319 => 122,  315 => 121,  301 => 109,  292 => 106,  286 => 104,  280 => 102,  278 => 101,  272 => 98,  265 => 95,  257 => 93,  249 => 91,  247 => 90,  243 => 88,  239 => 87,  221 => 72,  201 => 55,  198 => 54,  195 => 53,  187 => 50,  182 => 48,  179 => 47,  177 => 46,  170 => 42,  164 => 41,  159 => 38,  153 => 36,  147 => 34,  145 => 33,  137 => 27,  129 => 25,  121 => 23,  119 => 22,  109 => 15,  105 => 13,  101 => 12,  97 => 11,  90 => 6,  80 => 5,  59 => 3,  36 => 1,);
  355.     }
  356.     public function getSourceContext()
  357.     {
  358.         return new Source("{% extends 'base.html.twig' %}
  359. {% block title %} Blog | {{ parent() }} {% endblock %}
  360. {% block body %}
  361. <section class=\"grey-blue-bg small-padding\">
  362.     <div class=\"container\">
  363.         <div class=\"row\">
  364.             <div class=\"col-md-8\">
  365.                 <div class=\"post-container fl-wrap\">
  366.                     {% if articles.totalItemCount > 0 %} 
  367.                         {% for article in articles %}
  368.                         <article class=\"post-article\">
  369.                             <div class=\"title-devis\">
  370.                                 <span>{{ article.title }}</span>
  371.                             </div>
  372.                             <div class=\"list-single-main-media fl-wrap\">
  373.                                 <div class=\"single-slider-wrapper fl-wrap\">
  374.                                     <div class=\"single-slider fl-wrap\">
  375.                                         <div class=\"slick-slide-item\">
  376.                                             {% if article.image %}
  377.                                             <img src=\"{{ asset('/uploads/files/articles/' ~ article.image) | imagine_filter('806x250') }}\" alt=\"{{ article.title }}\">
  378.                                             {% else %}
  379.                                             <img src=\"{{ asset('front/images/all/ryvup.jpeg') | imagine_filter('806x250') }}\" alt=\"{{ article.title }}\">
  380.                                             {% endif %}
  381.                                         </div>
  382.                                     </div>
  383.                                 </div>
  384.                             </div>
  385.                             <div class=\"list-single-main-item fl-wrap\">
  386.                                 <div class=\"control-description\">
  387.                                     {% if article.content | length > 410 %}
  388.                                     {{ article.content|slice(0,410)|raw }}...
  389.                                     {% else %}
  390.                                     {{ article.content|slice(0,410)|raw }}
  391.                                     {% endif %}
  392.                                 </div>
  393.                                 <div class=\"post-opt\">
  394.                                     <ul>
  395.                                         <li><i class=\"fal fa-tags\"></i> <a href=\"{{ url('app_front_blog_by_category', {'slug': article.category.slug}) }}\" class=\"text-theme-blue\">{{ article.category.name }}</a></li>
  396.                                         <li><i class=\"fal fa-calendar\"></i> <span>{{ article.createdAt | format_datetime(locale='fr', pattern=\"dd MMMM YYYY\") }}</span></li>
  397.                                         <li><i class=\"fal fa-share-alt\"></i> <span>RYVUP</span></li>
  398.                                     </ul>
  399.                                 </div>
  400.                                 {% if article.content | length > 410 %}
  401.                                 <span class=\"fw-separator\"></span>
  402.                                 <a href=\"{{ url('app_front_blog_read', {'cat_slug': article.category.slug, 'slug': article.slug}) }}\" class=\"btn float-btn color-bg\">Lire la suite<i class=\"fal fa-angle-right\"></i></a>
  403.                                 {% endif %}
  404.                             </div>
  405.                         </article>
  406.                         {% endfor %}
  407.                     {% endif %}
  408.                     
  409.                     {{ knp_pagination_render(articles) }}
  410.                 </div>
  411.             </div>
  412.             <div class=\"col-md-4\">
  413.                 <div class=\"box-widget-wrap fl-wrap fixed-bar\">
  414.                     <div class=\"box-widget-item fl-wrap\">
  415.                         <div class=\"box-widget\">
  416.                             <div class=\"box-widget-content\">
  417.                                 <div class=\"box-widget-item-header mb-3\">
  418.                                     <h3> Demander un devis </h3>
  419.                                 </div>
  420.                                 <div class=\"text-left\">
  421.                                     <p>Location d'autocar, minibus, voiture privée et sanitaire avec chauffeur pour tous vos déplacements</p>
  422.                                     <p>Avec Ryvup, trouver votre transport sur mesure !</p>
  423.                                 </div>
  424.                                 <div class=\"text-left\">
  425.                                     <a href=\"{{ url('app_client_home') }}\" class=\"btn color2-bg mt-3\">
  426.                                        Devis immédiat
  427.                                        <i class=\"fal fa-angle-right\"></i>
  428.                                     </a>
  429.                                 </div>
  430.                             </div>
  431.                         </div>
  432.                     </div>
  433.                     <div class=\"box-widget-item fl-wrap\">
  434.                         <div class=\"box-widget widget-posts\">
  435.                             <div class=\"box-widget-content\">
  436.                                 <div class=\"box-widget-item-header\">
  437.                                     <h3>Les articles récents</h3>
  438.                                 </div>
  439.                                 {% for article in lastArticles %}
  440.                                 <div class=\"box-image-widget\">
  441.                                     <div class=\"box-image-widget-media\">
  442.                                         {% if article.image %}
  443.                                         <img src=\"{{ asset('/uploads/files/articles/' ~ article.image) | imagine_filter('115x76') }}\" alt=\"{{ article.title }}\">
  444.                                         {% else %}
  445.                                         <img src=\"{{ asset('front/images/all/ryvup.jpeg') | imagine_filter('115x76') }}\" alt=\"{{ article.title }}\">
  446.                                         {% endif %}
  447.                                         <a href=\"{{ url('app_front_blog_read', {'cat_slug': article.category.slug, 'slug': article.slug}) }}\" class=\"color-bg\">Détails</a>
  448.                                     </div>
  449.                                     <div class=\"box-image-widget-details\">
  450.                                         <h4>{{ article.title }}</h4>
  451.                                         <span class=\"widget-posts-date\">
  452.                                             <i class=\"fal fa-calendar\"></i> 
  453.                                             {% if article.updatedAt %}
  454.                                                 Modifié le {{ article.updatedAt | format_datetime(locale='fr', pattern=\"dd MMMM YYYY\") }}
  455.                                             {% else %}
  456.                                                 Publié le {{ article.createdAt | format_datetime(locale='fr', pattern=\"dd MMMM YYYY\") }}
  457.                                             {% endif %}
  458.                                         </span>
  459.                                     </div>
  460.                                 </div>    
  461.                                 {% endfor %}                            
  462.                             </div>
  463.                         </div>
  464.                     </div>
  465.                                         
  466.                     <div class=\"box-widget-item fl-wrap\">
  467.                         <div class=\"box-widget\">
  468.                             <div class=\"box-widget-content\">
  469.                                 <div class=\"box-widget-item-header\">
  470.                                     <h3>Catégories</h3>
  471.                                 </div>
  472.                                 <ul class=\"cat-item\">
  473.                                     {% for category in categories %}
  474.                                     <li><a href=\"{{ url('app_front_blog_by_category', {'slug': category.slug}) }}\" title=\"{% if category.name | length > 28 %}{{ category.name }}{% endif %}\">{% if category.name | length > 28 %}{{ category.name | slice(0,28) }}...{% else %}{{ category.name }}{% endif %}</a> <span>{{ category.articles | length }}</span></li>
  475.                                     {% endfor %}
  476.                                 </ul>
  477.                             </div>
  478.                         </div>
  479.                     </div>
  480.                 </div>
  481.             </div>
  482.         </div>
  483.     </div>
  484.     <div class=\"limit-box fl-wrap\"></div>
  485. </section>
  486. {% endblock %}
  487. ""front/blog/articles.html.twig""/var/www/vhosts/resoh.fr/httpdocs/templates/front/blog/articles.html.twig");
  488.     }
  489. }