var/cache/dev/twig/1a/1a945ee36999c731cd54fa7581f9b27b.php line 33

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. /* areas/bild-text/text.html.twig */
  14. class __TwigTemplate_c4d27291bf16f6fca586d543a4527c4d 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/bild-text/text.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/bild-text/text.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"text-container ";
  35.         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"nulltrue);
  36.         echo " ";
  37.         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"falsefalsefalse1)) {
  38.             echo "text-keep-aspect-ratio";
  39.         }
  40.         echo "\">
  41.     <div class=\"spacing\">
  42.         ";
  43.         // line 5
  44.         echo "        ";
  45.         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"falsefalsefalse5))) {
  46.             // line 6
  47.             echo "            <div class=\"title\">
  48.                 <h2>
  49.                     ";
  50.             // line 8
  51.             echo (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'8$this->source); })());
  52.             echo "
  53.                 </h2>
  54.             </div>
  55.             <div class=\"wave\">
  56.                 ";
  57.             // line 13
  58.             echo twig_include($this->env$context"svg/link-wave/single.html.twig");
  59.             echo "
  60.             </div>
  61.         ";
  62.         }
  63.         // line 16
  64.         echo "
  65.         ";
  66.         // line 18
  67.         echo "        ";
  68.         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"falsefalsefalse18))) {
  69.             // line 19
  70.             echo "            <div class=\"text\">
  71.                 ";
  72.             // line 20
  73.             echo (isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'20$this->source); })());
  74.             echo "
  75.             </div>
  76.         ";
  77.         }
  78.         // line 23
  79.         echo "
  80.         ";
  81.         // line 25
  82.         echo "        ";
  83.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'25$this->source); })())) {
  84.             // line 26
  85.             echo "            <div class=\"link\">
  86.                 ";
  87.             // line 27
  88.             echo (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'27$this->source); })());
  89.             echo "
  90.             </div>
  91.         ";
  92.         } elseif (twig_get_attribute($this->env$this->source,         // line 29
  93. (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'29$this->source); })()), "href", [], "method"falsefalsefalse29)) {
  94.             // line 30
  95.             echo "            ";
  96.             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"falsefalsefalse30)) {
  97.                 echo "    
  98.                 ";
  99.                 // line 31
  100.                 $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"falsefalsefalse31)) . "\"");
  101.                 // line 32
  102.                 echo "            ";
  103.             } else {
  104.                 // line 33
  105.                 echo "                ";
  106.                 $context["target"] = "";
  107.                 // line 34
  108.                 echo "            ";
  109.             }
  110.             // line 35
  111.             echo "
  112.             <a class=\"button ";
  113.             // line 36
  114.             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"nulltrue);
  115.             echo "\" href=\"";
  116.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse36), "html"nulltrue);
  117.             echo "\" ";
  118.             echo (isset($context["target"]) || array_key_exists("target"$context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.'36$this->source); })());
  119.             echo ">
  120.                 ";
  121.             // line 38
  122.             echo twig_include($this->env$context"layout/components/button.html.twig");
  123.             echo "
  124.                 <div class=\"button-text\">
  125.                     <span>";
  126.             // line 41
  127.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse41), "html"nulltrue);
  128.             echo "</span>
  129.                 </div>
  130.             </a>
  131.         ";
  132.         }
  133.         // line 47
  134.         echo "
  135.     </div>
  136. </div>";
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "areas/bild-text/text.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         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,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("<div class=\"text-container {{ textOrder }} {% if keepAspectRatio.checked %}text-keep-aspect-ratio{% endif %}\">
  157.     <div class=\"spacing\">
  158.         {# title #}
  159.         {% if editmode or title.data %}
  160.             <div class=\"title\">
  161.                 <h2>
  162.                     {{ title|raw }}
  163.                 </h2>
  164.             </div>
  165.             <div class=\"wave\">
  166.                 {{ include('svg/link-wave/single.html.twig') }}
  167.             </div>
  168.         {% endif %}
  169.         {# text #}
  170.         {% if editmode or text.data %}
  171.             <div class=\"text\">
  172.                 {{ text|raw }}
  173.             </div>
  174.         {% endif %}
  175.         {# link #}
  176.         {% if editmode %}
  177.             <div class=\"link\">
  178.                 {{ link|raw }}
  179.             </div>
  180.         {% elseif link.href() %}
  181.             {% if link.target %}    
  182.                 {% set target = 'target=\"' ~ link.target ~ '\"' %}
  183.             {% else %}
  184.                 {% set target = '' %}
  185.             {% endif %}
  186.             <a class=\"button {{ buttonColor }}\" href=\"{{ link.href }}\" {{ target|raw }}>
  187.                 {{ include('layout/components/button.html.twig') }}
  188.                 <div class=\"button-text\">
  189.                     <span>{{ link.text }}</span>
  190.                 </div>
  191.             </a>
  192.         {% endif %}
  193.     </div>
  194. </div>""areas/bild-text/text.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/bild-text/text.html.twig");
  195.     }
  196. }