<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Menu/_security.html.twig */
class __TwigTemplate_03495c1767a09b53e34c5e25abeeb27c extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Menu/_security.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Menu/_security.html.twig"));
// line 1
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 2
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_dashboard");
echo "\" class=\"hyfindr btn btn--borderless btn--icon desktop-menu\">
<span class=\"material-symbols-outlined\">account_circle</span>
</a>
<div class=\"hyfindr btn btn--borderless btn--icon mobile-account-sidebar-trigger mobile-menu\">
<span class=\"material-symbols-outlined\">account_circle</span>
</div>
";
} else {
// line 10
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\" class=\"hyfindr btn btn--borderless btn--icon\">
<span class=\"material-symbols-outlined\">account_circle</span>
</a>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Menu/_security.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 57 => 10, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if is_granted('ROLE_USER') %}
<a href=\"{{ path('sylius_shop_account_dashboard') }}\" class=\"hyfindr btn btn--borderless btn--icon desktop-menu\">
<span class=\"material-symbols-outlined\">account_circle</span>
</a>
<div class=\"hyfindr btn btn--borderless btn--icon mobile-account-sidebar-trigger mobile-menu\">
<span class=\"material-symbols-outlined\">account_circle</span>
</div>
{% else %}
<a href=\"{{ path('sylius_shop_login') }}\" class=\"hyfindr btn btn--borderless btn--icon\">
<span class=\"material-symbols-outlined\">account_circle</span>
</a>
{% endif %}
", "@SyliusShop/Menu/_security.html.twig", "/srv/open_marketplace/templates/bundles/SyliusShopBundle/Menu/_security.html.twig");
}
}