<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig */
class __TwigTemplate_f411624d72f2036f64480203071f433780c374659debae3e331289559dafa890 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'stylesheets' => [$this, 'block_stylesheets'],
'metatags' => [$this, 'block_metatags'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'blog_breadcrumb' => [$this, 'block_blog_breadcrumb'],
'blog_article' => [$this, 'block_blog_article'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig"));
// line 3
$context["mainImage"] = null;
// line 4
if ((twig_length_filter($this->env, 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.', 4, $this->source); })()), "images", [], "any", false, false, false, 4)) > 0)) {
// line 5
$context['_parent'] = $context;
$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", false, false, false, 5));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 6
if (((twig_get_attribute($this->env, $this->source, $context["image"], "type", [], "any", false, false, false, 6) != "pdf") && (null === (isset($context["mainImage"]) || array_key_exists("mainImage", $context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.', 6, $this->source); })())))) {
// line 7
$context["mainImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("media/image/" . twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 7)));
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 12
public function block_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 13
echo " ";
$this->displayParentBlock("head", $context, $blocks);
echo "
";
// line 15
$this->displayBlock('stylesheets', $context, $blocks);
// line 18
echo "
";
// line 19
$this->displayBlock('metatags', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 16
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 20
echo " ";
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", false, false, false, 20))) {
// line 21
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, 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.', 21, $this->source); })()), "metaKeywords", [], "any", false, false, false, 21), "html_attr");
echo "\"/>
";
}
// line 23
echo " ";
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", false, false, false, 23))) {
// line 24
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, 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.', 24, $this->source); })()), "metaDescription", [], "any", false, false, false, 24), "html_attr");
echo "\"/>
";
}
// line 26
echo "
<meta property=\"og:site_name\" content=\"Mons Fromage\" />
<meta property=\"og:locale\" content=\"";
// line 28
echo twig_escape_filter($this->env, twig_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", false, false, false, 28), "html", null, true);
echo "\" />
<meta property=\"og:title\" content=\"";
// line 29
echo twig_escape_filter($this->env, 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.', 29, $this->source); })()), "title", [], "any", false, false, false, 29), "html_attr");
echo "\" />
<meta property=\"og:url\" content=\"";
// line 30
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->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "attributes", [], "any", false, false, false, 30), "get", [0 => "_route"], "method", false, false, false, 30), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "attributes", [], "any", false, false, false, 30), "get", [0 => "_route_params"], "method", false, false, false, 30))), "html", null, true);
echo "\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:description\" content=\"";
// line 32
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "metaDescription", [], "any", false, false, false, 32), "html_attr");
echo "\" />
<meta property=\"og:image\" content=\"";
// line 33
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", null, true);
echo "\" />
<meta name=\"twitter:card\" content=\"summary\" />
<meta name=\"twitter:title\" content=\"";
// line 36
echo twig_escape_filter($this->env, 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.', 36, $this->source); })()), "title", [], "any", false, false, false, 36), "html_attr");
echo "\" />
<meta name=\"twitter:description\" content=\"";
// line 37
echo twig_escape_filter($this->env, 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.', 37, $this->source); })()), "metaDescription", [], "any", false, false, false, 37), "html_attr");
echo "\" />
<meta name=\"twitter:image\" content=\"";
// line 38
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", null, true);
echo "\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 42
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, 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.', 42, $this->source); })()), "title", [], "any", false, false, false, 42), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 44
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 45
echo " ";
$this->displayBlock('blog_breadcrumb', $context, $blocks);
// line 54
echo "
";
// line 55
$this->displayBlock('blog_article', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 45
public function block_blog_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_breadcrumb"));
// line 46
echo " <div class=\"ui breadcrumb\">
<a href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html", null, true);
echo "</a>
<div class=\"divider\"> /</div>
<a href=\"";
// line 49
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_index");
echo "\" class=\"section\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("odiseo_sylius_blog_plugin.ui.blog.header"), "html", null, true);
echo "</a>
<div class=\"divider\"> /</div>
<div class=\"active section\">";
// line 51
echo twig_escape_filter($this->env, 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.', 51, $this->source); })()), "title", [], "any", false, false, false, 51), "html", null, true);
echo "</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 55
public function block_blog_article($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_article"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "blog_article"));
// line 56
echo " <div class=\"news-details\">
<div class=\"news-details__columns\">
<div class=\"news-details__left\" data-aos=\"fade-right\">
<span class=\"news-details__date\">";
// line 59
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->env, 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.', 59, $this->source); })()), "createdAt", [], "any", false, false, false, 59), "full", "none", "", null, "gregorian", twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 59), "locale", [], "any", false, false, false, 59), 0, 2))]), "html", null, true);
echo "</span>
<h1 class=\"news-details__title h2\">";
// line 60
echo twig_escape_filter($this->env, 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.', 60, $this->source); })()), "title", [], "any", false, false, false, 60), "html", null, true);
echo "</h1>
<div class=\"news-details__description\">
";
// line 62
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", false, false, false, 62);
echo "
</div>
";
// line 64
if ((twig_length_filter($this->env, 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.', 64, $this->source); })()), "images", [], "any", false, false, false, 64)) > 0)) {
// line 65
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 65));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 66
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["image"], "type", [], "any", false, false, false, 66) == "pdf")) {
// line 67
echo " <a href=\"";
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", false, false, false, 67))), "html", null, true);
echo "\" class=\"button button--secondary button--small news-details__button\" download>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.download_file"), "html", null, true);
echo "</a>
";
}
// line 69
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 70
echo " ";
}
// line 71
echo " <div class=\"news-details__social\">
<a href=\"https://www.facebook.com/dialog/share?app_id=405817610847215&display=popup&href=";
// line 72
echo twig_escape_filter($this->env, twig_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->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 72), "attributes", [], "any", false, false, false, 72), "get", [0 => "_route"], "method", false, false, false, 72), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 72), "attributes", [], "any", false, false, false, 72), "get", [0 => "_route_params"], "method", false, false, false, 72)))), "html", null, true);
echo "\" class=\"facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i>Facebook</a>
<a href=\"https://www.linkedin.com/sharing/share-offsite/?url=";
// line 73
echo twig_escape_filter($this->env, twig_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->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 73), "attributes", [], "any", false, false, false, 73), "get", [0 => "_route"], "method", false, false, false, 73), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 73), "attributes", [], "any", false, false, false, 73), "get", [0 => "_route_params"], "method", false, false, false, 73)))), "html", null, true);
echo "\" class=\"linkedin\" target=\"_blank\"><i class=\"fab fa-linkedin-in\"></i>LinkedIn</a>
</div>
</div>
";
// line 76
if ((twig_length_filter($this->env, 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.', 76, $this->source); })()), "images", [], "any", false, false, false, 76)) > 0)) {
// line 77
echo " <div class=\"news-details__right\" data-aos=\"fade-left\">
<div class=\"news-details__slider-main produit\">
";
// line 79
$context['_parent'] = $context;
$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", false, false, false, 79));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 80
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["image"], "type", [], "any", false, false, false, 80) != "pdf")) {
// line 81
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 81) == 0)) {
// line 82
echo " <img src=\"";
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", false, false, false, 82), ((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", null, true);
echo "\" class=\"ui image centered\" alt=\"";
echo twig_escape_filter($this->env, 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.', 82, $this->source); })()), "title", [], "any", false, false, false, 82), "html_attr");
echo "\">
";
} else {
// line 84
echo " <img src=\"";
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", false, false, false, 84), ((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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 84, $this->source); })()), "title", [], "any", false, false, false, 84), "html_attr");
echo "\" />
";
}
// line 86
echo " ";
}
// line 87
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " </div>
<div class=\"news-details__slider-navigation\">
";
// line 90
$context['_parent'] = $context;
$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", false, false, false, 90));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 91
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["image"], "type", [], "any", false, false, false, 91) != "pdf")) {
// line 92
echo " <img src=\"";
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", false, false, false, 92), ((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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 92, $this->source); })()), "title", [], "any", false, false, false, 92), "html_attr");
echo "\" />
";
}
// line 94
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 95
echo " </div>
</div>
";
}
// line 98
echo " </div>
<div class=\"news-details__back\">
<a href=\"/fr/blog/articles\" class=\"button button--outline-red button--medium\">";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.back_to_the_list"), "html", null, true);
echo "</a>
</div>
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>";
// line 105
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.information_inquiry");
echo "</p>
<a href=\"";
// line 106
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
echo "\" class=\"button button--secondary\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.contact"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.news.contact_us"), "html", null, true);
echo "</a>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 112
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 113
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
\$(document).ready(function(){
\$('.news-details__slider-main').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
infinite: false,
asNavFor: '.news-details__slider-navigation',
autoplay: true,
autoplaySpeed: 3000
});
\$('.news-details__slider-navigation').slick({
slidesToShow: 4,
slidesToScroll: 1,
asNavFor: '.news-details__slider-main',
arrows: false,
infinite: false,
focusOnSelect: true,
autoplay: true,
autoplaySpeed: 3000
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% set mainImage = null %}
{% if article.images|length > 0 %}
{% for image in article.images %}
{% if image.type != \"pdf\" and mainImage is null %}
{% set mainImage = asset('media/image/' ~ image.path) %}
{% endif %}
{% endfor %}
{% endif %}
{% block head %}
{{ parent() }}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block metatags %}
{% if article.metaKeywords is not empty %}
<meta name=\"keywords\" content=\"{{ article.metaKeywords|e('html_attr') }}\"/>
{% endif %}
{% if article.metaDescription is not empty %}
<meta name=\"description\" content=\"{{ article.metaDescription|e('html_attr') }}\"/>
{% endif %}
<meta property=\"og:site_name\" content=\"Mons Fromage\" />
<meta property=\"og:locale\" content=\"{{ sylius.localeCode }}\" />
<meta property=\"og:title\" content=\"{{ article.title|e('html_attr') }}\" />
<meta property=\"og:url\" content=\"{{ website_url ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:description\" content=\"{{ article.metaDescription|e('html_attr') }}\" />
<meta property=\"og:image\" content=\"{{ website_url ~ '/' ~ mainImage }}\" />
<meta name=\"twitter:card\" content=\"summary\" />
<meta name=\"twitter:title\" content=\"{{ article.title|e('html_attr') }}\" />
<meta name=\"twitter:description\" content=\"{{ article.metaDescription|e('html_attr') }}\" />
<meta name=\"twitter:image\" content=\"{{ website_url ~ '/' ~ mainImage }}\" />
{% endblock %}
{% endblock %}
{% block title %}{{ article.title }} | {{ parent() }}{% endblock %}
{% block content %}
{% block blog_breadcrumb %}
<div class=\"ui breadcrumb\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\">{{ 'sylius.ui.home'|trans }}</a>
<div class=\"divider\"> /</div>
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_index') }}\" class=\"section\">{{ 'odiseo_sylius_blog_plugin.ui.blog.header'|trans }}</a>
<div class=\"divider\"> /</div>
<div class=\"active section\">{{ article.title }}</div>
</div>
{% endblock %}
{% block blog_article %}
<div class=\"news-details\">
<div class=\"news-details__columns\">
<div class=\"news-details__left\" data-aos=\"fade-right\">
<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>
<h1 class=\"news-details__title h2\">{{ article.title }}</h1>
<div class=\"news-details__description\">
{{ article.content|raw }}
</div>
{% if article.images|length > 0 %}
{% for image in article.images %}
{% if image.type == \"pdf\" %}
<a href=\"{{ asset('media/image/' ~ image.path) }}\" class=\"button button--secondary button--small news-details__button\" download>{{ 'sylius.news.download_file'|trans }}</a>
{% endif %}
{% endfor %}
{% endif %}
<div class=\"news-details__social\">
<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>
<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>
</div>
</div>
{% if article.images|length > 0 %}
<div class=\"news-details__right\" data-aos=\"fade-left\">
<div class=\"news-details__slider-main produit\">
{% for image in article.images %}
{% if image.type != \"pdf\" %}
{% if loop.index0 == 0 %}
<img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show')) }}\" class=\"ui image centered\" alt=\"{{ article.title|e('html_attr') }}\">
{% else %}
<img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show')) }}\" alt=\"{{ article.title|e('html_attr') }}\" />
{% endif %}
{% endif %}
{% endfor %}
</div>
<div class=\"news-details__slider-navigation\">
{% for image in article.images %}
{% if image.type != \"pdf\" %}
<img src=\"{{ image.path|imagine_filter(filter|default('mons_article_show_thumbnail')) }}\" alt=\"{{ article.title|e('html_attr') }}\" />
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
</div>
<div class=\"news-details__back\">
<a href=\"/fr/blog/articles\" class=\"button button--outline-red button--medium\">{{ 'sylius.news.back_to_the_list'|trans }}</a>
</div>
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>{{ 'sylius.news.information_inquiry'|trans|raw }}</p>
<a href=\"{{ path('sylius_shop_contact_request') }}\" class=\"button button--secondary\" title=\"{{ 'sylius.ui.contact'|trans }}\">{{ 'sylius.news.contact_us'|trans }}</a>
</div>
</div>
{% endblock %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"text/javascript\">
\$(document).ready(function(){
\$('.news-details__slider-main').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
infinite: false,
asNavFor: '.news-details__slider-navigation',
autoplay: true,
autoplaySpeed: 3000
});
\$('.news-details__slider-navigation').slick({
slidesToShow: 4,
slidesToScroll: 1,
asNavFor: '.news-details__slider-main',
arrows: false,
infinite: false,
focusOnSelect: true,
autoplay: true,
autoplaySpeed: 3000
});
});
</script>
{% endblock %}
", "@OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig", "/home/mons/site/www/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/show.html.twig");
}
}