<?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;
/* Slivki/mobile/banner/banner.html.twig */
class __TwigTemplate_c792eddf38cb19ea8976fa023e80cb56bbf051f0741a01034b964527f856fb3c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/banner/banner.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/banner/banner.html.twig"));
// line 1
if (((isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 1, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 1, $this->source); })()), "getCityIds", [], "method", false, false, false, 1), 0, [], "array", false, false, false, 1), twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 1))))) {
// line 2
echo " <div class=\"text-center ";
((array_key_exists("additionalClass", $context)) ? (print (twig_escape_filter($this->env, (isset($context["additionalClass"]) || array_key_exists("additionalClass", $context) ? $context["additionalClass"] : (function () { throw new RuntimeError('Variable "additionalClass" does not exist.', 2, $this->source); })()), "html", null, true))) : (print ("")));
echo "\">
<a data-id=\"";
// line 3
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 3, $this->source); })()), "getID", [], "method", false, false, false, 3), "html", null, true);
echo "\" class=\"banner\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 3, $this->source); })()), "getURL", [], "method", false, false, false, 3), "html", null, true);
echo "\" target=\"_blank\" rel=\"nofollow\">
<img src=\"";
// line 4
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 4, $this->source); })()), "getFilePath", [], "method", false, false, false, 4), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 4, $this->source); })()), "getTitle", [], "method", false, false, false, 4), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 4, $this->source); })()), "getTitle", [], "method", false, false, false, 4), "html", null, true);
echo "\"/>
</a>
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/banner/banner.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 56 => 4, 50 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if banner and banner.getCityIds()[0] == getCurrentCity().getID() %}
<div class=\"text-center {{ additionalClass is defined ? additionalClass }}\">
<a data-id=\"{{ banner.getID() }}\" class=\"banner\" href=\"{{ banner.getURL() }}\" target=\"_blank\" rel=\"nofollow\">
<img src=\"{{ banner.getFilePath() }}\" alt=\"{{ banner.getTitle() }}\" title=\"{{ banner.getTitle() }}\"/>
</a>
</div>
{% endif %}
", "Slivki/mobile/banner/banner.html.twig", "/mnt/data/virtwww/anna/templates/Slivki/mobile/banner/banner.html.twig");
}
}