<?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/head_menu1.twig */
class __TwigTemplate_d117af760ba6de18b25008d40928aec9 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/head_menu1.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/head_menu1.twig"));
// line 1
echo "<div class=\"header_bottom_area\">
<div class=\"guide pc\">
<ul class=\"guide_link\">
<li>
<a class=\"guide_home";
// line 5
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 5, $this->source); })()), "url", [], "any", false, false, true, 5) == "homepage")) {
echo " current";
} else {
}
echo "\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">
<span></span>
</a>
</li>
";
// line 9
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 10
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "user", [], "any", false, false, true, 10), "school", [], "any", false, false, true, 10), "item_visible_type", [], "any", false, false, true, 10) != twig_constant("\\Customize\\Entity\\School::ITEM_VISIBLE_TYPE_MATOME"))) {
// line 11
echo "
";
// line 12
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "user", [], "any", false, false, true, 12), "school", [], "any", false, false, true, 12), "school_id", [], "any", false, false, true, 12) >= "24")) {
echo "<!--新入生_採寸必須-->
<li";
// line 13
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "user", [], "any", false, false, true, 13), "dr31", [], "any", false, false, true, 13) == "")) {
echo " style=\"opacity:0.3; pointer-events:none;\"";
}
echo ">
";
} else {
// line 14
echo "<!--在校生_採寸任意-->
<li>
";
}
// line 17
echo " <div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la1\" id=\"label1\" class=\"chk_la\" />
<label for=\"label1\"><span>アイテム一覧</span></label><div class=\"ya\">
</div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon1 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\">
<span></span>
<span></span>
</div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">アイテム一覧</div>
";
// line 31
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_category_def_side"));
echo "
</div>
</div>
</div>
<!--非表示-->
</div>
</div>
</li>
";
} else {
// line 40
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\"><span>アイテム一覧</span></a></li>
";
}
// line 42
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "user", [], "any", false, false, true, 42), "school", [], "any", false, false, true, 42), "school_id", [], "any", false, false, true, 42) >= "24")) {
echo "<!--新入生_採寸必須-->
<li";
// line 43
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "user", [], "any", false, false, true, 43), "dr31", [], "any", false, false, true, 43) == "")) {
echo " style=\"opacity:0.3; pointer-events:none;\"";
}
echo ">
";
} else {
// line 44
echo "<!--在校生_採寸任意-->
<li>
";
}
// line 47
echo " <div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la2\" id=\"label2\" class=\"chk_la\" />
<label for=\"label2\">
<span style=\"";
// line 50
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
echo "border-right:none;";
} else {
echo "border-left:none;";
}
echo "\">お買い物ガイド</span>
</label>
<div class=\"ya\"></div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon2 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\">
<span></span><span></span>
</div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">お買い物ガイド</div>
<div class=\"nikk_link\">
";
// line 63
$this->loadTemplate("Block/guidemenu_def.twig", "Block/head_menu1.twig", 63)->display($context);
// line 64
echo " </div>
</div>
</div>
</div>
<!--非表示-->
</div>
</div>
</li>
<li>
<a href=\"";
// line 74
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "correct_size"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 74, $this->source); })()), "url", [], "any", false, false, true, 74) == "correct_size")) {
echo "class=\"current\"";
} else {
}
echo "><span>サイズの選び方</span></a>
</li>
<li>
<a href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "commitment_uniform"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 77, $this->source); })()), "url", [], "any", false, false, true, 77) == "commitment_uniform")) {
echo "class=\"current\"";
} else {
}
echo "><span>制服へのこだわり</span></a>
</li>
<li>
<a href=\"";
// line 80
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "store_info"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 80, $this->source); })()), "url", [], "any", false, false, true, 80) == "store_info")) {
echo "class=\"current\"";
} else {
}
echo "><span>店舗情報</span></a>
</li>
";
// line 82
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "user", [], "any", false, false, true, 82), "school", [], "any", false, false, true, 82), "school_measuring_flag", [], "any", false, false, true, 82) == 1) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "user", [], "any", false, false, true, 82), "school", [], "any", false, false, true, 82), "store_measuring_flag", [], "any", false, false, true, 82) == 1))) {
// line 83
echo " <li>
<div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la3\" id=\"label3\" class=\"chk_la\" />
<label for=\"label3\">
<span style=\"border-left: 1px dotted #707070;\">予約管理</span>
</label>
<div class=\"ya\"></div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon3 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\"><span></span><span></span></div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">店舗予約</div>
<div class=\"nikk_link\">
";
// line 98
$this->loadTemplate("Block/reserve_menu.twig", "Block/head_menu1.twig", 98)->display($context);
// line 99
echo " </div>
</div>
</div>
</div><!--非表示-->
</div>
</div>
</li>
";
}
} else {
// line 108
echo " <li>
<a href=\"";
// line 109
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "correct_size"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 109, $this->source); })()), "url", [], "any", false, false, true, 109) == "correct_size")) {
echo "class=\"current\"";
} else {
}
echo "><span>サイズの選び方</span></a>
</li>
<li>
<a href=\"";
// line 112
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "commitment_uniform"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 112, $this->source); })()), "url", [], "any", false, false, true, 112) == "commitment_uniform")) {
echo "class=\"current\"";
} else {
}
echo "><span>制服へのこだわり</span></a>
</li>
<li>
<a href=\"";
// line 115
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "store_info"]);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 115, $this->source); })()), "url", [], "any", false, false, true, 115) == "store_info")) {
echo "class=\"current\"";
} else {
}
echo "><span>店舗情報</span></a>
</li>
";
}
// line 118
echo " </ul>
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/head_menu1.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 276 => 118, 265 => 115, 254 => 112, 243 => 109, 240 => 108, 229 => 99, 227 => 98, 210 => 83, 208 => 82, 198 => 80, 187 => 77, 176 => 74, 164 => 64, 162 => 63, 142 => 50, 137 => 47, 132 => 44, 125 => 43, 121 => 42, 115 => 40, 103 => 31, 87 => 17, 82 => 14, 75 => 13, 71 => 12, 68 => 11, 65 => 10, 63 => 9, 51 => 5, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"header_bottom_area\">
<div class=\"guide pc\">
<ul class=\"guide_link\">
<li>
<a class=\"guide_home{% if Page.url == \"homepage\" %} current{% else %}{% endif %}\" href=\"{{ url('homepage') }}\">
<span></span>
</a>
</li>
{% if is_granted('ROLE_USER') %}
{% if app.user.school.item_visible_type != constant('\\\\Customize\\\\Entity\\\\School::ITEM_VISIBLE_TYPE_MATOME') %}
{% if app.user.school.school_id >= '24' %}<!--新入生_採寸必須-->
<li{% if app.user.dr31 == '' %} style=\"opacity:0.3; pointer-events:none;\"{% endif %}>
{% else %}<!--在校生_採寸任意-->
<li>
{% endif %}
<div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la1\" id=\"label1\" class=\"chk_la\" />
<label for=\"label1\"><span>アイテム一覧</span></label><div class=\"ya\">
</div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon1 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\">
<span></span>
<span></span>
</div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">アイテム一覧</div>
{{ render(path('block_category_def_side')) }}
</div>
</div>
</div>
<!--非表示-->
</div>
</div>
</li>
{% else %}
<li><a href=\"{{ url('product_list')}}\"><span>アイテム一覧</span></a></li>
{% endif %}
{% if app.user.school.school_id >= '24' %}<!--新入生_採寸必須-->
<li{% if app.user.dr31 == '' %} style=\"opacity:0.3; pointer-events:none;\"{% endif %}>
{% else %}<!--在校生_採寸任意-->
<li>
{% endif %}
<div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la2\" id=\"label2\" class=\"chk_la\" />
<label for=\"label2\">
<span style=\"{% if is_granted('ROLE_USER') %}border-right:none;{% else %}border-left:none;{% endif %}\">お買い物ガイド</span>
</label>
<div class=\"ya\"></div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon2 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\">
<span></span><span></span>
</div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">お買い物ガイド</div>
<div class=\"nikk_link\">
{% include 'Block/guidemenu_def.twig' %}
</div>
</div>
</div>
</div>
<!--非表示-->
</div>
</div>
</li>
<li>
<a href=\"{{ url('user_data', {'route': 'correct_size'}) }}\" {% if Page.url == \"correct_size\" %}class=\"current\"{% else %}{% endif %}><span>サイズの選び方</span></a>
</li>
<li>
<a href=\"{{ url('user_data', {'route': 'commitment_uniform'}) }}\" {% if Page.url == \"commitment_uniform\" %}class=\"current\"{% else %}{% endif %}><span>制服へのこだわり</span></a>
</li>
<li>
<a href=\"{{ url('user_data', {'route': 'store_info'}) }}\" {% if Page.url == \"store_info\" %}class=\"current\"{% else %}{% endif %}><span>店舗情報</span></a>
</li>
{% if app.user.school.school_measuring_flag == 1 or app.user.school.store_measuring_flag == 1 %}
<li>
<div class=\"headmenu_box\">
<input type=\"checkbox\" name=\"la3\" id=\"label3\" class=\"chk_la\" />
<label for=\"label3\">
<span style=\"border-left: 1px dotted #707070;\">予約管理</span>
</label>
<div class=\"ya\"></div>
<div class=\"headmenu_show\">
<!--非表示ここから-->
<div class=\"mouseon3 mouseon\">
<div class=\"puton\">
<div class=\"closebtn\"><span></span><span></span></div>
<div class=\"itemall nikk\">
<div class=\"nikk_title\">店舗予約</div>
<div class=\"nikk_link\">
{% include 'Block/reserve_menu.twig' %}
</div>
</div>
</div>
</div><!--非表示-->
</div>
</div>
</li>
{% endif %}
{% else %}
<li>
<a href=\"{{ url('user_data', {'route': 'correct_size'}) }}\" {% if Page.url == \"correct_size\" %}class=\"current\"{% else %}{% endif %}><span>サイズの選び方</span></a>
</li>
<li>
<a href=\"{{ url('user_data', {'route': 'commitment_uniform'}) }}\" {% if Page.url == \"commitment_uniform\" %}class=\"current\"{% else %}{% endif %}><span>制服へのこだわり</span></a>
</li>
<li>
<a href=\"{{ url('user_data', {'route': 'store_info'}) }}\" {% if Page.url == \"store_info\" %}class=\"current\"{% else %}{% endif %}><span>店舗情報</span></a>
</li>
{% endif %}
</ul>
</div>
</div>", "Block/head_menu1.twig", "/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/unishop/Block/head_menu1.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 5, "include" => 63);
static $filters = array();
static $functions = array("url" => 5, "is_granted" => 9, "constant" => 10, "render" => 31, "path" => 31);
try {
$this->sandbox->checkSecurity(
['if', 'include'],
[],
['url', 'is_granted', 'constant', 'render', 'path']
);
} 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;
}
}
}