var/cache/dev/twig/5f/5f9ec6753c023fdbfd9170cf8f2daeef8719b517de2269d2c7bf06e43c2243b7.php line 74

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/show.html.twig */
  14. class __TwigTemplate_f411624d72f2036f64480203071f433780c374659debae3e331289559dafa890 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.             'head' => [$this'block_head'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'metatags' => [$this'block_metatags'],
  26.             'title' => [$this'block_title'],
  27.             'content' => [$this'block_content'],
  28.             'blog_breadcrumb' => [$this'block_blog_breadcrumb'],
  29.             'blog_article' => [$this'block_blog_article'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 1
  36.         return "@SyliusShop/layout.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig"));
  45.         // line 3
  46.         $context["mainImage"] = null;
  47.         // line 4
  48.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'4$this->source); })()), "images", [], "any"falsefalsefalse4)) > 0)) {
  49.             // line 5
  50.             $context['_parent'] = $context;
  51.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'5$this->source); })()), "images", [], "any"falsefalsefalse5));
  52.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  53.                 // line 6
  54.                 if (((twig_get_attribute($this->env$this->source$context["image"], "type", [], "any"falsefalsefalse6) != "pdf") && (null === (isset($context["mainImage"]) || array_key_exists("mainImage"$context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.'6$this->source); })())))) {
  55.                     // line 7
  56.                     $context["mainImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("media/image/" twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse7)));
  57.                 }
  58.             }
  59.             $_parent $context['_parent'];
  60.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  61.             $context array_intersect_key($context$_parent) + $_parent;
  62.         }
  63.         // line 1
  64.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig"1);
  65.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.     }
  71.     // line 12
  72.     public function block_head($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  79.         // line 13
  80.         echo "    ";
  81.         $this->displayParentBlock("head"$context$blocks);
  82.         echo "
  83.     ";
  84.         // line 15
  85.         $this->displayBlock('stylesheets'$context$blocks);
  86.         // line 18
  87.         echo "
  88.     ";
  89.         // line 19
  90.         $this->displayBlock('metatags'$context$blocks);
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 15
  97.     public function block_stylesheets($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  104.         // line 16
  105.         echo "        ";
  106.         $this->displayParentBlock("stylesheets"$context$blocks);
  107.         echo "
  108.     ";
  109.         
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  111.         
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  113.     }
  114.     // line 19
  115.     public function block_metatags($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  120.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  122.         // line 20
  123.         echo "        ";
  124.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'20$this->source); })()), "metaKeywords", [], "any"falsefalsefalse20))) {
  125.             // line 21
  126.             echo "            <meta name=\"keywords\" content=\"";
  127.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'21$this->source); })()), "metaKeywords", [], "any"falsefalsefalse21), "html_attr");
  128.             echo "\"/>
  129.         ";
  130.         }
  131.         // line 23
  132.         echo "        ";
  133.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'23$this->source); })()), "metaDescription", [], "any"falsefalsefalse23))) {
  134.             // line 24
  135.             echo "            <meta name=\"description\" content=\"";
  136.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'24$this->source); })()), "metaDescription", [], "any"falsefalsefalse24), "html_attr");
  137.             echo "\"/>
  138.         ";
  139.         }
  140.         // line 26
  141.         echo "
  142.         <meta property=\"og:site_name\" content=\"Mons Fromage\" />
  143.         <meta property=\"og:locale\" content=\"";
  144.         // line 28
  145.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'28$this->source); })()), "localeCode", [], "any"falsefalsefalse28), "html"nulltrue);
  146.         echo "\" />
  147.         <meta property=\"og:title\" content=\"";
  148.         // line 29
  149.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'29$this->source); })()), "title", [], "any"falsefalsefalse29), "html_attr");
  150.         echo "\" />
  151.         <meta property=\"og:url\" content=\"";
  152.         // line 30
  153.         echo twig_escape_filter($this->env, ((isset($context["website_url"]) || array_key_exists("website_url"$context) ? $context["website_url"] : (function () { throw new RuntimeError('Variable "website_url" does not exist.'30$this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_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.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "attributes", [], "any"falsefalsefalse30), "get", [=> "_route"], "method"falsefalsefalse30), twig_get_attribute($this->env$this->sourcetwig_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.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "attributes", [], "any"falsefalsefalse30), "get", [=> "_route_params"], "method"falsefalsefalse30))), "html"nulltrue);
  154.         echo "\" />
  155.         <meta property=\"og:type\" content=\"website\" />
  156.         <meta property=\"og:description\" content=\"";
  157.         // line 32
  158.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'32$this->source); })()), "metaDescription", [], "any"falsefalsefalse32), "html_attr");
  159.         echo "\" />
  160.         <meta property=\"og:image\" content=\"";
  161.         // line 33
  162.         echo twig_escape_filter($this->env, (((isset($context["website_url"]) || array_key_exists("website_url"$context) ? $context["website_url"] : (function () { throw new RuntimeError('Variable "website_url" does not exist.'33$this->source); })()) . "/") . (isset($context["mainImage"]) || array_key_exists("mainImage"$context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.'33$this->source); })())), "html"nulltrue);
  163.         echo "\" />
  164.         <meta name=\"twitter:card\" content=\"summary\" />
  165.         <meta name=\"twitter:title\" content=\"";
  166.         // line 36
  167.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'36$this->source); })()), "title", [], "any"falsefalsefalse36), "html_attr");
  168.         echo "\" />
  169.         <meta name=\"twitter:description\" content=\"";
  170.         // line 37
  171.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'37$this->source); })()), "metaDescription", [], "any"falsefalsefalse37), "html_attr");
  172.         echo "\" />
  173.         <meta name=\"twitter:image\" content=\"";
  174.         // line 38
  175.         echo twig_escape_filter($this->env, (((isset($context["website_url"]) || array_key_exists("website_url"$context) ? $context["website_url"] : (function () { throw new RuntimeError('Variable "website_url" does not exist.'38$this->source); })()) . "/") . (isset($context["mainImage"]) || array_key_exists("mainImage"$context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.'38$this->source); })())), "html"nulltrue);
  176.         echo "\" />
  177.     ";
  178.         
  179.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  180.         
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  182.     }
  183.     // line 42
  184.     public function block_title($context, array $blocks = [])
  185.     {
  186.         $macros $this->macros;
  187.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  191.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'42$this->source); })()), "title", [], "any"falsefalsefalse42), "html"nulltrue);
  192.         echo " | ";
  193.         $this->displayParentBlock("title"$context$blocks);
  194.         
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  196.         
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  198.     }
  199.     // line 44
  200.     public function block_content($context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  205.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  207.         // line 45
  208.         echo "    ";
  209.         $this->displayBlock('blog_breadcrumb'$context$blocks);
  210.         // line 54
  211.         echo "
  212.     ";
  213.         // line 55
  214.         $this->displayBlock('blog_article'$context$blocks);
  215.         
  216.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  217.         
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  219.     }
  220.     // line 45
  221.     public function block_blog_breadcrumb($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_breadcrumb"));
  226.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_breadcrumb"));
  228.         // line 46
  229.         echo "        <div class=\"ui breadcrumb\">
  230.             <a href=\"";
  231.         // line 47
  232.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  233.         echo "\" class=\"section\">";
  234.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  235.         echo "</a>
  236.             <div class=\"divider\"> /</div>
  237.             <a href=\"";
  238.         // line 49
  239.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_index");
  240.         echo "\" class=\"section\">";
  241.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("odiseo_sylius_blog_plugin.ui.blog.header"), "html"nulltrue);
  242.         echo "</a>
  243.             <div class=\"divider\"> /</div>
  244.             <div class=\"active section\">";
  245.         // line 51
  246.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'51$this->source); })()), "title", [], "any"falsefalsefalse51), "html"nulltrue);
  247.         echo "</div>
  248.         </div>
  249.     ";
  250.         
  251.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  252.         
  253.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  254.     }
  255.     // line 55
  256.     public function block_blog_article($context, array $blocks = [])
  257.     {
  258.         $macros $this->macros;
  259.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  260.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_article"));
  261.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  262.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_article"));
  263.         // line 56
  264.         echo "        <div class=\"news-details\">
  265.             <div class=\"news-details__columns\">
  266.                 <div class=\"news-details__left\" data-aos=\"fade-right\">
  267.                     <span class=\"news-details__date\">";
  268.         // line 59
  269.         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, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'59$this->source); })()), "createdAt", [], "any"falsefalsefalse59), "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.'59$this->source); })()), "request", [], "any"falsefalsefalse59), "locale", [], "any"falsefalsefalse59), 02))]), "html"nulltrue);
  270.         echo "</span>
  271.                     <h1 class=\"news-details__title h2\">";
  272.         // line 60
  273.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'60$this->source); })()), "title", [], "any"falsefalsefalse60), "html"nulltrue);
  274.         echo "</h1>
  275.                     <div class=\"news-details__description\">
  276.                         ";
  277.         // line 62
  278.         echo twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'62$this->source); })()), "content", [], "any"falsefalsefalse62);
  279.         echo "
  280.                     </div>
  281.                     ";
  282.         // line 64
  283.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'64$this->source); })()), "images", [], "any"falsefalsefalse64)) > 0)) {
  284.             // line 65
  285.             echo "                        ";
  286.             $context['_parent'] = $context;
  287.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'65$this->source); })()), "images", [], "any"falsefalsefalse65));
  288.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  289.                 // line 66
  290.                 echo "                            ";
  291.                 if ((twig_get_attribute($this->env$this->source$context["image"], "type", [], "any"falsefalsefalse66) == "pdf")) {
  292.                     // line 67
  293.                     echo "                                <a href=\"";
  294.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("media/image/" twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse67))), "html"nulltrue);
  295.                     echo "\" class=\"button button--secondary button--small news-details__button\" download>";
  296.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.download_file"), "html"nulltrue);
  297.                     echo "</a>
  298.                             ";
  299.                 }
  300.                 // line 69
  301.                 echo "                        ";
  302.             }
  303.             $_parent $context['_parent'];
  304.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  305.             $context array_intersect_key($context$_parent) + $_parent;
  306.             // line 70
  307.             echo "                    ";
  308.         }
  309.         // line 71
  310.         echo "                    <div class=\"news-details__social\">
  311.                         <a href=\"https://www.facebook.com/dialog/share?app_id=405817610847215&display=popup&href=";
  312.         // line 72
  313.         echo twig_escape_filter($this->envtwig_urlencode_filter(((isset($context["website_url"]) || array_key_exists("website_url"$context) ? $context["website_url"] : (function () { throw new RuntimeError('Variable "website_url" does not exist.'72$this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_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.'72$this->source); })()), "request", [], "any"falsefalsefalse72), "attributes", [], "any"falsefalsefalse72), "get", [=> "_route"], "method"falsefalsefalse72), twig_get_attribute($this->env$this->sourcetwig_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.'72$this->source); })()), "request", [], "any"falsefalsefalse72), "attributes", [], "any"falsefalsefalse72), "get", [=> "_route_params"], "method"falsefalsefalse72)))), "html"nulltrue);
  314.         echo "\" class=\"facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i>Facebook</a>
  315.                         <a href=\"https://www.linkedin.com/sharing/share-offsite/?url=";
  316.         // line 73
  317.         echo twig_escape_filter($this->envtwig_urlencode_filter(((isset($context["website_url"]) || array_key_exists("website_url"$context) ? $context["website_url"] : (function () { throw new RuntimeError('Variable "website_url" does not exist.'73$this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_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.'73$this->source); })()), "request", [], "any"falsefalsefalse73), "attributes", [], "any"falsefalsefalse73), "get", [=> "_route"], "method"falsefalsefalse73), twig_get_attribute($this->env$this->sourcetwig_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.'73$this->source); })()), "request", [], "any"falsefalsefalse73), "attributes", [], "any"falsefalsefalse73), "get", [=> "_route_params"], "method"falsefalsefalse73)))), "html"nulltrue);
  318.         echo "\" class=\"linkedin\" target=\"_blank\"><i class=\"fab fa-linkedin-in\"></i>LinkedIn</a>
  319.                     </div>
  320.                 </div>
  321.                 ";
  322.         // line 76
  323.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'76$this->source); })()), "images", [], "any"falsefalsefalse76)) > 0)) {
  324.             // line 77
  325.             echo "                    <div class=\"news-details__right\" data-aos=\"fade-left\">
  326.                         <div class=\"news-details__slider-main produit\">
  327.                             ";
  328.             // line 79
  329.             $context['_parent'] = $context;
  330.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'79$this->source); })()), "images", [], "any"falsefalsefalse79));
  331.             $context['loop'] = [
  332.               'parent' => $context['_parent'],
  333.               'index0' => 0,
  334.               'index'  => 1,
  335.               'first'  => true,
  336.             ];
  337.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  338.                 $length count($context['_seq']);
  339.                 $context['loop']['revindex0'] = $length 1;
  340.                 $context['loop']['revindex'] = $length;
  341.                 $context['loop']['length'] = $length;
  342.                 $context['loop']['last'] = === $length;
  343.             }
  344.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  345.                 // line 80
  346.                 echo "                                ";
  347.                 if ((twig_get_attribute($this->env$this->source$context["image"], "type", [], "any"falsefalsefalse80) != "pdf")) {
  348.                     // line 81
  349.                     echo "                                    ";
  350.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse81) == 0)) {
  351.                         // line 82
  352.                         echo "                                        <img src=\"";
  353.                         echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse82), ((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.'82$this->source); })()), "mons_article_show")) : ("mons_article_show"))), "html"nulltrue);
  354.                         echo "\" class=\"ui image centered\" alt=\"";
  355.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'82$this->source); })()), "title", [], "any"falsefalsefalse82), "html_attr");
  356.                         echo "\">
  357.                                     ";
  358.                     } else {
  359.                         // line 84
  360.                         echo "                                        <img src=\"";
  361.                         echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse84), ((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.'84$this->source); })()), "mons_article_show")) : ("mons_article_show"))), "html"nulltrue);
  362.                         echo "\" alt=\"";
  363.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'84$this->source); })()), "title", [], "any"falsefalsefalse84), "html_attr");
  364.                         echo "\" />
  365.                                     ";
  366.                     }
  367.                     // line 86
  368.                     echo "                                ";
  369.                 }
  370.                 // line 87
  371.                 echo "                            ";
  372.                 ++$context['loop']['index0'];
  373.                 ++$context['loop']['index'];
  374.                 $context['loop']['first'] = false;
  375.                 if (isset($context['loop']['length'])) {
  376.                     --$context['loop']['revindex0'];
  377.                     --$context['loop']['revindex'];
  378.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  379.                 }
  380.             }
  381.             $_parent $context['_parent'];
  382.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  383.             $context array_intersect_key($context$_parent) + $_parent;
  384.             // line 88
  385.             echo "                        </div>
  386.                         <div class=\"news-details__slider-navigation\">
  387.                             ";
  388.             // line 90
  389.             $context['_parent'] = $context;
  390.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'90$this->source); })()), "images", [], "any"falsefalsefalse90));
  391.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  392.                 // line 91
  393.                 echo "                                ";
  394.                 if ((twig_get_attribute($this->env$this->source$context["image"], "type", [], "any"falsefalsefalse91) != "pdf")) {
  395.                     // line 92
  396.                     echo "                                    <img src=\"";
  397.                     echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse92), ((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.'92$this->source); })()), "mons_article_show_thumbnail")) : ("mons_article_show_thumbnail"))), "html"nulltrue);
  398.                     echo "\" alt=\"";
  399.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'92$this->source); })()), "title", [], "any"falsefalsefalse92), "html_attr");
  400.                     echo "\" />
  401.                                 ";
  402.                 }
  403.                 // line 94
  404.                 echo "                            ";
  405.             }
  406.             $_parent $context['_parent'];
  407.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  408.             $context array_intersect_key($context$_parent) + $_parent;
  409.             // line 95
  410.             echo "                        </div>
  411.                     </div>
  412.                 ";
  413.         }
  414.         // line 98
  415.         echo "            </div>
  416.             <div class=\"news-details__back\">
  417.                 <a href=\"/fr/blog/articles\" class=\"button button--outline-red button--medium\">";
  418.         // line 100
  419.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.back_to_the_list"), "html"nulltrue);
  420.         echo "</a>
  421.             </div>
  422.         </div>
  423.         <div class=\"citation\" data-aos=\"fade-up\">
  424.             <div class=\"container\">
  425.                 <p>";
  426.         // line 105
  427.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.information_inquiry");
  428.         echo "</p>
  429.                 <a href=\"";
  430.         // line 106
  431.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
  432.         echo "\" class=\"button button--secondary\" title=\"";
  433.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.contact"), "html"nulltrue);
  434.         echo "\">";
  435.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.contact_us"), "html"nulltrue);
  436.         echo "</a>
  437.             </div>
  438.         </div>
  439.     ";
  440.         
  441.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  442.         
  443.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  444.     }
  445.     // line 112
  446.     public function block_javascripts($context, array $blocks = [])
  447.     {
  448.         $macros $this->macros;
  449.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  450.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  451.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  452.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  453.         // line 113
  454.         echo "    ";
  455.         $this->displayParentBlock("javascripts"$context$blocks);
  456.         echo "
  457.     <script type=\"text/javascript\">
  458.         \$(document).ready(function(){
  459.             \$('.news-details__slider-main').slick({
  460.                 slidesToShow: 1,
  461.                 slidesToScroll: 1,
  462.                 arrows: true,
  463.                 fade: true,
  464.                 infinite: false,
  465.                 asNavFor: '.news-details__slider-navigation',
  466.                 autoplay: true,
  467.                 autoplaySpeed: 3000
  468.             });
  469.             \$('.news-details__slider-navigation').slick({
  470.                 slidesToShow: 4,
  471.                 slidesToScroll: 1,
  472.                 asNavFor: '.news-details__slider-main',
  473.                 arrows: false,
  474.                 infinite: false,
  475.                 focusOnSelect: true,
  476.                 autoplay: true,
  477.                 autoplaySpeed: 3000
  478.             });
  479.         });
  480.     </script>
  481. ";
  482.         
  483.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  484.         
  485.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  486.     }
  487.     public function getTemplateName()
  488.     {
  489.         return "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig";
  490.     }
  491.     public function isTraitable()
  492.     {
  493.         return false;
  494.     }
  495.     public function getDebugInfo()
  496.     {
  497.         return array (  505 => 113,  495 => 112,  477 => 106,  473 => 105,  465 => 100,  461 => 98,  456 => 95,  450 => 94,  442 => 92,  439 => 91,  435 => 90,  431 => 88,  417 => 87,  414 => 86,  406 => 84,  398 => 82,  395 => 81,  392 => 80,  375 => 79,  371 => 77,  369 => 76,  363 => 73,  359 => 72,  356 => 71,  353 => 70,  347 => 69,  339 => 67,  336 => 66,  331 => 65,  329 => 64,  324 => 62,  319 => 60,  315 => 59,  310 => 56,  300 => 55,  287 => 51,  280 => 49,  273 => 47,  270 => 46,  260 => 45,  250 => 55,  247 => 54,  244 => 45,  234 => 44,  213 => 42,  201 => 38,  197 => 37,  193 => 36,  187 => 33,  183 => 32,  178 => 30,  174 => 29,  170 => 28,  166 => 26,  160 => 24,  157 => 23,  151 => 21,  148 => 20,  138 => 19,  125 => 16,  115 => 15,  105 => 19,  102 => 18,  100 => 15,  94 => 13,  84 => 12,  73 => 1,  65 => 7,  63 => 6,  59 => 5,  57 => 4,  55 => 3,  42 => 1,);
  498.     }
  499.     public function getSourceContext()
  500.     {
  501.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  502. {% set mainImage = null %}
  503. {% if article.images|length > 0 %}
  504.     {% for image in article.images %}
  505.         {% if image.type != \"pdf\" and mainImage is null %}
  506.             {% set mainImage = asset('media/image/' ~ image.path) %}
  507.         {% endif %}
  508.     {% endfor %}
  509. {% endif %}
  510. {% block head %}
  511.     {{ parent() }}
  512.     {% block stylesheets %}
  513.         {{ parent() }}
  514.     {% endblock %}
  515.     {% block metatags %}
  516.         {% if article.metaKeywords is not empty %}
  517.             <meta name=\"keywords\" content=\"{{ article.metaKeywords|e('html_attr') }}\"/>
  518.         {% endif %}
  519.         {% if article.metaDescription is not empty %}
  520.             <meta name=\"description\" content=\"{{ article.metaDescription|e('html_attr') }}\"/>
  521.         {% endif %}
  522.         <meta property=\"og:site_name\" content=\"Mons Fromage\" />
  523.         <meta property=\"og:locale\" content=\"{{ sylius.localeCode }}\" />
  524.         <meta property=\"og:title\" content=\"{{ article.title|e('html_attr') }}\" />
  525.         <meta property=\"og:url\" content=\"{{ website_url ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" />
  526.         <meta property=\"og:type\" content=\"website\" />
  527.         <meta property=\"og:description\" content=\"{{ article.metaDescription|e('html_attr') }}\" />
  528.         <meta property=\"og:image\" content=\"{{ website_url ~ '/' ~ mainImage }}\" />
  529.         <meta name=\"twitter:card\" content=\"summary\" />
  530.         <meta name=\"twitter:title\" content=\"{{ article.title|e('html_attr') }}\" />
  531.         <meta name=\"twitter:description\" content=\"{{ article.metaDescription|e('html_attr') }}\" />
  532.         <meta name=\"twitter:image\" content=\"{{ website_url ~ '/' ~ mainImage }}\" />
  533.     {% endblock %}
  534. {% endblock %}
  535. {% block title %}{{ article.title }} | {{ parent() }}{% endblock %}
  536. {% block content %}
  537.     {% block blog_breadcrumb %}
  538.         <div class=\"ui breadcrumb\">
  539.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\">{{ 'sylius.ui.home'|trans }}</a>
  540.             <div class=\"divider\"> /</div>
  541.             <a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_index') }}\" class=\"section\">{{ 'odiseo_sylius_blog_plugin.ui.blog.header'|trans }}</a>
  542.             <div class=\"divider\"> /</div>
  543.             <div class=\"active section\">{{ article.title }}</div>
  544.         </div>
  545.     {% endblock %}
  546.     {% block blog_article %}
  547.         <div class=\"news-details\">
  548.             <div class=\"news-details__columns\">
  549.                 <div class=\"news-details__left\" data-aos=\"fade-right\">
  550.                     <span class=\"news-details__date\">{{ 'sylius.news.posted_on'|trans({'%date%': article.createdAt|format_datetime(\"full\", 'none', locale=app.request.locale|slice(0, 2))}) }}</span>
  551.                     <h1 class=\"news-details__title h2\">{{ article.title }}</h1>
  552.                     <div class=\"news-details__description\">
  553.                         {{ article.content|raw }}
  554.                     </div>
  555.                     {% if article.images|length > 0 %}
  556.                         {% for image in article.images %}
  557.                             {% if image.type == \"pdf\" %}
  558.                                 <a href=\"{{ asset('media/image/' ~ image.path) }}\" class=\"button button--secondary button--small news-details__button\" download>{{ 'sylius.news.download_file'|trans }}</a>
  559.                             {% endif %}
  560.                         {% endfor %}
  561.                     {% endif %}
  562.                     <div class=\"news-details__social\">
  563.                         <a href=\"https://www.facebook.com/dialog/share?app_id=405817610847215&display=popup&href={{ (website_url ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')))|url_encode }}\" class=\"facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i>Facebook</a>
  564.                         <a href=\"https://www.linkedin.com/sharing/share-offsite/?url={{ (website_url ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')))|url_encode }}\" class=\"linkedin\" target=\"_blank\"><i class=\"fab fa-linkedin-in\"></i>LinkedIn</a>
  565.                     </div>
  566.                 </div>
  567.                 {% if article.images|length > 0 %}
  568.                     <div class=\"news-details__right\" data-aos=\"fade-left\">
  569.                         <div class=\"news-details__slider-main produit\">
  570.                             {% for image in article.images %}
  571.                                 {% if image.type != \"pdf\" %}
  572.                                     {% if loop.index0 == 0 %}
  573.                                         <img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show')) }}\" class=\"ui image centered\" alt=\"{{ article.title|e('html_attr') }}\">
  574.                                     {% else %}
  575.                                         <img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show')) }}\" alt=\"{{ article.title|e('html_attr') }}\" />
  576.                                     {% endif %}
  577.                                 {% endif %}
  578.                             {% endfor %}
  579.                         </div>
  580.                         <div class=\"news-details__slider-navigation\">
  581.                             {% for image in article.images %}
  582.                                 {% if image.type != \"pdf\" %}
  583.                                     <img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show_thumbnail')) }}\" alt=\"{{ article.title|e('html_attr') }}\" />
  584.                                 {% endif %}
  585.                             {% endfor %}
  586.                         </div>
  587.                     </div>
  588.                 {% endif %}
  589.             </div>
  590.             <div class=\"news-details__back\">
  591.                 <a href=\"/fr/blog/articles\" class=\"button button--outline-red button--medium\">{{ 'sylius.news.back_to_the_list'|trans }}</a>
  592.             </div>
  593.         </div>
  594.         <div class=\"citation\" data-aos=\"fade-up\">
  595.             <div class=\"container\">
  596.                 <p>{{ 'sylius.news.information_inquiry'|trans|raw }}</p>
  597.                 <a href=\"{{ path('sylius_shop_contact_request') }}\" class=\"button button--secondary\" title=\"{{ 'sylius.ui.contact'|trans }}\">{{ 'sylius.news.contact_us'|trans }}</a>
  598.             </div>
  599.         </div>
  600.     {% endblock %}
  601. {% endblock %}
  602. {% block javascripts %}
  603.     {{ parent() }}
  604.     <script type=\"text/javascript\">
  605.         \$(document).ready(function(){
  606.             \$('.news-details__slider-main').slick({
  607.                 slidesToShow: 1,
  608.                 slidesToScroll: 1,
  609.                 arrows: true,
  610.                 fade: true,
  611.                 infinite: false,
  612.                 asNavFor: '.news-details__slider-navigation',
  613.                 autoplay: true,
  614.                 autoplaySpeed: 3000
  615.             });
  616.             \$('.news-details__slider-navigation').slick({
  617.                 slidesToShow: 4,
  618.                 slidesToScroll: 1,
  619.                 asNavFor: '.news-details__slider-main',
  620.                 arrows: false,
  621.                 infinite: false,
  622.                 focusOnSelect: true,
  623.                 autoplay: true,
  624.                 autoplaySpeed: 3000
  625.             });
  626.         });
  627.     </script>
  628. {% endblock %}
  629. ""@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig""/home/mons/site/www/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig");
  630.     }
  631. }