var/cache/dev/twig/6f/6f6db3425b19fa5a16df48665e755901.php line 90

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. /* includes/navigation-icons.html.twig */
  14. class __TwigTemplate_bf9d52074605df625888568a7d0c0374 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/navigation-icons.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""includes/navigation-icons.html.twig"));
  35.         // line 1
  36.         echo "<ul class=\"navbar-nav menu-icons flex-row justify-content-center\">
  37.     <li class=\"search-button nav-item dropdown\">
  38.         <a class=\"search-toggle dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"#\"  data-selector=\"#navbarCollapse\">
  39.         </a>
  40.     </li>
  41.     <li class=\"nav-item dropdown\">
  42.         <a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
  43.             <img src=\"/static/images/icons/profile.svg\" /></a>
  44.         <ul class=\"dropdown-menu\">
  45.             ";
  46.         // line 11
  47.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  48.             // line 12
  49.             echo "
  50.                 <span class=\"dropdown-menu-arrow search arrow\"></span>
  51.                 <div class=\"dropdown-item\">";
  52.             // line 15
  53.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.logged-in-as", [twig_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.'15$this->source); })()), "user", [], "any"falsefalsetrue15), "username", [], "any"falsefalsetrue15)]), "html"nulltrue);
  54.             echo "</div>
  55.                 <div class=\"dropdown-divider\"></div>
  56.                 <a href=\"";
  57.             // line 17
  58.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-index");
  59.             echo "\" class=\"dropdown-item\">";
  60.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.profile"), "html"nulltrue);
  61.             echo "</a>
  62.                 <div class=\"dropdown-divider\"></div>
  63.                 <a href=\"";
  64.             // line 19
  65.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-logout");
  66.             echo "\"class=\"dropdown-item\">";
  67.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.logout"), "html"nulltrue);
  68.             echo "</a>
  69.             ";
  70.         } else {
  71.             // line 22
  72.             echo "
  73.                 <span class=\"dropdown-menu-arrow search arrow\"></span>
  74.                 <a href=\"";
  75.             // line 24
  76.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-login");
  77.             echo "\"class=\"dropdown-item\">";
  78.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.login"), "html"nulltrue);
  79.             echo "</a>
  80.             ";
  81.         }
  82.         // line 27
  83.         echo "
  84.         </ul>
  85.     </li>
  86.     <li class=\"nav-item\">
  87.         <a class=\"py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"";
  88.         // line 31
  89.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-cart-detail");
  90.         echo "\">
  91.             <img src=\"/static/images/icons/cart.svg\" /></a>
  92.     </li>
  93.     ";
  94.         // line 34
  95.         echo twig_include($this->env$context"includes/language.html.twig");
  96.         echo "
  97. </ul>
  98. <form action=\"";
  99.         // line 36
  100.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search");
  101.         echo "\" class=\"search-box mx-auto\">
  102.     <input id=\"autoComplete\" name=\"term\" value=\"";
  103.         // line 37
  104.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'37$this->source); })()), "request", [], "any"falsefalsetrue37), "get", ["term"], "method"falsefalsetrue37), 37$this->source), "html"nulltrue);
  105.         echo "\" type=\"text\" class=\"text search-input\" placeholder=\"Type here to search...\" autocomplete=\"off\" />
  106. </form>";
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.     }
  112.     /**
  113.      * @codeCoverageIgnore
  114.      */
  115.     public function getTemplateName()
  116.     {
  117.         return "includes/navigation-icons.html.twig";
  118.     }
  119.     /**
  120.      * @codeCoverageIgnore
  121.      */
  122.     public function isTraitable()
  123.     {
  124.         return false;
  125.     }
  126.     /**
  127.      * @codeCoverageIgnore
  128.      */
  129.     public function getDebugInfo()
  130.     {
  131.         return array (  117 => 37,  113 => 36,  108 => 34,  102 => 31,  96 => 27,  88 => 24,  84 => 22,  76 => 19,  69 => 17,  64 => 15,  59 => 12,  57 => 11,  45 => 1,);
  132.     }
  133.     public function getSourceContext()
  134.     {
  135.         return new Source("<ul class=\"navbar-nav menu-icons flex-row justify-content-center\">
  136.     <li class=\"search-button nav-item dropdown\">
  137.         <a class=\"search-toggle dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"#\"  data-selector=\"#navbarCollapse\">
  138.         </a>
  139.     </li>
  140.     <li class=\"nav-item dropdown\">
  141.         <a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
  142.             <img src=\"/static/images/icons/profile.svg\" /></a>
  143.         <ul class=\"dropdown-menu\">
  144.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  145.                 <span class=\"dropdown-menu-arrow search arrow\"></span>
  146.                 <div class=\"dropdown-item\">{{ 'general.logged-in-as' | trans([app.user.username]) }}</div>
  147.                 <div class=\"dropdown-divider\"></div>
  148.                 <a href=\"{{ path('account-index') }}\" class=\"dropdown-item\">{{ 'general.profile' | trans }}</a>
  149.                 <div class=\"dropdown-divider\"></div>
  150.                 <a href=\"{{ path('account-logout') }}\"class=\"dropdown-item\">{{ 'general.logout' | trans }}</a>
  151.             {%  else %}
  152.                 <span class=\"dropdown-menu-arrow search arrow\"></span>
  153.                 <a href=\"{{ path('account-login') }}\"class=\"dropdown-item\">{{ 'general.login' | trans }}</a>
  154.             {% endif %}
  155.         </ul>
  156.     </li>
  157.     <li class=\"nav-item\">
  158.         <a class=\"py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"{{ path('shop-cart-detail') }}\">
  159.             <img src=\"/static/images/icons/cart.svg\" /></a>
  160.     </li>
  161.     {{ include('includes/language.html.twig') }}
  162. </ul>
  163. <form action=\"{{ path('search') }}\" class=\"search-box mx-auto\">
  164.     <input id=\"autoComplete\" name=\"term\" value=\"{{ app.request.get(\"term\") }}\" type=\"text\" class=\"text search-input\" placeholder=\"Type here to search...\" autocomplete=\"off\" />
  165. </form>""includes/navigation-icons.html.twig""/var/www/dev-10/templates/includes/navigation-icons.html.twig");
  166.     }
  167.     
  168.     public function checkSecurity()
  169.     {
  170.         static $tags = array("if" => 11);
  171.         static $filters = array("escape" => 15"trans" => 15);
  172.         static $functions = array("is_granted" => 11"path" => 17"include" => 34);
  173.         try {
  174.             $this->sandbox->checkSecurity(
  175.                 ['if'],
  176.                 ['escape''trans'],
  177.                 ['is_granted''path''include']
  178.             );
  179.         } catch (SecurityError $e) {
  180.             $e->setSourceContext($this->source);
  181.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  182.                 $e->setTemplateLine($tags[$e->getTagName()]);
  183.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  184.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  185.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  186.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  187.             }
  188.             throw $e;
  189.         }
  190.     }
  191. }