<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* default/portal.html.twig */
class __TwigTemplate_1f55608e3f18283a29a4128979188946 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/portal.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/portal.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "default/portal.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
echo "
";
// line 4
$this->loadTemplate("includes/navigation.html.twig", "default/portal.html.twig", 4)->display($context);
// line 5
echo "
";
// line 6
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })())) {
// line 7
echo " <section class=\"editmode-hero\">
<div class=\"hero-text\">
<div class=\"container\">
<h1>";
// line 10
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "hero_headline", ["placeholder" => "Erfolgreich kommunizieren"]);
echo "</h1>
<p class=\"intro\">
";
// line 12
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"]]]]);
// line 21
echo "
</p>
</div>
</div>
</section>
";
}
// line 27
echo " <section id=\"portal-image\" class=\"portal-image\">
";
// line 28
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 28, $this->source); })())) {
// line 29
echo " <div id=\"start\"></div>
<div class=\"hero-text-holder\">
<div class=\"hero-text\"></div>
<div class=\"container\">
<h1>";
// line 33
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);
echo "</h1>
";
// line 34
echo twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "specialContent"), "getData", [], "method", false, false, false, 34);
echo "
</div>
</div>
";
}
// line 38
echo "
";
// line 39
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["title" => "Drag your image here", "width" => 1500, "height" => 822, "thumbnail" => "SingleImage"]);
// line 45
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 45, $this->source); })())) {
// line 46
echo " ";
echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 46, $this->source); })());
echo "
";
} elseif (( ! // line 47
(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))) {
// line 48
echo " ";
echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 48, $this->source); })());
echo "
";
}
// line 50
echo " </section>
";
// line 52
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"]]);
// line 55
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/portal.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/layout.html.twig' %}
{% block content %}
{% include 'includes/navigation.html.twig' %}
{% if editmode %}
<section class=\"editmode-hero\">
<div class=\"hero-text\">
<div class=\"container\">
<h1>{{ pimcore_input('hero_headline', {'placeholder':'Erfolgreich kommunizieren'}) }}</h1>
<p class=\"intro\">
{{ pimcore_wysiwyg(\"specialContent\", {
\"height\": 200,
\"class\": \"intro\",
\"toolbarGroups\": [
{
\"name\": 'basicstyles',
\"groups\": [ 'basicstyles', 'list', \"links\"]
}
]})
}}
</p>
</div>
</div>
</section>
{% endif %}
<section id=\"portal-image\" class=\"portal-image\">
{% if not editmode %}
<div id=\"start\"></div>
<div class=\"hero-text-holder\">
<div class=\"hero-text\"></div>
<div class=\"container\">
<h1>{{ pimcore_input('hero_headline').getData() }}</h1>
{{ pimcore_wysiwyg(\"specialContent\").getData() | raw }}
</div>
</div>
{% endif %}
{% set image = pimcore_image('image', {
\"title\": \"Drag your image here\",
\"width\": 1500,
\"height\": 822,
\"thumbnail\": \"SingleImage\"
}) %}
{% if editmode %}
{{ image | raw }}
{% elseif not editmode and not image.isEmpty() %}
{{ image | raw }}
{% endif %}
</section>
{{ pimcore_areablock(\"content\", {
\"allowed\": [\"services\",\"about\",\"team\"],
\"sorting\": [\"services\",\"about\",\"team\"],
}) }}
{% endblock %}", "default/portal.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/default/portal.html.twig");
}
}