<?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/select_city.html.twig */
class __TwigTemplate_b1d7c976e2d510e27083ba69206ffe2153cc8a5b9caabe7c9685afb166352923 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/select_city.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/select_city.html.twig"));
// line 1
echo "<div id=\"selectCityPopup\" class=\"modal modal-fullscreen modal-right\" tabindex=\"-1\" role=\"dialog\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body h-100 p-0\">
<div class=\"text-center border-bottom py-3 m-0\">
Выберите местоположение
<button type=\"button\" class=\"close mr-3\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
</button>
</div>
<div class=\"border-bottom p-3 position-relative\">
<input id=\"citySearchInput\" type=\"text\" class=\"form-control\" placeholder=\"Поиск по названию\">
<button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
</div>
<div class=\"city-selector-list\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveSortedCityList(), function ($__city__) use ($context, $macros) { $context["city"] = $__city__; return (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["city"], "getID", [], "method", false, false, false, 16), twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID"))); }));
foreach ($context['_seq'] as $context["_key"] => $context["city"]) {
// line 17
echo " <a class=\"";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 17), twig_get_attribute($this->env, $this->source, $context["city"], "getID", [], "method", false, false, false, 17)))) ? (" checked") : (""));
echo "\"
href=\"https://";
// line 18
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["city"], "getDomain", [], "method", false, false, false, 18) . (isset($context["base_domain"]) || array_key_exists("base_domain", $context) ? $context["base_domain"] : (function () { throw new RuntimeError('Variable "base_domain" does not exist.', 18, $this->source); })())), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["city"], "getName", [], "method", false, false, false, 18), "html", null, true);
echo "<sup class=\"color-violet\"> ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveOffersCount(twig_get_attribute($this->env, $this->source, $context["city"], "getID", [], "method", false, false, false, 18)), "html", null, true);
echo "</sup></a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['city'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo " </div>
</div>
</div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/select_city.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 81 => 20, 69 => 18, 64 => 17, 60 => 16, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div id=\"selectCityPopup\" class=\"modal modal-fullscreen modal-right\" tabindex=\"-1\" role=\"dialog\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body h-100 p-0\">
<div class=\"text-center border-bottom py-3 m-0\">
Выберите местоположение
<button type=\"button\" class=\"close mr-3\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
</button>
</div>
<div class=\"border-bottom p-3 position-relative\">
<input id=\"citySearchInput\" type=\"text\" class=\"form-control\" placeholder=\"Поиск по названию\">
<button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
</div>
<div class=\"city-selector-list\">
{% for city in getActiveSortedCityList()|filter(city => city.getID() != constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')) %}
<a class=\"{{ getCurrentCity().getID() == city.getID() ? ' checked' }}\"
href=\"https://{{ city.getDomain() ~ base_domain }}\">{{ city.getName() }}<sup class=\"color-violet\"> {{ getActiveOffersCount(city.getID()) }}</sup></a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
", "Slivki/mobile/select_city.html.twig", "/mnt/data/virtwww/vlad-slivki/templates/Slivki/mobile/select_city.html.twig");
}
}