var/cache/review/twig/cc/cc5bf613ce362fbfc9d065253eb30599.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* ProfileList/geo_category_linkage.partial.html.twig */
  14. class __TwigTemplate_0fc1f52649bdd785beba1ee5c294a9c0 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/geo_category_linkage.partial.html.twig"));
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/geo_category_linkage.partial.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/geo_category_linkage.partial.html.twig"));
  35.         // line 1
  36.         $context["geo_category_links"] = $this->extensions['App\Twig\GeoCategoryLinkageExtension']->links();
  37.         // line 2
  38.         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); })())) {
  39.             // line 3
  40.             echo "    <div class=\"geo_category_linkage\">
  41.         ";
  42.             // line 4
  43.             $context['_parent'] = $context;
  44.             $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); })()));
  45.             foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
  46.                 // line 5
  47.                 echo "            <span class=\"geo_category_linkage__item\">
  48.                 ";
  49.                 // line 6
  50.                 if (twig_get_attribute($this->env$this->source$context["link"], "additive", [], "any"falsefalsefalse6)) {
  51.                     echo "<span class=\"geo_category_linkage__plus\">+</span>";
  52.                 }
  53.                 // line 7
  54.                 echo "                <a href=\"";
  55.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["link"], "href", [], "any"falsefalsefalse7), "html"nulltrue);
  56.                 echo "\">";
  57.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["link"], "text", [], "any"falsefalsefalse7), "html"nulltrue);
  58.                 echo " <span class=\"geo_category_linkage__count\">";
  59.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["link"], "profiles_count", [], "any"falsefalsefalse7), "html"nulltrue);
  60.                 echo "</span></a>
  61.             </span>
  62.         ";
  63.             }
  64.             $_parent $context['_parent'];
  65.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
  66.             $context array_intersect_key($context$_parent) + $_parent;
  67.             // line 10
  68.             echo "    </div>
  69. ";
  70.         }
  71.         
  72.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.     }
  78.     /**
  79.      * @codeCoverageIgnore
  80.      */
  81.     public function getTemplateName()
  82.     {
  83.         return "ProfileList/geo_category_linkage.partial.html.twig";
  84.     }
  85.     /**
  86.      * @codeCoverageIgnore
  87.      */
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     /**
  93.      * @codeCoverageIgnore
  94.      */
  95.     public function getDebugInfo()
  96.     {
  97.         return array (  78 => 10,  64 => 7,  60 => 6,  57 => 5,  53 => 4,  50 => 3,  48 => 2,  46 => 1,);
  98.     }
  99.     public function getSourceContext()
  100.     {
  101.         return new Source("{% set geo_category_links = geo_category_linkage() %}
  102. {% if geo_category_links %}
  103.     <div class=\"geo_category_linkage\">
  104.         {% for link in geo_category_links %}
  105.             <span class=\"geo_category_linkage__item\">
  106.                 {% if link.additive %}<span class=\"geo_category_linkage__plus\">+</span>{% endif %}
  107.                 <a href=\"{{ link.href }}\">{{ link.text }} <span class=\"geo_category_linkage__count\">{{ link.profiles_count }}</span></a>
  108.             </span>
  109.         {% endfor %}
  110.     </div>
  111. {% endif %}
  112. ""ProfileList/geo_category_linkage.partial.html.twig""/app/templates/ProfileList/geo_category_linkage.partial.html.twig");
  113.     }
  114. }