var/cache/dev/twig/fc/fc97ad234d8bdfe4f1efe37c53d79a15.php line 107

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_c9a56fee4ac0207349a0b93b94c525d2 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 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/default.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/default.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/default.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 5
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 6
  54.         echo "    <script>
  55.         function directOpen(){
  56.         }
  57.     </script>
  58.     <div id=\"main-content\" class=\"main-content\" >
  59. ";
  60.         // line 14
  61.         echo "        <a style=\"margin-top: 200px;\" href=\"javascript:directOpen();\"><h1>Click to Open</h1></a>
  62.         ";
  63.         // line 15
  64.         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.'15$this->source); })()), "getTitle", [], "method"falsefalsefalse15))) {
  65.             // line 16
  66.             echo "            ";
  67.             call_user_func_array($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"falsefalsefalse16), "PREPEND"]);
  68.             // line 17
  69.             echo "        ";
  70.         }
  71.         // line 18
  72.         echo "
  73.         <div class=\"page-header\">
  74.             <h1>";
  75.         // line 20
  76.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => "Headline"]);
  77.         echo "</h1>
  78.         </div>
  79.         <div class=\"page-header\">
  80.             <h1>";
  81.         // line 24
  82.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headlinex", ["required" => true]);
  83.         // line 26
  84.         echo "</h1>
  85.         </div>
  86.         ";
  87.         // line 30
  88.         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"]]);
  89.         // line 35
  90.         echo "
  91.     </div>
  92. ";
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.         
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "content/default.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  109 => 35,  107 => 30,  101 => 26,  99 => 24,  92 => 20,  88 => 18,  85 => 17,  82 => 16,  80 => 15,  77 => 14,  68 => 6,  58 => 5,  35 => 1,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("{% extends 'layouts/layout.html.twig' %}
  113. {#{% set link1 = '<a href=\"javascript:alert(\\'aaa\\');\"><h1>Click to Open</h1></a>' %}#}
  114. {% block content %}
  115.     <script>
  116.         function directOpen(){
  117.         }
  118.     </script>
  119.     <div id=\"main-content\" class=\"main-content\" >
  120. {#        {{ link1|raw }}#}
  121.         <a style=\"margin-top: 200px;\" href=\"javascript:directOpen();\"><h1>Click to Open</h1></a>
  122.         {% if document.getTitle() is empty %}
  123.             {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  124.         {% endif %}
  125.         <div class=\"page-header\">
  126.             <h1>{{ pimcore_input('headline', {'placeholder':'Headline'}) }}</h1>
  127.         </div>
  128.         <div class=\"page-header\">
  129.             <h1>{{ pimcore_input('headlinex', {
  130.                     required: true
  131.                 }) }}</h1>
  132.         </div>
  133.         {{ pimcore_areablock('content', {
  134.             'allowed': ['blockquote', 'embed', 'featurette', 'gallery-carousel', 'gallery-folder',
  135.                 'gallery-single-images', 'headlines', 'horizontal-line', 'icon-teaser-row', 'image',
  136.                 'image-hotspot-marker', 'image-metadata', 'pdf', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion',
  137.                 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser']
  138.         }) }}
  139.     </div>
  140. {% endblock %}""content/default.html.twig""/var/www/html/siteone/templates/content/default.html.twig");
  141.     }
  142. }