var/cache/dev/twig/b8/b8d8b12d7330e5090e6e1dbb44355001.php line 50

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_fdb6842cd8b0ef80b1b91066df105731 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""image-hotspot-marker""image-metadata""pdf""product-grid""product-teaser""standard-teaser""text-accordion""time-slider-featurette""video""wysiwyg""wysiwyg-with-images""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.     /**
  87.      * @codeCoverageIgnore
  88.      */
  89.     public function getTemplateName()
  90.     {
  91.         return "content/default.html.twig";
  92.     }
  93.     /**
  94.      * @codeCoverageIgnore
  95.      */
  96.     public function isTraitable()
  97.     {
  98.         return false;
  99.     }
  100.     /**
  101.      * @codeCoverageIgnore
  102.      */
  103.     public function getDebugInfo()
  104.     {
  105.         return array (  93 => 18,  91 => 13,  85 => 10,  81 => 8,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  106.     }
  107.     public function getSourceContext()
  108.     {
  109.         return new Source("{% extends 'layouts/layout.html.twig' %}
  110. {% block content %}
  111.     <div id=\"main-content\" class=\"main-content\" >
  112.         {% if document.getTitle() is empty %}
  113.             {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  114.         {% endif %}
  115.         <div class=\"page-header\">
  116.             <h1>{{ pimcore_input('headline', {'placeholder':'Headline'}) }}</h1>
  117.         </div>
  118.         {{ pimcore_areablock('content', {
  119.             'allowed': ['blockquote', 'embed', 'featurette', 'gallery-carousel', 'gallery-folder',
  120.                 'gallery-single-images', 'headlines', 'horizontal-line', 'icon-teaser-row', 'image',
  121.                 'image-hotspot-marker', 'image-metadata', 'pdf', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion',
  122.                 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser']
  123.         }) }}
  124.     </div>
  125. {% endblock %}""content/default.html.twig""/var/www/dev-10/templates/content/default.html.twig");
  126.     }
  127.     
  128.     public function checkSecurity()
  129.     {
  130.         static $tags = array("if" => 5"do" => 6);
  131.         static $filters = array();
  132.         static $functions = array("pimcore_head_title" => 6"pimcore_input" => 6"pimcore_areablock" => 13);
  133.         try {
  134.             $this->sandbox->checkSecurity(
  135.                 ['if''do'],
  136.                 [],
  137.                 ['pimcore_head_title''pimcore_input''pimcore_areablock']
  138.             );
  139.         } catch (SecurityError $e) {
  140.             $e->setSourceContext($this->source);
  141.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  142.                 $e->setTemplateLine($tags[$e->getTagName()]);
  143.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  144.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  145.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  146.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  147.             }
  148.             throw $e;
  149.         }
  150.     }
  151. }