var/cache/dev/twig/aa/aa4b13f2bd527c176c4fa23a4a766b6b.php line 66

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. /* @App/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig */
  14. class __TwigTemplate_26ad5280fb752213ed57176462be5ac4 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", "@App/bundles/Ntriga/FrontBundle/snippets/promo-banner.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", "@App/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig"));
  35.         // line 1
  36.         $this->loadTemplate("includes/snippet-css.html.twig", "@App/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig", 1)->display($context);
  37.         // line 2
  38.         echo "
  39. <div class=\"container-fluid\">
  40.     ";
  41.         // line 4
  42.         $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "promobannerLink");
  43.         // line 5
  44.         echo "
  45. ";
  46.         // line 6
  47.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })())) {
  48.             // line 7
  49.             echo "    ";
  50.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "promobannerLink", ["class" => "btn btn-primary"]);
  51.             echo "
  52.     <div class=\"promobanner\">
  53. ";
  54.         } else {
  55.             // line 10
  56.             echo "    <a class=\"promobanner\" href=\"";
  57.             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.', 10, $this->source); })()), "getHref", [], "method", false, false, true, 10), 10, $this->source), "html", null, true);
  58.             echo "\">
  59. ";
  60.         }
  61.         // line 12
  62.         echo "        <div class=\"container-inner\">
  63.             <div class=\"promobanner__img\">
  64.                 <img src=\"";
  65.         // line 14
  66.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/promobanner.png"), "html", null, true);
  67.         echo "\" alt=\"\" width=\"232\" height=\"223\">
  68.             </div>
  69.             <div class=\"promobanner__text\">
  70.                 <div class=\"title\">";
  71.         // line 18
  72.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "promobannerTitle", ["placeholder" => "Titel ..."]);
  73.         echo "</div>
  74.                 <div class=\"subtitle\">";
  75.         // line 19
  76.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "promobannerSubtitle", ["placeholder" => "Subtitel ..."]);
  77.         echo "</div>
  78.             </div>
  79.             <div class=\"promobanner__icon\">
  80.                 <i class=\"icon-angle-right\"></i>
  81.             </div>
  82.         </div><!--/ .container-inner -->
  83. ";
  84.         // line 26
  85.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 26, $this->source); })())) {
  86.             // line 27
  87.             echo "    </div>
  88. ";
  89.         } else {
  90.             // line 29
  91.             echo "    </a>
  92. ";
  93.         }
  94.         // line 31
  95.         echo "</div><!--/ .container -->";
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.         
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100.     }
  101.     public function getTemplateName()
  102.     {
  103.         return "@App/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig";
  104.     }
  105.     public function isTraitable()
  106.     {
  107.         return false;
  108.     }
  109.     public function getDebugInfo()
  110.     {
  111.         return array (  106 => 31,  102 => 29,  98 => 27,  96 => 26,  86 => 19,  82 => 18,  75 => 14,  71 => 12,  65 => 10,  58 => 7,  56 => 6,  53 => 5,  51 => 4,  47 => 2,  45 => 1,);
  112.     }
  113.     public function getSourceContext()
  114.     {
  115.         return new Source("{% include 'includes/snippet-css.html.twig' %}
  116. <div class=\"container-fluid\">
  117.     {% set link = pimcore_link('promobannerLink') %}
  118. {% if editmode %}
  119.     {{ pimcore_link('promobannerLink', {'class': 'btn btn-primary'}) }}
  120.     <div class=\"promobanner\">
  121. {% else %}
  122.     <a class=\"promobanner\" href=\"{{ link.getHref() }}\">
  123. {% endif %}
  124.         <div class=\"container-inner\">
  125.             <div class=\"promobanner__img\">
  126.                 <img src=\"{{ asset('/img/promobanner.png') }}\" alt=\"\" width=\"232\" height=\"223\">
  127.             </div>
  128.             <div class=\"promobanner__text\">
  129.                 <div class=\"title\">{{ pimcore_input(\"promobannerTitle\", {'placeholder': 'Titel ...'}) }}</div>
  130.                 <div class=\"subtitle\">{{ pimcore_input(\"promobannerSubtitle\", {'placeholder': 'Subtitel ...'}) }}</div>
  131.             </div>
  132.             <div class=\"promobanner__icon\">
  133.                 <i class=\"icon-angle-right\"></i>
  134.             </div>
  135.         </div><!--/ .container-inner -->
  136. {% if editmode %}
  137.     </div>
  138. {% else %}
  139.     </a>
  140. {% endif %}
  141. </div><!--/ .container -->", "@App/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/bundles/Ntriga/FrontBundle/snippets/promo-banner.html.twig");
  142.     }
  143.     
  144.     public function checkSecurity()
  145.     {
  146.         static $tags = array("include" => 1, "set" => 4, "if" => 6);
  147.         static $filters = array("escape" => 10);
  148.         static $functions = array("pimcore_link" => 4, "asset" => 14, "pimcore_input" => 18);
  149.         try {
  150.             $this->sandbox->checkSecurity(
  151.                 ['include', 'set', 'if'],
  152.                 ['escape'],
  153.                 ['pimcore_link', 'asset', 'pimcore_input']
  154.             );
  155.         } catch (SecurityError $e) {
  156.             $e->setSourceContext($this->source);
  157.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  158.                 $e->setTemplateLine($tags[$e->getTagName()]);
  159.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  160.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  161.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  162.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  163.             }
  164.             throw $e;
  165.         }
  166.     }
  167. }