<?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;
/* @AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig */
class __TwigTemplate_305126c5a829fd844152f9d189372dc4ea9c58f507415cd1f529e81b7c4b43db extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig"));
// line 1
$context["currentUser"] = 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.', 1, $this->source); })()), "user", [], "any", false, false, false, 1);
// line 2
$context["currentUserEmail"] = (((isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 2, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 2, $this->source); })()), "email", [], "any", false, false, false, 2)) : (""));
// line 3
echo "
";
// line 4
if ((isset($context["listingsCount"]) || array_key_exists("listingsCount", $context) ? $context["listingsCount"] : (function () { throw new RuntimeError('Variable "listingsCount" does not exist.', 4, $this->source); })())) {
// line 5
echo " <div ng-controller=\"quickLeadController\" class=\"col-12\">
<div class=\"row\">
";
// line 7
$this->loadTemplate("@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig", "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig", 7)->display(twig_array_merge($context, ["listings" => (isset($context["listings"]) || array_key_exists("listings", $context) ? $context["listings"] : (function () { throw new RuntimeError('Variable "listings" does not exist.', 7, $this->source); })()), "isCompoundSearchResults" => true, "defaultResults" => true, "disablePhotosCount" => true, "topSellersResults" => false, "isRelatedResults" => false, "leadSourcePage" => "compounds_results"]));
// line 8
echo " </div>
</div>
";
} else {
// line 11
echo " ";
$this->loadTemplate("@AqarmapListing/ListingSearch/noSearchResults.html.twig", "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig", 11)->display($context);
}
// line 13
echo "
<!-- Pagination -->
<div class=\"col-12 search-listing-card__pagination-container\">
<div class=\"row\">
";
// line 17
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["listings"]) || array_key_exists("listings", $context) ? $context["listings"] : (function () { throw new RuntimeError('Variable "listings" does not exist.', 17, $this->source); })()));
echo "
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 73 => 17, 67 => 13, 63 => 11, 58 => 8, 56 => 7, 52 => 5, 50 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set currentUser = app.user %}
{% set currentUserEmail = currentUser ? currentUser.email : '' %}
{% if listingsCount %}
<div ng-controller=\"quickLeadController\" class=\"col-12\">
<div class=\"row\">
{% include \"@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig\" with {'listings' : listings, 'isCompoundSearchResults': true, 'defaultResults': true, 'disablePhotosCount': true, 'topSellersResults' : false, 'isRelatedResults' : false, 'leadSourcePage': 'compounds_results'} %}
</div>
</div>
{% else %}
{% include \"@AqarmapListing/ListingSearch/noSearchResults.html.twig\" %}
{% endif %}
<!-- Pagination -->
<div class=\"col-12 search-listing-card__pagination-container\">
<div class=\"row\">
{{ knp_pagination_render(listings) }}
</div>
</div>
", "@AqarmapListingBundle/CompoundSearch/compoundResultsContainer.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/CompoundSearch/compoundResultsContainer.html.twig");
}
}