var/cache/dev/twig/84/8406e717f4a92e0565aab21e0baa1e391cd3857a66ac29403a63d993c0e5d62a.php line 73

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/mobile/select_city.html.twig */
  14. class __TwigTemplate_b1d7c976e2d510e27083ba69206ffe2153cc8a5b9caabe7c9685afb166352923 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/mobile/select_city.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/mobile/select_city.html.twig"));
  33.         // line 1
  34.         echo "<div id=\"selectCityPopup\" class=\"modal modal-fullscreen modal-right\" tabindex=\"-1\" role=\"dialog\">
  35.     <div class=\"modal-dialog\" role=\"document\">
  36.         <div class=\"modal-content\">
  37.             <div class=\"modal-body h-100 p-0\">
  38.                 <div class=\"text-center border-bottom py-3 m-0\">
  39.                     Выберите местоположение
  40.                     <button type=\"button\" class=\"close mr-3\" data-dismiss=\"modal\" aria-label=\"Close\">
  41.                         <span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
  42.                     </button>
  43.                 </div>
  44.                 <div class=\"border-bottom p-3 position-relative\">
  45.                     <input id=\"citySearchInput\" type=\"text\" class=\"form-control\" placeholder=\"Поиск по названию\">
  46.                     <button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
  47.                 </div>
  48.                 <div class=\"city-selector-list\">
  49.                     ";
  50.         // line 16
  51.         $context['_parent'] = $context;
  52.         $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"falsefalsefalse16), twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID"))); }));
  53.         foreach ($context['_seq'] as $context["_key"] => $context["city"]) {
  54.             // line 17
  55.             echo "                        <a class=\"";
  56.             echo (((=== twig_compare(twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse17), twig_get_attribute($this->env$this->source$context["city"], "getID", [], "method"falsefalsefalse17)))) ? (" checked") : (""));
  57.             echo "\"
  58.                            href=\"https://";
  59.             // line 18
  60.             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["city"], "getDomain", [], "method"falsefalsefalse18) . (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"nulltrue);
  61.             echo "\">";
  62.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["city"], "getName", [], "method"falsefalsefalse18), "html"nulltrue);
  63.             echo "<sup class=\"color-violet\"> ";
  64.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveOffersCount(twig_get_attribute($this->env$this->source$context["city"], "getID", [], "method"falsefalsefalse18)), "html"nulltrue);
  65.             echo "</sup></a>
  66.                     ";
  67.         }
  68.         $_parent $context['_parent'];
  69.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['city'], $context['_parent'], $context['loop']);
  70.         $context array_intersect_key($context$_parent) + $_parent;
  71.         // line 20
  72.         echo "                </div>
  73.             </div>
  74.         </div>
  75.     </div>
  76. </div>
  77. ";
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.         
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  82.     }
  83.     public function getTemplateName()
  84.     {
  85.         return "Slivki/mobile/select_city.html.twig";
  86.     }
  87.     public function isTraitable()
  88.     {
  89.         return false;
  90.     }
  91.     public function getDebugInfo()
  92.     {
  93.         return array (  81 => 20,  69 => 18,  64 => 17,  60 => 16,  43 => 1,);
  94.     }
  95.     public function getSourceContext()
  96.     {
  97.         return new Source("<div id=\"selectCityPopup\" class=\"modal modal-fullscreen modal-right\" tabindex=\"-1\" role=\"dialog\">
  98.     <div class=\"modal-dialog\" role=\"document\">
  99.         <div class=\"modal-content\">
  100.             <div class=\"modal-body h-100 p-0\">
  101.                 <div class=\"text-center border-bottom py-3 m-0\">
  102.                     Выберите местоположение
  103.                     <button type=\"button\" class=\"close mr-3\" data-dismiss=\"modal\" aria-label=\"Close\">
  104.                         <span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
  105.                     </button>
  106.                 </div>
  107.                 <div class=\"border-bottom p-3 position-relative\">
  108.                     <input id=\"citySearchInput\" type=\"text\" class=\"form-control\" placeholder=\"Поиск по названию\">
  109.                     <button id=\"citySearchClear\" class=\"btn btn-link d-none\"><i class=\"slivki-icon-close-circled-o\"></i></button>
  110.                 </div>
  111.                 <div class=\"city-selector-list\">
  112.                     {% for city in getActiveSortedCityList()|filter(city => city.getID() != constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')) %}
  113.                         <a class=\"{{ getCurrentCity().getID() == city.getID() ? ' checked' }}\"
  114.                            href=\"https://{{ city.getDomain() ~ base_domain }}\">{{ city.getName() }}<sup class=\"color-violet\"> {{ getActiveOffersCount(city.getID()) }}</sup></a>
  115.                     {% endfor %}
  116.                 </div>
  117.             </div>
  118.         </div>
  119.     </div>
  120. </div>
  121. ""Slivki/mobile/select_city.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/mobile/select_city.html.twig");
  122.     }
  123. }