var/cache/dev/twig/96/96fce9b9730b51ab65e642ee4d1afa5d.php line 58

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. /* default/portal.html.twig */
  14. class __TwigTemplate_1f55608e3f18283a29a4128979188946 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 "layout/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", "default/portal.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", "default/portal.html.twig"));
  38.         $this->parent = $this->loadTemplate("layout/layout.html.twig", "default/portal.html.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  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 3
  54.         echo "
  55.     ";
  56.         // line 4
  57.         $this->loadTemplate("includes/navigation.html.twig", "default/portal.html.twig", 4)->display($context);
  58.         // line 5
  59.         echo "
  60.     ";
  61.         // line 6
  62.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })())) {
  63.             // line 7
  64.             echo "        <section class=\"editmode-hero\">
  65.             <div class=\"hero-text\">
  66.                 <div class=\"container\">
  67.                     <h1>";
  68.             // line 10
  69.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "hero_headline", ["placeholder" => "Erfolgreich kommunizieren"]);
  70.             echo "</h1>
  71.                     <p class=\"intro\">
  72.                         ";
  73.             // line 12
  74.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "specialContent", ["height" => 200, "class" => "intro", "toolbarGroups" => [0 => ["name" => "basicstyles", "groups" => [0 => "basicstyles", 1 => "list", 2 => "links"]]]]);
  75.             // line 21
  76.             echo "
  77.                     </p>
  78.                 </div>
  79.             </div>
  80.         </section>
  81.     ";
  82.         }
  83.         // line 27
  84.         echo "    <section id=\"portal-image\" class=\"portal-image\">
  85.         ";
  86.         // line 28
  87.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 28, $this->source); })())) {
  88.             // line 29
  89.             echo "            <div id=\"start\"></div>
  90.             <div class=\"hero-text-holder\">
  91.                 <div class=\"hero-text\"></div>
  92.                 <div class=\"container\">
  93.                     <h1>";
  94.             // line 33
  95.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "hero_headline"), "getData", [], "method", false, false, false, 33), "html", null, true);
  96.             echo "</h1>
  97.                     ";
  98.             // line 34
  99.             echo twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "specialContent"), "getData", [], "method", false, false, false, 34);
  100.             echo "
  101.                 </div>
  102.             </div>
  103.         ";
  104.         }
  105.         // line 38
  106.         echo "
  107.         ";
  108.         // line 39
  109.         $context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["title" => "Drag your image here", "width" => 1500, "height" => 822, "thumbnail" => "SingleImage"]);
  110.         // line 45
  111.         echo "        ";
  112.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 45, $this->source); })())) {
  113.             // line 46
  114.             echo "            ";
  115.             echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 46, $this->source); })());
  116.             echo "
  117.         ";
  118.         } elseif (( !        // line 47
  119. (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 47, $this->source); })()) &&  !twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 47, $this->source); })()), "isEmpty", [], "method", false, false, false, 47))) {
  120.             // line 48
  121.             echo "            ";
  122.             echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })());
  123.             echo "
  124.         ";
  125.         }
  126.         // line 50
  127.         echo "    </section>
  128.     ";
  129.         // line 52
  130.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content", ["allowed" => [0 => "services", 1 => "about", 2 => "team"], "sorting" => [0 => "services", 1 => "about", 2 => "team"]]);
  131.         // line 55
  132.         echo "
  133. ";
  134.         
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136.         
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138.     }
  139.     public function getTemplateName()
  140.     {
  141.         return "default/portal.html.twig";
  142.     }
  143.     public function isTraitable()
  144.     {
  145.         return false;
  146.     }
  147.     public function getDebugInfo()
  148.     {
  149.         return array (  147 => 55,  145 => 52,  141 => 50,  135 => 48,  133 => 47,  128 => 46,  125 => 45,  123 => 39,  120 => 38,  113 => 34,  109 => 33,  103 => 29,  101 => 28,  98 => 27,  90 => 21,  88 => 12,  83 => 10,  78 => 7,  76 => 6,  73 => 5,  71 => 4,  68 => 3,  58 => 2,  35 => 1,);
  150.     }
  151.     public function getSourceContext()
  152.     {
  153.         return new Source("{% extends 'layout/layout.html.twig' %}
  154. {% block content %}
  155.     {% include 'includes/navigation.html.twig' %}
  156.     {% if editmode %}
  157.         <section class=\"editmode-hero\">
  158.             <div class=\"hero-text\">
  159.                 <div class=\"container\">
  160.                     <h1>{{ pimcore_input('hero_headline', {'placeholder':'Erfolgreich kommunizieren'}) }}</h1>
  161.                     <p class=\"intro\">
  162.                         {{  pimcore_wysiwyg(\"specialContent\", {
  163.                             \"height\": 200,
  164.                             \"class\": \"intro\",
  165.                             \"toolbarGroups\": [
  166.                                 {
  167.                                     \"name\": 'basicstyles',
  168.                                     \"groups\": [ 'basicstyles', 'list', \"links\"]
  169.                                 }
  170.                             ]})
  171.                         }}
  172.                     </p>
  173.                 </div>
  174.             </div>
  175.         </section>
  176.     {% endif %}
  177.     <section id=\"portal-image\" class=\"portal-image\">
  178.         {% if not editmode %}
  179.             <div id=\"start\"></div>
  180.             <div class=\"hero-text-holder\">
  181.                 <div class=\"hero-text\"></div>
  182.                 <div class=\"container\">
  183.                     <h1>{{ pimcore_input('hero_headline').getData() }}</h1>
  184.                     {{  pimcore_wysiwyg(\"specialContent\").getData() | raw }}
  185.                 </div>
  186.             </div>
  187.         {% endif %}
  188.         {% set image = pimcore_image('image', {
  189.             \"title\": \"Drag your image here\",
  190.             \"width\": 1500,
  191.             \"height\": 822,
  192.             \"thumbnail\": \"SingleImage\"
  193.         }) %}
  194.         {% if editmode %}
  195.             {{ image | raw }}
  196.         {% elseif not editmode and not image.isEmpty() %}
  197.             {{ image | raw }}
  198.         {% endif %}
  199.     </section>
  200.     {{ pimcore_areablock(\"content\", {
  201.         \"allowed\": [\"services\",\"about\",\"team\"],
  202.         \"sorting\": [\"services\",\"about\",\"team\"],
  203.     }) }}
  204. {% endblock %}", "default/portal.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/default/portal.html.twig");
  205.     }
  206. }