<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* front/catalog/discount/view.html.twig */
class __TwigTemplate_6081e9e9b8eb2ebac97010a01d1acf7a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascripts' => [$this, 'block_javascripts'],
'structuredData' => [$this, 'block_structuredData'],
'bodyClass' => [$this, 'block_bodyClass'],
'metas' => [$this, 'block_metas'],
'featured' => [$this, 'block_featured'],
'breadcrumbs' => [$this, 'block_breadcrumbs'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/discount/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/discount/view.html.twig"));
$this->parent = $this->loadTemplate("front/front.html.twig", "front/catalog/discount/view.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 4
yield " <script>
config.discountId = ";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 5, $this->source); })()), "id", [], "any", false, false, false, 5), "html", null, true);
yield ";
</script>
<script src=\"";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/filters.js"), "html", null, true);
yield "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 10
public function block_structuredData($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
// line 11
yield " ";
$context["cpt"] = 1;
// line 12
yield " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BreadcrumbList\",
\"itemListElement\":
[
{
\"@type\": \"ListItem\",
\"position\": ";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 20, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
\"@id\": \"";
// line 23
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("index");
yield "\",
\"name\": \"";
// line 24
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vivog | Matériel pour les toiletteurs et éleveurs", [], "messages");
yield "\"
}
},
";
// line 27
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 27, $this->source); })()));
$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["p"]) {
// line 28
yield " ";
$context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 28, $this->source); })()) + 1);
// line 29
yield " {
\"@type\": \"ListItem\",
\"position\": ";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 31, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
";
// line 34
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 34) == 1)) {
// line 35
yield " \"@id\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("universe", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 35), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 35)]), "html", null, true);
yield "\",
";
} else {
// line 37
yield " \"@id\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 37), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 37)]), "html", null, true);
yield "\",
";
}
// line 39
yield " \"name\": \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "name", [], "any", false, false, false, 39), "html", null, true);
yield "\"
}
},
";
++$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['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
yield " ";
$context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 43, $this->source); })()) + 1);
// line 44
yield " {
\"@type\": \"ListItem\",
\"position\": ";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 46, $this->source); })()), "html", null, true);
yield ",
\"item\":
{
\"@id\": \"";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 49, $this->source); })()), "url", [], "any", false, false, false, 49), "id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 49, $this->source); })()), "id", [], "any", false, false, false, 49)]), "html", null, true);
yield "\",
\"name\": \"";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 50, $this->source); })()), "title", [], "any", false, false, false, 50), "html", null, true);
yield "\"
}
}
]
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 58
public function block_bodyClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
yield "discount-page";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 60
public function block_metas($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
// line 61
yield " <title>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TextExtension']->stripTagsFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountDescription"]) || array_key_exists("discountDescription", $context) ? $context["discountDescription"] : (function () { throw new RuntimeError('Variable "discountDescription" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61)), "html", null, true);
yield "</title>
<link rel=\"canonical\" href=\"";
// line 62
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 62, $this->source); })()), "id", [], "any", false, false, false, 62), "url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 62, $this->source); })()), "url", [], "any", false, false, false, 62)]), "html", null, true);
yield "\" />
<meta name=\"robots\" content=\"noindex\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 66
public function block_featured($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 68
public function block_breadcrumbs($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
// line 69
yield " ";
yield from $this->loadTemplate("front/layout/breadcrumbs.html.twig", "front/catalog/discount/view.html.twig", 69)->unwrap()->yield(CoreExtension::merge($context, ["discount" => (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 69, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 72
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 73
yield " <div class=\"ctn category-view discount-view\">
";
// line 74
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 75
yield " <div class=\"admin-tools\">
<a href=\"";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_discount_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 76, $this->source); })()), "id", [], "any", false, false, false, 76)]), "html", null, true);
yield "\" class=\"admin-update\" target=\"_blank\">modifier la catégorie</a>
</div>
";
}
// line 79
yield " <h1>";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountDescription"]) || array_key_exists("discountDescription", $context) ? $context["discountDescription"] : (function () { throw new RuntimeError('Variable "discountDescription" does not exist.', 79, $this->source); })()), "title", [], "any", false, false, false, 79);
yield "</h1>
";
// line 80
yield from $this->loadTemplate("front/catalog/discount/list.html.twig", "front/catalog/discount/view.html.twig", 80)->unwrap()->yield($context);
// line 81
yield " <div class=\"center\">
<div class=\"product-ctn\">
";
// line 83
yield from $this->loadTemplate("front/catalog/product/list.html.twig", "front/catalog/discount/view.html.twig", 83)->unwrap()->yield(CoreExtension::merge($context, ["products" => (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 83, $this->source); })()), "productTitleTag" => "h2", "listClass" => "", "discounts" => (isset($context["discounts"]) || array_key_exists("discounts", $context) ? $context["discounts"] : (function () { throw new RuntimeError('Variable "discounts" does not exist.', 83, $this->source); })())]));
// line 84
yield " </div>
</div>
</div>
";
// line 87
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\Modules\\SeenProductsController::block", ["request" => CoreExtension::getAttribute($this->env, $this->source, // line 89
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "request", [], "any", false, false, false, 89)]));
// line 90
yield "
<div class=\"ctn\">
<div class=\"footer-spacer\"></div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/catalog/discount/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 368 => 90, 366 => 89, 365 => 87, 360 => 84, 358 => 83, 354 => 81, 352 => 80, 347 => 79, 341 => 76, 338 => 75, 336 => 74, 333 => 73, 323 => 72, 311 => 69, 301 => 68, 282 => 66, 268 => 62, 263 => 61, 253 => 60, 233 => 58, 215 => 50, 211 => 49, 205 => 46, 201 => 44, 198 => 43, 179 => 39, 173 => 37, 167 => 35, 165 => 34, 159 => 31, 155 => 29, 152 => 28, 135 => 27, 129 => 24, 125 => 23, 119 => 20, 109 => 12, 106 => 11, 96 => 10, 83 => 7, 78 => 5, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'front/front.html.twig' %}
{% block javascripts %}
<script>
config.discountId = {{ discount.id }};
</script>
<script src=\"{{ asset('js/filters.js') }}\"></script>
{% endblock %}
{% block structuredData %}
{% set cpt = 1 %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BreadcrumbList\",
\"itemListElement\":
[
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
\"@id\": \"{{ url('index') }}\",
\"name\": \"{% trans %}Vivog | Matériel pour les toiletteurs et éleveurs{% endtrans %}\"
}
},
{% for p in path %}
{% set cpt = cpt + 1 %}
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
{% if loop.index == 1 %}
\"@id\": \"{{ url('universe',{url:p.url,id:p.id}) }}\",
{% else %}
\"@id\": \"{{ url('discount',{url:p.url,id:p.id}) }}\",
{% endif %}
\"name\": \"{{ p.name }}\"
}
},
{% endfor %}
{% set cpt = cpt + 1 %}
{
\"@type\": \"ListItem\",
\"position\": {{ cpt }},
\"item\":
{
\"@id\": \"{{ url('discount',{url:discount.url,id:discount.id}) }}\",
\"name\": \"{{ discount.title }}\"
}
}
]
}
</script>
{% endblock %}
{% block bodyClass %}discount-page{% endblock %}
{% block metas %}
<title>{{ discountDescription.title | striptags }}</title>
<link rel=\"canonical\" href=\"{{ url('discount',{id:discount.id, url:discount.url}) }}\" />
<meta name=\"robots\" content=\"noindex\">
{% endblock %}
{% block featured %}{% endblock %}
{% block breadcrumbs %}
{% include 'front/layout/breadcrumbs.html.twig' with {discount:discount} %}
{% endblock %}
{% block content %}
<div class=\"ctn category-view discount-view\">
{% if is_granted('ROLE_ADMIN') %}
<div class=\"admin-tools\">
<a href=\"{{ path('admin_discount_edit',{id:discount.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier la catégorie</a>
</div>
{% endif %}
<h1>{{ discountDescription.title | raw }}</h1>
{% include 'front/catalog/discount/list.html.twig' %}
<div class=\"center\">
<div class=\"product-ctn\">
{% include 'front/catalog/product/list.html.twig' with { products:products, productTitleTag:'h2', listClass:'', discounts:discounts }%}
</div>
</div>
</div>
{{ render(controller(
'App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block',
{ 'request': app.request }
)) }}
<div class=\"ctn\">
<div class=\"footer-spacer\"></div>
</div>
{% endblock %}", "front/catalog/discount/view.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/discount/view.html.twig");
}
}