var/cache/dev/twig/02/02d83324a249941ff0c680d0ab617fb4.php line 35

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. /* includes/cta-bottom.html.twig */
  14. class __TwigTemplate_3cf252a6036c9b35464f7cf1cbd6843f 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/cta-bottom.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/cta-bottom.html.twig"));
  35.         // line 1
  36.         if (((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""ctaLink"), "getHref", [], "method"falsefalsetrue1) && $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""ctaTitle")) || (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })()))) {
  37.             // line 2
  38.             echo "
  39. <section class=\"cta-bottom\">
  40.     <div class=\"container-fluid\">
  41.         <div class=\"row align-items-center\">
  42.             <div class=\"col-lg-10 offset-lg-1\">
  43.                 <div class=\"row\">
  44.                     <div class=\"col-md-8 mb-4 mb-md-0 d-flex justify-content-center flex-column px-md-0\">
  45.                         <h3 class=\"text-uppercase\">";
  46.             // line 9
  47.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""ctaTitle", ["placeholder" => "Titel..."]), "render", [], "method"falsefalsetrue9), 9$this->source);
  48.             echo "</h3>
  49.                         <p class=\"cta-bottom__title\">";
  50.             // line 10
  51.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""ctaIntro", ["placeholder" => "Titel...""nl2br" => true]), "render", [], "method"falsefalsetrue10), 10$this->source);
  52.             echo "</p>
  53.                     </div>
  54.                     <div class=\"col-md-4 justify-content-md-end d-flex px-md-0\">
  55.                         <div class=\"d-flex align-items-center download__hover text-end\">
  56.                         ";
  57.             // line 15
  58.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'15$this->source); })())) {
  59.                 // line 16
  60.                 echo "                            ";
  61.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""ctaLink", ["class" => "cta-bottom__button""placeholder" => "Knop..."]);
  62.                 echo "
  63.                         ";
  64.             } else {
  65.                 // line 18
  66.                 echo "                            ";
  67.                 $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""ctaLink");
  68.                 // line 19
  69.                 echo "
  70.                             <a href=\"";
  71.                 // line 20
  72.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'20$this->source); })()), "getHref", [], "method"falsefalsetrue20), 20$this->source), "html"nulltrue);
  73.                 echo "\" class=\"cta-bottom__button px-md-0\">";
  74.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'20$this->source); })()), "getText", [], "method"falsefalsetrue20), 20$this->source), "html"nulltrue);
  75.                 echo "</a>
  76.                             <a href=\"";
  77.                 // line 22
  78.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'22$this->source); })()), "getHref", [], "method"falsefalsetrue22), 22$this->source), "html"nulltrue);
  79.                 echo "\" class=\"text-end\">
  80.                                 <img class=\"w-50\" src=\"";
  81.                 // line 23
  82.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/arrow_download.png"), "html"nulltrue);
  83.                 echo "\" alt=\"\">
  84.                             </a>
  85.                         ";
  86.             }
  87.             // line 26
  88.             echo "                        </div>
  89.                     </div>
  90.                 </div><!--/ .row -->
  91.             </div>
  92.         </div>
  93.     </div><!--/ .container-fluid -->
  94. </section>
  95. ";
  96.         }
  97.         
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.     }
  102.     public function getTemplateName()
  103.     {
  104.         return "includes/cta-bottom.html.twig";
  105.     }
  106.     public function isTraitable()
  107.     {
  108.         return false;
  109.     }
  110.     public function getDebugInfo()
  111.     {
  112.         return array (  99 => 26,  93 => 23,  89 => 22,  82 => 20,  79 => 19,  76 => 18,  70 => 16,  68 => 15,  60 => 10,  56 => 9,  47 => 2,  45 => 1,);
  113.     }
  114.     public function getSourceContext()
  115.     {
  116.         return new Source("{% if (pimcore_link('ctaLink').getHref() and pimcore_input('ctaTitle')) or editmode %}
  117. <section class=\"cta-bottom\">
  118.     <div class=\"container-fluid\">
  119.         <div class=\"row align-items-center\">
  120.             <div class=\"col-lg-10 offset-lg-1\">
  121.                 <div class=\"row\">
  122.                     <div class=\"col-md-8 mb-4 mb-md-0 d-flex justify-content-center flex-column px-md-0\">
  123.                         <h3 class=\"text-uppercase\">{{ pimcore_input(\"ctaTitle\", {\"placeholder\": \"Titel...\"}).render()|raw  }}</h3>
  124.                         <p class=\"cta-bottom__title\">{{ pimcore_input(\"ctaIntro\", {\"placeholder\": \"Titel...\", 'nl2br': true}).render()|raw  }}</p>
  125.                     </div>
  126.                     <div class=\"col-md-4 justify-content-md-end d-flex px-md-0\">
  127.                         <div class=\"d-flex align-items-center download__hover text-end\">
  128.                         {% if editmode %}
  129.                             {{ pimcore_link('ctaLink', {'class': 'cta-bottom__button', \"placeholder\": \"Knop...\"}) }}
  130.                         {% else %}
  131.                             {% set link = pimcore_link('ctaLink') %}
  132.                             <a href=\"{{ link.getHref() }}\" class=\"cta-bottom__button px-md-0\">{{ link.getText() }}</a>
  133.                             <a href=\"{{ link.getHref() }}\" class=\"text-end\">
  134.                                 <img class=\"w-50\" src=\"{{ asset('/img/arrow_download.png') }}\" alt=\"\">
  135.                             </a>
  136.                         {% endif %}
  137.                         </div>
  138.                     </div>
  139.                 </div><!--/ .row -->
  140.             </div>
  141.         </div>
  142.     </div><!--/ .container-fluid -->
  143. </section>
  144. {% endif %}""includes/cta-bottom.html.twig""/data/sites/web/gc-architectenntrigapimbe/subsites/gc2025.dspdev.be/templates/includes/cta-bottom.html.twig");
  145.     }
  146.     
  147.     public function checkSecurity()
  148.     {
  149.         static $tags = array("if" => 1"set" => 18);
  150.         static $filters = array("raw" => 9"escape" => 20);
  151.         static $functions = array("pimcore_link" => 1"pimcore_input" => 1"asset" => 23);
  152.         try {
  153.             $this->sandbox->checkSecurity(
  154.                 ['if''set'],
  155.                 ['raw''escape'],
  156.                 ['pimcore_link''pimcore_input''asset']
  157.             );
  158.         } catch (SecurityError $e) {
  159.             $e->setSourceContext($this->source);
  160.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  161.                 $e->setTemplateLine($tags[$e->getTagName()]);
  162.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  163.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  164.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  165.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  166.             }
  167.             throw $e;
  168.         }
  169.     }
  170. }