var/cache/dev/twig/90/90ee2e8f1ef1cf3911a82921e293e7729ae30755b5608f41e19618f60a0afd9f.php line 71

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_56db78e35679c3c9e14cdcee35d782de3c283b02847fc6fb9548abbe2630dc2b 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""@SyliusShop/Menu/_security.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""@SyliusShop/Menu/_security.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"ui right stackable menu\" style=\"border: none; box-shadow: none\">
  35.     ";
  36.         // line 2
  37.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  38.             // line 3
  39.             echo "        <a href=\"";
  40.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_dashboard");
  41.             echo "\" class=\"item right\">";
  42.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.your_account"), "html"nulltrue);
  43.             echo "</a>
  44.         ";
  45.             // line 8
  46.             echo "    ";
  47.         } else {
  48.             // line 9
  49.             echo "        <a href=\"";
  50.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  51.             echo "\" class=\"item right\">";
  52.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.your_account"), "html"nulltrue);
  53.             echo "</a>
  54. ";
  55.             // line 11
  56.             echo "    ";
  57.         }
  58.         // line 12
  59.         echo "
  60.     ";
  61.         // line 13
  62.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_cart_summary", ["template" => "@SyliusShop/Cart/_widget.html.twig"]));
  63.         echo "
  64. </div>
  65. ";
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.     }
  71.     public function getTemplateName()
  72.     {
  73.         return "@SyliusShop/Menu/_security.html.twig";
  74.     }
  75.     public function isTraitable()
  76.     {
  77.         return false;
  78.     }
  79.     public function getDebugInfo()
  80.     {
  81.         return array (  71 => 13,  68 => 12,  65 => 11,  58 => 9,  55 => 8,  48 => 3,  46 => 2,  43 => 1,);
  82.     }
  83.     public function getSourceContext()
  84.     {
  85.         return new Source("<div class=\"ui right stackable menu\" style=\"border: none; box-shadow: none\">
  86.     {% if is_granted('ROLE_USER') %}
  87.         <a href=\"{{ path('sylius_shop_account_dashboard') }}\" class=\"item right\">{{ 'sylius.ui.your_account'|trans }}</a>
  88.         {# <a href=\"{{ path('sylius_shop_logout') }}\" class=\"item sylius-logout-button\" {{ sylius_test_html_attribute('logout-button') }}>
  89.             <img src=\"{{ theme('img/exit.svg') }}\"> 
  90.         </a> #}
  91. {#        <a href=\"{{ path('sylius_shop_logout') }}\" class=\"item sylius-logout-button\" {{ sylius_test_html_attribute('logout-button') }}>{{ 'sylius.ui.logout'|trans }}</a>#}
  92.     {% else %}
  93.         <a href=\"{{ path('sylius_shop_login') }}\" class=\"item right\">{{ 'sylius.ui.your_account'|trans }}</a>
  94. {#        <a href=\"{{ path('sylius_shop_register') }}\" class=\"item\">{{ 'sylius.ui.register'|trans }}</a>#}
  95.     {% endif %}
  96.     {{ render(url('sylius_shop_partial_cart_summary', {'template': '@SyliusShop/Cart/_widget.html.twig'})) }}
  97. </div>
  98. ""@SyliusShop/Menu/_security.html.twig""/var/www/html/templates/bundles/SyliusShopBundle/Menu/_security.html.twig");
  99.     }
  100. }