var/cache/dev/twig/fb/fb1b62288e83beb4ce6bad22f564dc91.php line 40

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. /* product/overview.html.twig */
  14. class __TwigTemplate_805d4a9a3acf2c984b39625d0a96b9ca 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "product/overview.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/overview.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/overview.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "    <section class=\"mb-5 pb-5\">
  56.         <div class=\"container\">
  57.             ";
  58.         // line 7
  59.         echo twig_include($this->env$context"includes/title.html.twig");
  60.         echo "
  61.             ";
  62.         // line 9
  63.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content-1");
  64.         echo "
  65.             <div class=\"row\">
  66.                 <div class=\"col-12\">
  67.                     ";
  68.         // line 12
  69.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'12$this->source); })())) {
  70.             // line 13
  71.             echo "                        ";
  72.             $context["message"] = "Om een ProductCategory toe te voegen: wendt u zich naar \"Objects\"";
  73.             // line 14
  74.             echo "                        ";
  75.             $this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig""product/overview.html.twig"14)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'14$this->source); })()), "type" => "alert"]));
  76.             // line 15
  77.             echo "                    ";
  78.         }
  79.         // line 16
  80.         echo "                </div>
  81.             </div>
  82.             <div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
  83.                 ";
  84.         // line 20
  85.         $context['_parent'] = $context;
  86.         $context['_seq'] = twig_ensure_traversable((isset($context["productcategories"]) || array_key_exists("productcategories"$context) ? $context["productcategories"] : (function () { throw new RuntimeError('Variable "productcategories" does not exist.'20$this->source); })()));
  87.         foreach ($context['_seq'] as $context["_key"] => $context["categorie"]) {
  88.             // line 21
  89.             echo "                    ";
  90.             $context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed($context["categorie"], 21$this->source));
  91.             // line 22
  92.             echo "
  93.                     <div class=\"col\">
  94.                         <div class=\"text-center catoverview\">
  95.                             <a href=\"";
  96.             // line 25
  97.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink"$context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.'25$this->source); })()), 25$this->source), "html"nulltrue);
  98.             echo "\" class=\"fs-5\"
  99.                                onMouseOver=\"this.style.color='";
  100.             // line 26
  101.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["categorie"], "bgcolor", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  102.             echo "'\"
  103.                                onMouseOut=\"this.style.color='#595959'\" data-toggle=\"tooltip\" data-html=\"true\" title=\"";
  104.             // line 27
  105.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["categorie"], "infoProductGroup", [], "any"falsefalsetrue27), 27$this->source), "html"nulltrue);
  106.             echo "\" style=\"cursor: pointer;\">
  107.                                 <div class=\"p-3 position-relative h-100 d-block\">
  108.                                     ";
  109.             // line 29
  110.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["categorie"], "getImage", [], "method"falsefalsetrue29))) {
  111.                 // line 30
  112.                 echo "
  113.                                         <img src=\"";
  114.                 // line 31
  115.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["categorie"], "getImage", [], "method"falsefalsetrue31), "getThumbnail", [=> "homepage-icon"], "method"falsefalsetrue31), 31$this->source), "html"nulltrue);
  116.                 echo "\"
  117.                                              class=\"img-fluid d-block\" style=\"z-index: 1\">
  118.                                     ";
  119.             }
  120.             // line 35
  121.             echo "
  122.                                     ";
  123.             // line 36
  124.             $context["productimagebg"] = twig_get_attribute($this->env$this->source$context["categorie"], "imagebg", [], "any"falsefalsetrue36);
  125.             // line 37
  126.             echo "                                    ";
  127.             if ((isset($context["productimagebg"]) || array_key_exists("productimagebg"$context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.'37$this->source); })())) {
  128.                 // line 38
  129.                 echo "
  130.                                         <img
  131.                                         src=\"";
  132.                 // line 40
  133.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["productimagebg"]) || array_key_exists("productimagebg"$context) ? $context["productimagebg"] : (function () { throw new RuntimeError('Variable "productimagebg" does not exist.'40$this->source); })()), "getThumbnail", [=> "homepage-icon"], "method"falsefalsetrue40), 40$this->source), "html"nulltrue);
  134.                 echo "\"
  135.                                         class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"
  136.                                         style=\"z-index: -1\">";
  137.             }
  138.             // line 43
  139.             echo "
  140.                                 </div>
  141.                                 ";
  142.             // line 46
  143.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["categorie"], "combinedCategoryName", [], "any"falsefalsetrue46))) {
  144.                 // line 47
  145.                 echo "                                    ";
  146.                 echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["categorie"], "combinedCategoryName", [], "any"falsefalsetrue47), 47$this->source)), "html"nulltrue);
  147.                 echo "
  148.                                 ";
  149.             } else {
  150.                 // line 49
  151.                 echo "                                    ";
  152.                 echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["categorie"], "oms", [], "any"falsefalsetrue49), 49$this->source)), "html"nulltrue);
  153.                 echo "
  154.                                 ";
  155.             }
  156.             // line 51
  157.             echo "                            </a>
  158.                         </div>
  159.                     </div>
  160.                 ";
  161.         }
  162.         $_parent $context['_parent'];
  163.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorie'], $context['_parent'], $context['loop']);
  164.         $context array_intersect_key($context$_parent) + $_parent;
  165.         // line 55
  166.         echo "            </div>
  167.             ";
  168.         // line 56
  169.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content-2");
  170.         echo "
  171.             <div class=\"row\">
  172.                 <div class=\"col-12 justify-content-center \">
  173.                     ";
  174.         // line 60
  175.         $this->loadTemplate("includes/pagination-product.html.twig""product/overview.html.twig"60)->display($context);
  176.         // line 61
  177.         echo "                </div>
  178.             </div>
  179.         </div>
  180.     </section>
  181. ";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "product/overview.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         return array (  197 => 61,  195 => 60,  188 => 56,  185 => 55,  176 => 51,  170 => 49,  164 => 47,  162 => 46,  157 => 43,  151 => 40,  147 => 38,  144 => 37,  142 => 36,  139 => 35,  132 => 31,  129 => 30,  127 => 29,  122 => 27,  118 => 26,  114 => 25,  109 => 22,  106 => 21,  102 => 20,  96 => 16,  93 => 15,  90 => 14,  87 => 13,  85 => 12,  79 => 9,  74 => 7,  69 => 4,  59 => 3,  37 => 1,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("{% extends base_layout() %}
  202. {% block content %}
  203.     <section class=\"mb-5 pb-5\">
  204.         <div class=\"container\">
  205.             {{ include('includes/title.html.twig') }}
  206.             {{ pimcore_areablock('content-1') }}
  207.             <div class=\"row\">
  208.                 <div class=\"col-12\">
  209.                     {% if editmode %}
  210.                         {% set message = 'Om een ProductCategory toe te voegen: wendt u zich naar \"Objects\"' %}
  211.                         {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
  212.                     {% endif %}
  213.                 </div>
  214.             </div>
  215.             <div class=\"row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center\">
  216.                 {% for categorie in productcategories %}
  217.                     {% set detailLink = app_product_grouplink(categorie) %}
  218.                     <div class=\"col\">
  219.                         <div class=\"text-center catoverview\">
  220.                             <a href=\"{{ detailLink }}\" class=\"fs-5\"
  221.                                onMouseOver=\"this.style.color='{{ categorie.bgcolor }}'\"
  222.                                onMouseOut=\"this.style.color='#595959'\" data-toggle=\"tooltip\" data-html=\"true\" title=\"{{ categorie.infoProductGroup }}\" style=\"cursor: pointer;\">
  223.                                 <div class=\"p-3 position-relative h-100 d-block\">
  224.                                     {% if categorie.getImage() is not empty %}
  225.                                         <img src=\"{{ categorie.getImage().getThumbnail('homepage-icon') }}\"
  226.                                              class=\"img-fluid d-block\" style=\"z-index: 1\">
  227.                                     {% endif %}
  228.                                     {% set productimagebg = categorie.imagebg %}
  229.                                     {% if productimagebg %}
  230.                                         <img
  231.                                         src=\"{{ productimagebg.getThumbnail('homepage-icon') }}\"
  232.                                         class=\"img-fluid position-absolute top-0 start-0 d-block bg-shape\"
  233.                                         style=\"z-index: -1\">{% endif %}
  234.                                 </div>
  235.                                 {% if categorie.combinedCategoryName is not empty %}
  236.                                     {{ categorie.combinedCategoryName|capitalize }}
  237.                                 {% else %}
  238.                                     {{ categorie.oms|capitalize }}
  239.                                 {% endif %}
  240.                             </a>
  241.                         </div>
  242.                     </div>
  243.                 {% endfor %}
  244.             </div>
  245.             {{ pimcore_areablock('content-2') }}
  246.             <div class=\"row\">
  247.                 <div class=\"col-12 justify-content-center \">
  248.                     {% include 'includes/pagination-product.html.twig' %}
  249.                 </div>
  250.             </div>
  251.         </div>
  252.     </section>
  253. {% endblock %}""product/overview.html.twig""/var/www/clients/client2/web42/web/pc/templates/product/overview.html.twig");
  254.     }
  255.     
  256.     public function checkSecurity()
  257.     {
  258.         static $tags = array("if" => 12"set" => 13"include" => 14"for" => 20);
  259.         static $filters = array("escape" => 25"capitalize" => 47);
  260.         static $functions = array("include" => 7"pimcore_areablock" => 9"app_product_grouplink" => 21"base_layout" => 1);
  261.         try {
  262.             $this->sandbox->checkSecurity(
  263.                 ['if''set''include''for'],
  264.                 ['escape''capitalize'],
  265.                 ['include''pimcore_areablock''app_product_grouplink''base_layout']
  266.             );
  267.         } catch (SecurityError $e) {
  268.             $e->setSourceContext($this->source);
  269.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  270.                 $e->setTemplateLine($tags[$e->getTagName()]);
  271.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  272.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  273.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  274.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  275.             }
  276.             throw $e;
  277.         }
  278.     }
  279. }