var/cache/dev/twig/14/143a70de7fe8b8d64c876eabcd092cd6.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. /* areas/product-grid/view.html.twig */
  14. class __TwigTemplate_e099ad4242c198cf197a11155b89c2da 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""areas/product-grid/view.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""areas/product-grid/view.html.twig"));
  35.         // line 1
  36.         $context["filterDefinitionObject"] = (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'1$this->source); })());
  37.         // line 2
  38.         $context["params"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsetrue2), "query", [], "any"falsefalsetrue2), "all", [], "any"falsefalsetrue2);
  39.         // line 3
  40.         echo "
  41. ";
  42.         // line 4
  43.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  44.             // line 5
  45.             echo "    <div class=\"span3\">
  46.     </div>
  47.     <div class=\"span9\">
  48.         <h2>ProductFilter Object</h2>
  49.         <div>
  50.             ";
  51.             // line 11
  52.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""productFilter", ["types" => [=> "object"], "subtypes" => ["object" => [=> "object"]], "classes" => [=> "FilterDefinition"]]);
  53.             // line 17
  54.             echo "
  55.         </div>
  56.     </div>
  57.     <div style=\"clear: both\"></div>
  58. ";
  59.         }
  60.         // line 23
  61.         echo "
  62. ";
  63.         // line 24
  64.         if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""productFilter"), "isEmpty", [], "method"falsefalsetrue24)) {
  65.             // line 25
  66.             echo "    ";
  67.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\ProductController::listingAction"twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'25$this->source); })()), 25$this->source), ["filterdefinition" => (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'25$this->source); })()), "noLayout" => true])));
  68.             echo "
  69. ";
  70.         }
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.     }
  76.     public function getTemplateName()
  77.     {
  78.         return "areas/product-grid/view.html.twig";
  79.     }
  80.     public function isTraitable()
  81.     {
  82.         return false;
  83.     }
  84.     public function getDebugInfo()
  85.     {
  86.         return array (  77 => 25,  75 => 24,  72 => 23,  64 => 17,  62 => 11,  54 => 5,  52 => 4,  49 => 3,  47 => 2,  45 => 1,);
  87.     }
  88.     public function getSourceContext()
  89.     {
  90.         return new Source("{% set filterDefinitionObject = filterDefinitionObject %}
  91. {% set params = app.request.query.all %}
  92. {% if editmode %}
  93.     <div class=\"span3\">
  94.     </div>
  95.     <div class=\"span9\">
  96.         <h2>ProductFilter Object</h2>
  97.         <div>
  98.             {{ pimcore_relation(\"productFilter\",{
  99.                 \"types\": [\"object\"],
  100.                 \"subtypes\": {
  101.                     \"object\": [\"object\"],
  102.                 },
  103.                 \"classes\": [\"FilterDefinition\"]
  104.             }) }}
  105.         </div>
  106.     </div>
  107.     <div style=\"clear: both\"></div>
  108. {% endif %}
  109. {% if not pimcore_relation(\"productFilter\").isEmpty() %}
  110.     {{ render(controller('App\\\\Controller\\\\ProductController::listingAction', params | merge({\"filterdefinition\": filterDefinitionObject, \"noLayout\": true}))) }}
  111. {% endif %}""areas/product-grid/view.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/areas/product-grid/view.html.twig");
  112.     }
  113.     
  114.     public function checkSecurity()
  115.     {
  116.         static $tags = array("set" => 1"if" => 4);
  117.         static $filters = array("merge" => 25);
  118.         static $functions = array("pimcore_relation" => 11"render" => 25"controller" => 25);
  119.         try {
  120.             $this->sandbox->checkSecurity(
  121.                 ['set''if'],
  122.                 ['merge'],
  123.                 ['pimcore_relation''render''controller']
  124.             );
  125.         } catch (SecurityError $e) {
  126.             $e->setSourceContext($this->source);
  127.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  128.                 $e->setTemplateLine($tags[$e->getTagName()]);
  129.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  130.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  131.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  132.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  133.             }
  134.             throw $e;
  135.         }
  136.     }
  137. }