var/cache/dev/twig/bc/bcb72e28eab8da2de0f6ca377e415b4d3d826445afa3c19194b04d341b8c90f9.php line 212

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. /* @AqarmapDiscussionBundle/Discussion/discussions.html.twig */
  14. class __TwigTemplate_84ea7089ca2d37a9a94e547ad2214e35c5a8c7c2a7f844f4b25b208bf2ee5b6b 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->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'title' => [$this'block_title'],
  25.             'meta_description' => [$this'block_meta_description'],
  26.             'metatags' => [$this'block_metatags'],
  27.             'htmlhead' => [$this'block_htmlhead'],
  28.             'body' => [$this'block_body'],
  29.             'footer' => [$this'block_footer'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.         $macros["_self"] = $this->macros["_self"] = $this;
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"));
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"));
  46.         // line 2
  47.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["quick_registration_form"]) || array_key_exists("quick_registration_form"$context) ? $context["quick_registration_form"] : (function () { throw new RuntimeError('Variable "quick_registration_form" does not exist.'2$this->source); })()), [=> "Form/form_div_layout.html.twig"], true);
  48.         // line 9
  49.         $context["pageTitle"] = (((isset($context["selectedCategory"]) || array_key_exists("selectedCategory"$context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.'9$this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.explore_category_title_in", ["%category%" => twig_get_attribute($this->env$this->source, (isset($context["selectedCategory"]) || array_key_exists("selectedCategory"$context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.'9$this->source); })()), "title", [], "any"falsefalsefalse9)])) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title")));
  50.         // line 10
  51.         $context["pageTitle"] = (((isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'10$this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.explore_title_in", ["%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.'10$this->source); })()), "title", [], "any"falsefalsefalse10)])) : ((isset($context["pageTitle"]) || array_key_exists("pageTitle"$context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.'10$this->source); })())));
  52.         // line 1
  53.         $this->parent $this->loadTemplate("base.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"1);
  54.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  55.         
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.     }
  60.     // line 4
  61.     public function block_stylesheets($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  68.         // line 5
  69.         echo "\t";
  70.         $this->displayParentBlock("stylesheets"$context$blocks);
  71.         echo "
  72. \t<link rel=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">
  73. ";
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     // line 12
  80.     public function block_title($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  87.         // line 13
  88.         echo "\t";
  89.         echo twig_escape_filter($this->env, (isset($context["pageTitle"]) || array_key_exists("pageTitle"$context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.'13$this->source); })()), "html"nulltrue);
  90.         echo "
  91. \t&bull;
  92. \t";
  93.         // line 15
  94.         $this->displayParentBlock("title"$context$blocks);
  95.         echo "
  96. ";
  97.         
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  99.         
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  101.     }
  102.     // line 17
  103.     public function block_meta_description($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  110.         // line 18
  111.         echo "\t";
  112.         echo twig_escape_filter($this->env, (isset($context["metaDescriptionContent"]) || array_key_exists("metaDescriptionContent"$context) ? $context["metaDescriptionContent"] : (function () { throw new RuntimeError('Variable "metaDescriptionContent" does not exist.'18$this->source); })()), "html"nulltrue);
  113.         echo "
  114. ";
  115.         
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  117.         
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119.     }
  120.     // line 20
  121.     public function block_metatags($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  128.         // line 21
  129.         echo "\t";
  130.         if ((twig_length_filter($this->env, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'21$this->source); })())) == 0)) {
  131.             // line 22
  132.             echo "\t\t<meta name=\"robots\" content=\"noindex\">
  133. \t";
  134.         }
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.     }
  140.     // line 26
  141.     public function block_htmlhead($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  148.         // line 27
  149.         echo "\t<link rel=\"canonical\" href=\"";
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "get", [=> "_route"], "method"falsefalsefalse27), twig_array_merge(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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "query", [], "any"falsefalsefalse27), "all", [], "any"falsefalsefalse27), ["_locale" => twig_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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "get", [=> "_locale"], "method"falsefalsefalse27)])), "html"nulltrue);
  151.         echo "\"/>
  152. \t<link rel=\"alternate\" hreflang=\"ar\" href=\"";
  153.         // line 28
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "get", [=> "_route"], "method"falsefalsefalse28), twig_array_merge(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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "query", [], "any"falsefalsefalse28), "all", [], "any"falsefalsefalse28), ["_locale" => "ar"])), "html"nulltrue);
  155.         echo "\"/>
  156. \t<link rel=\"alternate\" hreflang=\"en\" href=\"";
  157.         // line 29
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_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.'29$this->source); })()), "request", [], "any"falsefalsefalse29), "get", [=> "_route"], "method"falsefalsefalse29), twig_array_merge(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.'29$this->source); })()), "request", [], "any"falsefalsefalse29), "query", [], "any"falsefalsefalse29), "all", [], "any"falsefalsefalse29), ["_locale" => "en"])), "html"nulltrue);
  159.         echo "\"/>
  160. \t<link rel=\"alternate\" hreflang=\"x-default\" href=\"";
  161.         // line 30
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_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), "get", [=> "_route"], "method"falsefalsefalse30), twig_array_merge(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), "query", [], "any"falsefalsefalse30), "all", [], "any"falsefalsefalse30), ["_locale" => "ar"])), "html"nulltrue);
  163.         echo "\"/>
  164. \t";
  165.         // line 31
  166.         echo twig_call_macro($macros["_self"], "macro_pagination_meta", [(isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'31$this->source); })())], 31$context$this->getSourceContext());
  167.         echo "
  168. ";
  169.         
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  171.         
  172.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  173.     }
  174.     // line 34
  175.     public function block_body($context, array $blocks = [])
  176.     {
  177.         $macros $this->macros;
  178.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  180.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  182.         // line 35
  183.         echo "\t<section id=\"";
  184.         echo twig_escape_filter($this->envtwig_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.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "get", [=> "_route"], "method"falsefalsefalse35), "html"nulltrue);
  185.         echo "\" ng-controller=\"neighborhoodDiscussionController\">
  186. \t\t";
  187.         // line 36
  188.         $context["topSellerTrigger"] = "gtm-action-topsellers-lead-ask-neighbors";
  189.         // line 37
  190.         echo "\t\t";
  191.         $context["topSellerEventAction"] = "Top Sellers Ask Neighbors";
  192.         // line 38
  193.         echo "\t\t<div class=\"resposive-add-discussion-conatiner hidden-md hidden-lg hidden-sm\">
  194. \t\t\t<div class=\"container\">
  195. \t\t\t\t<div class=\"page-header\">
  196. \t\t\t\t\t<h2 class=\"custom-header\">";
  197.         // line 41
  198.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title"), "html"nulltrue);
  199.         echo "</h2>
  200. \t\t\t\t\t<p class=\"discussion-form-sub-title responsive_style hidden-xs\">";
  201.         // line 42
  202.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title"), "html"nulltrue);
  203.         echo "</p>
  204. \t\t\t\t</div>
  205. \t\t\t\t<div class=\"row\">
  206. \t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = false;discussionContent='';\">
  207. \t\t\t\t\t\t";
  208.         // line 46
  209.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["responsiveDiscussionForm"]) || array_key_exists("responsiveDiscussionForm"$context) ? $context["responsiveDiscussionForm"] : (function () { throw new RuntimeError('Variable "responsiveDiscussionForm" does not exist.'46$this->source); })()), 'form_start', ["attr" => ["ng-submit" => "submitDiscussion(\$event, data)"]]);
  210.         echo "
  211. \t\t\t\t\t\t<div class=\"discussion-form-textarea\">
  212. \t\t\t\t\t\t\t";
  213.         // line 48
  214.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["responsiveDiscussionForm"]) || array_key_exists("responsiveDiscussionForm"$context) ? $context["responsiveDiscussionForm"] : (function () { throw new RuntimeError('Variable "responsiveDiscussionForm" does not exist.'48$this->source); })()), "content", [], "any"falsefalsefalse48), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title_placeholder", ["%location%" => ""], "messages"), "ng-click" => "showFormData = true;""ng-model" => "discussionContent"]]);
  215.         echo "
  216. \t\t\t\t\t\t</div>
  217. \t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
  218. \t\t\t\t\t\t\t<div id=\"location_search\">
  219. \t\t\t\t\t\t\t\t";
  220.         // line 52
  221.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["responsiveDiscussionForm"]) || array_key_exists("responsiveDiscussionForm"$context) ? $context["responsiveDiscussionForm"] : (function () { throw new RuntimeError('Variable "responsiveDiscussionForm" does not exist.'52$this->source); })()), "location", [], "any"falsefalsefalse52), 'widget', ["attr" => ["class" => "chosen"]]);
  222.         echo "
  223. \t\t\t\t\t\t\t</div>
  224. \t\t\t\t\t\t\t";
  225.         // line 54
  226.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["responsiveDiscussionForm"]) || array_key_exists("responsiveDiscussionForm"$context) ? $context["responsiveDiscussionForm"] : (function () { throw new RuntimeError('Variable "responsiveDiscussionForm" does not exist.'54$this->source); })()), "category", [], "any"falsefalsefalse54), 'widget');
  227.         echo "
  228. \t\t\t\t\t\t</div>
  229. \t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"darken btn btn-lg  btn-primary btn-block\">";
  230.         // line 56
  231.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.share"), "html"nulltrue);
  232.         echo "
  233. \t\t\t\t\t\t</button>
  234. \t\t\t\t\t\t";
  235.         // line 58
  236.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["responsiveDiscussionForm"]) || array_key_exists("responsiveDiscussionForm"$context) ? $context["responsiveDiscussionForm"] : (function () { throw new RuntimeError('Variable "responsiveDiscussionForm" does not exist.'58$this->source); })()), 'form_end');
  237.         echo "
  238. \t\t\t\t\t\t<div class=\"cancel-button\">
  239. \t\t\t\t\t\t\t<a href=\"\" class=\"text-center\" ng-click=\"showFormData = false;discussionContent='';\" ng-show=\"showFormData\">";
  240.         // line 60
  241.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("terms_conditions.cancel"), "html"nulltrue);
  242.         echo "</a>
  243. \t\t\t\t\t\t</div>
  244. \t\t\t\t\t</div>
  245. \t\t\t\t</div>
  246. \t\t\t</div>
  247. \t\t</div>
  248. \t\t<div class=\"discussions\">
  249. \t\t\t<div class=\"container\">
  250. \t\t\t\t<div class=\"row\">
  251. \t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-sm hidden-xs\">
  252. \t\t\t\t\t\t";
  253.         // line 71
  254.         $context["discussions_breadcrumb"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.askNeighbors.breadcrumb", [], ["location" => twig_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.'71$this->source); })()), "request", [], "any"falsefalsefalse71), "get", [=> "location"], "method"falsefalsefalse71), "category" => twig_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.'71$this->source); })()), "request", [], "any"falsefalsefalse71), "get", [=> "category"], "method"falsefalsefalse71)]);
  255.         // line 72
  256.         echo "\t\t\t\t\t\t";
  257.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render((isset($context["discussions_breadcrumb"]) || array_key_exists("discussions_breadcrumb"$context) ? $context["discussions_breadcrumb"] : (function () { throw new RuntimeError('Variable "discussions_breadcrumb" does not exist.'72$this->source); })()), ["allow_safe_labels" => true"template" => "knp_breadcrumbs.html.twig""currentAsLink" => true"currentClass" => "active"]);
  258.         // line 77
  259.         echo "
  260. \t\t\t\t\t</div>
  261. \t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">
  262. \t\t\t\t\t\t<div class=\"row\">
  263. \t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  264. \t\t\t\t\t\t\t\t<div class=\"page-header\">
  265. \t\t\t\t\t\t\t\t\t";
  266.         // line 83
  267.         $context["discussionLocationTitle"] = (((isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'83$this->source); })())) ? (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.'83$this->source); })()), "title", [], "any"falsefalsefalse83)) : (""));
  268.         // line 84
  269.         echo "\t\t\t\t\t\t\t\t\t";
  270.         if ((isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'84$this->source); })())) {
  271.             // line 85
  272.             echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
  273.             echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\DiscussionBundle\Twig\DiscussionTabsExtension']->getDiscussionSearchTabsTitle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 86
  274. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'86$this->source); })()), "request", [], "any"falsefalsefalse86), "get", [=> "tab"=> 1], "method"falsefalsefalse86))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in")) .             // line 87
  275. (isset($context["discussionLocationTitle"]) || array_key_exists("discussionLocationTitle"$context) ? $context["discussionLocationTitle"] : (function () { throw new RuntimeError('Variable "discussionLocationTitle" does not exist.'87$this->source); })())), "html"nulltrue);
  276.             echo "
  277. \t\t\t\t\t\t\t\t\t\t\t";
  278.             // line 88
  279.             if ((twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'88$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse88) != 1)) {
  280.                 // line 89
  281.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  282.                 echo twig_escape_filter($this->env, (" - " $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.description.page", ["%page_number%" => twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'89$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse89)])), "html"nulltrue);
  283.                 echo "
  284. \t\t\t\t\t\t\t\t\t\t\t";
  285.             }
  286.             // line 91
  287.             echo "\t\t\t\t\t\t\t\t\t\t</h1>
  288. \t\t\t\t\t\t\t\t\t";
  289.         } elseif (        // line 92
  290. (isset($context["selectedCategory"]) || array_key_exists("selectedCategory"$context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.'92$this->source); })())) {
  291.             // line 93
  292.             echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
  293.             echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\DiscussionBundle\Twig\DiscussionTabsExtension']->getDiscussionSearchTabsTitle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 94
  294. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'94$this->source); })()), "request", [], "any"falsefalsefalse94), "get", [=> "tab"=> 1], "method"falsefalsefalse94))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in")) . twig_get_attribute($this->env$this->source,             // line 95
  295. (isset($context["selectedCategory"]) || array_key_exists("selectedCategory"$context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.'95$this->source); })()), "title", [], "any"falsefalsefalse95)), "html"nulltrue);
  296.             echo "
  297. \t\t\t\t\t\t\t\t\t\t\t";
  298.             // line 96
  299.             if ((twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'96$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse96) != 1)) {
  300.                 // line 97
  301.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  302.                 echo twig_escape_filter($this->env, (" - " $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.description.page", ["%page_number%" => twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'97$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse97)])), "html"nulltrue);
  303.                 echo "
  304. \t\t\t\t\t\t\t\t\t\t\t";
  305.             }
  306.             // line 99
  307.             echo "\t\t\t\t\t\t\t\t\t\t</h1>
  308. \t\t\t\t\t\t\t\t\t";
  309.         } else {
  310.             // line 101
  311.             echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
  312.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\DiscussionBundle\Twig\DiscussionTabsExtension']->getDiscussionSearchTabsTitle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 102
  313. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'102$this->source); })()), "request", [], "any"falsefalsefalse102), "get", [=> "tab"=> 1], "method"falsefalsefalse102))), "html"nulltrue);
  314.             echo "
  315. \t\t\t\t\t\t\t\t\t\t\t";
  316.             // line 103
  317.             if ((twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'103$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse103) != 1)) {
  318.                 // line 104
  319.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  320.                 echo twig_escape_filter($this->env, (" - " $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.description.page", ["%page_number%" => twig_get_attribute($this->env$this->source, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'104$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse104)])), "html"nulltrue);
  321.                 echo "
  322. \t\t\t\t\t\t\t\t\t\t\t";
  323.             }
  324.             // line 106
  325.             echo "\t\t\t\t\t\t\t\t\t\t</h1>
  326. \t\t\t\t\t\t\t\t\t";
  327.         }
  328.         // line 108
  329.         echo "\t\t\t\t\t\t\t\t</div>
  330. \t\t\t\t\t\t\t\t<div class=\"discussion-form-containers\">
  331. \t\t\t\t\t\t\t\t\t";
  332.         // line 110
  333.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'110$this->source); })()), 'form_start', ["attr" => ["class" => "discussion-search-form"]]);
  334.         echo "
  335. \t\t\t\t\t\t\t\t\t<div class=\"discussion-search-location\">
  336. \t\t\t\t\t\t\t\t\t\t";
  337.         // line 112
  338.         if (twig_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.'112$this->source); })()), "request", [], "any"falsefalsefalse112), "get", [=> "location"], "method"falsefalsefalse112)) {
  339.             // line 113
  340.             echo "\t\t\t\t\t\t\t\t\t\t\t";
  341.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'113$this->source); })()), "location", [], "any"falsefalsefalse113), 'widget', ["value" => twig_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.'113$this->source); })()), "request", [], "any"falsefalsefalse113), "get", [=> "location"], "method"falsefalsefalse113), "attr" => ["class" => "chosen""ng-init" => ("locationSelect=" twig_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.'113$this->source); })()), "request", [], "any"falsefalsefalse113), "get", [=> "location"], "method"falsefalsefalse113)), "ng-model" => "locationSelect"]]);
  342.             echo "
  343. \t\t\t\t\t\t\t\t\t\t";
  344.         } else {
  345.             // line 115
  346.             echo "\t\t\t\t\t\t\t\t\t\t\t";
  347.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'115$this->source); })()), "location", [], "any"falsefalsefalse115), 'widget', ["value" => twig_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.'115$this->source); })()), "request", [], "any"falsefalsefalse115), "get", [=> "location"], "method"falsefalsefalse115), "attr" => ["class" => "chosen""ng-model" => "locationSelect"]]);
  348.             echo "
  349. \t\t\t\t\t\t\t\t\t\t";
  350.         }
  351.         // line 117
  352.         echo "\t\t\t\t\t\t\t\t\t</div>
  353. \t\t\t\t\t\t\t\t\t<div class=\"discussion-search-category\">
  354. \t\t\t\t\t\t\t\t\t\t";
  355.         // line 119
  356.         if (twig_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.'119$this->source); })()), "request", [], "any"falsefalsefalse119), "get", [=> "category"], "method"falsefalsefalse119)) {
  357.             // line 120
  358.             echo "\t\t\t\t\t\t\t\t\t\t\t";
  359.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'120$this->source); })()), "category", [], "any"falsefalsefalse120), 'widget', ["value" => twig_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.'120$this->source); })()), "request", [], "any"falsefalsefalse120), "get", [=> "category"=> ""], "method"falsefalsefalse120), "attr" => ["ng-init" => ("categorySelect=" twig_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.'120$this->source); })()), "request", [], "any"falsefalsefalse120), "get", [=> "category"], "method"falsefalsefalse120)), "ng-model" => "categorySelect"]]);
  360.             echo "
  361. \t\t\t\t\t\t\t\t\t\t";
  362.         } else {
  363.             // line 122
  364.             echo "\t\t\t\t\t\t\t\t\t\t\t";
  365.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'122$this->source); })()), "category", [], "any"falsefalsefalse122), 'widget', ["value" => twig_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.'122$this->source); })()), "request", [], "any"falsefalsefalse122), "get", [=> "category"=> ""], "method"falsefalsefalse122), "attr" => ["ng-model" => "categorySelect"]]);
  366.             echo "
  367. \t\t\t\t\t\t\t\t\t\t";
  368.         }
  369.         // line 124
  370.         echo "\t\t\t\t\t\t\t\t\t</div>
  371. \t\t\t\t\t\t\t\t\t";
  372.         // line 125
  373.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["discussionSearchForm"]) || array_key_exists("discussionSearchForm"$context) ? $context["discussionSearchForm"] : (function () { throw new RuntimeError('Variable "discussionSearchForm" does not exist.'125$this->source); })()), 'form_end');
  374.         echo "
  375. \t\t\t\t\t\t\t\t</div>
  376. \t\t\t\t\t\t\t\t<div class=\"discussions-table-container\">
  377. \t\t\t\t\t\t\t\t\t";
  378.         // line 128
  379.         if ((twig_length_filter($this->env, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'128$this->source); })())) == 0)) {
  380.             // line 129
  381.             echo "\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-no-result\">
  382. \t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning no-result-container\">
  383. \t\t\t\t\t\t\t\t\t\t\t\t";
  384.             // line 131
  385.             if (((array_key_exists("location"$context) &&  !twig_test_empty((isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'131$this->source); })()))) && 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.'131$this->source); })()), "parent", [], "any"falsefalsefalse131))) {
  386.                 // line 132
  387.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">";
  388.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.no_results_try_parent", ["%location%" => (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'132$this->source); })()), "%parent%" => 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.'132$this->source); })()), "parent", [], "any"falsefalsefalse132), "%url%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.'132$this->source); })()), "request", [], "any"falsefalsefalse132), "attributes", [], "any"falsefalsefalse132), "get", [=> "_route"], "method"falsefalsefalse132), twig_array_merge(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.'132$this->source); })()), "request", [], "any"falsefalsefalse132), "query", [], "any"falsefalsefalse132), "all", [], "any"falsefalsefalse132), ["location" => twig_get_attribute($this->env$this->sourcetwig_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.'132$this->source); })()), "parent", [], "any"falsefalsefalse132), "id", [], "any"falsefalsefalse132)]))]);
  389.                 echo "</p>
  390. \t\t\t\t\t\t\t\t\t\t\t\t";
  391.             } else {
  392.                 // line 134
  393.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">";
  394.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.no_results_try_trending", ["%url%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["category" => twig_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.'134$this->source); })()), "request", [], "any"falsefalsefalse134), "get", [=> "category"], "method"falsefalsefalse134)])]);
  395.                 echo "</p>
  396. \t\t\t\t\t\t\t\t\t\t\t\t";
  397.             }
  398.             // line 136
  399.             echo "\t\t\t\t\t\t\t\t\t\t\t</div>
  400. \t\t\t\t\t\t\t\t\t\t</div>
  401. \t\t\t\t\t\t\t\t\t";
  402.         }
  403.         // line 139
  404.         echo "\t\t\t\t\t\t\t\t\t<div class=\"tabbable-panel\">
  405. \t\t\t\t\t\t\t\t\t\t<div class=\"tabbable-line\">
  406. \t\t\t\t\t\t\t\t\t\t\t<ul class=\"nav nav-tabs \">
  407. \t\t\t\t\t\t\t\t\t\t\t\t";
  408.         // line 142
  409.         $context['_parent'] = $context;
  410.         $context['_seq'] = twig_ensure_traversable($this->extensions['Aqarmap\Bundle\DiscussionBundle\Twig\DiscussionTabsExtension']->getDiscussionSearchTabs());
  411.         foreach ($context['_seq'] as $context["status"] => $context["label"]) {
  412.             // line 143
  413.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<li
  414. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  415.             // line 144
  416.             if ((twig_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.'144$this->source); })()), "request", [], "any"falsefalsefalse144), "get", [=> "tab"=> 1], "method"falsefalsefalse144) == $context["status"])) {
  417.                 echo " class=\"active\" ";
  418.             }
  419.             echo ">
  420. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  421.             // line 146
  422.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a ng-init=\"currentTab=";
  423.             echo twig_escape_filter($this->envtwig_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.'146$this->source); })()), "request", [], "any"falsefalsefalse146), "get", [=> "tab"=> 1], "method"falsefalsefalse146), "html"nulltrue);
  424.             echo ";\" href=\"";
  425.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["tab" => $context["status"], "location" => twig_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.'146$this->source); })()), "request", [], "any"falsefalsefalse146), "get", [=> "location"], "method"falsefalsefalse146), "category" => twig_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.'146$this->source); })()), "request", [], "any"falsefalsefalse146), "get", [=> "category"], "method"falsefalsefalse146)]), "html"nulltrue);
  426.             echo "\">";
  427.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["label"]), "html"nulltrue);
  428.             echo "</a>
  429. \t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  430. \t\t\t\t\t\t\t\t\t\t\t\t";
  431.         }
  432.         $_parent $context['_parent'];
  433.         unset($context['_seq'], $context['_iterated'], $context['status'], $context['label'], $context['_parent'], $context['loop']);
  434.         $context array_intersect_key($context$_parent) + $_parent;
  435.         // line 149
  436.         echo "\t\t\t\t\t\t\t\t\t\t\t</ul>
  437. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content\">
  438. \t\t\t\t\t\t\t\t\t\t\t\t";
  439.         // line 151
  440.         if ((twig_length_filter($this->env, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'151$this->source); })())) == 0)) {
  441.             // line 152
  442.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result\">
  443. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result-holder\">
  444. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-question-circle\" aria-hidden=\"true\"></i>
  445. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  446.             // line 155
  447.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.no_results_tabs_found"), "html"nulltrue);
  448.             echo "</p>
  449. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  450. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  451. \t\t\t\t\t\t\t\t\t\t\t\t";
  452.         } else {
  453.             // line 159
  454.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-pane active\" id=\"tab_1\">
  455. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  456.             // line 160
  457.             $context['_parent'] = $context;
  458.             $context['_seq'] = twig_ensure_traversable((isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'160$this->source); })()));
  459.             foreach ($context['_seq'] as $context["_key"] => $context["discussion"]) {
  460.                 // line 161
  461.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media\">
  462. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media-body\">
  463. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"media-heading\">
  464. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"title-link\" target=\"_blank\" href=\"";
  465.                 // line 164
  466.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_comments", ["discussion" => twig_get_attribute($this->env$this->source$context["discussion"], "id", [], "any"falsefalsefalse164), "utm_source" => "system""utm_medium" => "search""utm_campaign" => "view_question"]), "html"nulltrue);
  467.                 echo "\" class=\"\">
  468. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  469.                 // line 165
  470.                 echo twig_slice($this->envtwig_get_attribute($this->env$this->source$context["discussion"], "content", [], "any"falsefalsefalse165), 087);
  471.                 echo "
  472. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  473. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
  474. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  475. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-8 pull-left flip\">
  476. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p id=\"discussion-p\">
  477. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  478.                 // line 171
  479.                 if (twig_get_attribute($this->env$this->source$context["discussion"], "category", [], "any"falsefalsefalse171)) {
  480.                     // line 172
  481.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"content-link\" target=\"_blank\" href=\"";
  482.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["category" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["discussion"], "category", [], "any"falsefalsefalse172), "id", [], "any"falsefalsefalse172)]), "html"nulltrue);
  483.                     echo "\" class=\"\">
  484. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  485.                     // line 173
  486.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["discussion"], "category", [], "any"falsefalsefalse173), "title", [], "any"falsefalsefalse173), "html"nulltrue);
  487.                     echo "
  488. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  489. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  490.                 }
  491.                 // line 176
  492.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  493.                 if (twig_get_attribute($this->env$this->source$context["discussion"], "location", [], "any"falsefalsefalse176)) {
  494.                     // line 177
  495.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span id=\"discussion-location-category-parser\">";
  496.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in"), "html"nulltrue);
  497.                     echo "</span>
  498. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"content-link\" target=\"_blank\" href=\"";
  499.                     // line 178
  500.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["location" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["discussion"], "location", [], "any"falsefalsefalse178), "id", [], "any"falsefalsefalse178)]), "html"nulltrue);
  501.                     echo "\" class=\"\">
  502. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  503.                     // line 179
  504.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["discussion"], "location", [], "any"falsefalsefalse179), "title", [], "any"falsefalsefalse179), "html"nulltrue);
  505.                     echo "
  506. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  507. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  508.                 }
  509.                 // line 182
  510.                 echo "
  511. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
  512. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  513. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-4 pull-right flip\">
  514. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small id=\"discussions_comment_label\" class=\"\">
  515. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  516. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
  517.                 // line 188
  518.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_comments", ["discussion" => twig_get_attribute($this->env$this->source$context["discussion"], "id", [], "any"falsefalsefalse188)]), "html"nulltrue);
  519.                 echo "\" class=\"\">
  520. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-comment-o\" aria-hidden=\"true\"></i>
  521. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  522.                 // line 190
  523.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["discussion"], "commentsCounter", [], "any"falsefalsefalse190), "html"nulltrue);
  524.                 echo "
  525. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  526.                 // line 191
  527.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.comments"), "html"nulltrue);
  528.                 echo "
  529. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  530. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  531. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</small>
  532. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  533. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  534. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  535. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  536. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>
  537. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  538.             }
  539.             $_parent $context['_parent'];
  540.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discussion'], $context['_parent'], $context['loop']);
  541.             $context array_intersect_key($context$_parent) + $_parent;
  542.             // line 203
  543.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  544.             echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'203$this->source); })()));
  545.             echo "
  546. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  547. \t\t\t\t\t\t\t\t\t\t\t\t";
  548.         }
  549.         // line 206
  550.         echo "\t\t\t\t\t\t\t\t\t\t\t</div>
  551. \t\t\t\t\t\t\t\t\t\t</div>
  552. \t\t\t\t\t\t\t\t\t</div>
  553. \t\t\t\t\t\t\t\t</div>
  554. \t\t\t\t\t\t\t</div>
  555. \t\t\t\t\t\t</div>
  556. \t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
  557. \t\t\t\t\t</div>
  558. \t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 panel-white padding-md-zero\">
  559. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-xs\">
  560. \t\t\t\t\t\t\t<div class=\"page-header\">
  561. \t\t\t\t\t\t\t\t<h2 class=\"custom-header\">";
  562.         // line 217
  563.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title"), "html"nulltrue);
  564.         echo "</h2>
  565. \t\t\t\t\t\t\t\t<p class=\"discussion-form-sub-title\">";
  566.         // line 218
  567.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title"), "html"nulltrue);
  568.         echo "</p>
  569. \t\t\t\t\t\t\t</div>
  570. \t\t\t\t\t\t\t<div class=\"row\">
  571. \t\t\t\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = true;\">
  572. \t\t\t\t\t\t\t\t\t";
  573.         // line 222
  574.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["discussionForm"]) || array_key_exists("discussionForm"$context) ? $context["discussionForm"] : (function () { throw new RuntimeError('Variable "discussionForm" does not exist.'222$this->source); })()), 'form_start', ["attr" => ["ng-submit" => "submitDiscussion(\$event, data)"]]);
  575.         echo "
  576. \t\t\t\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
  577. \t\t\t\t\t\t\t\t\t\t<div id=\"location_search\">
  578. \t\t\t\t\t\t\t\t\t\t\t";
  579.         // line 225
  580.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionForm"]) || array_key_exists("discussionForm"$context) ? $context["discussionForm"] : (function () { throw new RuntimeError('Variable "discussionForm" does not exist.'225$this->source); })()), "location", [], "any"falsefalsefalse225), 'widget', ["attr" => ["class" => "chosen"]]);
  581.         echo "
  582. \t\t\t\t\t\t\t\t\t\t</div>
  583. \t\t\t\t\t\t\t\t\t\t";
  584.         // line 227
  585.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionForm"]) || array_key_exists("discussionForm"$context) ? $context["discussionForm"] : (function () { throw new RuntimeError('Variable "discussionForm" does not exist.'227$this->source); })()), "category", [], "any"falsefalsefalse227), 'widget');
  586.         echo "
  587. \t\t\t\t\t\t\t\t\t</div>
  588. \t\t\t\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
  589. \t\t\t\t\t\t\t\t\t\t";
  590.         // line 230
  591.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["discussionForm"]) || array_key_exists("discussionForm"$context) ? $context["discussionForm"] : (function () { throw new RuntimeError('Variable "discussionForm" does not exist.'230$this->source); })()), "content", [], "any"falsefalsefalse230), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title_placeholder", ["%location%" => ""], "messages"), "ng-click" => "showFormData = true;"]]);
  592.         // line 232
  593.         echo "
  594. \t\t\t\t\t\t\t\t\t</div>
  595. \t\t\t\t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"btn btn-primary btn-block\">";
  596.         // line 234
  597.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.share"), "html"nulltrue);
  598.         echo "
  599. \t\t\t\t\t\t\t\t\t</button>
  600. \t\t\t\t\t\t\t\t\t";
  601.         // line 236
  602.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["discussionForm"]) || array_key_exists("discussionForm"$context) ? $context["discussionForm"] : (function () { throw new RuntimeError('Variable "discussionForm" does not exist.'236$this->source); })()), 'form_end');
  603.         echo "
  604. \t\t\t\t\t\t\t\t</div>
  605. \t\t\t\t\t\t\t</div>
  606. \t\t\t\t\t\t</div>
  607. \t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
  608. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  609. \t\t\t\t\t\t\t";
  610.         // line 242
  611.         if ((twig_length_filter($this->env, (isset($context["interestsListings"]) || array_key_exists("interestsListings"$context) ? $context["interestsListings"] : (function () { throw new RuntimeError('Variable "interestsListings" does not exist.'242$this->source); })())) > 0)) {
  612.             // line 243
  613.             echo "\t\t\t\t\t\t\t\t<div class=\"page-header\">
  614. \t\t\t\t\t\t\t\t\t<h2 class=\"custom-small-header\">";
  615.             // line 244
  616.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("advice.Properties_intersted_in"), "html"nulltrue);
  617.             echo "
  618. \t\t\t\t\t\t\t\t\t</h2>
  619. \t\t\t\t\t\t\t\t</div>
  620. \t\t\t\t\t\t\t";
  621.         }
  622.         // line 248
  623.         echo "\t\t\t\t\t\t\t<div class=\"interested-listings \">
  624. \t\t\t\t\t\t\t\t";
  625.         // line 249
  626.         $this->loadTemplate("@AqarmapDiscussionBundle/Discussion/ListingsYouMaybeInterestedIn.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"249)->display($context);
  627.         // line 250
  628.         echo "\t\t\t\t\t\t\t</div>
  629. \t\t\t\t\t\t</div>
  630. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
  631. \t\t\t\t\t\t\t";
  632.         // line 253
  633.         $context["discussions_breadcrumb"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.askNeighbors.breadcrumb", [], ["location" => twig_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.'253$this->source); })()), "request", [], "any"falsefalsefalse253), "get", [=> "location"], "method"falsefalsefalse253), "category" => twig_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.'253$this->source); })()), "request", [], "any"falsefalsefalse253), "get", [=> "category"], "method"falsefalsefalse253)]);
  634.         // line 254
  635.         echo "\t\t\t\t\t\t\t";
  636.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render((isset($context["discussions_breadcrumb"]) || array_key_exists("discussions_breadcrumb"$context) ? $context["discussions_breadcrumb"] : (function () { throw new RuntimeError('Variable "discussions_breadcrumb" does not exist.'254$this->source); })()), ["allow_safe_labels" => true"template" => "knp_breadcrumbs.html.twig""currentAsLink" => true"currentClass" => "active"]);
  637.         // line 259
  638.         echo "
  639. \t\t\t\t\t\t</div>
  640. \t\t\t\t\t\t";
  641.         // line 261
  642.         if ((( !$this->extensions['Aqarmap\Bundle\ListingBundle\Twig\TopCompaniesExtension']->isLastPage((isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'261$this->source); })())) && (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'261$this->source); })())) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.topsellers.section"))) {
  643.             // line 262
  644.             echo "\t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 discussions-top-sellers-container\">
  645. \t\t\t\t\t\t\t\t<div>
  646. \t\t\t\t\t\t\t\t\t";
  647.             // line 264
  648.             $this->loadTemplate("@AqarmapListing/ListingSearch/topSellersResponsive.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"264)->display(twig_array_merge($context, ["trigger" => (isset($context["topSellerTrigger"]) || array_key_exists("topSellerTrigger"$context) ? $context["topSellerTrigger"] : (function () { throw new RuntimeError('Variable "topSellerTrigger" does not exist.'264$this->source); })()), "eventAction" => (isset($context["topSellerEventAction"]) || array_key_exists("topSellerEventAction"$context) ? $context["topSellerEventAction"] : (function () { throw new RuntimeError('Variable "topSellerEventAction" does not exist.'264$this->source); })()), "leadSourcePage" => "ask_neighbors"]));
  649.             // line 265
  650.             echo "\t\t\t\t\t\t\t\t</div>
  651. \t\t\t\t\t\t\t</div>
  652. \t\t\t\t\t\t\t<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
  653. \t\t\t\t\t\t\t\t";
  654.             // line 268
  655.             echo twig_include($this->env$context"@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig");
  656.             echo "
  657. \t\t\t\t\t\t\t</div>
  658. \t\t\t\t\t\t";
  659.         }
  660.         // line 271
  661.         echo "\t\t\t\t\t\t";
  662.         if ((twig_length_filter($this->env, (isset($context["popularArticles"]) || array_key_exists("popularArticles"$context) ? $context["popularArticles"] : (function () { throw new RuntimeError('Variable "popularArticles" does not exist.'271$this->source); })())) > 0)) {
  663.             // line 272
  664.             echo "\t\t\t\t\t\t\t";
  665.             $this->loadTemplate("@AqarmapDiscussion/Discussion/popularArticles.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"272)->display($context);
  666.             // line 273
  667.             echo "\t\t\t\t\t\t";
  668.         }
  669.         // line 274
  670.         echo "\t\t\t\t\t</div>
  671. \t\t\t\t</div>
  672. \t\t\t\t";
  673.         // line 276
  674.         if ((($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\TopCompaniesExtension']->isLastPage((isset($context["discussions"]) || array_key_exists("discussions"$context) ? $context["discussions"] : (function () { throw new RuntimeError('Variable "discussions" does not exist.'276$this->source); })())) && (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'276$this->source); })())) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.topsellers.section"))) {
  675.             // line 277
  676.             echo "\t\t\t\t\t<div class=\"row\">
  677. \t\t\t\t\t\t<div class=\"col visible-sm visible-lg\">
  678. \t\t\t\t\t\t\t<div class=\"top-sellers-warp-cards w-100\">
  679. \t\t\t\t\t\t\t\t";
  680.             // line 280
  681.             $this->loadTemplate("@AqarmapListing/ListingSearch/topSellersResponsive.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"280)->display(twig_array_merge($context, ["trigger" => (isset($context["topSellerTrigger"]) || array_key_exists("topSellerTrigger"$context) ? $context["topSellerTrigger"] : (function () { throw new RuntimeError('Variable "topSellerTrigger" does not exist.'280$this->source); })()), "eventAction" => (isset($context["topSellerEventAction"]) || array_key_exists("topSellerEventAction"$context) ? $context["topSellerEventAction"] : (function () { throw new RuntimeError('Variable "topSellerEventAction" does not exist.'280$this->source); })()), "position" => "bottom""leadSourcePage" => "ask_neighbors"]));
  682.             // line 281
  683.             echo "\t\t\t\t\t\t\t</div>
  684. \t\t\t\t\t\t</div>
  685. \t\t\t\t\t</div>
  686. \t\t\t\t\t";
  687.             // line 284
  688.             echo twig_include($this->env$context"@AqarmapUserBundle/User/listingQuickLeadModal.html.twig");
  689.             echo "
  690. \t\t\t\t";
  691.         }
  692.         // line 286
  693.         echo "\t\t\t\t<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
  694. \t\t\t\t\t";
  695.         // line 287
  696.         $this->loadTemplate("@AqarmapMainBundle/Default/locationsSubLinks.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"287)->display($context);
  697.         // line 288
  698.         echo "\t\t\t\t</div>
  699. \t\t\t</div>
  700. \t\t</div>
  701. \t\t";
  702.         // line 291
  703.         echo twig_include($this->env$context"@AqarmapUserBundle/User/loginModal.html.twig");
  704.         echo "
  705. \t</section>
  706. ";
  707.         
  708.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  709.         
  710.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  711.     }
  712.     // line 295
  713.     public function block_footer($context, array $blocks = [])
  714.     {
  715.         $macros $this->macros;
  716.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  717.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  718.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  719.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  720.         // line 296
  721.         echo "\t";
  722.         $this->loadTemplate("footer.v2.html.twig""@AqarmapDiscussionBundle/Discussion/discussions.html.twig"296)->display($context);
  723.         
  724.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  725.         
  726.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  727.     }
  728.     // line 299
  729.     public function block_javascripts($context, array $blocks = [])
  730.     {
  731.         $macros $this->macros;
  732.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  733.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  734.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  735.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  736.         // line 300
  737.         echo "\t";
  738.         $this->displayParentBlock("javascripts"$context$blocks);
  739.         echo "
  740. \t<script>
  741. \t\tjQuery(document).ready(function (\$) {
  742. loadMoreInit('.sectionLoadMore');
  743. });
  744. \t</script>
  745. ";
  746.         
  747.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  748.         
  749.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  750.     }
  751.     // line 308
  752.     public function macro_pagination_meta($__pagination__ null, ...$__varargs__)
  753.     {
  754.         $macros $this->macros;
  755.         $context $this->env->mergeGlobals([
  756.             "pagination" => $__pagination__,
  757.             "varargs" => $__varargs__,
  758.         ]);
  759.         $blocks = [];
  760.         ob_start();
  761.         try {
  762.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  763.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""pagination_meta"));
  764.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  765.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""pagination_meta"));
  766.             // line 309
  767.             echo "\t";
  768.             $context["total"] = twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'309$this->source); })()), "totalItemCount", [], "any"falsefalsefalse309);
  769.             // line 310
  770.             echo "\t";
  771.             $context["items_per_age"] = twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'310$this->source); })()), "itemNumberPerPage", [], "any"falsefalsefalse310);
  772.             // line 311
  773.             echo "\t";
  774.             $context["current"] = twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'311$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse311);
  775.             // line 312
  776.             echo "\t";
  777.             $context["last"] = twig_round(((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'312$this->source); })()) / (isset($context["items_per_age"]) || array_key_exists("items_per_age"$context) ? $context["items_per_age"] : (function () { throw new RuntimeError('Variable "items_per_age" does not exist.'312$this->source); })())), 0"ceil");
  778.             // line 313
  779.             echo "\t";
  780.             $context["page_parameter"] = twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'313$this->source); })()), "paginatorOption", [=> "pageParameterName"], "method"falsefalsefalse313);
  781.             // line 314
  782.             echo "
  783. \t";
  784.             // line 315
  785.             if ((((isset($context["current"]) || array_key_exists("current"$context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.'315$this->source); })()) != 1) && (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'315$this->source); })()))) {
  786.                 // line 316
  787.                 echo "\t\t<link rel=\"prev\" href=\"";
  788.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.'316$this->source); })()), "request", [], "any"falsefalsefalse316), "attributes", [], "any"falsefalsefalse316), "get", [=> "_route"], "method"falsefalsefalse316), twig_array_merge(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.'316$this->source); })()), "request", [], "any"falsefalsefalse316), "query", [], "any"falsefalsefalse316), "all", [], "any"falsefalsefalse316), [(isset($context["page_parameter"]) || array_key_exists("page_parameter"$context) ? $context["page_parameter"] : (function () { throw new RuntimeError('Variable "page_parameter" does not exist.'316$this->source); })()) => ((isset($context["current"]) || array_key_exists("current"$context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.'316$this->source); })()) - 1)])), "html"nulltrue);
  789.                 echo "\"/>
  790. \t";
  791.             }
  792.             // line 318
  793.             echo "\t";
  794.             if ((((isset($context["current"]) || array_key_exists("current"$context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.'318$this->source); })()) != (isset($context["last"]) || array_key_exists("last"$context) ? $context["last"] : (function () { throw new RuntimeError('Variable "last" does not exist.'318$this->source); })())) && (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'318$this->source); })()))) {
  795.                 // line 319
  796.                 echo "\t\t<link rel=\"next\" href=\"";
  797.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.'319$this->source); })()), "request", [], "any"falsefalsefalse319), "attributes", [], "any"falsefalsefalse319), "get", [=> "_route"], "method"falsefalsefalse319), twig_array_merge(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.'319$this->source); })()), "request", [], "any"falsefalsefalse319), "query", [], "any"falsefalsefalse319), "all", [], "any"falsefalsefalse319), [(isset($context["page_parameter"]) || array_key_exists("page_parameter"$context) ? $context["page_parameter"] : (function () { throw new RuntimeError('Variable "page_parameter" does not exist.'319$this->source); })()) => ((isset($context["current"]) || array_key_exists("current"$context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.'319$this->source); })()) + 1)])), "html"nulltrue);
  798.                 echo "\"/>
  799. \t";
  800.             }
  801.             
  802.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  803.             
  804.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  805.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  806.         } finally {
  807.             ob_end_clean();
  808.         }
  809.     }
  810.     public function getTemplateName()
  811.     {
  812.         return "@AqarmapDiscussionBundle/Discussion/discussions.html.twig";
  813.     }
  814.     public function isTraitable()
  815.     {
  816.         return false;
  817.     }
  818.     public function getDebugInfo()
  819.     {
  820.         return array (  855 => 319,  852 => 318,  846 => 316,  844 => 315,  841 => 314,  838 => 313,  835 => 312,  832 => 311,  829 => 310,  826 => 309,  807 => 308,  789 => 300,  779 => 299,  768 => 296,  758 => 295,  745 => 291,  740 => 288,  738 => 287,  735 => 286,  730 => 284,  725 => 281,  723 => 280,  718 => 277,  716 => 276,  712 => 274,  709 => 273,  706 => 272,  703 => 271,  697 => 268,  692 => 265,  690 => 264,  686 => 262,  684 => 261,  680 => 259,  677 => 254,  675 => 253,  670 => 250,  668 => 249,  665 => 248,  658 => 244,  655 => 243,  653 => 242,  644 => 236,  639 => 234,  635 => 232,  633 => 230,  627 => 227,  622 => 225,  616 => 222,  609 => 218,  605 => 217,  592 => 206,  585 => 203,  567 => 191,  563 => 190,  558 => 188,  550 => 182,  544 => 179,  540 => 178,  535 => 177,  532 => 176,  526 => 173,  521 => 172,  519 => 171,  510 => 165,  506 => 164,  501 => 161,  497 => 160,  494 => 159,  487 => 155,  482 => 152,  480 => 151,  476 => 149,  462 => 146,  456 => 144,  453 => 143,  449 => 142,  444 => 139,  439 => 136,  433 => 134,  427 => 132,  425 => 131,  421 => 129,  419 => 128,  413 => 125,  410 => 124,  404 => 122,  398 => 120,  396 => 119,  392 => 117,  386 => 115,  380 => 113,  378 => 112,  373 => 110,  369 => 108,  365 => 106,  359 => 104,  357 => 103,  353 => 102,  351 => 101,  347 => 99,  341 => 97,  339 => 96,  335 => 95,  334 => 94,  332 => 93,  330 => 92,  327 => 91,  321 => 89,  319 => 88,  315 => 87,  314 => 86,  312 => 85,  309 => 84,  307 => 83,  299 => 77,  296 => 72,  294 => 71,  280 => 60,  275 => 58,  270 => 56,  265 => 54,  260 => 52,  253 => 48,  248 => 46,  241 => 42,  237 => 41,  232 => 38,  229 => 37,  227 => 36,  222 => 35,  212 => 34,  200 => 31,  196 => 30,  192 => 29,  188 => 28,  183 => 27,  173 => 26,  161 => 22,  158 => 21,  148 => 20,  135 => 18,  125 => 17,  113 => 15,  107 => 13,  97 => 12,  83 => 5,  73 => 4,  62 => 1,  60 => 10,  58 => 9,  56 => 2,  43 => 1,);
  821.     }
  822.     public function getSourceContext()
  823.     {
  824.         return new Source("{% extends \"base.html.twig\" %}
  825. {% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
  826. {% block stylesheets %}
  827. \t{{ parent() }}
  828. \t<link rel=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">
  829. {% endblock %}
  830. {# Page title #}
  831. {% set pageTitle = selectedCategory ? 'neighborhoods.discussion.explore_category_title_in'|trans({'%category%': selectedCategory.title}) : 'neighborhoods.discussion.main_title'|trans %}
  832. {% set pageTitle = location ? 'neighborhoods.discussion.explore_title_in'|trans({'%location%': location.title}) : pageTitle %}
  833. {% block title %}
  834. \t{{ pageTitle }}
  835. \t&bull;
  836. \t{{ parent() }}
  837. {% endblock %}
  838. {% block meta_description %}
  839. \t{{ metaDescriptionContent }}
  840. {% endblock %}
  841. {% block metatags %}
  842. \t{% if discussions|length == 0 %}
  843. \t\t<meta name=\"robots\" content=\"noindex\">
  844. \t{% endif %}
  845. {% endblock %}
  846. {% block htmlhead %}
  847. \t<link rel=\"canonical\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': app.request.get('_locale')})) }}\"/>
  848. \t<link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'ar'})) }}\"/>
  849. \t<link rel=\"alternate\" hreflang=\"en\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'en'})) }}\"/>
  850. \t<link rel=\"alternate\" hreflang=\"x-default\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'ar'})) }}\"/>
  851. \t{{ _self.pagination_meta(discussions) }}
  852. {% endblock %}
  853. {% block body %}
  854. \t<section id=\"{{ app.request.get('_route') }}\" ng-controller=\"neighborhoodDiscussionController\">
  855. \t\t{% set topSellerTrigger = 'gtm-action-topsellers-lead-ask-neighbors' %}
  856. \t\t{% set topSellerEventAction = 'Top Sellers Ask Neighbors'%}
  857. \t\t<div class=\"resposive-add-discussion-conatiner hidden-md hidden-lg hidden-sm\">
  858. \t\t\t<div class=\"container\">
  859. \t\t\t\t<div class=\"page-header\">
  860. \t\t\t\t\t<h2 class=\"custom-header\">{{ \"neighborhoods.discussion.main_title\"|trans }}</h2>
  861. \t\t\t\t\t<p class=\"discussion-form-sub-title responsive_style hidden-xs\">{{ \"neighborhoods.discussion.sub_title\"|trans }}</p>
  862. \t\t\t\t</div>
  863. \t\t\t\t<div class=\"row\">
  864. \t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = false;discussionContent='';\">
  865. \t\t\t\t\t\t{{ form_start(responsiveDiscussionForm, {attr: {'ng-submit': 'submitDiscussion(\$event, data)'}}) }}
  866. \t\t\t\t\t\t<div class=\"discussion-form-textarea\">
  867. \t\t\t\t\t\t\t{{ form_widget(responsiveDiscussionForm.content, {'attr': {'placeholder': \"neighborhoods.discussion.sub_title_placeholder\"|trans({'%location%': ''}, 'messages'), 'ng-click' : 'showFormData = true;', 'ng-model' : 'discussionContent'  } }) }}
  868. \t\t\t\t\t\t</div>
  869. \t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
  870. \t\t\t\t\t\t\t<div id=\"location_search\">
  871. \t\t\t\t\t\t\t\t{{ form_widget(responsiveDiscussionForm.location, { 'attr' : { 'class' : 'chosen'}}) }}
  872. \t\t\t\t\t\t\t</div>
  873. \t\t\t\t\t\t\t{{ form_widget(responsiveDiscussionForm.category) }}
  874. \t\t\t\t\t\t</div>
  875. \t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"darken btn btn-lg  btn-primary btn-block\">{{ \"neighborhoods.discussion.share\"|trans }}
  876. \t\t\t\t\t\t</button>
  877. \t\t\t\t\t\t{{ form_end(responsiveDiscussionForm) }}
  878. \t\t\t\t\t\t<div class=\"cancel-button\">
  879. \t\t\t\t\t\t\t<a href=\"\" class=\"text-center\" ng-click=\"showFormData = false;discussionContent='';\" ng-show=\"showFormData\">{{ \"terms_conditions.cancel\"|trans }}</a>
  880. \t\t\t\t\t\t</div>
  881. \t\t\t\t\t</div>
  882. \t\t\t\t</div>
  883. \t\t\t</div>
  884. \t\t</div>
  885. \t\t<div class=\"discussions\">
  886. \t\t\t<div class=\"container\">
  887. \t\t\t\t<div class=\"row\">
  888. \t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-sm hidden-xs\">
  889. \t\t\t\t\t\t{% set discussions_breadcrumb = knp_menu_get( 'aqarmap.askNeighbors.breadcrumb' , [],{'location': app.request.get('location'), 'category': app.request.get('category')}) %}
  890. \t\t\t\t\t\t{{ knp_menu_render(discussions_breadcrumb, {
  891.                             'allow_safe_labels': true,
  892.                             'template': 'knp_breadcrumbs.html.twig',
  893.                             'currentAsLink': true,
  894.                             'currentClass': 'active'
  895.                         }) }}
  896. \t\t\t\t\t</div>
  897. \t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">
  898. \t\t\t\t\t\t<div class=\"row\">
  899. \t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  900. \t\t\t\t\t\t\t\t<div class=\"page-header\">
  901. \t\t\t\t\t\t\t\t\t{% set discussionLocationTitle = location ? location.title : '' %}
  902. \t\t\t\t\t\t\t\t\t{% if location %}
  903. \t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
  904.                                             getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans ~
  905.                                             'layout.in'|trans ~ discussionLocationTitle }}
  906. \t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
  907. \t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
  908. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  909. \t\t\t\t\t\t\t\t\t\t</h1>
  910. \t\t\t\t\t\t\t\t\t{% elseif selectedCategory %}
  911. \t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
  912.                                             getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans ~
  913.                                             'layout.in'|trans ~ selectedCategory.title }}
  914. \t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
  915. \t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
  916. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  917. \t\t\t\t\t\t\t\t\t\t</h1>
  918. \t\t\t\t\t\t\t\t\t{% else %}
  919. \t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
  920.                                             getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans }}
  921. \t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
  922. \t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
  923. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  924. \t\t\t\t\t\t\t\t\t\t</h1>
  925. \t\t\t\t\t\t\t\t\t{% endif %}
  926. \t\t\t\t\t\t\t\t</div>
  927. \t\t\t\t\t\t\t\t<div class=\"discussion-form-containers\">
  928. \t\t\t\t\t\t\t\t\t{{ form_start(discussionSearchForm, {'attr' : {'class' : 'discussion-search-form'}}) }}
  929. \t\t\t\t\t\t\t\t\t<div class=\"discussion-search-location\">
  930. \t\t\t\t\t\t\t\t\t\t{% if  app.request.get('location') %}
  931. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionSearchForm.location, { value : app.request.get('location'), 'attr' : { 'class' : 'chosen', 'ng-init' : 'locationSelect=' ~ app.request.get('location') , 'ng-model' : 'locationSelect' }}) }}
  932. \t\t\t\t\t\t\t\t\t\t{% else %}
  933. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionSearchForm.location, { value : app.request.get('location'), 'attr' : { 'class' : 'chosen', 'ng-model' : 'locationSelect' }}) }}
  934. \t\t\t\t\t\t\t\t\t\t{% endif %}
  935. \t\t\t\t\t\t\t\t\t</div>
  936. \t\t\t\t\t\t\t\t\t<div class=\"discussion-search-category\">
  937. \t\t\t\t\t\t\t\t\t\t{% if  app.request.get('category') %}
  938. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionSearchForm.category, {value : app.request.get('category', ''), 'attr' : { 'ng-init' : 'categorySelect=' ~ app.request.get('category'), 'ng-model' : 'categorySelect'}}) }}
  939. \t\t\t\t\t\t\t\t\t\t{% else %}
  940. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionSearchForm.category, {value : app.request.get('category', ''), 'attr' : { 'ng-model' : 'categorySelect'}}) }}
  941. \t\t\t\t\t\t\t\t\t\t{% endif %}
  942. \t\t\t\t\t\t\t\t\t</div>
  943. \t\t\t\t\t\t\t\t\t{{ form_end(discussionSearchForm) }}
  944. \t\t\t\t\t\t\t\t</div>
  945. \t\t\t\t\t\t\t\t<div class=\"discussions-table-container\">
  946. \t\t\t\t\t\t\t\t\t{% if discussions|length == 0 %}
  947. \t\t\t\t\t\t\t\t\t\t<div class=\"discussions-no-result\">
  948. \t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning no-result-container\">
  949. \t\t\t\t\t\t\t\t\t\t\t\t{% if location is defined and location is not empty and location.parent %}
  950. \t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">{{ \"neighborhoods.discussion.no_results_try_parent\"|trans({'%location%': location, '%parent%': location.parent, '%url%': path(app.request.attributes.get('_route'),app.request.query.all|merge({'location': location.parent.id}))})|raw }}</p>
  951. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  952. \t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">{{ \"neighborhoods.discussion.no_results_try_trending\"|trans({'%url%': path('neighborhood_discussion_list', {'category': app.request.get('category')})})|raw }}</p>
  953. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  954. \t\t\t\t\t\t\t\t\t\t\t</div>
  955. \t\t\t\t\t\t\t\t\t\t</div>
  956. \t\t\t\t\t\t\t\t\t{% endif %}
  957. \t\t\t\t\t\t\t\t\t<div class=\"tabbable-panel\">
  958. \t\t\t\t\t\t\t\t\t\t<div class=\"tabbable-line\">
  959. \t\t\t\t\t\t\t\t\t\t\t<ul class=\"nav nav-tabs \">
  960. \t\t\t\t\t\t\t\t\t\t\t\t{% for status, label in getDiscussionSearchTabs() %}
  961. \t\t\t\t\t\t\t\t\t\t\t\t\t<li
  962. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.request.get('tab', 1) == status %} class=\"active\" {% endif %}>
  963. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{#data-toggle=\"tab\"#}
  964. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a ng-init=\"currentTab={{ app.request.get('tab', 1) }};\" href=\"{{ path('neighborhood_discussion_list', { 'tab' : status, 'location' : app.request.get('location'), 'category' : app.request.get('category')}) }}\">{{ label|trans }}</a>
  965. \t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  966. \t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  967. \t\t\t\t\t\t\t\t\t\t\t</ul>
  968. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content\">
  969. \t\t\t\t\t\t\t\t\t\t\t\t{% if discussions|length == 0 %}
  970. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result\">
  971. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result-holder\">
  972. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-question-circle\" aria-hidden=\"true\"></i>
  973. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{ \"neighborhoods.discussion.no_results_tabs_found\"|trans }}</p>
  974. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  975. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  976. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  977. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-pane active\" id=\"tab_1\">
  978. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for discussion in discussions %}
  979. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media\">
  980. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media-body\">
  981. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"media-heading\">
  982. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"title-link\" target=\"_blank\" href=\"{{ path('neighborhood_discussion_comments', {'discussion': discussion.id, 'utm_source': 'system', 'utm_medium': 'search', 'utm_campaign': 'view_question'}) }}\" class=\"\">
  983. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ discussion.content|slice(0, 87)|raw }}
  984. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  985. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
  986. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  987. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-8 pull-left flip\">
  988. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p id=\"discussion-p\">
  989. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if discussion.category %}
  990. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"content-link\" target=\"_blank\" href=\"{{ path('neighborhood_discussion_list' , {'category': discussion.category.id }) }}\" class=\"\">
  991. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ discussion.category.title }}
  992. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  993. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  994. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if discussion.location %}
  995. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span id=\"discussion-location-category-parser\">{{ 'layout.in'|trans }}</span>
  996. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"content-link\" target=\"_blank\" href=\"{{ path('neighborhood_discussion_list' , {'location':discussion.location.id }) }}\" class=\"\">
  997. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ discussion.location.title }}
  998. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  999. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1000. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
  1001. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1002. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-4 pull-right flip\">
  1003. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small id=\"discussions_comment_label\" class=\"\">
  1004. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  1005. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"{{ path('neighborhood_discussion_comments' , {'discussion': discussion.id }) }}\" class=\"\">
  1006. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-comment-o\" aria-hidden=\"true\"></i>
  1007. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ discussion.commentsCounter }}
  1008. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \"neighborhoods.discussion.comments\"|trans }}
  1009. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  1010. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  1011. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</small>
  1012. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1013. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1014. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1015. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1016. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>
  1017. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1018. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(discussions) }}
  1019. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1020. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1021. \t\t\t\t\t\t\t\t\t\t\t</div>
  1022. \t\t\t\t\t\t\t\t\t\t</div>
  1023. \t\t\t\t\t\t\t\t\t</div>
  1024. \t\t\t\t\t\t\t\t</div>
  1025. \t\t\t\t\t\t\t</div>
  1026. \t\t\t\t\t\t</div>
  1027. \t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
  1028. \t\t\t\t\t</div>
  1029. \t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 panel-white padding-md-zero\">
  1030. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-xs\">
  1031. \t\t\t\t\t\t\t<div class=\"page-header\">
  1032. \t\t\t\t\t\t\t\t<h2 class=\"custom-header\">{{ \"neighborhoods.discussion.main_title\"|trans }}</h2>
  1033. \t\t\t\t\t\t\t\t<p class=\"discussion-form-sub-title\">{{ \"neighborhoods.discussion.sub_title\"|trans }}</p>
  1034. \t\t\t\t\t\t\t</div>
  1035. \t\t\t\t\t\t\t<div class=\"row\">
  1036. \t\t\t\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = true;\">
  1037. \t\t\t\t\t\t\t\t\t{{ form_start(discussionForm, {attr: {'ng-submit': 'submitDiscussion(\$event, data)'}}) }}
  1038. \t\t\t\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
  1039. \t\t\t\t\t\t\t\t\t\t<div id=\"location_search\">
  1040. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.location, { 'attr' : { 'class' : 'chosen'}}) }}
  1041. \t\t\t\t\t\t\t\t\t\t</div>
  1042. \t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.category) }}
  1043. \t\t\t\t\t\t\t\t\t</div>
  1044. \t\t\t\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
  1045. \t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.content,
  1046.                                             {'attr': {'placeholder': \"neighborhoods.discussion.sub_title_placeholder\"|trans({'%location%': ''}, 'messages'), 'ng-click' : 'showFormData = true;'} })
  1047.                                         }}
  1048. \t\t\t\t\t\t\t\t\t</div>
  1049. \t\t\t\t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"btn btn-primary btn-block\">{{ \"neighborhoods.discussion.share\"|trans }}
  1050. \t\t\t\t\t\t\t\t\t</button>
  1051. \t\t\t\t\t\t\t\t\t{{ form_end(discussionForm) }}
  1052. \t\t\t\t\t\t\t\t</div>
  1053. \t\t\t\t\t\t\t</div>
  1054. \t\t\t\t\t\t</div>
  1055. \t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
  1056. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
  1057. \t\t\t\t\t\t\t{% if interestsListings|length > 0 %}
  1058. \t\t\t\t\t\t\t\t<div class=\"page-header\">
  1059. \t\t\t\t\t\t\t\t\t<h2 class=\"custom-small-header\">{{ 'advice.Properties_intersted_in'|trans }}
  1060. \t\t\t\t\t\t\t\t\t</h2>
  1061. \t\t\t\t\t\t\t\t</div>
  1062. \t\t\t\t\t\t\t{% endif %}
  1063. \t\t\t\t\t\t\t<div class=\"interested-listings \">
  1064. \t\t\t\t\t\t\t\t{% include \"@AqarmapDiscussionBundle/Discussion/ListingsYouMaybeInterestedIn.html.twig\" %}
  1065. \t\t\t\t\t\t\t</div>
  1066. \t\t\t\t\t\t</div>
  1067. \t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
  1068. \t\t\t\t\t\t\t{% set discussions_breadcrumb = knp_menu_get( 'aqarmap.askNeighbors.breadcrumb' , [],{'location': app.request.get('location'), 'category': app.request.get('category')}) %}
  1069. \t\t\t\t\t\t\t{{ knp_menu_render(discussions_breadcrumb, {
  1070.                                 'allow_safe_labels': true,
  1071.                                 'template': 'knp_breadcrumbs.html.twig',
  1072.                                 'currentAsLink': true,
  1073.                                 'currentClass': 'active'
  1074.                             }) }}
  1075. \t\t\t\t\t\t</div>
  1076. \t\t\t\t\t\t{% if not isLastPage(discussions) and location and isEnabledFeature('web.topsellers.section') %}
  1077. \t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 discussions-top-sellers-container\">
  1078. \t\t\t\t\t\t\t\t<div>
  1079. \t\t\t\t\t\t\t\t\t{% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\"  with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction, leadSourcePage: 'ask_neighbors'}%}
  1080. \t\t\t\t\t\t\t\t</div>
  1081. \t\t\t\t\t\t\t</div>
  1082. \t\t\t\t\t\t\t<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
  1083. \t\t\t\t\t\t\t\t{{ include('@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig') }}
  1084. \t\t\t\t\t\t\t</div>
  1085. \t\t\t\t\t\t{% endif %}
  1086. \t\t\t\t\t\t{% if popularArticles|length > 0 %}
  1087. \t\t\t\t\t\t\t{% include '@AqarmapDiscussion/Discussion/popularArticles.html.twig' %}
  1088. \t\t\t\t\t\t{% endif %}
  1089. \t\t\t\t\t</div>
  1090. \t\t\t\t</div>
  1091. \t\t\t\t{% if isLastPage(discussions) and location and isEnabledFeature('web.topsellers.section') %}
  1092. \t\t\t\t\t<div class=\"row\">
  1093. \t\t\t\t\t\t<div class=\"col visible-sm visible-lg\">
  1094. \t\t\t\t\t\t\t<div class=\"top-sellers-warp-cards w-100\">
  1095. \t\t\t\t\t\t\t\t{% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\"  with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction , 'position':'bottom', leadSourcePage: 'ask_neighbors'} %}
  1096. \t\t\t\t\t\t\t</div>
  1097. \t\t\t\t\t\t</div>
  1098. \t\t\t\t\t</div>
  1099. \t\t\t\t\t{{ include('@AqarmapUserBundle/User/listingQuickLeadModal.html.twig') }}
  1100. \t\t\t\t{% endif %}
  1101. \t\t\t\t<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
  1102. \t\t\t\t\t{% include \"@AqarmapMainBundle/Default/locationsSubLinks.html.twig\" %}
  1103. \t\t\t\t</div>
  1104. \t\t\t</div>
  1105. \t\t</div>
  1106. \t\t{{ include('@AqarmapUserBundle/User/loginModal.html.twig') }}
  1107. \t</section>
  1108. {% endblock %}
  1109. {% block footer %}
  1110. \t{% include \"footer.v2.html.twig\" %}
  1111. {% endblock %}
  1112. {% block javascripts %}
  1113. \t{{ parent() }}
  1114. \t<script>
  1115. \t\tjQuery(document).ready(function (\$) {
  1116. loadMoreInit('.sectionLoadMore');
  1117. });
  1118. \t</script>
  1119. {% endblock %}
  1120. {% macro pagination_meta(pagination) %}
  1121. \t{% set total = pagination.totalItemCount %}
  1122. \t{% set items_per_age = pagination.itemNumberPerPage %}
  1123. \t{% set current = pagination.currentPageNumber %}
  1124. \t{% set last = (total / items_per_age) | round(0, 'ceil') %}
  1125. \t{% set page_parameter = pagination.paginatorOption('pageParameterName') %}
  1126. \t{% if current != 1 and total %}
  1127. \t\t<link rel=\"prev\" href=\"{{ url(app.request.attributes.get('_route'), app.request.query.all|merge({ (page_parameter): (current - 1) })) }}\"/>
  1128. \t{% endif %}
  1129. \t{% if current != last and total %}
  1130. \t\t<link rel=\"next\" href=\"{{ url(app.request.attributes.get('_route'), app.request.query.all|merge({ (page_parameter): (current + 1) })) }}\"/>
  1131. \t{% endif %}
  1132. {% endmacro %}
  1133. ""@AqarmapDiscussionBundle/Discussion/discussions.html.twig""/srv/moonshot/src/Aqarmap/Bundle/DiscussionBundle/Resources/views/Discussion/discussions.html.twig");
  1134.     }
  1135. }