var/cache/dev/twig/26/268681a5cfb79c5a820986315e862681fc3ac4827ac4c94f3be8ee40885f7879.php line 62

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. /* front/productListDetail.html.twig */
  14. class __TwigTemplate_d31b0ee985fd2fdcbe05f918d5d02b8fa9c6dcccd763b55919c25412d801c46e extends 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/productListDetail.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/productListDetail.html.twig"));
  33.         // line 1
  34.         $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); })()))) : (""));
  35.         // line 2
  36.         echo "<div data-aos=\"fade-in\"   data-aos-duration=\"800\" class=\"product ";
  37.         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"));
  38.         echo "\">
  39.     <div data-link class=\"pointer jictmm gkxukd pa-30 bgc-white\">
  40.         <div class=\"bgp-center bgs-cover w-100 he-";
  41.         // line 4
  42.         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"));
  43.         echo "\"
  44.              style=\"background-image:url(";
  45.         // line 5
  46.         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"falsefalsefalse5)) ? ($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"nulltrue);
  47.         echo ")\">
  48.         </div>
  49.         <div class=\"mat-25 mab-15 hkckjb\">
  50.             <h2 class=\"may-0 jhrueo\">
  51.                 <a href=\"";
  52.         // line 9
  53.         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"nulltrue);
  54.         echo "\" class=\"c-inherit\">
  55.                     ";
  56.         // line 10
  57.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  58.         echo "
  59.                 </a>
  60.             </h2>
  61.         </div>
  62.         ";
  63.         // line 14
  64.         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"falsefalsefalse14) && 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"falsefalsefalse14))) {
  65.             // line 15
  66.             echo "            <div class=\"gleiuf\">
  67.                 <div class=\"mab-15 br-5 bgc-15683A pay-10 pax-12 yzryac\">
  68.                     ";
  69.             // line 17
  70.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse17), "title", [], "any"falsefalsefalse17), "html"nulltrue);
  71.             echo "
  72.                 </div>
  73.             </div>
  74.         ";
  75.         }
  76.         // line 21
  77.         echo "        <div class=\"content pmb0 ggksli\">
  78.             ";
  79.         // line 22
  80.         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"falsefalsefalse22);
  81.         echo "
  82.         </div>
  83.     </div>
  84. </div>
  85. ";
  86.         
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.     }
  91.     public function getTemplateName()
  92.     {
  93.         return "front/productListDetail.html.twig";
  94.     }
  95.     public function isTraitable()
  96.     {
  97.         return false;
  98.     }
  99.     public function getDebugInfo()
  100.     {
  101.         return array (  89 => 22,  86 => 21,  79 => 17,  75 => 15,  73 => 14,  66 => 10,  62 => 9,  55 => 5,  51 => 4,  45 => 2,  43 => 1,);
  102.     }
  103.     public function getSourceContext()
  104.     {
  105.         return new Source("{% set isSlider = isSlider|default %}
  106. <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\" }}\">
  107.     <div data-link class=\"pointer jictmm gkxukd pa-30 bgc-white\">
  108.         <div class=\"bgp-center bgs-cover w-100 he-{{ isSlider ? \"200-md he-300-sm he-200\" : \"320\" }}\"
  109.              style=\"background-image:url({{ product.productFileName ? asset(vich_uploader_asset(product, 'productFile'))|imagine_filter('medium') : asset('assets/img/defprod.png')|imagine_filter('medium') }})\">
  110.         </div>
  111.         <div class=\"mat-25 mab-15 hkckjb\">
  112.             <h2 class=\"may-0 jhrueo\">
  113.                 <a href=\"{{ getProductUrl(product) }}\" class=\"c-inherit\">
  114.                     {{ product.title }}
  115.                 </a>
  116.             </h2>
  117.         </div>
  118.         {% if not categoryActive.isChaine and product.subCategory %}
  119.             <div class=\"gleiuf\">
  120.                 <div class=\"mab-15 br-5 bgc-15683A pay-10 pax-12 yzryac\">
  121.                     {{ product.subCategory.title }}
  122.                 </div>
  123.             </div>
  124.         {% endif %}
  125.         <div class=\"content pmb0 ggksli\">
  126.             {{ product.intro|raw }}
  127.         </div>
  128.     </div>
  129. </div>
  130. ""front/productListDetail.html.twig""/home/hlcdisb/www/facomia_dev/templates/front/productListDetail.html.twig");
  131.     }
  132. }