var/cache/dev/twig/27/27c380678257ced8544d60170e190c274734dffbc4b6b2d99b44009f3a759f08.php line 94

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. /* fiche/_includes/contexte-recherche.html.twig */
  14. class __TwigTemplate_425cc135202ac3d6d6d4e7bfd82a94a3acfa0510ef17d726bcdde2780af88092 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/_includes/contexte-recherche.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/_includes/contexte-recherche.html.twig"));
  33.         // line 1
  34.         if (((isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'1$this->source); })()) || (isset($context["suivant"]) || array_key_exists("suivant"$context) ? $context["suivant"] : (function () { throw new RuntimeError('Variable "suivant" does not exist.'1$this->source); })()))) {
  35.             // line 2
  36.             echo "<div class=\"recherche-contexte\" role=\"group\">
  37.     ";
  38.             // line 4
  39.             if (((isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'4$this->source); })()) && !twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'4$this->source); })()), "typeClient", [], "any"falsefalsefalse4), [=> "organisme"=> "fournisseur"]))) {
  40.                 // line 5
  41.                 echo "        <a href=\"";
  42.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'5$this->source); })()), "buildFiche", [=> (isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'5$this->source); })())], "method"falsefalsefalse5), "html"nulltrue);
  43.                 echo "\" class=\"precedent\">";
  44.                 echo "</a>
  45.     ";
  46.             } else {
  47.                 // line 7
  48.                 echo "        <a href=\"#\" class=\"precedent no-view\">";
  49.                 echo "</a>
  50.     ";
  51.             }
  52.             // line 9
  53.             echo "
  54.     ";
  55.             // line 10
  56.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'10$this->source); })()), "typeClient", [], "any"falsefalsefalse10), "organisme"))) {
  57.                 // line 11
  58.                 echo "        <a href=\"";
  59.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("organisme");
  60.                 echo "\" class=\"liste ";
  61.                 echo (( !(isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'11$this->source); })())) ? ("pas-precedent") : (""));
  62.                 echo "\">
  63.             Liste de résultats
  64.         </a>
  65.     ";
  66.             } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,             // line 14
  67. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'14$this->source); })()), "typeClient", [], "any"falsefalsefalse14), "fournisseur"))) {
  68.                 // line 15
  69.                 echo "        <a href=\"";
  70.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fournisseur");
  71.                 echo "\" class=\"liste ";
  72.                 echo (( !(isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'15$this->source); })())) ? ("pas-precedent") : (""));
  73.                 echo "\">
  74.             Liste de résultats
  75.         </a>
  76.     ";
  77.             } elseif ((            // line 18
  78. (isset($context["quoi"]) || array_key_exists("quoi"$context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.'18$this->source); })()) && (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'18$this->source); })()))) {
  79.                 // line 19
  80.                 echo "        ";
  81.                 $context["quoi"] = twig_get_attribute($this->env$this->source, (isset($context["slugify"]) || array_key_exists("slugify"$context) ? $context["slugify"] : (function () { throw new RuntimeError('Variable "slugify" does not exist.'19$this->source); })()), "revealQuoi", [=> (isset($context["quoi"]) || array_key_exists("quoi"$context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.'19$this->source); })())], "method"falsefalsefalse19);
  82.                 // line 20
  83.                 echo "        ";
  84.                 $context["lieu"] = twig_get_attribute($this->env$this->source, (isset($context["slugify"]) || array_key_exists("slugify"$context) ? $context["slugify"] : (function () { throw new RuntimeError('Variable "slugify" does not exist.'20$this->source); })()), "revealLieu", [=> (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'20$this->source); })())], "method"falsefalsefalse20);
  85.                 // line 21
  86.                 echo "        ";
  87.                 if (((isset($context["quoi"]) || array_key_exists("quoi"$context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.'21$this->source); })()) && (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'21$this->source); })()))) {
  88.                     // line 22
  89.                     echo "            <a href=\"";
  90.                     echo twig_escape_filter($this->env, (isset($context["urlPagePrecedente"]) || array_key_exists("urlPagePrecedente"$context) ? $context["urlPagePrecedente"] : (function () { throw new RuntimeError('Variable "urlPagePrecedente" does not exist.'22$this->source); })()), "html"nulltrue);
  91.                     echo "\" class=\"liste ";
  92.                     echo (( !(isset($context["precedent"]) || array_key_exists("precedent"$context) ? $context["precedent"] : (function () { throw new RuntimeError('Variable "precedent" does not exist.'22$this->source); })())) ? ("pas-precedent") : (""));
  93.                     echo "\">
  94.                 Liste de résultats
  95.             </a>
  96.         ";
  97.                 }
  98.                 // line 26
  99.                 echo "    ";
  100.             }
  101.             // line 27
  102.             echo "
  103.     ";
  104.             // line 28
  105.             if (!twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'28$this->source); })()), "typeClient", [], "any"falsefalsefalse28), [=> "organisme"=> "fournisseur"])) {
  106.                 // line 29
  107.                 echo "        ";
  108.                 if ((isset($context["suivant"]) || array_key_exists("suivant"$context) ? $context["suivant"] : (function () { throw new RuntimeError('Variable "suivant" does not exist.'29$this->source); })())) {
  109.                     // line 30
  110.                     echo "            <a href=\"";
  111.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'30$this->source); })()), "buildFiche", [=> (isset($context["suivant"]) || array_key_exists("suivant"$context) ? $context["suivant"] : (function () { throw new RuntimeError('Variable "suivant" does not exist.'30$this->source); })())], "method"falsefalsefalse30), "html"nulltrue);
  112.                     echo "\" class=\"suivant\">";
  113.                     echo "</a>
  114.         ";
  115.                 } else {
  116.                     // line 32
  117.                     echo "            <button type=\"button\" class=\"suivant\" disabled>
  118.             ";
  119.                     // line 34
  120.                     echo "            </button>
  121.         ";
  122.                 }
  123.                 // line 36
  124.                 echo "    ";
  125.             }
  126.             // line 37
  127.             echo "
  128. </div>
  129. ";
  130.         }
  131.         
  132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  133.         
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  135.     }
  136.     public function getTemplateName()
  137.     {
  138.         return "fiche/_includes/contexte-recherche.html.twig";
  139.     }
  140.     public function isTraitable()
  141.     {
  142.         return false;
  143.     }
  144.     public function getDebugInfo()
  145.     {
  146.         return array (  137 => 37,  134 => 36,  130 => 34,  127 => 32,  120 => 30,  117 => 29,  115 => 28,  112 => 27,  109 => 26,  99 => 22,  96 => 21,  93 => 20,  90 => 19,  88 => 18,  79 => 15,  77 => 14,  68 => 11,  66 => 10,  63 => 9,  58 => 7,  51 => 5,  49 => 4,  45 => 2,  43 => 1,);
  147.     }
  148.     public function getSourceContext()
  149.     {
  150.         return new Source("{% if precedent or suivant %}
  151. <div class=\"recherche-contexte\" role=\"group\">
  152.     {% if precedent and etablissement.typeClient not in ['organisme', 'fournisseur']  %}
  153.         <a href=\"{{ pathBuilder.buildFiche(precedent) }}\" class=\"precedent\">{#Précedent#}</a>
  154.     {% else %}
  155.         <a href=\"#\" class=\"precedent no-view\">{#Précedent#}</a>
  156.     {% endif %}
  157.     {% if  etablissement.typeClient == 'organisme' %}
  158.         <a href=\"{{path ('organisme')}}\" class=\"liste {{ not precedent ? 'pas-precedent' }}\">
  159.             Liste de résultats
  160.         </a>
  161.     {% elseif  etablissement.typeClient == 'fournisseur' %}
  162.         <a href=\"{{path ('fournisseur')}}\" class=\"liste {{ not precedent ? 'pas-precedent' }}\">
  163.             Liste de résultats
  164.         </a>
  165.     {% elseif quoi and lieu %}
  166.         {% set quoi = slugify.revealQuoi(quoi) %}
  167.         {% set lieu = slugify.revealLieu(lieu) %}
  168.         {% if quoi and lieu %}
  169.             <a href=\"{{urlPagePrecedente}}\" class=\"liste {{ not precedent ? 'pas-precedent' }}\">
  170.                 Liste de résultats
  171.             </a>
  172.         {% endif %}
  173.     {% endif %}
  174.     {% if etablissement.typeClient not in ['organisme', 'fournisseur'] %}
  175.         {% if suivant %}
  176.             <a href=\"{{ pathBuilder.buildFiche(suivant) }}\" class=\"suivant\">{#Suivant#}</a>
  177.         {% else %}
  178.             <button type=\"button\" class=\"suivant\" disabled>
  179.             {#Suivant#}
  180.             </button>
  181.         {% endif %}
  182.     {% endif %}
  183. </div>
  184. {% endif %}
  185. ""fiche/_includes/contexte-recherche.html.twig""/app/templates/fiche/_includes/contexte-recherche.html.twig");
  186.     }
  187. }