<?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;
/* @AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig */
class __TwigTemplate_e35aaf71472a139e7f0253de283b633acc6163d07e8d99a52c6029e6b7d6dbed extends \Twig\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", "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig"));
// line 1
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 2
echo " <div id='sectionLinks";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 2), "html", null, true);
echo "'
class=\"tab-pane ";
// line 3
echo (((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 3) == true)) ? ("active") : (""));
echo "\">
<div id=\"moreLocationsContainer";
// line 4
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 4), "html", null, true);
echo "\" class=\"subsLinks sectionLoadMore\">
";
// line 5
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); })()))) {
// line 6
echo " ";
$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); })())]]);
// line 7
echo " ";
} else {
// line 8
echo " ";
$context["sub_locations_links"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.subLocations_search.menus", [], ["attributes" => ["id" => "sud-locations-links", "section" => $context["section"]]]);
// line 9
echo " ";
}
// line 10
echo " ";
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", false, false, false, 10)) {
// line 11
echo " <div class=\"clearfix\">
";
// line 12
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"]);
echo "
</div>
";
}
// line 15
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% for section in subLinksSections %}
<div id='sectionLinks{{ loop.index }}'
class=\"tab-pane {{ loop.first == true ? 'active' : '' }}\">
<div id=\"moreLocationsContainer{{ loop.index }}\" class=\"subsLinks sectionLoadMore\">
{% if location is defined and location %}
{% set sub_locations_links = knp_menu_get( 'aqarmap.propertyTypes_search.menu' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section, 'location': location }}) %}
{% else %}
{% set sub_locations_links = knp_menu_get( 'aqarmap.subLocations_search.menus' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section }}) %}
{% endif %}
{% if sub_locations_links.children %}
<div class=\"clearfix\">
{{ knp_menu_render(sub_locations_links, {'template': '@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig'}) }}
</div>
{% endif %}
</div>
</div>
{% endfor %}
", "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/MainBundle/Resources/views/Default/locationSectionIndexedSubLinks.html.twig");
}
}