<?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;
/* document/areabricks/column-layout-brick/view.html.twig */
class __TwigTemplate_47626345ebfe8729ef3224be222869dcd727d8790ba912696c178c2bdd0a3bc9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/areabricks/column-layout-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/areabricks/column-layout-brick/view.html.twig"));
// line 1
$context["column"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "column"), "getData", [], "method", false, false, false, 1);
// line 2
$context["bgColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "backgroundColor"), "getData", [], "method", false, false, false, 2);
// line 3
echo "
";
// line 4
$context["class1"] = "col-span-6";
// line 5
$context["class2"] = "hidden";
// line 6
if (((isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 6, $this->source); })()) == "50/50")) {
// line 7
echo " ";
$context["class1"] = "xl:col-span-3";
// line 8
echo " ";
$context["class2"] = "xl:col-span-3";
} elseif (( // line 9
(isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 9, $this->source); })()) == "70/30")) {
// line 10
echo " ";
$context["class1"] = "xl:col-span-4";
// line 11
echo " ";
$context["class2"] = "xl:col-span-2";
} elseif (( // line 12
(isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 12, $this->source); })()) == "30/70")) {
// line 13
echo " ";
$context["class1"] = "xl:col-span-2";
// line 14
echo " ";
$context["class2"] = "xl:col-span-4";
}
// line 16
echo "
<div class=\"mx-auto max-w-8xl ";
// line 19
echo twig_escape_filter($this->env, (isset($context["bgColor"]) || array_key_exists("bgColor", $context) ? $context["bgColor"] : (function () { throw new RuntimeError('Variable "bgColor" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\">
<section class=\"";
// line 20
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 20, $this->source); })())) {
echo "py-12 border-black border-dashed border";
}
echo " mx-auto max-w-screen-3xl container\">
<div class=\"container py-8 mx-auto md:py-16\">
<div class=\"flex items-center gap-4 mb-6 text-primary-500\">
";
// line 23
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 23, $this->source); })())) {
// line 24
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "icon");
echo "
";
}
// line 26
echo " ";
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "icon"), "element", [], "any", false, false, false, 26)) {
// line 27
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "icon"), "element", [], "any", false, false, false, 27), "thumbnail", [0 => "reference-icon"], "method", false, false, false, 27), "html", [0 => ["pictureAttributes" => ["class" => "w-8 "], "imgAttributes" => ["class" => "w-8"]]], "method", false, false, false, 27);
// line 30
echo "
";
}
// line 32
echo "
<h2 class=\"uppercase h4\">
";
// line 35
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => "Überschrift"]);
// line 37
echo "
</h2>
</div>
<div class=\"grid gap-12 xl:grid-cols-6\">
<div class=\"";
// line 41
echo twig_escape_filter($this->env, (isset($context["class1"]) || array_key_exists("class1", $context) ? $context["class1"] : (function () { throw new RuntimeError('Variable "class1" does not exist.', 41, $this->source); })()), "html", null, true);
echo "\">
";
// line 43
echo " ";
// line 44
echo " ";
$__internal_compile_0 = null;
try {
$__internal_compile_0 = $this->loadTemplate("component/areablock-column-layout.html.twig", "document/areabricks/column-layout-brick/view.html.twig", 44);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display(twig_array_merge($context, ["areablockname" => "pagethreeleft"]));
}
// line 45
echo " </div>
<div class=\"";
// line 46
echo twig_escape_filter($this->env, (isset($context["class2"]) || array_key_exists("class2", $context) ? $context["class2"] : (function () { throw new RuntimeError('Variable "class2" does not exist.', 46, $this->source); })()), "html", null, true);
echo "\">
";
// line 48
echo " ";
// line 49
echo " ";
$__internal_compile_1 = null;
try {
$__internal_compile_1 = $this->loadTemplate("component/areablock-column-layout.html.twig", "document/areabricks/column-layout-brick/view.html.twig", 49);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_1) {
$__internal_compile_1->display(twig_array_merge($context, ["areablockname" => "pagethreeright"]));
}
// line 50
echo " </div>
</div>
</div>
</section>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "document/areabricks/column-layout-brick/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 164 => 50, 153 => 49, 151 => 48, 147 => 46, 144 => 45, 133 => 44, 131 => 43, 127 => 41, 121 => 37, 119 => 35, 114 => 32, 110 => 30, 107 => 27, 104 => 26, 98 => 24, 96 => 23, 88 => 20, 84 => 19, 79 => 16, 75 => 14, 72 => 13, 70 => 12, 67 => 11, 64 => 10, 62 => 9, 59 => 8, 56 => 7, 54 => 6, 52 => 5, 50 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set column = pimcore_select(\"column\").getData() %}
{% set bgColor = pimcore_select(\"backgroundColor\").getData() %}
{% set class1 = 'col-span-6' %}
{% set class2 = 'hidden' %}
{% if column == '50/50' %}
{% set class1 = 'xl:col-span-3' %}
{% set class2 = 'xl:col-span-3' %}
{% elseif column == '70/30' %}
{% set class1 = 'xl:col-span-4' %}
{% set class2 = 'xl:col-span-2' %}
{% elseif column == '30/70' %}
{% set class1 = 'xl:col-span-2' %}
{% set class2 = 'xl:col-span-4' %}
{% endif %}
<div class=\"mx-auto max-w-8xl {{ bgColor }}\">
<section class=\"{% if editmode %}py-12 border-black border-dashed border{% endif %} mx-auto max-w-screen-3xl container\">
<div class=\"container py-8 mx-auto md:py-16\">
<div class=\"flex items-center gap-4 mb-6 text-primary-500\">
{% if editmode %}
{{pimcore_relation('icon') }}
{% endif %}
{% if pimcore_relation('icon').element %}
{{pimcore_relation('icon').element.thumbnail('reference-icon').html({
pictureAttributes: {class: 'w-8 '},
imgAttributes: {class: 'w-8'},
})|raw}}
{% endif %}
<h2 class=\"uppercase h4\">
{{ pimcore_input('headline', {
\"placeholder\": \"Überschrift\"
}) }}
</h2>
</div>
<div class=\"grid gap-12 xl:grid-cols-6\">
<div class=\"{{ class1 }}\">
{# Areablocks #}
{# prettier-ignore #}
{% include \"component/areablock-column-layout.html.twig\" ignore missing with {'areablockname': 'pagethreeleft'} %}
</div>
<div class=\"{{ class2 }}\">
{# Areablocks #}
{# prettier-ignore #}
{% include \"component/areablock-column-layout.html.twig\" ignore missing with {'areablockname': 'pagethreeright'} %}
</div>
</div>
</div>
</section>
</div>
", "document/areabricks/column-layout-brick/view.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/document/areabricks/column-layout-brick/view.html.twig");
}
}