<?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/header.twig */
class __TwigTemplate_e6e9b138fa8b5ccc9b79ffa0c4227aa3 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/header.twig"));
// line 1
echo "<div class=\"p-header__inner\">
";
// line 3
echo " <div class=\"p-header__logo\">
<h1 class=\"p-header__siteTitle\">
<a href=\"";
// line 5
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("homepage");
echo "\" class=\"p-header__siteTitleLink\">
<img src=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/logo_kaiteseki.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["BaseInfo"] ?? null), "shop_name", [], "any", false, false, true, 6), 6, $this->source), "html", null, true);
echo "のロゴ\" class=\"p-header__logoImage\" width=\"100%\" height=\"45px\" />
</a>
</h1>
</div>
";
// line 12
echo " <div class=\"p-header__controls\">
";
// line 14
echo " <div class=\"p-header__topArea\">
";
// line 17
echo " <div class=\"p-header__searchForm\">
";
// line 18
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("block_search_product"));
echo "
</div>
";
// line 22
echo " <ul class=\"p-header__utilityNav\">
";
// line 25
echo " ";
// line 26
echo " ";
// line 27
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 28
echo " ";
// line 29
echo " <li class=\"p-header__utilityItem p-header__utilityItem--mypage\">
<a href=\"";
// line 30
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage");
echo "\" class=\"p-header__utilityLink\">
<img src=\"";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-login.svg"), "html", null, true);
echo "\" alt=\"ログインのアイコン\" width=\"auto\" height=\"19px\">
<span class=\"p-header__utilityLabel\">マイページ</span>
</a>
</li>
";
} else {
// line 36
echo " ";
// line 37
echo " <li class=\"p-header__utilityItem p-header__utilityItem--login\">
<a href=\"";
// line 38
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("mypage_login");
echo "\" class=\"p-header__utilityLink\">
<img src=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-login.svg"), "html", null, true);
echo "\" alt=\"ログインのアイコン\" width=\"auto\" height=\"19px\">
<span class=\"p-header__utilityLabel\">ログイン</span>
</a>
</li>
";
}
// line 44
echo "
";
// line 46
echo " ";
// line 47
echo " ";
// line 48
echo "
";
// line 50
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["BaseInfo"] ?? null), "option_favorite_product", [], "any", false, false, true, 50)) {
// line 51
echo " <li class=\"p-header__utilityItem p-header__utilityItem--favorite\">
<a href=\"";
// line 52
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("mypage_favorite");
echo "\" class=\"p-header__utilityLink\">
<img src=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-favorite.svg"), "html", null, true);
echo "\" alt=\"お気に入りのアイコン\" width=\"21px\" height=\"19px\">
<span class=\"p-header__utilityLabel\">お気に入り</span>
</a>
</li>
";
}
// line 58
echo "
";
// line 60
echo " <li class=\"p-header__utilityItem p-header__utilityItem--cart\">
<a href=\"";
// line 61
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("cart");
echo "\" class=\"p-header__utilityLink\">
<img src=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-cart.svg"), "html", null, true);
echo "\" alt=\"カートのアイコン\" width=\"21px\" height=\"19px\">
<span class=\"p-header__utilityLabel\">カート</span>
</a>
</li>
";
// line 68
echo " ";
// line 69
echo " ";
// line 70
echo " ";
if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 71
echo " <li class=\"p-header__utilityItem p-header__utilityItem--register p-header__utilityItem--highlight\">
<a href=\"";
// line 72
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("entry");
echo "\" class=\"p-header__utilityLink\">
<img src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-entry.svg"), "html", null, true);
echo "\" alt=\"新規会員登録のアイコン\" width=\"auto\" height=\"19px\">
<span class=\"p-header__utilityLabel\">新規会員登録</span>
</a>
</li>
";
}
// line 78
echo "
";
// line 80
echo " <li class=\"p-header__utilityItem p-header__utilityItem--spNavToggle\">
<div class=\"p-header__spNav p-header__utilityLink\">
<img src=\"";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/icon-menu.svg"), "html", null, true);
echo "\" alt=\"メニューのアイコン\" width=\"21px\" height=\"19px\">
<span class=\"p-header__utilityLabel\">メニュー</span>
</div>
</li>
</ul>
</div>
";
// line 90
echo " <nav class=\"p-header__globalNav\" aria-label=\"グローバルナビゲーション\">
<ul class=\"p-header__navList\">
<li class=\"p-header__navItem\"><a href=\"";
// line 92
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("product_list");
echo "\" class=\"p-header__navLink\">商品一覧</a></li>
<li class=\"p-header__navItem\"><a href=\"";
// line 93
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getPath("product_list");
echo "?category_id=all\" class=\"p-header__navLink\">カテゴリー一覧</a></li>
</ul>
<ul class=\"p-header__infoList\">
<li class=\"p-header__infoItem\"><a href=\"/help/about\" class=\"p-header__infoLink\">運営会社</a></li>
<li class=\"p-header__infoItem\"><a href=\"/guide\" class=\"p-header__infoLink\">ご利用ガイド</a></li>
<li class=\"p-header__infoItem\"><a href=\"/news\" class=\"p-header__infoLink\">お知らせ</a></li>
</ul>
</nav>
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 217 => 93, 213 => 92, 209 => 90, 199 => 82, 195 => 80, 192 => 78, 184 => 73, 180 => 72, 177 => 71, 174 => 70, 172 => 69, 170 => 68, 162 => 62, 158 => 61, 155 => 60, 152 => 58, 144 => 53, 140 => 52, 137 => 51, 134 => 50, 131 => 48, 129 => 47, 127 => 46, 124 => 44, 116 => 39, 112 => 38, 109 => 37, 107 => 36, 99 => 31, 95 => 30, 92 => 29, 90 => 28, 87 => 27, 85 => 26, 83 => 25, 79 => 22, 73 => 18, 70 => 17, 66 => 14, 63 => 12, 53 => 6, 49 => 5, 45 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("", "Block/header.twig", "/home/carry/staging-page.com/public_html/koyama.staging-page.com/app/template/kaitekikabe/Block/header.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 27);
static $filters = array("escape" => 6);
static $functions = array("url" => 5, "asset" => 6, "render" => 18, "path" => 18, "is_granted" => 27);
try {
$this->sandbox->checkSecurity(
['if'],
['escape'],
['url', 'asset', 'render', 'path', 'is_granted']
);
} 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;
}
}
}