<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @AqarmapDiscussionBundle/Discussion/discussions.html.twig */
class __TwigTemplate_84ea7089ca2d37a9a94e547ad2214e35c5a8c7c2a7f844f4b25b208bf2ee5b6b extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'meta_description' => [$this, 'block_meta_description'],
'metatags' => [$this, 'block_metatags'],
'htmlhead' => [$this, 'block_htmlhead'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
'javascripts' => [$this, 'block_javascripts'],
];
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig"));
// line 2
$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); })()), [0 => "Form/form_div_layout.html.twig"], true);
// line 9
$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", false, false, false, 9)])) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title")));
// line 10
$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", false, false, false, 10)])) : ((isset($context["pageTitle"]) || array_key_exists("pageTitle", $context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.', 10, $this->source); })())));
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 5
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t<link rel=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 13
echo "\t";
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", null, true);
echo "
\t•
\t";
// line 15
$this->displayParentBlock("title", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_meta_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
// line 18
echo "\t";
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", null, true);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 21
echo "\t";
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)) {
// line 22
echo "\t\t<meta name=\"robots\" content=\"noindex\">
\t";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 26
public function block_htmlhead($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "htmlhead"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "htmlhead"));
// line 27
echo "\t<link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 27), "get", [0 => "_route"], "method", false, false, false, 27), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 27), "query", [], "any", false, false, false, 27), "all", [], "any", false, false, false, 27), ["_locale" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 27), "get", [0 => "_locale"], "method", false, false, false, 27)])), "html", null, true);
echo "\"/>
\t<link rel=\"alternate\" hreflang=\"ar\" href=\"";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 28), "get", [0 => "_route"], "method", false, false, false, 28), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 28), "query", [], "any", false, false, false, 28), "all", [], "any", false, false, false, 28), ["_locale" => "ar"])), "html", null, true);
echo "\"/>
\t<link rel=\"alternate\" hreflang=\"en\" href=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 29), "get", [0 => "_route"], "method", false, false, false, 29), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 29), "query", [], "any", false, false, false, 29), "all", [], "any", false, false, false, 29), ["_locale" => "en"])), "html", null, true);
echo "\"/>
\t<link rel=\"alternate\" hreflang=\"x-default\" href=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "get", [0 => "_route"], "method", false, false, false, 30), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "query", [], "any", false, false, false, 30), "all", [], "any", false, false, false, 30), ["_locale" => "ar"])), "html", null, true);
echo "\"/>
\t";
// line 31
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());
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 35
echo "\t<section id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 35), "get", [0 => "_route"], "method", false, false, false, 35), "html", null, true);
echo "\" ng-controller=\"neighborhoodDiscussionController\">
\t\t";
// line 36
$context["topSellerTrigger"] = "gtm-action-topsellers-lead-ask-neighbors";
// line 37
echo "\t\t";
$context["topSellerEventAction"] = "Top Sellers Ask Neighbors";
// line 38
echo "\t\t<div class=\"resposive-add-discussion-conatiner hidden-md hidden-lg hidden-sm\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t<h2 class=\"custom-header\">";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title"), "html", null, true);
echo "</h2>
\t\t\t\t\t<p class=\"discussion-form-sub-title responsive_style hidden-xs\">";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title"), "html", null, true);
echo "</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = false;discussionContent='';\">
\t\t\t\t\t\t";
// line 46
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)"]]);
echo "
\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
\t\t\t\t\t\t\t";
// line 48
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", false, false, false, 48), '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"]]);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
\t\t\t\t\t\t\t<div id=\"location_search\">
\t\t\t\t\t\t\t\t";
// line 52
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", false, false, false, 52), 'widget', ["attr" => ["class" => "chosen"]]);
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 54
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", false, false, false, 54), 'widget');
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"darken btn btn-lg btn-primary btn-block\">";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.share"), "html", null, true);
echo "
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
// line 58
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');
echo "
\t\t\t\t\t\t<div class=\"cancel-button\">
\t\t\t\t\t\t\t<a href=\"\" class=\"text-center\" ng-click=\"showFormData = false;discussionContent='';\" ng-show=\"showFormData\">";
// line 60
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("terms_conditions.cancel"), "html", null, true);
echo "</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"discussions\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-sm hidden-xs\">
\t\t\t\t\t\t";
// line 71
$context["discussions_breadcrumb"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.askNeighbors.breadcrumb", [], ["location" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 71), "get", [0 => "location"], "method", false, false, false, 71), "category" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 71), "get", [0 => "category"], "method", false, false, false, 71)]);
// line 72
echo "\t\t\t\t\t\t";
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"]);
// line 77
echo "
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
\t\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t\t";
// line 83
$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", false, false, false, 83)) : (""));
// line 84
echo "\t\t\t\t\t\t\t\t\t";
if ((isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 84, $this->source); })())) {
// line 85
echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
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->source, twig_get_attribute($this->env, $this->source, // line 86
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "get", [0 => "tab", 1 => 1], "method", false, false, false, 86))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in")) . // line 87
(isset($context["discussionLocationTitle"]) || array_key_exists("discussionLocationTitle", $context) ? $context["discussionLocationTitle"] : (function () { throw new RuntimeError('Variable "discussionLocationTitle" does not exist.', 87, $this->source); })())), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 88
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", false, false, false, 88) != 1)) {
// line 89
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 89)])), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 91
echo "\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t";
} elseif ( // line 92
(isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 92, $this->source); })())) {
// line 93
echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
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->source, twig_get_attribute($this->env, $this->source, // line 94
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 94, $this->source); })()), "request", [], "any", false, false, false, 94), "get", [0 => "tab", 1 => 1], "method", false, false, false, 94))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in")) . twig_get_attribute($this->env, $this->source, // line 95
(isset($context["selectedCategory"]) || array_key_exists("selectedCategory", $context) ? $context["selectedCategory"] : (function () { throw new RuntimeError('Variable "selectedCategory" does not exist.', 95, $this->source); })()), "title", [], "any", false, false, false, 95)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 96
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", false, false, false, 96) != 1)) {
// line 97
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 97)])), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 99
echo "\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t";
} else {
// line 101
echo "\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">";
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->source, twig_get_attribute($this->env, $this->source, // line 102
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "get", [0 => "tab", 1 => 1], "method", false, false, false, 102))), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 103
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", false, false, false, 103) != 1)) {
// line 104
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 104)])), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 106
echo "\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t";
}
// line 108
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"discussion-form-containers\">
\t\t\t\t\t\t\t\t\t";
// line 110
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"]]);
echo "
\t\t\t\t\t\t\t\t\t<div class=\"discussion-search-location\">
\t\t\t\t\t\t\t\t\t\t";
// line 112
if (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 112), "get", [0 => "location"], "method", false, false, false, 112)) {
// line 113
echo "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 113), 'widget', ["value" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 113), "get", [0 => "location"], "method", false, false, false, 113), "attr" => ["class" => "chosen", "ng-init" => ("locationSelect=" . twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 113), "get", [0 => "location"], "method", false, false, false, 113)), "ng-model" => "locationSelect"]]);
echo "
\t\t\t\t\t\t\t\t\t\t";
} else {
// line 115
echo "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 115), 'widget', ["value" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 115), "get", [0 => "location"], "method", false, false, false, 115), "attr" => ["class" => "chosen", "ng-model" => "locationSelect"]]);
echo "
\t\t\t\t\t\t\t\t\t\t";
}
// line 117
echo "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"discussion-search-category\">
\t\t\t\t\t\t\t\t\t\t";
// line 119
if (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 119), "get", [0 => "category"], "method", false, false, false, 119)) {
// line 120
echo "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 120), 'widget', ["value" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 120), "get", [0 => "category", 1 => ""], "method", false, false, false, 120), "attr" => ["ng-init" => ("categorySelect=" . twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 120), "get", [0 => "category"], "method", false, false, false, 120)), "ng-model" => "categorySelect"]]);
echo "
\t\t\t\t\t\t\t\t\t\t";
} else {
// line 122
echo "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 122), 'widget', ["value" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 122), "get", [0 => "category", 1 => ""], "method", false, false, false, 122), "attr" => ["ng-model" => "categorySelect"]]);
echo "
\t\t\t\t\t\t\t\t\t\t";
}
// line 124
echo "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
// line 125
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');
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"discussions-table-container\">
\t\t\t\t\t\t\t\t\t";
// line 128
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)) {
// line 129
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-no-result\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning no-result-container\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 131
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", false, false, false, 131))) {
// line 132
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">";
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", false, false, false, 132), "%url%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 132), "attributes", [], "any", false, false, false, 132), "get", [0 => "_route"], "method", false, false, false, 132), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 132), "query", [], "any", false, false, false, 132), "all", [], "any", false, false, false, 132), ["location" => twig_get_attribute($this->env, $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.', 132, $this->source); })()), "parent", [], "any", false, false, false, 132), "id", [], "any", false, false, false, 132)]))]);
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 134
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"no_result_text\">";
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->source, twig_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", false, false, false, 134), "get", [0 => "category"], "method", false, false, false, 134)])]);
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 136
echo "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
// line 139
echo "\t\t\t\t\t\t\t\t\t<div class=\"tabbable-panel\">
\t\t\t\t\t\t\t\t\t\t<div class=\"tabbable-line\">
\t\t\t\t\t\t\t\t\t\t\t<ul class=\"nav nav-tabs \">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 142
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Aqarmap\Bundle\DiscussionBundle\Twig\DiscussionTabsExtension']->getDiscussionSearchTabs());
foreach ($context['_seq'] as $context["status"] => $context["label"]) {
// line 143
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 144
if ((twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 144), "get", [0 => "tab", 1 => 1], "method", false, false, false, 144) == $context["status"])) {
echo " class=\"active\" ";
}
echo ">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 146
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a ng-init=\"currentTab=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 146), "get", [0 => "tab", 1 => 1], "method", false, false, false, 146), "html", null, true);
echo ";\" href=\"";
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->source, twig_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", false, false, false, 146), "get", [0 => "location"], "method", false, false, false, 146), "category" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 146), "get", [0 => "category"], "method", false, false, false, 146)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["label"]), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['status'], $context['label'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo "\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 151
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)) {
// line 152
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result-holder\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.no_results_tabs_found"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 159
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-pane active\" id=\"tab_1\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 160
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["discussion"]) {
// line 161
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media-body\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"media-heading\">
\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=\"";
// line 164
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", false, false, false, 164), "utm_source" => "system", "utm_medium" => "search", "utm_campaign" => "view_question"]), "html", null, true);
echo "\" class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 165
echo twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["discussion"], "content", [], "any", false, false, false, 165), 0, 87);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p id=\"discussion-p\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 171
if (twig_get_attribute($this->env, $this->source, $context["discussion"], "category", [], "any", false, false, false, 171)) {
// line 172
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=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["category" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["discussion"], "category", [], "any", false, false, false, 172), "id", [], "any", false, false, false, 172)]), "html", null, true);
echo "\" class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 173
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["discussion"], "category", [], "any", false, false, false, 173), "title", [], "any", false, false, false, 173), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 176
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["discussion"], "location", [], "any", false, false, false, 176)) {
// line 177
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\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in"), "html", null, true);
echo "</span>
\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=\"";
// line 178
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighborhood_discussion_list", ["location" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["discussion"], "location", [], "any", false, false, false, 178), "id", [], "any", false, false, false, 178)]), "html", null, true);
echo "\" class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 179
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["discussion"], "location", [], "any", false, false, false, 179), "title", [], "any", false, false, false, 179), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 182
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\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\">
\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=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
\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=\"";
// line 188
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", false, false, false, 188)]), "html", null, true);
echo "\" class=\"\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 190
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["discussion"], "commentsCounter", [], "any", false, false, false, 190), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 191
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.comments"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discussion'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 203
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
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); })()));
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 206
echo "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 panel-white padding-md-zero\">
\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-xs\">
\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t<h2 class=\"custom-header\">";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.main_title"), "html", null, true);
echo "</h2>
\t\t\t\t\t\t\t\t<p class=\"discussion-form-sub-title\">";
// line 218
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = true;\">
\t\t\t\t\t\t\t\t\t";
// line 222
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)"]]);
echo "
\t\t\t\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
\t\t\t\t\t\t\t\t\t\t<div id=\"location_search\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 225
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", false, false, false, 225), 'widget', ["attr" => ["class" => "chosen"]]);
echo "
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
// line 227
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", false, false, false, 227), 'widget');
echo "
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
\t\t\t\t\t\t\t\t\t\t";
// line 230
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", false, false, false, 230), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.sub_title_placeholder", ["%location%" => ""], "messages"), "ng-click" => "showFormData = true;"]]);
// line 232
echo "
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<button type=\"submit\" id=\"discussion-submit-btn\" class=\"btn btn-primary btn-block\">";
// line 234
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.discussion.share"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t";
// line 236
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');
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
\t\t\t\t\t\t\t";
// line 242
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)) {
// line 243
echo "\t\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t\t<h2 class=\"custom-small-header\">";
// line 244
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("advice.Properties_intersted_in"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 248
echo "\t\t\t\t\t\t\t<div class=\"interested-listings \">
\t\t\t\t\t\t\t\t";
// line 249
$this->loadTemplate("@AqarmapDiscussionBundle/Discussion/ListingsYouMaybeInterestedIn.html.twig", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", 249)->display($context);
// line 250
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\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\">
\t\t\t\t\t\t\t";
// line 253
$context["discussions_breadcrumb"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.askNeighbors.breadcrumb", [], ["location" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 253), "get", [0 => "location"], "method", false, false, false, 253), "category" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 253), "get", [0 => "category"], "method", false, false, false, 253)]);
// line 254
echo "\t\t\t\t\t\t\t";
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"]);
// line 259
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 261
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"))) {
// line 262
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\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t";
// line 264
$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"]));
// line 265
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
\t\t\t\t\t\t\t\t";
// line 268
echo twig_include($this->env, $context, "@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig");
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 271
echo "\t\t\t\t\t\t";
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)) {
// line 272
echo "\t\t\t\t\t\t\t";
$this->loadTemplate("@AqarmapDiscussion/Discussion/popularArticles.html.twig", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", 272)->display($context);
// line 273
echo "\t\t\t\t\t\t";
}
// line 274
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
// line 276
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"))) {
// line 277
echo "\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col visible-sm visible-lg\">
\t\t\t\t\t\t\t<div class=\"top-sellers-warp-cards w-100\">
\t\t\t\t\t\t\t\t";
// line 280
$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"]));
// line 281
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t";
// line 284
echo twig_include($this->env, $context, "@AqarmapUserBundle/User/listingQuickLeadModal.html.twig");
echo "
\t\t\t\t";
}
// line 286
echo "\t\t\t\t<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
\t\t\t\t\t";
// line 287
$this->loadTemplate("@AqarmapMainBundle/Default/locationsSubLinks.html.twig", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", 287)->display($context);
// line 288
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t";
// line 291
echo twig_include($this->env, $context, "@AqarmapUserBundle/User/loginModal.html.twig");
echo "
\t</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 295
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 296
echo "\t";
$this->loadTemplate("footer.v2.html.twig", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", 296)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 299
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 300
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t<script>
\t\tjQuery(document).ready(function (\$) {
loadMoreInit('.sectionLoadMore');
});
\t</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 308
public function macro_pagination_meta($__pagination__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"pagination" => $__pagination__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "pagination_meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "pagination_meta"));
// line 309
echo "\t";
$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", false, false, false, 309);
// line 310
echo "\t";
$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", false, false, false, 310);
// line 311
echo "\t";
$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", false, false, false, 311);
// line 312
echo "\t";
$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");
// line 313
echo "\t";
$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", [0 => "pageParameterName"], "method", false, false, false, 313);
// line 314
echo "
\t";
// line 315
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); })()))) {
// line 316
echo "\t\t<link rel=\"prev\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 316), "attributes", [], "any", false, false, false, 316), "get", [0 => "_route"], "method", false, false, false, 316), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 316), "query", [], "any", false, false, false, 316), "all", [], "any", false, false, false, 316), [(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", null, true);
echo "\"/>
\t";
}
// line 318
echo "\t";
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); })()))) {
// line 319
echo "\t\t<link rel=\"next\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 319), "attributes", [], "any", false, false, false, 319), "get", [0 => "_route"], "method", false, false, false, 319), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 319), "query", [], "any", false, false, false, 319), "all", [], "any", false, false, false, 319), [(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", null, true);
echo "\"/>
\t";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "@AqarmapDiscussionBundle/Discussion/discussions.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
{% block stylesheets %}
\t{{ parent() }}
\t<link rel=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">
{% endblock %}
{# Page title #}
{% set pageTitle = selectedCategory ? 'neighborhoods.discussion.explore_category_title_in'|trans({'%category%': selectedCategory.title}) : 'neighborhoods.discussion.main_title'|trans %}
{% set pageTitle = location ? 'neighborhoods.discussion.explore_title_in'|trans({'%location%': location.title}) : pageTitle %}
{% block title %}
\t{{ pageTitle }}
\t•
\t{{ parent() }}
{% endblock %}
{% block meta_description %}
\t{{ metaDescriptionContent }}
{% endblock %}
{% block metatags %}
\t{% if discussions|length == 0 %}
\t\t<meta name=\"robots\" content=\"noindex\">
\t{% endif %}
{% endblock %}
{% block htmlhead %}
\t<link rel=\"canonical\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': app.request.get('_locale')})) }}\"/>
\t<link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'ar'})) }}\"/>
\t<link rel=\"alternate\" hreflang=\"en\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'en'})) }}\"/>
\t<link rel=\"alternate\" hreflang=\"x-default\" href=\"{{ url(app.request.get('_route'), app.request.query.all|merge({'_locale': 'ar'})) }}\"/>
\t{{ _self.pagination_meta(discussions) }}
{% endblock %}
{% block body %}
\t<section id=\"{{ app.request.get('_route') }}\" ng-controller=\"neighborhoodDiscussionController\">
\t\t{% set topSellerTrigger = 'gtm-action-topsellers-lead-ask-neighbors' %}
\t\t{% set topSellerEventAction = 'Top Sellers Ask Neighbors'%}
\t\t<div class=\"resposive-add-discussion-conatiner hidden-md hidden-lg hidden-sm\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t<h2 class=\"custom-header\">{{ \"neighborhoods.discussion.main_title\"|trans }}</h2>
\t\t\t\t\t<p class=\"discussion-form-sub-title responsive_style hidden-xs\">{{ \"neighborhoods.discussion.sub_title\"|trans }}</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = false;discussionContent='';\">
\t\t\t\t\t\t{{ form_start(responsiveDiscussionForm, {attr: {'ng-submit': 'submitDiscussion(\$event, data)'}}) }}
\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
\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' } }) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
\t\t\t\t\t\t\t<div id=\"location_search\">
\t\t\t\t\t\t\t\t{{ form_widget(responsiveDiscussionForm.location, { 'attr' : { 'class' : 'chosen'}}) }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{{ form_widget(responsiveDiscussionForm.category) }}
\t\t\t\t\t\t</div>
\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 }}
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{{ form_end(responsiveDiscussionForm) }}
\t\t\t\t\t\t<div class=\"cancel-button\">
\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>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"discussions\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-sm hidden-xs\">
\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')}) %}
\t\t\t\t\t\t{{ knp_menu_render(discussions_breadcrumb, {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active'
}) }}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
\t\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t\t{% set discussionLocationTitle = location ? location.title : '' %}
\t\t\t\t\t\t\t\t\t{% if location %}
\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans ~
'layout.in'|trans ~ discussionLocationTitle }}
\t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t{% elseif selectedCategory %}
\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans ~
'layout.in'|trans ~ selectedCategory.title }}
\t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t<h1 class=\"custom-header\">{{
getDiscussionSearchTabsTitle(app.request.get('tab', 1))|trans }}
\t\t\t\t\t\t\t\t\t\t\t{% if discussions.currentPageNumber != 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ ' - ' ~ 'layout.description.page'|trans({'%page_number%' : discussions.currentPageNumber}) }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"discussion-form-containers\">
\t\t\t\t\t\t\t\t\t{{ form_start(discussionSearchForm, {'attr' : {'class' : 'discussion-search-form'}}) }}
\t\t\t\t\t\t\t\t\t<div class=\"discussion-search-location\">
\t\t\t\t\t\t\t\t\t\t{% if app.request.get('location') %}
\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' }}) }}
\t\t\t\t\t\t\t\t\t\t{% else %}
\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' }}) }}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"discussion-search-category\">
\t\t\t\t\t\t\t\t\t\t{% if app.request.get('category') %}
\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'}}) }}
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionSearchForm.category, {value : app.request.get('category', ''), 'attr' : { 'ng-model' : 'categorySelect'}}) }}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{{ form_end(discussionSearchForm) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"discussions-table-container\">
\t\t\t\t\t\t\t\t\t{% if discussions|length == 0 %}
\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-no-result\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning no-result-container\">
\t\t\t\t\t\t\t\t\t\t\t\t{% if location is defined and location is not empty and location.parent %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t<div class=\"tabbable-panel\">
\t\t\t\t\t\t\t\t\t\t<div class=\"tabbable-line\">
\t\t\t\t\t\t\t\t\t\t\t<ul class=\"nav nav-tabs \">
\t\t\t\t\t\t\t\t\t\t\t\t{% for status, label in getDiscussionSearchTabs() %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.request.get('tab', 1) == status %} class=\"active\" {% endif %}>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{#data-toggle=\"tab\"#}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content\">
\t\t\t\t\t\t\t\t\t\t\t\t{% if discussions|length == 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"discussions-tabs-no-result-holder\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{ \"neighborhoods.discussion.no_results_tabs_found\"|trans }}</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-pane active\" id=\"tab_1\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for discussion in discussions %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"media-body\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"media-heading\">
\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=\"\">
\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 }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p id=\"discussion-p\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if discussion.category %}
\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=\"\">
\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 }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if discussion.location %}
\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>
\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=\"\">
\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 }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\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\">
\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=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
\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=\"\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ discussion.commentsCounter }}
\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 }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(discussions) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 panel-white padding-md-zero\">
\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 hidden-xs\">
\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t<h2 class=\"custom-header\">{{ \"neighborhoods.discussion.main_title\"|trans }}</h2>
\t\t\t\t\t\t\t\t<p class=\"discussion-form-sub-title\">{{ \"neighborhoods.discussion.sub_title\"|trans }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-xs-12\" ng-init=\"showFormData = true;\">
\t\t\t\t\t\t\t\t\t{{ form_start(discussionForm, {attr: {'ng-submit': 'submitDiscussion(\$event, data)'}}) }}
\t\t\t\t\t\t\t\t\t<div id=\"discussion-form-content\" class=\"discussion-form-containers\" ng-show=\"showFormData\">
\t\t\t\t\t\t\t\t\t\t<div id=\"location_search\">
\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.location, { 'attr' : { 'class' : 'chosen'}}) }}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.category) }}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"discussion-form-textarea\">
\t\t\t\t\t\t\t\t\t\t{{ form_widget(discussionForm.content,
{'attr': {'placeholder': \"neighborhoods.discussion.sub_title_placeholder\"|trans({'%location%': ''}, 'messages'), 'ng-click' : 'showFormData = true;'} })
}}
\t\t\t\t\t\t\t\t\t</div>
\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 }}
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t{{ form_end(discussionForm) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- end col-md-12 (page-header) -->
\t\t\t\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">
\t\t\t\t\t\t\t{% if interestsListings|length > 0 %}
\t\t\t\t\t\t\t\t<div class=\"page-header\">
\t\t\t\t\t\t\t\t\t<h2 class=\"custom-small-header\">{{ 'advice.Properties_intersted_in'|trans }}
\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<div class=\"interested-listings \">
\t\t\t\t\t\t\t\t{% include \"@AqarmapDiscussionBundle/Discussion/ListingsYouMaybeInterestedIn.html.twig\" %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\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\">
\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')}) %}
\t\t\t\t\t\t\t{{ knp_menu_render(discussions_breadcrumb, {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active'
}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if not isLastPage(discussions) and location and isEnabledFeature('web.topsellers.section') %}
\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\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t{% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\" with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction, leadSourcePage: 'ask_neighbors'}%}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
\t\t\t\t\t\t\t\t{{ include('@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig') }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if popularArticles|length > 0 %}
\t\t\t\t\t\t\t{% include '@AqarmapDiscussion/Discussion/popularArticles.html.twig' %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t{% if isLastPage(discussions) and location and isEnabledFeature('web.topsellers.section') %}
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col visible-sm visible-lg\">
\t\t\t\t\t\t\t<div class=\"top-sellers-warp-cards w-100\">
\t\t\t\t\t\t\t\t{% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\" with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction , 'position':'bottom', leadSourcePage: 'ask_neighbors'} %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t{{ include('@AqarmapUserBundle/User/listingQuickLeadModal.html.twig') }}
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
\t\t\t\t\t{% include \"@AqarmapMainBundle/Default/locationsSubLinks.html.twig\" %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t{{ include('@AqarmapUserBundle/User/loginModal.html.twig') }}
\t</section>
{% endblock %}
{% block footer %}
\t{% include \"footer.v2.html.twig\" %}
{% endblock %}
{% block javascripts %}
\t{{ parent() }}
\t<script>
\t\tjQuery(document).ready(function (\$) {
loadMoreInit('.sectionLoadMore');
});
\t</script>
{% endblock %}
{% macro pagination_meta(pagination) %}
\t{% set total = pagination.totalItemCount %}
\t{% set items_per_age = pagination.itemNumberPerPage %}
\t{% set current = pagination.currentPageNumber %}
\t{% set last = (total / items_per_age) | round(0, 'ceil') %}
\t{% set page_parameter = pagination.paginatorOption('pageParameterName') %}
\t{% if current != 1 and total %}
\t\t<link rel=\"prev\" href=\"{{ url(app.request.attributes.get('_route'), app.request.query.all|merge({ (page_parameter): (current - 1) })) }}\"/>
\t{% endif %}
\t{% if current != last and total %}
\t\t<link rel=\"next\" href=\"{{ url(app.request.attributes.get('_route'), app.request.query.all|merge({ (page_parameter): (current + 1) })) }}\"/>
\t{% endif %}
{% endmacro %}
", "@AqarmapDiscussionBundle/Discussion/discussions.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/DiscussionBundle/Resources/views/Discussion/discussions.html.twig");
}
}