var/cache/dev/twig/88/8895e4de4febd739f8b71f281ff112e2502a50630eda54c01d257e3bfc5af1fb.php line 53

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. /* Admin\view.html.twig */
  14. class __TwigTemplate_05c55d718ec1aeeb5bad6f14a722a51fd5eaa3375008b85756becdf75f01669d 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 5
  29.         return $this->loadTemplate((((isset($context["ajax"]) || array_key_exists("ajax"$context) ? $context["ajax"] : (function () { throw new RuntimeError('Variable "ajax" does not exist.'5$this->source); })())) ? ("Admin/admin.html.twig") : ("Admin/base.html.twig")), "Admin\\view.html.twig"5);
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Admin\\view.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Admin\\view.html.twig"));
  38.         // line 1
  39.         if ( !array_key_exists("ajax"$context)) {
  40.             // line 2
  41.             $context["ajax"] = false;
  42.         }
  43.         // line 5
  44.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 7
  51.     public function block_content($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         // line 8
  59.         echo "\t";
  60.         if ((array_key_exists("view"$context) && (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'8$this->source); })()))) {
  61.             // line 9
  62.             echo "\t\t";
  63.             $this->loadTemplate((isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'9$this->source); })()), "Admin\\view.html.twig"9)->display($context);
  64.             // line 10
  65.             echo "\t";
  66.         } else {
  67.             // line 11
  68.             echo "\t\t";
  69.             $context["entity"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_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.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "attributes", [], "any"falsefalsefalse11), "get", [=> "_controller"], "method"falsefalsefalse11), "Controller"), 1, [], "array"falsefalsefalse11), "\\"), 1, [], "array"falsefalsefalse11);
  70.             // line 12
  71.             echo "\t\t";
  72.             $this->loadTemplate(((isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'12$this->source); })()) . "/record.html.twig"), "Admin\\view.html.twig"12)->display($context);
  73.             // line 13
  74.             echo "\t";
  75.         }
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.     }
  81.     public function getTemplateName()
  82.     {
  83.         return "Admin\\view.html.twig";
  84.     }
  85.     public function isTraitable()
  86.     {
  87.         return false;
  88.     }
  89.     public function getDebugInfo()
  90.     {
  91.         return array (  88 => 13,  85 => 12,  82 => 11,  79 => 10,  76 => 9,  73 => 8,  63 => 7,  53 => 5,  50 => 2,  48 => 1,  35 => 5,);
  92.     }
  93.     public function getSourceContext()
  94.     {
  95.         return new Source("{% if ajax is not defined %}
  96. {% set ajax = false %}
  97. {% endif %}
  98. {% extends ajax ? 'Admin/admin.html.twig' : 'Admin/base.html.twig' %}
  99. {% block content %}
  100. \t{% if view is defined and view %}
  101. \t\t{% include(view) %}
  102. \t{% else %}
  103. \t\t{% set entity = app.request.attributes.get(\"_controller\")|split(\"Controller\")[1]|split(\"\\\\\")[1] %}
  104. \t\t{% include(entity~'/record.html.twig') %}
  105. \t{% endif %}
  106. {% endblock %}
  107. ""Admin\\view.html.twig""/home/olasoftnka/cefal/templates/Admin/view.html.twig");
  108.     }
  109. }