<?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;
/* Block/login_sp.twig */
class __TwigTemplate_c6cbd81716212b90d5ee81558b39692e extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "Block/login_sp.twig"));
// line 11
echo "
<ul class=\"btnArea\">
";
// line 13
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 14
echo " <li><a class=\"ec-headerLink__item btnArrow logout\" href=\"";
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("logout");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログアウト"), "html", null, true);
echo "
</a></li>
<li><a class=\"ec-headerLink__item btnMypage\" href=\"";
// line 16
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage");
echo "\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("マイページ"), "html", null, true);
echo "</span>
</a></li>
";
} else {
// line 19
echo " <li><a class=\"ec-headerLink__item btnArrow login\" href=\"";
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage_login");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "
</a></li>
<li><a class=\"ec-headerLink__item btnMypage new\" href=\"";
// line 21
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("entry");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html", null, true);
echo "
</a></li>
";
}
// line 24
echo " </ul>
<p><a class=\"btnCart\" href=\"";
// line 25
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
echo "\"><span>カゴの中を見る</span>
</a></p>
<ul class=\"gnav\">
<li><a href=\"";
// line 28
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("homepage");
echo "\">HOME</a></li>
<li><a href=\"";
// line 29
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
echo "\">商品紹介</a></li>
<li><a href=\"/user_data/news\">お知らせ</a></li>
<li><a href=\"";
// line 31
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("help_about");
echo "\">キクロンについて</a></li>
<li><a href=\"";
// line 32
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("contact");
echo "\">お問い合わせ</a></li>
</ul>
";
// line 34
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("block_search_product"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Block/login_sp.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 107 => 34, 102 => 32, 98 => 31, 93 => 29, 89 => 28, 83 => 25, 80 => 24, 72 => 21, 64 => 19, 56 => 16, 48 => 14, 46 => 13, 42 => 11,);
}
public function getSourceContext()
{
return new Source("", "Block/login_sp.twig", "/usr/home/hbw1010t44oz/html/app/template/default/Block/login_sp.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 13);
static $filters = array("escape" => 14, "trans" => 14);
static $functions = array("is_granted" => 13, "url" => 14, "render" => 34, "path" => 34);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans'],
['is_granted', 'url', 'render', 'path'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}