var/cache/dev/twig/ef/ef4263e1cf83d090cef071dd6cd26dc270322b452fc8b97dcde8fe97e3ec3e42.php line 290

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. /* @OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig */
  14. class __TwigTemplate_1316f6d03ecba8518c014a133bb5008e512abd4e40c01a9c7a77899a5822e71f extends \Twig\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.             'banner' => [$this'block_banner'],
  24.             'content' => [$this'block_content'],
  25.             'blog_breadcrumb' => [$this'block_blog_breadcrumb'],
  26.             'blog_header' => [$this'block_blog_header'],
  27.             'blog_articles' => [$this'block_blog_articles'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 4
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"));
  42.         // line 1
  43.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"1)->unwrap();
  44.         // line 2
  45.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"2)->unwrap();
  46.         // line 4
  47.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig"4);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 6
  55.     public function block_banner($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  62.         // line 7
  63.         echo "    ";
  64.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_banner_plugin_shop_partial_banner", ["template" => "@SyliusShop/Banner/_banner-news.html.twig"]));
  65.         echo "
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 10
  73.     public function block_content($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  80.         // line 11
  81.         echo "    ";
  82.         $this->displayBlock('blog_breadcrumb'$context$blocks);
  83.         // line 18
  84.         echo "
  85.     ";
  86.         // line 19
  87.         $this->displayBlock('blog_header'$context$blocks);
  88.         // line 20
  89.         echo "
  90.     ";
  91.         // line 21
  92.         $this->displayBlock('blog_articles'$context$blocks);
  93.         // line 74
  94.         echo "
  95.     ";
  96.         // line 76
  97.         echo "        ";
  98.         // line 77
  99.         echo "            ";
  100.         // line 78
  101.         echo "        ";
  102.         // line 79
  103.         echo "    ";
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 11
  110.     public function block_blog_breadcrumb($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_breadcrumb"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_breadcrumb"));
  117.         // line 12
  118.         echo "        <div class=\"ui breadcrumb\">
  119.             <a href=\"";
  120.         // line 13
  121.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  122.         echo "\" class=\"section\">";
  123.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  124.         echo "</a>
  125.             <div class=\"divider\"> / </div>
  126.             <div class=\"active section\">";
  127.         // line 15
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("odiseo_sylius_blog_plugin.ui.blog.header"), "html"nulltrue);
  129.         echo "</div>
  130.         </div>
  131.     ";
  132.         
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.         
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  136.     }
  137.     // line 19
  138.     public function block_blog_header($context, array $blocks = [])
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_header"));
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_header"));
  145.         
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  147.         
  148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  149.     }
  150.     // line 21
  151.     public function block_blog_articles($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_articles"));
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_articles"));
  158.         // line 22
  159.         echo "        <div class=\"container\">
  160.             <div class=\"news-list\">
  161.                 <p class=\"news-list__intro\">";
  162.         // line 24
  163.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show_link_by_code", ["code" => "actualites""template" => "@BitBagSyliusCmsPlugin/Shop/Page/blocks/_news-intro.html.twig"]));
  164.         echo "</p>
  165.                 <div class=\"news-list__cards\" data-aos=\"fade-up\">
  166.                     ";
  167.         // line 27
  168.         if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'27$this->source); })())) > 0)) {
  169.             // line 28
  170.             echo "                        ";
  171.             $context['_parent'] = $context;
  172.             $context['_seq'] = twig_ensure_traversable((isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'28$this->source); })()));
  173.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  174.                 // line 29
  175.                 echo "                            <div class=\"news-list__card\">
  176.                                 ";
  177.                 // line 30
  178.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "images", [], "any"falsefalsefalse30)) > 0)) {
  179.                     // line 31
  180.                     echo "                                    <a href=\"";
  181.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse31)]), "html"nulltrue);
  182.                     echo "\"><img src=\"";
  183.                     echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "images", [], "any"falsefalsefalse31), 0, [], "array"falsefalsefalse31), "path", [], "any"falsefalsefalse31), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'31$this->source); })()), "mons_article_thumbnail")) : ("mons_article_thumbnail"))), "html"nulltrue);
  184.                     echo "\" alt=\"";
  185.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["article"], "images", [], "any"falsefalsefalse31), 0, [], "array"falsefalsefalse31), "path", [], "any"falsefalsefalse31), "html"nulltrue);
  186.                     echo "\"></a>
  187.                                 ";
  188.                 }
  189.                 // line 33
  190.                 echo "                                <div class=\"news-list__card-content\">
  191.                                     <span class=\"news-list__card-date\">";
  192.                 // line 34
  193.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.posted_on", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_get_attribute($this->env$this->source$context["article"], "createdAt", [], "any"falsefalsefalse34), "full""none"""null"gregorian"twig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "request", [], "any"falsefalsefalse34), "locale", [], "any"falsefalsefalse34), 02))]), "html"nulltrue);
  194.                 echo "</span>
  195.                                     <h2 class=\"news-list__card-title h4\"><a href=\"";
  196.                 // line 35
  197.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse35)]), "html"nulltrue);
  198.                 echo "\" title=\"";
  199.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse35), "html_attr");
  200.                 echo "\">";
  201.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse35), "html"nulltrue);
  202.                 echo "</a></h2>
  203.                                     <p class=\"news-list__card-description\">
  204.                                         ";
  205.                 // line 37
  206.                 if ((twig_length_filter($this->envtwig_striptags(twig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse37))) > 200)) {
  207.                     // line 38
  208.                     echo "                                            ";
  209.                     echo twig_slice($this->envtwig_striptags(twig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse38)), 0200);
  210.                     echo "...
  211.                                         ";
  212.                 } else {
  213.                     // line 40
  214.                     echo "                                            ";
  215.                     echo twig_striptags(twig_get_attribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse40));
  216.                     echo "
  217.                                         ";
  218.                 }
  219.                 // line 42
  220.                 echo "                                    </p>
  221.                                     <a href=\"";
  222.                 // line 44
  223.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse44)]), "html"nulltrue);
  224.                 echo "\" title=\"";
  225.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse44), "html_attr");
  226.                 echo "\">
  227.                                         <p class=\"button button--secondary button--small news-list__card-button\">
  228.                                             ";
  229.                 // line 46
  230.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.see_details"), "html"nulltrue);
  231.                 echo "
  232.                                         </p>
  233.                                     </a>
  234.                                 </div>
  235.                             </div>
  236.                         ";
  237.             }
  238.             $_parent $context['_parent'];
  239.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  240.             $context array_intersect_key($context$_parent) + $_parent;
  241.             // line 52
  242.             echo "                    ";
  243.         } else {
  244.             // line 53
  245.             echo "                        ";
  246.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 53$context$this->getSourceContext());
  247.             echo "
  248.                     ";
  249.         }
  250.         // line 55
  251.         echo "                </div>
  252.                 ";
  253.         // line 56
  254.         echo twig_call_macro($macros["pagination"], "macro_simple", [(isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'56$this->source); })())], 56$context$this->getSourceContext());
  255.         echo "
  256.                 <!--<div class=\"pagination\">
  257.                     <span class=\"pagination__item\">1</span>
  258.                     <a href=\"#\" class=\"pagination__item\">2</a>
  259.                     <a href=\"#\" class=\"pagination__item\">3</a>
  260.                 </div>-->
  261.             </div>
  262.             <div class=\"citation\" data-aos=\"fade-up\">
  263.                 <div class=\"container\">
  264.                     <p>";
  265.         // line 65
  266.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.follow_mons");
  267.         echo "</p>
  268.                     <div class=\"social\">
  269.                         <a target=\"_blank\" href=\"https://www.facebook.com/fromagermons42\" title=\"";
  270.         // line 67
  271.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.facebook_page"), "html"nulltrue);
  272.         echo "\"><i class=\"fab fa-facebook-f\"></i></a>
  273.                         <a target=\"_blank\" href=\"https://www.instagram.com/mons_fromager_affineur/\" title=\"";
  274.         // line 68
  275.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.instagram_page"), "html"nulltrue);
  276.         echo "\"><i class=\"fab fa-instagram\"></i></a>
  277.                     </div>
  278.                 </div>
  279.             </div>
  280.         </div>
  281.     ";
  282.         
  283.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  284.         
  285.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  286.     }
  287.     public function getTemplateName()
  288.     {
  289.         return "@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig";
  290.     }
  291.     public function isTraitable()
  292.     {
  293.         return false;
  294.     }
  295.     public function getDebugInfo()
  296.     {
  297.         return array (  311 => 68,  307 => 67,  302 => 65,  290 => 56,  287 => 55,  281 => 53,  278 => 52,  266 => 46,  259 => 44,  255 => 42,  249 => 40,  243 => 38,  241 => 37,  232 => 35,  228 => 34,  225 => 33,  215 => 31,  213 => 30,  210 => 29,  205 => 28,  203 => 27,  197 => 24,  193 => 22,  183 => 21,  165 => 19,  152 => 15,  145 => 13,  142 => 12,  132 => 11,  122 => 79,  120 => 78,  118 => 77,  116 => 76,  113 => 74,  111 => 21,  108 => 20,  106 => 19,  103 => 18,  100 => 11,  90 => 10,  77 => 7,  67 => 6,  56 => 4,  54 => 2,  52 => 1,  39 => 4,);
  298.     }
  299.     public function getSourceContext()
  300.     {
  301.         return new Source("{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  302. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  303. {% extends '@SyliusShop/layout.html.twig' %}
  304. {% block banner %}
  305.     {{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/_banner-news.html.twig'})) }}
  306. {% endblock %}
  307. {% block content %}
  308.     {% block blog_breadcrumb %}
  309.         <div class=\"ui breadcrumb\">
  310.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\">{{ 'sylius.ui.home'|trans }}</a>
  311.             <div class=\"divider\"> / </div>
  312.             <div class=\"active section\">{{ 'odiseo_sylius_blog_plugin.ui.blog.header'|trans }}</div>
  313.         </div>
  314.     {% endblock %}
  315.     {% block blog_header %}{% endblock %}
  316.     {% block blog_articles %}
  317.         <div class=\"container\">
  318.             <div class=\"news-list\">
  319.                 <p class=\"news-list__intro\">{{ render(path('bitbag_sylius_cms_plugin_shop_page_show_link_by_code', {'code' : 'actualites', 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/blocks/_news-intro.html.twig'})) }}</p>
  320.                 <div class=\"news-list__cards\" data-aos=\"fade-up\">
  321.                     {% if resources|length > 0 %}
  322.                         {% for article in resources %}
  323.                             <div class=\"news-list__card\">
  324.                                 {% if article.images|length > 0 %}
  325.                                     <a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\"><img src=\"{{ article.images[0].path|imagine_filter(filter|default('mons_article_thumbnail')) }}\" alt=\"{{ article.images[0].path }}\"></a>
  326.                                 {% endif %}
  327.                                 <div class=\"news-list__card-content\">
  328.                                     <span class=\"news-list__card-date\">{{ 'sylius.news.posted_on'|trans({'%date%': article.createdAt|format_datetime(\"full\", 'none', locale=app.request.locale|slice(0, 2))}) }}</span>
  329.                                     <h2 class=\"news-list__card-title h4\"><a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" title=\"{{ article.title|e('html_attr') }}\">{{ article.title }}</a></h2>
  330.                                     <p class=\"news-list__card-description\">
  331.                                         {% if article.content|striptags|length > 200 %}
  332.                                             {{ article.content|striptags|slice(0, 200)|raw }}...
  333.                                         {% else %}
  334.                                             {{ article.content|striptags|raw }}
  335.                                         {% endif %}
  336.                                     </p>
  337.                                     <a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}\" title=\"{{ article.title|e('html_attr') }}\">
  338.                                         <p class=\"button button--secondary button--small news-list__card-button\">
  339.                                             {{ 'sylius.news.see_details'|trans }}
  340.                                         </p>
  341.                                     </a>
  342.                                 </div>
  343.                             </div>
  344.                         {% endfor %}
  345.                     {% else %}
  346.                         {{ messages.info('sylius.ui.no_results_to_display') }}
  347.                     {% endif %}
  348.                 </div>
  349.                 {{ pagination.simple(resources) }}
  350.                 <!--<div class=\"pagination\">
  351.                     <span class=\"pagination__item\">1</span>
  352.                     <a href=\"#\" class=\"pagination__item\">2</a>
  353.                     <a href=\"#\" class=\"pagination__item\">3</a>
  354.                 </div>-->
  355.             </div>
  356.             <div class=\"citation\" data-aos=\"fade-up\">
  357.                 <div class=\"container\">
  358.                     <p>{{ 'sylius.news.follow_mons'|trans|raw }}</p>
  359.                     <div class=\"social\">
  360.                         <a target=\"_blank\" href=\"https://www.facebook.com/fromagermons42\" title=\"{{ 'app.footer.facebook_page'|trans }}\"><i class=\"fab fa-facebook-f\"></i></a>
  361.                         <a target=\"_blank\" href=\"https://www.instagram.com/mons_fromager_affineur/\" title=\"{{ 'app.footer.instagram_page'|trans }}\"><i class=\"fab fa-instagram\"></i></a>
  362.                     </div>
  363.                 </div>
  364.             </div>
  365.         </div>
  366.     {% endblock %}
  367.     {# if disqus_shortname() #}
  368.         {# block blog_disqus #}
  369.             {# include '@OdiseoSyliusBlogPlugin/Shop/Article/_disqus.html.twig' #}
  370.         {# endblock #}
  371.     {# endif #}
  372. {% endblock %}
  373. ""@OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig""/home/mons/site/www/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/index.html.twig");
  374.     }
  375. }