<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Content/footer.html.twig */
class __TwigTemplate_e8b34722b8f5d715ffdae1bb963a09f5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Content/footer.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Content/footer.html.twig"));
// line 1
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
echo " <link href=\"/website/static/css/app.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\">
";
}
// line 4
echo "
<script>
window.onload = function() {
hitApiAndSetLocalStorage();
setInterval(sendLoginTimeToBackend, 15 * 1000); // 5 minutes in milliseconds
};
</script>
<footer id=\"footer\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xs-2 footer-logo-sec\">
<div class=\"footer-logo\">
";
// line 19
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 19, $this->source); })())) {
// line 20
echo " <div>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "footerLogo");
echo "</div>
<div>";
// line 21
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "footerLogoLink");
echo "</div>
";
} else {
// line 23
echo " <a target=\"";
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", false, false, true, 23), 23, $this->source), "html", null, true);
echo "\" href=\"";
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", false, false, true, 23), 23, $this->source), "html", null, true);
echo "\">
";
// line 24
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "footerLogo");
echo "
</a>
";
}
// line 27
echo " </div>
</div>
<!-- Newsletter Form -->
<div class=\"col-sm-3 footer-newsletter\">
";
// line 32
$context["actual_link"] = ((($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 32), "scheme", [], "any", false, false, true, 32), 32, $this->source) . "://") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 32), "httpHost", [], "any", false, false, true, 32), 32, $this->source)) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 32), "requestUri", [], "any", false, false, true, 32), 32, $this->source));
// line 33
echo " <form action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("newsletter-form");
echo "\" method=\"post\">
<input type=\"email\" class=\"form-control\" name=\"newsletterEmail\" id=\"newsletterEmail\" placeholder=\"Newsletter - Email Address\" required>
<input type=\"hidden\" name=\"url\" value=\"";
// line 35
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", null, true);
echo "\" />
<button type=\"submit\"><span class=\"icon-arrow-right\"></span></button>
</form>
</div>
<div class=\"col-sm-7\">
<ul class=\"footer-links\">\t
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "footerLinks")));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 43
echo " <li>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "footerLink");
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " <li class=\"copyright\">
© ";
// line 46
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "footerCopyright");
echo "
</li>
</ul>
</div>
</div>
</div>
</footer>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Content/footer.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if editmode %}
<link href=\"/website/static/css/app.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\">
{% endif %}
<script>
window.onload = function() {
hitApiAndSetLocalStorage();
setInterval(sendLoginTimeToBackend, 15 * 1000); // 5 minutes in milliseconds
};
</script>
<footer id=\"footer\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-xs-2 footer-logo-sec\">
<div class=\"footer-logo\">
{% if editmode %}
<div>{{ pimcore_image('footerLogo') }}</div>
<div>{{ pimcore_link('footerLogoLink') }}</div>
{% else %}
<a target=\"{{ pimcore_link('footerLogoLink').getTarget() }}\" href=\"{{ pimcore_link('footerLogoLink').getHref() }}\">
{{ pimcore_image('footerLogo') }}
</a>
{% endif %}
</div>
</div>
<!-- Newsletter Form -->
<div class=\"col-sm-3 footer-newsletter\">
{% set actual_link = app.request.scheme ~ '://' ~ app.request.httpHost ~ app.request.requestUri %}
<form action=\"{{ url('newsletter-form') }}\" method=\"post\">
<input type=\"email\" class=\"form-control\" name=\"newsletterEmail\" id=\"newsletterEmail\" placeholder=\"Newsletter - Email Address\" required>
<input type=\"hidden\" name=\"url\" value=\"{{ actual_link }}\" />
<button type=\"submit\"><span class=\"icon-arrow-right\"></span></button>
</form>
</div>
<div class=\"col-sm-7\">
<ul class=\"footer-links\">\t
{% for i in pimcore_iterate_block(pimcore_block('footerLinks')) %}
<li>{{ pimcore_link('footerLink') }}</li>
{% endfor %}
<li class=\"copyright\">
© {{ \"now\"|date('Y') }} {{ pimcore_input('footerCopyright') }}
</li>
</ul>
</div>
</div>
</div>
</footer>", "Content/footer.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Content/footer.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "set" => 32, "for" => 42);
static $filters = array("escape" => 23, "date" => 46);
static $functions = array("pimcore_image" => 20, "pimcore_link" => 21, "url" => 33, "pimcore_iterate_block" => 42, "pimcore_block" => 42, "pimcore_input" => 46);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['escape', 'date'],
['pimcore_image', 'pimcore_link', 'url', 'pimcore_iterate_block', 'pimcore_block', 'pimcore_input']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}