var/cache/dev/twig/8a/8a8d6dff6965e0f8e486147f29dd8bcf37a3135e514048d783b9ac5b5d64f681.php line 39

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