var/cache/dev/twig/c7/c71af99b1f0aab28c346b4f35cbb3813.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/footer.html.twig */
  14. class __TwigTemplate_deef5db0a530ae66ace9343ef773c6d5 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/footer.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/footer.html.twig"));
  35.         // line 1
  36.         if ((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.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/editmode.css")], "method"falsefalsetrue2);
  40.             // line 3
  41.             echo "    ";
  42.             echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  43.             echo "
  44. ";
  45.         }
  46.         // line 6
  47.         echo "<footer class=\"container py-5\">
  48.     <div class=\"row\">
  49.         <div class=\"col-12 col-md\">
  50.             <a class=\"text-dark text-decoration-none\" href=\"/\" >
  51.                 <img id=\"logo-footer\" src=\"";
  52.         // line 10
  53.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/images/logo-dark.svg"), "html"nulltrue);
  54.         echo "\" >
  55.                 <small class=\"d-block mb-3  p-3\">&copy; ";
  56.         // line 11
  57.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  58.         echo " pimcore GmbH</small>
  59.             </a>
  60.         </div>
  61.         ";
  62.         // line 14
  63.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'14$this->source); })())) {
  64.             // line 15
  65.             echo "            <h3 class=\"float-left\">";
  66.             echo "Footer Column(s):";
  67.             echo "</h3>
  68.         ";
  69.         }
  70.         // line 17
  71.         echo "        ";
  72.         $context['_parent'] = $context;
  73.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""mainlinkblock")));
  74.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  75.             // line 18
  76.             echo "            <div class=\"col-6 col-md\">
  77.                 <h5>";
  78.             // line 19
  79.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""mainBlockTitle", ["placeholder" => "Footer Title"]);
  80.             echo "</h5>
  81.                 <ul class=\"list-unstyled text-small\">
  82.                     ";
  83.             // line 21
  84.             $context['_parent'] = $context;
  85.             $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""linkblock")));
  86.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  87.                 // line 22
  88.                 echo "                        <li>";
  89.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""myLink", ["class" => "text-muted"]);
  90.                 echo "</li>
  91.                     ";
  92.             }
  93.             $_parent $context['_parent'];
  94.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  95.             $context array_intersect_key($context$_parent) + $_parent;
  96.             // line 24
  97.             echo "                </ul>
  98.             </div>
  99.             ";
  100.             // line 26
  101.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'26$this->source); })())) {
  102.                 // line 27
  103.                 echo "                <hr />
  104.             ";
  105.             }
  106.             // line 29
  107.             echo "        ";
  108.         }
  109.         $_parent $context['_parent'];
  110.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  111.         $context array_intersect_key($context$_parent) + $_parent;
  112.         // line 30
  113.         echo "    </div>
  114. </footer>";
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.         
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  119.     }
  120.     /**
  121.      * @codeCoverageIgnore
  122.      */
  123.     public function getTemplateName()
  124.     {
  125.         return "includes/footer.html.twig";
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function getDebugInfo()
  138.     {
  139.         return array (  122 => 30,  116 => 29,  112 => 27,  110 => 26,  106 => 24,  97 => 22,  93 => 21,  88 => 19,  85 => 18,  80 => 17,  74 => 15,  72 => 14,  66 => 11,  62 => 10,  56 => 6,  50 => 3,  47 => 2,  45 => 1,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("{% if editmode %}
  144.     {% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.css')) %}
  145.     {{ pimcore_head_link() }}
  146. {% endif %}
  147. {#footer#}
  148. <footer class=\"container py-5\">
  149.     <div class=\"row\">
  150.         <div class=\"col-12 col-md\">
  151.             <a class=\"text-dark text-decoration-none\" href=\"/\" >
  152.                 <img id=\"logo-footer\" src=\"{{ asset('/static/images/logo-dark.svg') }}\" >
  153.                 <small class=\"d-block mb-3  p-3\">&copy; {{ \"now\"|date('Y') }} pimcore GmbH</small>
  154.             </a>
  155.         </div>
  156.         {% if editmode %}
  157.             <h3 class=\"float-left\">{{ 'Footer Column(s):' }}</h3>
  158.         {% endif %}
  159.         {% for i in pimcore_iterate_block(pimcore_block('mainlinkblock')) %}
  160.             <div class=\"col-6 col-md\">
  161.                 <h5>{{ pimcore_input('mainBlockTitle', {'placeholder': 'Footer Title'}) }}</h5>
  162.                 <ul class=\"list-unstyled text-small\">
  163.                     {% for i in pimcore_iterate_block(pimcore_block('linkblock')) %}
  164.                         <li>{{ pimcore_link('myLink', {'class': \"text-muted\"}) }}</li>
  165.                     {% endfor %}
  166.                 </ul>
  167.             </div>
  168.             {% if editmode %}
  169.                 <hr />
  170.             {% endif %}
  171.         {% endfor %}
  172.     </div>
  173. </footer>""includes/footer.html.twig""/var/www/dev-10/templates/includes/footer.html.twig");
  174.     }
  175.     
  176.     public function checkSecurity()
  177.     {
  178.         static $tags = array("if" => 1"do" => 2"for" => 17);
  179.         static $filters = array("escape" => 10"date" => 11);
  180.         static $functions = array("pimcore_head_link" => 2"asset" => 2"pimcore_iterate_block" => 17"pimcore_block" => 17"pimcore_input" => 19"pimcore_link" => 22);
  181.         try {
  182.             $this->sandbox->checkSecurity(
  183.                 ['if''do''for'],
  184.                 ['escape''date'],
  185.                 ['pimcore_head_link''asset''pimcore_iterate_block''pimcore_block''pimcore_input''pimcore_link']
  186.             );
  187.         } catch (SecurityError $e) {
  188.             $e->setSourceContext($this->source);
  189.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  190.                 $e->setTemplateLine($tags[$e->getTagName()]);
  191.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  192.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  193.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  194.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  195.             }
  196.             throw $e;
  197.         }
  198.     }
  199. }