<?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/bild-text/text.html.twig */
class __TwigTemplate_c4d27291bf16f6fca586d543a4527c4d 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/bild-text/text.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/bild-text/text.html.twig"));
// line 1
echo "<div class=\"text-container ";
echo twig_escape_filter($this->env, (isset($context["textOrder"]) || array_key_exists("textOrder", $context) ? $context["textOrder"] : (function () { throw new RuntimeError('Variable "textOrder" does not exist.', 1, $this->source); })()), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["keepAspectRatio"]) || array_key_exists("keepAspectRatio", $context) ? $context["keepAspectRatio"] : (function () { throw new RuntimeError('Variable "keepAspectRatio" does not exist.', 1, $this->source); })()), "checked", [], "any", false, false, false, 1)) {
echo "text-keep-aspect-ratio";
}
echo "\">
<div class=\"spacing\">
";
// line 5
echo " ";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $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.', 5, $this->source); })()), "data", [], "any", false, false, false, 5))) {
// line 6
echo " <div class=\"title\">
<h2>
";
// line 8
echo (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 8, $this->source); })());
echo "
</h2>
</div>
<div class=\"wave\">
";
// line 13
echo twig_include($this->env, $context, "svg/link-wave/single.html.twig");
echo "
</div>
";
}
// line 16
echo "
";
// line 18
echo " ";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 18, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 18, $this->source); })()), "data", [], "any", false, false, false, 18))) {
// line 19
echo " <div class=\"text\">
";
// line 20
echo (isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 20, $this->source); })());
echo "
</div>
";
}
// line 23
echo "
";
// line 25
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 25, $this->source); })())) {
// line 26
echo " <div class=\"link\">
";
// line 27
echo (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 27, $this->source); })());
echo "
</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 29
(isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 29, $this->source); })()), "href", [], "method", false, false, false, 29)) {
// line 30
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.', 30, $this->source); })()), "target", [], "any", false, false, false, 30)) {
echo "
";
// line 31
$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.', 31, $this->source); })()), "target", [], "any", false, false, false, 31)) . "\"");
// line 32
echo " ";
} else {
// line 33
echo " ";
$context["target"] = "";
// line 34
echo " ";
}
// line 35
echo "
<a class=\"button ";
// line 36
echo twig_escape_filter($this->env, (isset($context["buttonColor"]) || array_key_exists("buttonColor", $context) ? $context["buttonColor"] : (function () { throw new RuntimeError('Variable "buttonColor" does not exist.', 36, $this->source); })()), "html", null, true);
echo "\" href=\"";
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.', 36, $this->source); })()), "href", [], "any", false, false, false, 36), "html", null, true);
echo "\" ";
echo (isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 36, $this->source); })());
echo ">
";
// line 38
echo twig_include($this->env, $context, "layout/components/button.html.twig");
echo "
<div class=\"button-text\">
<span>";
// line 41
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.', 41, $this->source); })()), "text", [], "any", false, false, false, 41), "html", null, true);
echo "</span>
</div>
</a>
";
}
// line 47
echo "
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/bild-text/text.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 149 => 47, 140 => 41, 134 => 38, 125 => 36, 122 => 35, 119 => 34, 116 => 33, 113 => 32, 111 => 31, 106 => 30, 104 => 29, 99 => 27, 96 => 26, 93 => 25, 90 => 23, 84 => 20, 81 => 19, 78 => 18, 75 => 16, 69 => 13, 61 => 8, 57 => 6, 54 => 5, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"text-container {{ textOrder }} {% if keepAspectRatio.checked %}text-keep-aspect-ratio{% endif %}\">
<div class=\"spacing\">
{# title #}
{% if editmode or title.data %}
<div class=\"title\">
<h2>
{{ title|raw }}
</h2>
</div>
<div class=\"wave\">
{{ include('svg/link-wave/single.html.twig') }}
</div>
{% endif %}
{# text #}
{% if editmode or text.data %}
<div class=\"text\">
{{ text|raw }}
</div>
{% endif %}
{# link #}
{% if editmode %}
<div class=\"link\">
{{ link|raw }}
</div>
{% elseif link.href() %}
{% if link.target %}
{% set target = 'target=\"' ~ link.target ~ '\"' %}
{% else %}
{% set target = '' %}
{% endif %}
<a class=\"button {{ buttonColor }}\" href=\"{{ link.href }}\" {{ target|raw }}>
{{ include('layout/components/button.html.twig') }}
<div class=\"button-text\">
<span>{{ link.text }}</span>
</div>
</a>
{% endif %}
</div>
</div>", "areas/bild-text/text.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/bild-text/text.html.twig");
}
}