var/cache/dev/twig/f2/f2b689838cdab61aae370c856a7c3be5.php line 35

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. /* Shop/includes/newRelatedProductCarusel.html.twig */
  14. class __TwigTemplate_1f21a3b5368d78daae9b992a10edac18 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/includes/newRelatedProductCarusel.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/includes/newRelatedProductCarusel.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"productSlider grid-products\">
  37.     ";
  38.         // line 3
  39.         $this->loadTemplate("Shop/list/products.html.twig""Shop/includes/newRelatedProductCarusel.html.twig"3)->display(twig_array_merge($context, ["products" => (isset($context["relatedProducts"]) || array_key_exists("relatedProducts"$context) ? $context["relatedProducts"] : (function () { throw new RuntimeError('Variable "relatedProducts" does not exist.'3$this->source); })()), "listViewStyle" => "list""isProductlist" => true"isRelatedProducts" => true"isCarousel" => true]));
  40.         // line 4
  41.         echo "
  42. </div>";
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     /**
  49.      * @codeCoverageIgnore
  50.      */
  51.     public function getTemplateName()
  52.     {
  53.         return "Shop/includes/newRelatedProductCarusel.html.twig";
  54.     }
  55.     /**
  56.      * @codeCoverageIgnore
  57.      */
  58.     public function isTraitable()
  59.     {
  60.         return false;
  61.     }
  62.     /**
  63.      * @codeCoverageIgnore
  64.      */
  65.     public function getDebugInfo()
  66.     {
  67.         return array (  51 => 4,  49 => 3,  45 => 1,);
  68.     }
  69.     public function getSourceContext()
  70.     {
  71.         return new Source("<div class=\"productSlider grid-products\">
  72.     {% include 'Shop/list/products.html.twig' with {'products': relatedProducts, 'listViewStyle': \"list\", 'isProductlist': true, 'isRelatedProducts': true , 'isCarousel': true} %}
  73. </div>""Shop/includes/newRelatedProductCarusel.html.twig""/var/www/html/templates/Shop/includes/newRelatedProductCarusel.html.twig");
  74.     }
  75.     
  76.     public function checkSecurity()
  77.     {
  78.         static $tags = array("include" => 3);
  79.         static $filters = array();
  80.         static $functions = array();
  81.         try {
  82.             $this->sandbox->checkSecurity(
  83.                 ['include'],
  84.                 [],
  85.                 []
  86.             );
  87.         } catch (SecurityError $e) {
  88.             $e->setSourceContext($this->source);
  89.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  90.                 $e->setTemplateLine($tags[$e->getTagName()]);
  91.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  92.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  93.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  94.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  95.             }
  96.             throw $e;
  97.         }
  98.     }
  99. }