<?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;
/* front/productListDetail.html.twig */
class __TwigTemplate_d31b0ee985fd2fdcbe05f918d5d02b8fa9c6dcccd763b55919c25412d801c46e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "front/productListDetail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/productListDetail.html.twig"));
// line 1
$context["isSlider"] = ((array_key_exists("isSlider", $context)) ? (_twig_default_filter((isset($context["isSlider"]) || array_key_exists("isSlider", $context) ? $context["isSlider"] : (function () { throw new RuntimeError('Variable "isSlider" does not exist.', 1, $this->source); })()))) : (""));
// line 2
echo "<div data-aos=\"fade-in\" data-aos-duration=\"800\" class=\"product ";
echo (( !(isset($context["isSlider"]) || array_key_exists("isSlider", $context) ? $context["isSlider"] : (function () { throw new RuntimeError('Variable "isSlider" does not exist.', 2, $this->source); })())) ? ("col-md-6 col-sm-8 col-11 col-lg-4 mab-50") : ("pax-25"));
echo "\">
<div data-link class=\"pointer jictmm gkxukd pa-30 bgc-white\">
<div class=\"bgp-center bgs-cover w-100 he-";
// line 4
echo (((isset($context["isSlider"]) || array_key_exists("isSlider", $context) ? $context["isSlider"] : (function () { throw new RuntimeError('Variable "isSlider" does not exist.', 4, $this->source); })())) ? ("200-md he-300-sm he-200") : ("320"));
echo "\"
style=\"background-image:url(";
// line 5
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "productFileName", [], "any", false, false, false, 5)) ? ($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "productFile")), "medium")) : ($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/defprod.png"), "medium"))), "html", null, true);
echo ")\">
</div>
<div class=\"mat-25 mab-15 hkckjb\">
<h2 class=\"may-0 jhrueo\">
<a href=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['App\Service\AppService']->getProductUrl((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })())), "html", null, true);
echo "\" class=\"c-inherit\">
";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, false, 10), "html", null, true);
echo "
</a>
</h2>
</div>
";
// line 14
if (( !twig_get_attribute($this->env, $this->source, (isset($context["categoryActive"]) || array_key_exists("categoryActive", $context) ? $context["categoryActive"] : (function () { throw new RuntimeError('Variable "categoryActive" does not exist.', 14, $this->source); })()), "isChaine", [], "any", false, false, false, 14) && twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 14, $this->source); })()), "subCategory", [], "any", false, false, false, 14))) {
// line 15
echo " <div class=\"gleiuf\">
<div class=\"mab-15 br-5 bgc-15683A pay-10 pax-12 yzryac\">
";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 17, $this->source); })()), "subCategory", [], "any", false, false, false, 17), "title", [], "any", false, false, false, 17), "html", null, true);
echo "
</div>
</div>
";
}
// line 21
echo " <div class=\"content pmb0 ggksli\">
";
// line 22
echo twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 22, $this->source); })()), "intro", [], "any", false, false, false, 22);
echo "
</div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front/productListDetail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 89 => 22, 86 => 21, 79 => 17, 75 => 15, 73 => 14, 66 => 10, 62 => 9, 55 => 5, 51 => 4, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set isSlider = isSlider|default %}
<div data-aos=\"fade-in\" data-aos-duration=\"800\" class=\"product {{ not isSlider ? \"col-md-6 col-sm-8 col-11 col-lg-4 mab-50\" : \"pax-25\" }}\">
<div data-link class=\"pointer jictmm gkxukd pa-30 bgc-white\">
<div class=\"bgp-center bgs-cover w-100 he-{{ isSlider ? \"200-md he-300-sm he-200\" : \"320\" }}\"
style=\"background-image:url({{ product.productFileName ? asset(vich_uploader_asset(product, 'productFile'))|imagine_filter('medium') : asset('assets/img/defprod.png')|imagine_filter('medium') }})\">
</div>
<div class=\"mat-25 mab-15 hkckjb\">
<h2 class=\"may-0 jhrueo\">
<a href=\"{{ getProductUrl(product) }}\" class=\"c-inherit\">
{{ product.title }}
</a>
</h2>
</div>
{% if not categoryActive.isChaine and product.subCategory %}
<div class=\"gleiuf\">
<div class=\"mab-15 br-5 bgc-15683A pay-10 pax-12 yzryac\">
{{ product.subCategory.title }}
</div>
</div>
{% endif %}
<div class=\"content pmb0 ggksli\">
{{ product.intro|raw }}
</div>
</div>
</div>
", "front/productListDetail.html.twig", "/home/hlcdisb/www/facomia_dev/templates/front/productListDetail.html.twig");
}
}