var/cache/dev/twig/c8/c8b3d79eecc9e2ce41e9de08d5284e33a89a47fae5b415e130ec035dd3a00452.php line 74

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. /* @NellappSDK/Partials/component/header/header.html.twig */
  14. class __TwigTemplate_dc5bfa803e4b0c3c3e39f119e5c280d54914302d2ac84bba9d8ba1bcdf1871c3 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->blocks = [
  23.             'header_center_content' => [$this'block_header_center_content'],
  24.             'header_actions_content' => [$this'block_header_actions_content'],
  25.             'header_notification_menu' => [$this'block_header_notification_menu'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@!NellappSDK/Partials/component/header/header.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NellappSDK/Partials/component/header/header.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NellappSDK/Partials/component/header/header.html.twig"));
  40.         $this->parent $this->loadTemplate("@!NellappSDK/Partials/component/header/header.html.twig""@NellappSDK/Partials/component/header/header.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_header_center_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_center_content"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_center_content"));
  55.         // line 4
  56.         echo "    ";
  57.         if ((((array_key_exists("enable_search"$context)) ? (_twig_default_filter((isset($context["enable_search"]) || array_key_exists("enable_search"$context) ? $context["enable_search"] : (function () { throw new RuntimeError('Variable "enable_search" does not exist.'4$this->source); })()), false)) : (false)) === true)) {
  58.             // line 5
  59.             echo "        ";
  60.             echo $this->env->getRuntime('App\Twig\Runtime\SearchRuntime')->searchForm($this->env);
  61.             echo "
  62.     ";
  63.         }
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 9
  70.     public function block_header_actions_content($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_actions_content"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_actions_content"));
  77.         // line 10
  78.         echo "    ";
  79.         if (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.'10$this->source); })()), "user", [], "any"falsefalsefalse10)) {
  80.             // line 11
  81.             echo "        ";
  82.             $this->displayParentBlock("header_actions_content"$context$blocks);
  83.             echo "
  84.     ";
  85.         } else {
  86.             // line 13
  87.             echo "        <div class=\"not-connected-dro\">
  88.             <a href=\"";
  89.             // line 14
  90.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nellapp_sdk_connect_nellapp");
  91.             echo "\" class=\"btn-nellapp-v2\">
  92.                 ";
  93.             // line 15
  94.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menus.front.appbar.login.label"), "html"nulltrue);
  95.             echo "
  96.             </a>
  97.         </div>
  98.     ";
  99.         }
  100.         
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  102.         
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  104.     }
  105.     // line 21
  106.     public function block_header_notification_menu($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_notification_menu"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_notification_menu"));
  113.         // line 22
  114.         echo "    <li>";
  115.         echo $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("Notification:Menu", ["bsVersion" => 4]);
  116.         echo "</li>
  117. ";
  118.         
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  120.         
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  122.     }
  123.     public function getTemplateName()
  124.     {
  125.         return "@NellappSDK/Partials/component/header/header.html.twig";
  126.     }
  127.     public function isTraitable()
  128.     {
  129.         return false;
  130.     }
  131.     public function getDebugInfo()
  132.     {
  133.         return array (  138 => 22,  128 => 21,  113 => 15,  109 => 14,  106 => 13,  100 => 11,  97 => 10,  87 => 9,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  134.     }
  135.     public function getSourceContext()
  136.     {
  137.         return new Source("{% extends \"@!NellappSDK/Partials/component/header/header.html.twig\" %}
  138. {% block header_center_content %}
  139.     {% if enable_search|default(false) is same as true %}
  140.         {{ search_form() }}
  141.     {% endif %}
  142. {% endblock %}
  143. {% block header_actions_content %}
  144.     {% if app.user %}
  145.         {{ parent() }}
  146.     {% else %}
  147.         <div class=\"not-connected-dro\">
  148.             <a href=\"{{ path('nellapp_sdk_connect_nellapp') }}\" class=\"btn-nellapp-v2\">
  149.                 {{ 'menus.front.appbar.login.label'|trans }}
  150.             </a>
  151.         </div>
  152.     {% endif %}
  153. {% endblock %}
  154. {% block header_notification_menu %}
  155.     <li>{{ component('Notification:Menu', { bsVersion: 4 }) }}</li>
  156. {% endblock header_notification_menu %}
  157. ""@NellappSDK/Partials/component/header/header.html.twig""/var/www/html/templates/bundles/NellappSDKBundle/Partials/component/header/header.html.twig");
  158.     }
  159. }