var/cache/dev/twig/d7/d73638639aea6400f26184805d4d0271ae905f90db3369e80e6540cc4c4a88a2.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/locationsSubLinks.html.twig */
  14. class __TwigTemplate_129971f0a422a7f5be07c7b828a1718d3cf1d57245317a20448d73abf93576ee 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/locationsSubLinks.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/locationsSubLinks.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"clearfix\">
  35.     <div class=\"page-header\">
  36.         <h3>
  37.             ";
  38.         // line 4
  39.         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.'4$this->source); })()))) {
  40.             // line 5
  41.             echo "                ";
  42.             if (( !array_key_exists("section"$context) ||  !array_key_exists("propertyType"$context))) {
  43.                 // line 6
  44.                 echo "                    ";
  45.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.subs_location_links", ["%location%" => twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'6$this->source); })()), "title", [], "any"falsefalsefalse6)]), "html"nulltrue);
  46.                 echo "
  47.                 ";
  48.             } else {
  49.                 // line 8
  50.                 echo "                    ";
  51.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.subs_locations_links", ["%location%" => twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'8$this->source); })()), "title", [], "any"falsefalsefalse8), "%property_type%" => (((isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'8$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'8$this->source); })()), "title", [], "any"falsefalsefalse8)) : (null)), "%section%" => (((isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'8$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'8$this->source); })()), "title", [], "any"falsefalsefalse8)) : (""))]), "html"nulltrue);
  52.                 echo "
  53.                 ";
  54.             }
  55.             // line 10
  56.             echo "            ";
  57.         } else {
  58.             // line 11
  59.             echo "                ";
  60.             if (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general""country") == "EG")) {
  61.                 // line 12
  62.                 echo "                    ";
  63.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.search_inside_cities_eg"), "html"nulltrue);
  64.                 echo "
  65.                 ";
  66.             } elseif (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general""country") == "SA")) {
  67.                 // line 14
  68.                 echo "                    ";
  69.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.search_inside_cities_sa"), "html"nulltrue);
  70.                 echo "
  71.                 ";
  72.             }
  73.             // line 16
  74.             echo "            ";
  75.         }
  76.         // line 17
  77.         echo "        </h3>
  78.     </div>
  79.     ";
  80.         // line 19
  81.         if (array_key_exists("subLinksSections"$context)) {
  82.             // line 20
  83.             echo "        <ul class=\"nav nav-pills\">
  84.             ";
  85.             // line 21
  86.             $context['_parent'] = $context;
  87.             $context['_seq'] = twig_ensure_traversable((isset($context["subLinksSections"]) || array_key_exists("subLinksSections"$context) ? $context["subLinksSections"] : (function () { throw new RuntimeError('Variable "subLinksSections" does not exist.'21$this->source); })()));
  88.             $context['loop'] = [
  89.               'parent' => $context['_parent'],
  90.               'index0' => 0,
  91.               'index'  => 1,
  92.               'first'  => true,
  93.             ];
  94.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  95.                 $length count($context['_seq']);
  96.                 $context['loop']['revindex0'] = $length 1;
  97.                 $context['loop']['revindex'] = $length;
  98.                 $context['loop']['length'] = $length;
  99.                 $context['loop']['last'] = === $length;
  100.             }
  101.             foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  102.                 // line 22
  103.                 echo "                <li>
  104.                     <a data-toggle=\"pill\" href=\"#sectionLinks";
  105.                 // line 23
  106.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse23), "html"nulltrue);
  107.                 echo "\" ";
  108.                 echo (((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse23) == true)) ? (" class=\"active\"") : (""));
  109.                 echo ">";
  110.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["section"], "title", [], "any"falsefalsefalse23), "html"nulltrue);
  111.                 echo "</a>
  112.                 </li>
  113.             ";
  114.                 ++$context['loop']['index0'];
  115.                 ++$context['loop']['index'];
  116.                 $context['loop']['first'] = false;
  117.                 if (isset($context['loop']['length'])) {
  118.                     --$context['loop']['revindex0'];
  119.                     --$context['loop']['revindex'];
  120.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  121.                 }
  122.             }
  123.             $_parent $context['_parent'];
  124.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  125.             $context array_intersect_key($context$_parent) + $_parent;
  126.             // line 26
  127.             echo "        </ul>
  128.     ";
  129.         }
  130.         // line 28
  131.         echo "
  132.     <div class=\"tab-content\">
  133.         ";
  134.         // line 30
  135.         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.'30$this->source); })())) && twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_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.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "attributes", [], "any"falsefalsefalse30), "get", [=> "_route"], "method"falsefalsefalse30), [=> "compound_search"=> "neighborhood_discussion_list"=> "neighborhood_all_locations"=> "neighborhood_main_page"=> "compound_search_with_location"]))) {
  136.             // line 31
  137.             echo "            ";
  138.             $this->loadTemplate("@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig""@AqarmapMainBundle/Default/locationsSubLinks.html.twig"31)->display($context);
  139.             // line 32
  140.             echo "        ";
  141.         } else {
  142.             // line 33
  143.             echo "            ";
  144.             if (array_key_exists("subLinksSections"$context)) {
  145.                 // line 34
  146.                 echo "                ";
  147.                 $this->loadTemplate("@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig""@AqarmapMainBundle/Default/locationsSubLinks.html.twig"34)->display($context);
  148.                 // line 35
  149.                 echo "            ";
  150.             } elseif (array_key_exists("section"$context)) {
  151.                 // line 36
  152.                 echo "                <div id='sectionLinks' class=\"tab-pane active\">
  153.                     <div id=\"moreLocationsContainer\" class=\"subsLinks sectionLoadMore\">
  154.                         ";
  155.                 // line 38
  156.                 $context["sub_locations_links"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.subLocations_search.menus", [], ["attributes" => ["id" => "sud-locations-links""section" => (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'38$this->source); })())]]);
  157.                 // line 39
  158.                 echo "                        ";
  159.                 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.'39$this->source); })()), "children", [], "any"falsefalsefalse39)) {
  160.                     // line 40
  161.                     echo "                            <div class=\"clearfix\">
  162.                                 ";
  163.                     // line 41
  164.                     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.'41$this->source); })()), ["template" => "@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig"]);
  165.                     echo "
  166.                             </div>
  167.                         ";
  168.                 }
  169.                 // line 44
  170.                 echo "                    </div>
  171.                 </div>
  172.             ";
  173.             }
  174.             // line 47
  175.             echo "        ";
  176.         }
  177.         // line 48
  178.         echo "
  179.     </div>
  180. </div>
  181. ";
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.         
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "@AqarmapMainBundle/Default/locationsSubLinks.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         return array (  187 => 48,  184 => 47,  179 => 44,  173 => 41,  170 => 40,  167 => 39,  165 => 38,  161 => 36,  158 => 35,  155 => 34,  152 => 33,  149 => 32,  146 => 31,  144 => 30,  140 => 28,  136 => 26,  115 => 23,  112 => 22,  95 => 21,  92 => 20,  90 => 19,  86 => 17,  83 => 16,  77 => 14,  71 => 12,  68 => 11,  65 => 10,  59 => 8,  53 => 6,  50 => 5,  48 => 4,  43 => 1,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("<div class=\"clearfix\">
  202.     <div class=\"page-header\">
  203.         <h3>
  204.             {% if location is defined and location %}
  205.                 {% if section is not defined or propertyType is not defined %}
  206.                     {{ 'listing.subs_location_links'|trans({'%location%': location.title}) }}
  207.                 {% else %}
  208.                     {{ 'listing.subs_locations_links'|trans({'%location%': location.title, '%property_type%': propertyType ? propertyType.title: null, '%section%': section ? section.title: ''}) }}
  209.                 {% endif %}
  210.             {% else %}
  211.                 {% if get_setting('general', 'country') == 'EG' %}
  212.                     {{ 'listing.search_inside_cities_eg'|trans }}
  213.                 {% elseif get_setting('general', 'country') == 'SA' %}
  214.                     {{ 'listing.search_inside_cities_sa'|trans }}
  215.                 {% endif %}
  216.             {% endif %}
  217.         </h3>
  218.     </div>
  219.     {% if subLinksSections is defined %}
  220.         <ul class=\"nav nav-pills\">
  221.             {% for section in subLinksSections %}
  222.                 <li>
  223.                     <a data-toggle=\"pill\" href=\"#sectionLinks{{ loop.index }}\" {{ loop.first == true ? ' class=\"active\"' : '' }}>{{ section.title }}</a>
  224.                 </li>
  225.             {% endfor %}
  226.         </ul>
  227.     {% endif %}
  228.     <div class=\"tab-content\">
  229.         {% if location is defined and location and app.request.attributes.get('_route') in [\"compound_search\", \"neighborhood_discussion_list\", \"neighborhood_all_locations\", \"neighborhood_main_page\", \"compound_search_with_location\"] %}
  230.             {% include \"@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig\" %}
  231.         {% else %}
  232.             {% if subLinksSections is defined %}
  233.                 {% include \"@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig\" %}
  234.             {% elseif section is defined %}
  235.                 <div id='sectionLinks' class=\"tab-pane active\">
  236.                     <div id=\"moreLocationsContainer\" class=\"subsLinks sectionLoadMore\">
  237.                         {% set sub_locations_links = knp_menu_get( 'aqarmap.subLocations_search.menus' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section}}) %}
  238.                         {% if sub_locations_links.children %}
  239.                             <div class=\"clearfix\">
  240.                                 {{ knp_menu_render(sub_locations_links, {'template': '@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig'}) }}
  241.                             </div>
  242.                         {% endif %}
  243.                     </div>
  244.                 </div>
  245.             {% endif %}
  246.         {% endif %}
  247.     </div>
  248. </div>
  249. ""@AqarmapMainBundle/Default/locationsSubLinks.html.twig""/srv/moonshot/src/Aqarmap/Bundle/MainBundle/Resources/views/Default/locationsSubLinks.html.twig");
  250.     }
  251. }