var/cache/review/twig/24/24211032bc18c8b90f065d3992d824cf.php line 59

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. /* _fragment/city_stations.html.twig */
  14. class __TwigTemplate_38956380927ccb183c71a5d2ef358d6b 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_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_fragment/city_stations.html.twig"));
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_fragment/city_stations.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_fragment/city_stations.html.twig"));
  35.         // line 1
  36.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'1$this->source); })()), "stations", [], "any"falsefalsefalse1)) > 0)) {
  37.             // line 2
  38.             echo "    <div class=\"modal fade\" id=\"city-stations\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
  39.         <div class=\"modal-dialog modal-dialog-centered modal-lg\" role=\"document\">
  40.             <div class=\"modal-content\">
  41.                 <div class=\"modal-header\">
  42.                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  43.                         <span aria-hidden=\"true\">&times;</span>
  44.                     </button>
  45.                 </div>
  46.                 <div class=\"modal-body\">
  47.                     ";
  48.             // line 11
  49.             echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("city_stations", ["template" => "_menu/city_stations.html.twig"]);
  50.             echo "
  51.                 </div>
  52.             </div>
  53.         </div>
  54.     </div>
  55. ";
  56.         }
  57.         
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.     }
  64.     /**
  65.      * @codeCoverageIgnore
  66.      */
  67.     public function getTemplateName()
  68.     {
  69.         return "_fragment/city_stations.html.twig";
  70.     }
  71.     /**
  72.      * @codeCoverageIgnore
  73.      */
  74.     public function isTraitable()
  75.     {
  76.         return false;
  77.     }
  78.     /**
  79.      * @codeCoverageIgnore
  80.      */
  81.     public function getDebugInfo()
  82.     {
  83.         return array (  59 => 11,  48 => 2,  46 => 1,);
  84.     }
  85.     public function getSourceContext()
  86.     {
  87.         return new Source("{% if city.stations|length > 0 %}
  88.     <div class=\"modal fade\" id=\"city-stations\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
  89.         <div class=\"modal-dialog modal-dialog-centered modal-lg\" role=\"document\">
  90.             <div class=\"modal-content\">
  91.                 <div class=\"modal-header\">
  92.                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  93.                         <span aria-hidden=\"true\">&times;</span>
  94.                     </button>
  95.                 </div>
  96.                 <div class=\"modal-body\">
  97.                     {{ knp_menu_render('city_stations', {'template': '_menu/city_stations.html.twig'}) }}
  98.                 </div>
  99.             </div>
  100.         </div>
  101.     </div>
  102. {% endif %}
  103. ""_fragment/city_stations.html.twig""/app/templates/_fragment/city_stations.html.twig");
  104.     }
  105. }