var/cache/dev/twig/23/235a0c8eea9a59f4599167e07c1ec4370caf309cdf359ca218459a5ddf8f535d.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. /* widget/header/index.html.twig */
  14. class __TwigTemplate_7206665024cd5f30503252d165db9bb6bd59ba44192c4e91b468d517bc34f1bd extends \Twig\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""widget/header/index.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""widget/header/index.html.twig"));
  33.         // line 1
  34.         $context["userGroupLogo"] = null;
  35.         // line 2
  36.         $context["userGroupSociete"] = null;
  37.         // line 3
  38.         echo "
  39. ";
  40.         // line 4
  41.         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.'4$this->source); })()), "user", [], "any"falsefalsefalse4) &&  !(null === 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.'4$this->source); })()), "user", [], "any"falsefalsefalse4))) && twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'4$this->source); })()), "user", [], "any"falsefalsefalse4), "groups", [], "any"falsefalsefalse4)))) {
  42.             // line 5
  43.             echo "    ";
  44.             $context["userGroupLogo"] = twig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'5$this->source); })()), "user", [], "any"falsefalsefalse5), "groups", [], "any"falsefalsefalse5)), "logo", [], "any"falsefalsefalse5);
  45.             // line 6
  46.             echo "    ";
  47.             $context["userGroupSociete"] = twig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'6$this->source); })()), "user", [], "any"falsefalsefalse6), "groups", [], "any"falsefalsefalse6)), "name", [], "any"falsefalsefalse6);
  48.         }
  49.         // line 8
  50.         echo "
  51. <header>
  52.     ";
  53.         // line 10
  54.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\WidgetController::toolbar", ["initialRequest" =>         // line 11
  55. (isset($context["initialRequest"]) || array_key_exists("initialRequest"$context) ? $context["initialRequest"] : (function () { throw new RuntimeError('Variable "initialRequest" does not exist.'11$this->source); })())]));
  56.         // line 12
  57.         echo "
  58.     <div class=\"container\">
  59.         <div class=\"row\">
  60.             <div class=\"";
  61.         // line 16
  62.         if ((((isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'16$this->source); })()) == "prestatime") || ((isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'16$this->source); })()) == "horizonce"))) {
  63.             echo "col-2";
  64.         } else {
  65.             echo "col-3";
  66.         }
  67.         echo "\">
  68.                 <div id=\"logo_home\">
  69.                     ";
  70.         // line 18
  71.         if ( !(null === (isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo"$context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.'18$this->source); })()))) {
  72.             // line 19
  73.             echo "                        <a class=\"logo\" href=\"";
  74.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
  75.             echo "\" title=\"";
  76.             echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name"$context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.'19$this->source); })()), "html"nulltrue);
  77.             echo "\" style=\"background-image:url('";
  78.             echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia((isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo"$context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.'19$this->source); })()), "downscale_300"), "html"nulltrue);
  79.             echo "')\"></a>
  80.                         <a class=\"logo_sticky\" href=\"";
  81.             // line 20
  82.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
  83.             echo "\" title=\"";
  84.             echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name"$context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.'20$this->source); })()), "html"nulltrue);
  85.             echo "\" style=\"background-image:url('";
  86.             echo twig_escape_filter($this->env$this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia((isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo"$context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.'20$this->source); })()), "downscale_300"), "html"nulltrue);
  87.             echo "')\"></a>
  88.                     ";
  89.         } else {
  90.             // line 22
  91.             echo "                        <a class=\"logo\" href=\"";
  92.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
  93.             echo "\" title=\"";
  94.             echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name"$context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.'22$this->source); })()), "html"nulltrue);
  95.             echo "\" style=\"background-image:url('";
  96.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_" . (isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'22$this->source); })())) . ".png")), "html"nulltrue);
  97.             echo "')\"></a>
  98.                         <a class=\"logo_sticky\" href=\"";
  99.             // line 23
  100.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
  101.             echo "\" title=\"";
  102.             echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name"$context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.'23$this->source); })()), "html"nulltrue);
  103.             echo "\" style=\"background-image:url('";
  104.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_sticky_" . (isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'23$this->source); })())) . ".png")), "html"nulltrue);
  105.             echo "')\"></a>
  106.                     ";
  107.         }
  108.         // line 25
  109.         echo "                </div>
  110.             </div>
  111.             <nav class=\"";
  112.         // line 27
  113.         if ((((isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'27$this->source); })()) == "prestatime") || ((isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'27$this->source); })()) == "horizonce"))) {
  114.             echo "col-10";
  115.         } else {
  116.             echo "col-9";
  117.         }
  118.         echo "\">
  119.                 <a class=\"cmn-toggle-switch cmn-toggle-switch__htx open_close\" href=\"javascript:void(0);\"><span>Menu mobile</span></a>
  120.                 <div class=\"main-menu\">
  121.                     <div id=\"header_menu\">
  122.                         <img src=\"";
  123.         // line 31
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_sticky_" . (isset($context["site_slug"]) || array_key_exists("site_slug"$context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.'31$this->source); })())) . ".png")), "html"nulltrue);
  125.         echo "\" alt=\"";
  126.         echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name"$context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.'31$this->source); })()), "html"nulltrue);
  127.         echo "\" data-retina=\"true\">
  128.                     </div>
  129.                     <a href=\"#\" class=\"open_close\" id=\"close_in\"><i class=\"icon_set_1_icon-77\"></i></a>
  130.                     <ul>
  131.                         ";
  132.         // line 35
  133.         $this->loadTemplate("menu/liste.html.twig""widget/header/index.html.twig"35)->display(twig_array_merge($context, ["menuItems" => (isset($context["menuItems"]) || array_key_exists("menuItems"$context) ? $context["menuItems"] : (function () { throw new RuntimeError('Variable "menuItems" does not exist.'35$this->source); })())]));
  134.         // line 36
  135.         echo "                    </ul>
  136.                 </div>
  137.                 <ul id=\"top_tools\">
  138.                     <li class=\"search-scroll-li d-none\">
  139.                         <a href=\"javascript:void(0);\" class=\"search-scroll\"><i class=\"icon_search\"></i></a>
  140.                     </li>
  141.                     <li class=\"search-overlay-menu-btn-li\">
  142.                         <a href=\"javascript:void(0);\" class=\"search-overlay-menu-btn\"><i class=\"icon_search\"></i></a>
  143.                     </li>
  144.                     <li>
  145.                         <div class=\"dropdown dropdown-cart\">
  146.                             <a href=\"#\" data-toggle=\"dropdown\" class=\"cart_bt\"><i class=\"icon_bag_alt\"></i><strong>0</strong></a>
  147.                             <ul class=\"dropdown-menu\" id=\"cart_items\"></ul>
  148.                         </div>
  149.                     </li>
  150.                 </ul>
  151.                 <div class=\"search-overlay-menu\">
  152.                     <span class=\"search-overlay-close\">
  153.                         <i class=\"icon_set_1_icon-77\"></i>
  154.                     </span>
  155.                     <form action=\"";
  156.         // line 57
  157.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit.liste");
  158.         echo "\" role=\"search\" id=\"searchform\" method=\"GET\">
  159.                         <input name=\"search[motcles]\" type=\"search\" placeholder=\"";
  160.         // line 58
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("que_cherchez_vous"), "html"nulltrue);
  162.         echo "\" />
  163.                         <button type=\"submit\"><i class=\"icon_set_1_icon-78\"></i></button>
  164.                     </form>
  165.                 </div>
  166.             </nav>
  167.         </div>
  168.     </div>
  169. </header>";
  170.         
  171.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.     }
  175.     public function getTemplateName()
  176.     {
  177.         return "widget/header/index.html.twig";
  178.     }
  179.     public function isTraitable()
  180.     {
  181.         return false;
  182.     }
  183.     public function getDebugInfo()
  184.     {
  185.         return array (  172 => 58,  168 => 57,  145 => 36,  143 => 35,  134 => 31,  123 => 27,  119 => 25,  110 => 23,  101 => 22,  92 => 20,  83 => 19,  81 => 18,  72 => 16,  66 => 12,  64 => 11,  63 => 10,  59 => 8,  55 => 6,  52 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  186.     }
  187.     public function getSourceContext()
  188.     {
  189.         return new Source("{% set userGroupLogo        = null %}
  190. {% set userGroupSociete     = null %}
  191. {% if app.user and app.user is not null and app.user.groups|length %}
  192.     {% set userGroupLogo        = app.user.groups|first.logo %}
  193.     {% set userGroupSociete     = app.user.groups|first.name %}
  194. {% endif %}
  195. <header>
  196.     {{ render(controller('App\\\\Controller\\\\WidgetController::toolbar', {
  197.         'initialRequest': initialRequest
  198.     })) }}
  199.     <div class=\"container\">
  200.         <div class=\"row\">
  201.             <div class=\"{% if site_slug == 'prestatime' or site_slug == 'horizonce' %}col-2{% else %}col-3{% endif %}\">
  202.                 <div id=\"logo_home\">
  203.                     {% if userGroupLogo is not null %}
  204.                         <a class=\"logo\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ sonata_media(userGroupLogo, 'downscale_300') }}')\"></a>
  205.                         <a class=\"logo_sticky\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ sonata_media(userGroupLogo, 'downscale_300') }}')\"></a>
  206.                     {% else %}
  207.                         <a class=\"logo\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ asset('build/logo/logo_'~site_slug~'.png') }}')\"></a>
  208.                         <a class=\"logo_sticky\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ asset('build/logo/logo_sticky_'~site_slug~'.png') }}')\"></a>
  209.                     {% endif %}
  210.                 </div>
  211.             </div>
  212.             <nav class=\"{% if site_slug == 'prestatime' or site_slug == 'horizonce' %}col-10{% else %}col-9{% endif %}\">
  213.                 <a class=\"cmn-toggle-switch cmn-toggle-switch__htx open_close\" href=\"javascript:void(0);\"><span>Menu mobile</span></a>
  214.                 <div class=\"main-menu\">
  215.                     <div id=\"header_menu\">
  216.                         <img src=\"{{ asset('build/logo/logo_sticky_'~site_slug~'.png') }}\" alt=\"{{ site_name }}\" data-retina=\"true\">
  217.                     </div>
  218.                     <a href=\"#\" class=\"open_close\" id=\"close_in\"><i class=\"icon_set_1_icon-77\"></i></a>
  219.                     <ul>
  220.                         {% include 'menu/liste.html.twig' with {'menuItems' : menuItems} %}
  221.                     </ul>
  222.                 </div>
  223.                 <ul id=\"top_tools\">
  224.                     <li class=\"search-scroll-li d-none\">
  225.                         <a href=\"javascript:void(0);\" class=\"search-scroll\"><i class=\"icon_search\"></i></a>
  226.                     </li>
  227.                     <li class=\"search-overlay-menu-btn-li\">
  228.                         <a href=\"javascript:void(0);\" class=\"search-overlay-menu-btn\"><i class=\"icon_search\"></i></a>
  229.                     </li>
  230.                     <li>
  231.                         <div class=\"dropdown dropdown-cart\">
  232.                             <a href=\"#\" data-toggle=\"dropdown\" class=\"cart_bt\"><i class=\"icon_bag_alt\"></i><strong>0</strong></a>
  233.                             <ul class=\"dropdown-menu\" id=\"cart_items\"></ul>
  234.                         </div>
  235.                     </li>
  236.                 </ul>
  237.                 <div class=\"search-overlay-menu\">
  238.                     <span class=\"search-overlay-close\">
  239.                         <i class=\"icon_set_1_icon-77\"></i>
  240.                     </span>
  241.                     <form action=\"{{ path('produit.liste') }}\" role=\"search\" id=\"searchform\" method=\"GET\">
  242.                         <input name=\"search[motcles]\" type=\"search\" placeholder=\"{{ 'que_cherchez_vous'|trans }}\" />
  243.                         <button type=\"submit\"><i class=\"icon_set_1_icon-78\"></i></button>
  244.                     </form>
  245.                 </div>
  246.             </nav>
  247.         </div>
  248.     </div>
  249. </header>""widget/header/index.html.twig""/home/promostamt/dev/templates/widget/header/index.html.twig");
  250.     }
  251. }