var/cache/dev/twig/07/0741bcfddf1255f00d18044f6e42fc83.php line 83

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. /* Content/footer.html.twig */
  14. class __TwigTemplate_e8b34722b8f5d715ffdae1bb963a09f5 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""Content/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""Content/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 "    <link href=\"/website/static/css/app.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\">
  39. ";
  40.         }
  41.         // line 4
  42.         echo "
  43. <script>
  44.   window.onload = function() {
  45.     hitApiAndSetLocalStorage();
  46.     setInterval(sendLoginTimeToBackend, 15 * 1000); // 5 minutes in milliseconds
  47.   };
  48. </script>
  49. <footer id=\"footer\">
  50.   <div class=\"container\">
  51.     <div class=\"row\">
  52.       <div class=\"col-xs-2 footer-logo-sec\">
  53.         <div class=\"footer-logo\">
  54.           ";
  55.         // line 19
  56.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'19$this->source); })())) {
  57.             // line 20
  58.             echo "            <div>";
  59.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""footerLogo");
  60.             echo "</div>
  61.             <div>";
  62.             // line 21
  63.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""footerLogoLink");
  64.             echo "</div>
  65.           ";
  66.         } else {
  67.             // line 23
  68.             echo "            <a target=\"";
  69.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""footerLogoLink"), "getTarget", [], "method"falsefalsetrue23), 23$this->source), "html"nulltrue);
  70.             echo "\" href=\"";
  71.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""footerLogoLink"), "getHref", [], "method"falsefalsetrue23), 23$this->source), "html"nulltrue);
  72.             echo "\">
  73.               ";
  74.             // line 24
  75.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""footerLogo");
  76.             echo "
  77.             </a>
  78.           ";
  79.         }
  80.         // line 27
  81.         echo "        </div>
  82.       </div>
  83.       
  84.       <!-- Newsletter Form -->
  85.       <div class=\"col-sm-3 footer-newsletter\">
  86.         ";
  87.         // line 32
  88.         $context["actual_link"] = ((($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "request", [], "any"falsefalsetrue32), "scheme", [], "any"falsefalsetrue32), 32$this->source) . "://") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "request", [], "any"falsefalsetrue32), "httpHost", [], "any"falsefalsetrue32), 32$this->source)) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "request", [], "any"falsefalsetrue32), "requestUri", [], "any"falsefalsetrue32), 32$this->source));
  89.         // line 33
  90.         echo "        <form action=\"";
  91.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("newsletter-form");
  92.         echo "\" method=\"post\">
  93.           <input type=\"email\" class=\"form-control\" name=\"newsletterEmail\" id=\"newsletterEmail\" placeholder=\"Newsletter - Email Address\" required>
  94.           <input type=\"hidden\" name=\"url\" value=\"";
  95.         // line 35
  96.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["actual_link"]) || array_key_exists("actual_link"$context) ? $context["actual_link"] : (function () { throw new RuntimeError('Variable "actual_link" does not exist.'35$this->source); })()), 35$this->source), "html"nulltrue);
  97.         echo "\" />
  98.           <button type=\"submit\"><span class=\"icon-arrow-right\"></span></button>
  99.         </form>
  100.       </div>
  101.       <div class=\"col-sm-7\">
  102.         <ul class=\"footer-links\">\t
  103.           ";
  104.         // line 42
  105.         $context['_parent'] = $context;
  106.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""footerLinks")));
  107.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  108.             // line 43
  109.             echo "              <li>";
  110.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""footerLink");
  111.             echo "</li>
  112.           ";
  113.         }
  114.         $_parent $context['_parent'];
  115.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  116.         $context array_intersect_key($context$_parent) + $_parent;
  117.         // line 45
  118.         echo "          <li class=\"copyright\">
  119.             &copy; ";
  120.         // line 46
  121.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  122.         echo " ";
  123.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""footerCopyright");
  124.         echo "
  125.           </li>
  126.         </ul>
  127.       </div>
  128.     </div>
  129.   </div>
  130. </footer>";
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.         
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135.     }
  136.     /**
  137.      * @codeCoverageIgnore
  138.      */
  139.     public function getTemplateName()
  140.     {
  141.         return "Content/footer.html.twig";
  142.     }
  143.     /**
  144.      * @codeCoverageIgnore
  145.      */
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     /**
  151.      * @codeCoverageIgnore
  152.      */
  153.     public function getDebugInfo()
  154.     {
  155.         return array (  134 => 46,  131 => 45,  122 => 43,  118 => 42,  108 => 35,  102 => 33,  100 => 32,  93 => 27,  87 => 24,  80 => 23,  75 => 21,  70 => 20,  68 => 19,  51 => 4,  47 => 2,  45 => 1,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("{% if editmode %}
  160.     <link href=\"/website/static/css/app.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\">
  161. {% endif %}
  162. <script>
  163.   window.onload = function() {
  164.     hitApiAndSetLocalStorage();
  165.     setInterval(sendLoginTimeToBackend, 15 * 1000); // 5 minutes in milliseconds
  166.   };
  167. </script>
  168. <footer id=\"footer\">
  169.   <div class=\"container\">
  170.     <div class=\"row\">
  171.       <div class=\"col-xs-2 footer-logo-sec\">
  172.         <div class=\"footer-logo\">
  173.           {% if editmode %}
  174.             <div>{{ pimcore_image('footerLogo') }}</div>
  175.             <div>{{ pimcore_link('footerLogoLink') }}</div>
  176.           {% else %}
  177.             <a target=\"{{ pimcore_link('footerLogoLink').getTarget() }}\" href=\"{{ pimcore_link('footerLogoLink').getHref() }}\">
  178.               {{ pimcore_image('footerLogo') }}
  179.             </a>
  180.           {% endif %}
  181.         </div>
  182.       </div>
  183.       
  184.       <!-- Newsletter Form -->
  185.       <div class=\"col-sm-3 footer-newsletter\">
  186.         {% set actual_link = app.request.scheme ~ '://' ~ app.request.httpHost ~ app.request.requestUri %}
  187.         <form action=\"{{ url('newsletter-form') }}\" method=\"post\">
  188.           <input type=\"email\" class=\"form-control\" name=\"newsletterEmail\" id=\"newsletterEmail\" placeholder=\"Newsletter - Email Address\" required>
  189.           <input type=\"hidden\" name=\"url\" value=\"{{ actual_link }}\" />
  190.           <button type=\"submit\"><span class=\"icon-arrow-right\"></span></button>
  191.         </form>
  192.       </div>
  193.       <div class=\"col-sm-7\">
  194.         <ul class=\"footer-links\">\t
  195.           {% for i in pimcore_iterate_block(pimcore_block('footerLinks')) %}
  196.               <li>{{ pimcore_link('footerLink') }}</li>
  197.           {% endfor %}
  198.           <li class=\"copyright\">
  199.             &copy; {{ \"now\"|date('Y') }} {{ pimcore_input('footerCopyright') }}
  200.           </li>
  201.         </ul>
  202.       </div>
  203.     </div>
  204.   </div>
  205. </footer>""Content/footer.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Content/footer.html.twig");
  206.     }
  207.     
  208.     public function checkSecurity()
  209.     {
  210.         static $tags = array("if" => 1"set" => 32"for" => 42);
  211.         static $filters = array("escape" => 23"date" => 46);
  212.         static $functions = array("pimcore_image" => 20"pimcore_link" => 21"url" => 33"pimcore_iterate_block" => 42"pimcore_block" => 42"pimcore_input" => 46);
  213.         try {
  214.             $this->sandbox->checkSecurity(
  215.                 ['if''set''for'],
  216.                 ['escape''date'],
  217.                 ['pimcore_image''pimcore_link''url''pimcore_iterate_block''pimcore_block''pimcore_input']
  218.             );
  219.         } catch (SecurityError $e) {
  220.             $e->setSourceContext($this->source);
  221.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  222.                 $e->setTemplateLine($tags[$e->getTagName()]);
  223.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  224.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  225.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  226.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  227.             }
  228.             throw $e;
  229.         }
  230.     }
  231. }