var/cache/dev/twig/9f/9f7631b5e03e82b3d35b64719ced8e584335b54c719da58f8b5da04470d37140.php line 72

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. /* Slivki/city_selector.html.twig */
  14. class __TwigTemplate_8d1d6a256e523818670d4e64d5233e4e72b51ea6dd6ce7c5221a3732f0d773c1 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/city_selector.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/city_selector.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"d-inline-block\">
  35.     <div class=\"city-selector-opener\">
  36.         <a href=\"javascript:void(0)\">";
  37.         // line 3
  38.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'3$this->source); })()), "getName", [], "method"falsefalsefalse3), "html"nulltrue);
  39.         echo "</a>
  40.         <div class=\"city-selector\">
  41.             <div style=\"width: 265px;\">
  42.                 <div class=\"text-center text-nowrap border-bottom p-3\">Выберите местоположение</div>
  43.                 <div class=\"border-bottom p-2 position-relative\">
  44.                     <input id=\"citySearchInput\" type=\"text\" class=\"form-element\" placeholder=\"Поиск по названию\">
  45.                     <button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
  46.                 </div>
  47.                 <div class=\"city-selector-list\">
  48.                     ";
  49.         // line 12
  50.         $context['_parent'] = $context;
  51.         $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 (!== twig_compare(twig_get_attribute($this->env$this->source$context["city"], "getID", [], "method"falsefalsefalse12), twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID"))); }));
  52.         foreach ($context['_seq'] as $context["_key"] => $context["city"]) {
  53.             // line 13
  54.             echo "                        <a class=\"";
  55.             echo (((=== twig_compare(twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse13), twig_get_attribute($this->env$this->source$context["city"], "getID", [], "method"falsefalsefalse13)))) ? (" checked") : (""));
  56.             echo "\"
  57.                            href=\"https://";
  58.             // line 14
  59.             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["city"], "getDomain", [], "method"falsefalsefalse14) . (isset($context["base_domain"]) || array_key_exists("base_domain"$context) ? $context["base_domain"] : (function () { throw new RuntimeError('Variable "base_domain" does not exist.'14$this->source); })())), "html"nulltrue);
  60.             echo "\">";
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["city"], "getName", [], "method"falsefalsefalse14), "html"nulltrue);
  62.             echo "<sup class=\"color-violet\"> ";
  63.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveOffersCount(twig_get_attribute($this->env$this->source$context["city"], "getID", [], "method"falsefalsefalse14)), "html"nulltrue);
  64.             echo "</sup></a>
  65.                     ";
  66.         }
  67.         $_parent $context['_parent'];
  68.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['city'], $context['_parent'], $context['loop']);
  69.         $context array_intersect_key($context$_parent) + $_parent;
  70.         // line 16
  71.         echo "                </div>
  72.             </div>
  73.         </div>
  74.     </div>
  75.     ";
  76.         // line 20
  77.         if (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.'20$this->source); })()), "request", [], "any"falsefalsefalse20), "get", [=> "showLocationConfirm"], "method"falsefalsefalse20)) {
  78.             // line 21
  79.             echo "        <div class=\"city-qa\">
  80.             <p>Ваш город ";
  81.             // line 22
  82.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'22$this->source); })()), "getName", [], "method"falsefalsefalse22), "html"nulltrue);
  83.             echo "?</p>
  84.             <div class=\"buttons\">
  85.                 <div class=\"button button-violet\">Да, все верно</div>
  86.                 <div class=\"button bg-white\">Нет, выбрать другой</div>
  87.             </div>
  88.         </div>
  89.     ";
  90.         }
  91.         // line 29
  92.         echo "</div>
  93. ";
  94.         
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  96.         
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  98.     }
  99.     public function getTemplateName()
  100.     {
  101.         return "Slivki/city_selector.html.twig";
  102.     }
  103.     public function isTraitable()
  104.     {
  105.         return false;
  106.     }
  107.     public function getDebugInfo()
  108.     {
  109.         return array (  101 => 29,  91 => 22,  88 => 21,  86 => 20,  80 => 16,  68 => 14,  63 => 13,  59 => 12,  47 => 3,  43 => 1,);
  110.     }
  111.     public function getSourceContext()
  112.     {
  113.         return new Source("<div class=\"d-inline-block\">
  114.     <div class=\"city-selector-opener\">
  115.         <a href=\"javascript:void(0)\">{{ currentCity.getName() }}</a>
  116.         <div class=\"city-selector\">
  117.             <div style=\"width: 265px;\">
  118.                 <div class=\"text-center text-nowrap border-bottom p-3\">Выберите местоположение</div>
  119.                 <div class=\"border-bottom p-2 position-relative\">
  120.                     <input id=\"citySearchInput\" type=\"text\" class=\"form-element\" placeholder=\"Поиск по названию\">
  121.                     <button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
  122.                 </div>
  123.                 <div class=\"city-selector-list\">
  124.                     {% for city in getActiveSortedCityList()|filter(city => city.getID() != constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')) %}
  125.                         <a class=\"{{ getCurrentCity().getID() == city.getID() ? ' checked' }}\"
  126.                            href=\"https://{{ city.getDomain() ~ base_domain }}\">{{ city.getName() }}<sup class=\"color-violet\"> {{ getActiveOffersCount(city.getID()) }}</sup></a>
  127.                     {% endfor %}
  128.                 </div>
  129.             </div>
  130.         </div>
  131.     </div>
  132.     {% if app.request.get('showLocationConfirm')%}
  133.         <div class=\"city-qa\">
  134.             <p>Ваш город {{ currentCity.getName() }}?</p>
  135.             <div class=\"buttons\">
  136.                 <div class=\"button button-violet\">Да, все верно</div>
  137.                 <div class=\"button bg-white\">Нет, выбрать другой</div>
  138.             </div>
  139.         </div>
  140.     {% endif %}
  141. </div>
  142. ""Slivki/city_selector.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/city_selector.html.twig");
  143.     }
  144. }