<?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;
/* areas/downloads/view.html.twig */
class __TwigTemplate_1f6298459da34c3193dbb1793fe2c658 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 2
return "areas_shared/settings.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", "areas/downloads/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/downloads/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/downloads/view.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
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 5
echo "
";
// line 7
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 7, $this->source); })()), "isEmpty", [], "method", false, false, false, 7)) {
// line 8
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 8, $this->source); })()), "setDataFromResource", [0 => "full-margin-bottom"], "method", false, false, false, 8);
// line 9
echo " ";
}
// line 10
echo "
";
// line 12
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["paddingBottom"]) || array_key_exists("paddingBottom", $context) ? $context["paddingBottom"] : (function () { throw new RuntimeError('Variable "paddingBottom" does not exist.', 12, $this->source); })()), "isEmpty", [], "method", false, false, false, 12)) {
// line 13
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["paddingBottom"]) || array_key_exists("paddingBottom", $context) ? $context["paddingBottom"] : (function () { throw new RuntimeError('Variable "paddingBottom" does not exist.', 13, $this->source); })()), "setDataFromResource", [0 => "no-padding-bottom"], "method", false, false, false, 13);
// line 14
echo " ";
}
// line 15
echo "
";
// line 17
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 17, $this->source); })()), "isEmpty", [], "method", false, false, false, 17)) {
// line 18
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 18, $this->source); })()), "setDataFromResource", [0 => "background-white"], "method", false, false, false, 18);
// line 19
echo " ";
}
// line 20
echo "
";
// line 22
echo " ";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Titel"]);
// line 25
echo "
";
// line 27
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 27, $this->source); })())) {
// line 28
echo " <div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Downloads</span>
";
// line 32
echo twig_include($this->env, $context, "svg/editmode/setting.html.twig");
echo "
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
";
// line 39
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 39, $this->source); })());
echo "
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
";
// line 44
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 44, $this->source); })());
echo "
</div>
</div>
</div>
</div>
</div>
";
}
// line 52
echo "
<div class=\"downloads-brick brick-container ";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 53, $this->source); })()), "data", [], "any", false, false, false, 53), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 53, $this->source); })()), "data", [], "any", false, false, false, 53), "html", null, true);
echo "\">
";
// line 56
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 56, $this->source); })()), "data", [], "any", false, false, false, 56)) {
// line 57
echo " <div class=\"anchor\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 57, $this->source); })()), "data", [], "any", false, false, false, 57), "html", null, true);
echo "\"></div>
";
}
// line 59
echo "
<div class=\"container-1420\">
<div class=\"content\">
";
// line 64
echo " ";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 64, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 64, $this->source); })()), "data", [], "any", false, false, false, 64))) {
// line 65
echo " <div class=\"title\">
<p>
";
// line 67
echo (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 67, $this->source); })());
echo "
</p>
</div>
";
}
// line 71
echo "
";
// line 73
echo " <div class=\"downloads\">
";
// line 75
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock"), "iterator", [], "any", false, false, false, 75));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 76
echo "
";
// line 78
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 79
echo "
";
// line 80
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 80, $this->source); })())) {
// line 81
echo " <div class=\"download-editmode\">
";
// line 82
echo (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 82, $this->source); })());
echo "
</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 84
(isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 84, $this->source); })()), "href", [], "method", false, false, false, 84)) {
// line 85
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 85, $this->source); })()), "target", [], "any", false, false, false, 85)) {
echo "
";
// line 86
$context["target"] = (("target=\"" . twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 86, $this->source); })()), "target", [], "any", false, false, false, 86)) . "\"");
// line 87
echo " ";
} else {
// line 88
echo " ";
$context["target"] = "";
// line 89
echo " ";
}
// line 90
echo "
<div class=\"download\">
<a class=\"link\" href=\"";
// line 92
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 92, $this->source); })()), "href", [], "any", false, false, false, 92), "html", null, true);
echo "\" ";
echo (isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 92, $this->source); })());
echo ">
";
// line 93
echo twig_include($this->env, $context, "svg/download/download.svg");
echo "
<span>";
// line 94
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 94, $this->source); })()), "text", [], "any", false, false, false, 94), "html", null, true);
echo "</span>
</a>
</div>
";
}
// line 98
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
echo "
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/downloads/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 287 => 100, 272 => 98, 265 => 94, 261 => 93, 255 => 92, 251 => 90, 248 => 89, 245 => 88, 242 => 87, 240 => 86, 235 => 85, 233 => 84, 228 => 82, 225 => 81, 223 => 80, 220 => 79, 217 => 78, 214 => 76, 197 => 75, 193 => 73, 190 => 71, 183 => 67, 179 => 65, 176 => 64, 170 => 59, 164 => 57, 161 => 56, 154 => 53, 151 => 52, 140 => 44, 132 => 39, 122 => 32, 116 => 28, 113 => 27, 110 => 25, 107 => 22, 104 => 20, 101 => 19, 98 => 18, 95 => 17, 92 => 15, 89 => 14, 86 => 13, 83 => 12, 80 => 10, 77 => 9, 74 => 8, 71 => 7, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{# settings #}
{% extends ('areas_shared/settings.html.twig') %}
{% block content %}
{# default margin #}
{% if marginBottom.isEmpty() %}
{% do marginBottom.setDataFromResource('full-margin-bottom') %}
{% endif %}
{# default padding #}
{% if paddingBottom.isEmpty() %}
{% do paddingBottom.setDataFromResource('no-padding-bottom') %}
{% endif %}
{# default background color #}
{% if backgroundColor.isEmpty() %}
{% do backgroundColor.setDataFromResource('background-white') %}
{% endif %}
{# title #}
{% set title = pimcore_input('title', {
'placeholder': 'Titel'
}) %}
{# editmode #}
{% if editmode %}
<div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Downloads</span>
{{ include('svg/editmode/setting.html.twig') }}
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
{{ anchor|raw }}
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
{{ marginBottom|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"downloads-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
{# anchor #}
{% if anchor.data %}
<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
{% endif %}
<div class=\"container-1420\">
<div class=\"content\">
{# title #}
{% if editmode or title.data %}
<div class=\"title\">
<p>
{{ title|raw }}
</p>
</div>
{% endif %}
{# downloads #}
<div class=\"downloads\">
{% for i in pimcore_block('contentblock').iterator %}
{# link #}
{% set link = pimcore_link('link') %}
{% if editmode %}
<div class=\"download-editmode\">
{{ link|raw }}
</div>
{% elseif link.href() %}
{% if link.target %}
{% set target = 'target=\"' ~ link.target ~ '\"' %}
{% else %}
{% set target = '' %}
{% endif %}
<div class=\"download\">
<a class=\"link\" href=\"{{ link.href }}\" {{ target|raw }}>
{{ include('svg/download/download.svg') }}
<span>{{ link.text }}</span>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}", "areas/downloads/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/downloads/view.html.twig");
}
}