var/cache/dev/twig/cc/cceed836e85db17d58f5015db1bef95f.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. /* @SyliusShop/Menu/_security.html.twig */
  14. class __TwigTemplate_03495c1767a09b53e34c5e25abeeb27c 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Menu/_security.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Menu/_security.html.twig"));
  33.         // line 1
  34.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  35.             // line 2
  36.             echo "        <a href=\"";
  37.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_dashboard");
  38.             echo "\" class=\"hyfindr btn btn--borderless btn--icon desktop-menu\">
  39.                 <span class=\"material-symbols-outlined\">account_circle</span>
  40.         </a>
  41.         <div class=\"hyfindr btn btn--borderless btn--icon mobile-account-sidebar-trigger mobile-menu\">
  42.                 <span class=\"material-symbols-outlined\">account_circle</span>
  43.         </div>
  44. ";
  45.         } else {
  46.             // line 10
  47.             echo "        <a href=\"";
  48.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  49.             echo "\" class=\"hyfindr btn btn--borderless btn--icon\">
  50.                 <span class=\"material-symbols-outlined\">account_circle</span>
  51.         </a>
  52. ";
  53.         }
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     public function getTemplateName()
  60.     {
  61.         return "@SyliusShop/Menu/_security.html.twig";
  62.     }
  63.     public function isTraitable()
  64.     {
  65.         return false;
  66.     }
  67.     public function getDebugInfo()
  68.     {
  69.         return array (  57 => 10,  45 => 2,  43 => 1,);
  70.     }
  71.     public function getSourceContext()
  72.     {
  73.         return new Source("{% if is_granted('ROLE_USER') %}
  74.         <a href=\"{{ path('sylius_shop_account_dashboard') }}\" class=\"hyfindr btn btn--borderless btn--icon desktop-menu\">
  75.                 <span class=\"material-symbols-outlined\">account_circle</span>
  76.         </a>
  77.         <div class=\"hyfindr btn btn--borderless btn--icon mobile-account-sidebar-trigger mobile-menu\">
  78.                 <span class=\"material-symbols-outlined\">account_circle</span>
  79.         </div>
  80. {% else %}
  81.         <a href=\"{{ path('sylius_shop_login') }}\" class=\"hyfindr btn btn--borderless btn--icon\">
  82.                 <span class=\"material-symbols-outlined\">account_circle</span>
  83.         </a>
  84. {% endif %}
  85. ""@SyliusShop/Menu/_security.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Menu/_security.html.twig");
  86.     }
  87. }