var/cache/dev/twig/ee/eed5e66c40f4b083a50469c226653443763343a7106975b4e1a0aaf5e9eec525.php line 33

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. /* @AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig */
  14. class __TwigTemplate_e35aaf71472a139e7f0253de283b633acc6163d07e8d99a52c6029e6b7d6dbed extends \Twig\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""@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.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""@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable((isset($context["subLinksSections"]) || array_key_exists("subLinksSections"$context) ? $context["subLinksSections"] : (function () { throw new RuntimeError('Variable "subLinksSections" does not exist.'1$this->source); })()));
  36.         $context['loop'] = [
  37.           'parent' => $context['_parent'],
  38.           'index0' => 0,
  39.           'index'  => 1,
  40.           'first'  => true,
  41.         ];
  42.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  43.             $length count($context['_seq']);
  44.             $context['loop']['revindex0'] = $length 1;
  45.             $context['loop']['revindex'] = $length;
  46.             $context['loop']['length'] = $length;
  47.             $context['loop']['last'] = === $length;
  48.         }
  49.         foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  50.             // line 2
  51.             echo "    <div id='sectionLinks";
  52.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse2), "html"nulltrue);
  53.             echo "'
  54.          class=\"tab-pane ";
  55.             // line 3
  56.             echo (((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse3) == true)) ? ("active") : (""));
  57.             echo "\">
  58.         <div id=\"moreLocationsContainer";
  59.             // line 4
  60.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse4), "html"nulltrue);
  61.             echo "\" class=\"subsLinks sectionLoadMore\">
  62.             ";
  63.             // line 5
  64.             if ((array_key_exists("location"$context) && (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'5$this->source); })()))) {
  65.                 // line 6
  66.                 echo "                ";
  67.                 $context["sub_locations_links"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.propertyTypes_search.menu", [], ["attributes" => ["id" => "sud-locations-links""section" => $context["section"], "location" => (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'6$this->source); })())]]);
  68.                 // line 7
  69.                 echo "            ";
  70.             } else {
  71.                 // line 8
  72.                 echo "                ";
  73.                 $context["sub_locations_links"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.subLocations_search.menus", [], ["attributes" => ["id" => "sud-locations-links""section" => $context["section"]]]);
  74.                 // line 9
  75.                 echo "            ";
  76.             }
  77.             // line 10
  78.             echo "            ";
  79.             if (twig_get_attribute($this->env$this->source, (isset($context["sub_locations_links"]) || array_key_exists("sub_locations_links"$context) ? $context["sub_locations_links"] : (function () { throw new RuntimeError('Variable "sub_locations_links" does not exist.'10$this->source); })()), "children", [], "any"falsefalsefalse10)) {
  80.                 // line 11
  81.                 echo "                <div class=\"clearfix\">
  82.                     ";
  83.                 // line 12
  84.                 echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render((isset($context["sub_locations_links"]) || array_key_exists("sub_locations_links"$context) ? $context["sub_locations_links"] : (function () { throw new RuntimeError('Variable "sub_locations_links" does not exist.'12$this->source); })()), ["template" => "@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig"]);
  85.                 echo "
  86.                 </div>
  87.             ";
  88.             }
  89.             // line 15
  90.             echo "        </div>
  91.     </div>
  92. ";
  93.             ++$context['loop']['index0'];
  94.             ++$context['loop']['index'];
  95.             $context['loop']['first'] = false;
  96.             if (isset($context['loop']['length'])) {
  97.                 --$context['loop']['revindex0'];
  98.                 --$context['loop']['revindex'];
  99.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  100.             }
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 18
  106.         echo "
  107. ";
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.         
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig";
  116.     }
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     public function getDebugInfo()
  122.     {
  123.         return array (  115 => 18,  99 => 15,  93 => 12,  90 => 11,  87 => 10,  84 => 9,  81 => 8,  78 => 7,  75 => 6,  73 => 5,  69 => 4,  65 => 3,  60 => 2,  43 => 1,);
  124.     }
  125.     public function getSourceContext()
  126.     {
  127.         return new Source("{% for section in subLinksSections %}
  128.     <div id='sectionLinks{{ loop.index }}'
  129.          class=\"tab-pane {{ loop.first == true ? 'active' : '' }}\">
  130.         <div id=\"moreLocationsContainer{{ loop.index }}\" class=\"subsLinks sectionLoadMore\">
  131.             {% if location is defined and location %}
  132.                 {% set sub_locations_links = knp_menu_get( 'aqarmap.propertyTypes_search.menu' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section, 'location': location }}) %}
  133.             {% else %}
  134.                 {% set sub_locations_links = knp_menu_get( 'aqarmap.subLocations_search.menus' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section }}) %}
  135.             {% endif %}
  136.             {% if sub_locations_links.children %}
  137.                 <div class=\"clearfix\">
  138.                     {{ knp_menu_render(sub_locations_links, {'template': '@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig'}) }}
  139.                 </div>
  140.             {% endif %}
  141.         </div>
  142.     </div>
  143. {% endfor %}
  144. ""@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig""/srv/moonshot/src/Aqarmap/Bundle/MainBundle/Resources/views/Default/locationSectionIndexedSubLinks.html.twig");
  145.     }
  146. }