<?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;
/* ProfileList/geo_category_linkage.partial.html.twig */
class __TwigTemplate_0fc1f52649bdd785beba1ee5c294a9c0 extends 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_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/geo_category_linkage.partial.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/geo_category_linkage.partial.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/geo_category_linkage.partial.html.twig"));
// line 1
$context["geo_category_links"] = $this->extensions['App\Twig\GeoCategoryLinkageExtension']->links();
// line 2
if ((isset($context["geo_category_links"]) || array_key_exists("geo_category_links", $context) ? $context["geo_category_links"] : (function () { throw new RuntimeError('Variable "geo_category_links" does not exist.', 2, $this->source); })())) {
// line 3
echo " <div class=\"geo_category_linkage\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["geo_category_links"]) || array_key_exists("geo_category_links", $context) ? $context["geo_category_links"] : (function () { throw new RuntimeError('Variable "geo_category_links" does not exist.', 4, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 5
echo " <span class=\"geo_category_linkage__item\">
";
// line 6
if (twig_get_attribute($this->env, $this->source, $context["link"], "additive", [], "any", false, false, false, 6)) {
echo "<span class=\"geo_category_linkage__plus\">+</span>";
}
// line 7
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "href", [], "any", false, false, false, 7), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "text", [], "any", false, false, false, 7), "html", null, true);
echo " <span class=\"geo_category_linkage__count\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "profiles_count", [], "any", false, false, false, 7), "html", null, true);
echo "</span></a>
</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo " </div>
";
}
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ProfileList/geo_category_linkage.partial.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 78 => 10, 64 => 7, 60 => 6, 57 => 5, 53 => 4, 50 => 3, 48 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% set geo_category_links = geo_category_linkage() %}
{% if geo_category_links %}
<div class=\"geo_category_linkage\">
{% for link in geo_category_links %}
<span class=\"geo_category_linkage__item\">
{% if link.additive %}<span class=\"geo_category_linkage__plus\">+</span>{% endif %}
<a href=\"{{ link.href }}\">{{ link.text }} <span class=\"geo_category_linkage__count\">{{ link.profiles_count }}</span></a>
</span>
{% endfor %}
</div>
{% endif %}
", "ProfileList/geo_category_linkage.partial.html.twig", "/app/templates/ProfileList/geo_category_linkage.partial.html.twig");
}
}