var/cache/dev/twig/16/166d4ea721108a1fa73df5f8327c2bff.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. /* content/default.html.twig */
  14. class __TwigTemplate_c53b0590992ad61343599cef767d0f12 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 "layouts/layout.html.twig";
  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""content/default.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""content/default.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/default.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "    <div id=\"main-content\" class=\"main-content\" >
  57.         ";
  58.         // line 5
  59.         if (twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'5$this->source); })()), "getTitle", [], "method"falsefalsetrue5))) {
  60.             // line 6
  61.             echo "            ";
  62.             $this->env->getFunction('pimcore_head_title')->getCallable()(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "getData", [], "method"falsefalsetrue6), "PREPEND");
  63.             // line 7
  64.             echo "        ";
  65.         }
  66.         // line 8
  67.         echo "
  68.         <div class=\"page-header\">
  69.             <h1>";
  70.         // line 10
  71.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => "Headline"]);
  72.         echo "</h1>
  73.         </div>
  74.         ";
  75.         // line 13
  76.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => [=> "blockquote"=> "embed"=> "featurette"=> "gallery-carousel"=> "gallery-folder"=> "gallery-single-images"=> "headlines"=> "horizontal-line"=> "icon-teaser-row"=> "image"10 => "image-hotspot-marker"11 => "image-metadata"12 => "pdf"13 => "product-grid"14 => "product-teaser"15 => "standard-teaser"16 => "text-accordion"17 => "time-slider-featurette"18 => "video"19 => "wysiwyg"20 => "wysiwyg-with-images"21 => "personalized-product-teaser"]]);
  77.         // line 18
  78.         echo "
  79.     </div>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     public function getTemplateName()
  87.     {
  88.         return "content/default.html.twig";
  89.     }
  90.     public function isTraitable()
  91.     {
  92.         return false;
  93.     }
  94.     public function getDebugInfo()
  95.     {
  96.         return array (  93 => 18,  91 => 13,  85 => 10,  81 => 8,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  97.     }
  98.     public function getSourceContext()
  99.     {
  100.         return new Source("{% extends 'layouts/layout.html.twig' %}
  101. {% block content %}
  102.     <div id=\"main-content\" class=\"main-content\" >
  103.         {% if document.getTitle() is empty %}
  104.             {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  105.         {% endif %}
  106.         <div class=\"page-header\">
  107.             <h1>{{ pimcore_input('headline', {'placeholder':'Headline'}) }}</h1>
  108.         </div>
  109.         {{ pimcore_areablock('content', {
  110.             'allowed': ['blockquote', 'embed', 'featurette', 'gallery-carousel', 'gallery-folder',
  111.                 'gallery-single-images', 'headlines', 'horizontal-line', 'icon-teaser-row', 'image',
  112.                 'image-hotspot-marker', 'image-metadata', 'pdf', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion',
  113.                 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser']
  114.         }) }}
  115.     </div>
  116. {% endblock %}""content/default.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/content/default.html.twig");
  117.     }
  118.     
  119.     public function checkSecurity()
  120.     {
  121.         static $tags = array("if" => 5"do" => 6);
  122.         static $filters = array();
  123.         static $functions = array("pimcore_head_title" => 6"pimcore_input" => 6"pimcore_areablock" => 13);
  124.         try {
  125.             $this->sandbox->checkSecurity(
  126.                 ['if''do'],
  127.                 [],
  128.                 ['pimcore_head_title''pimcore_input''pimcore_areablock']
  129.             );
  130.         } catch (SecurityError $e) {
  131.             $e->setSourceContext($this->source);
  132.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  133.                 $e->setTemplateLine($tags[$e->getTagName()]);
  134.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  135.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  136.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  137.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  138.             }
  139.             throw $e;
  140.         }
  141.     }
  142. }