<?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/spmenu.twig */
class __TwigTemplate_1d884bf860ffc5494e3eed1f54c8ebda 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/spmenu.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/spmenu.twig"));
// line 1
echo "<div class=\"spbox1\">
";
// line 2
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 3
echo "<p>";
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.', 3, $this->source); })()), "user", [], "any", false, false, true, 3), "name01", [], "any", false, false, true, 3) != "")) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 3, $this->source); })()), "user", [], "any", false, false, true, 3), "name01", [], "any", false, false, true, 3), 3, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 3, $this->source); })()), "user", [], "any", false, false, true, 3), "name02", [], "any", false, false, true, 3), 3, $this->source), "html", null, true);
echo " 様";
}
echo " / ID…";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 3, $this->source); })()), "user", [], "any", false, false, true, 3), "company_name", [], "any", false, false, true, 3), 3, $this->source), "html", null, true);
echo "</p>
<a class=\"link50\" href=\"";
// line 4
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon01.gif\" />マイページ</a>
<a class=\"link50\" href=\"";
// line 5
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon04.gif\" />ログアウト</a>
<a class=\"link50\" href=\"";
// line 6
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon02.gif\" />お気に入り</a>
<a class=\"link50\" href=\"";
// line 7
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon03.gif\" />お問い合わせ</a>
";
} else {
// line 9
echo "<p>ゲスト様</p>
<p><img src=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon01.gif\" />
<a href=\"";
// line 11
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">ログイン</a>
<a href=\"";
// line 12
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\">生徒情報登録</a></p>
<a class=\"link100\" href=\"";
// line 13
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/icon03.gif\" />お問い合わせ</a>
";
}
// line 15
echo "</div>
<div class=\"spbox2\">
<a class=\"link100\" href=\"";
// line 18
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">HOME</a>
";
// line 20
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 21
echo " <div class=\"sublink\">
<label for=\"spdrop1\">アイテム一覧</label>
<input type=\"checkbox\" id=\"spdrop1\"/>
<div class=\"spdrop\">
";
// line 25
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_category_def"));
echo "
</div>
</div>
<div class=\"sublink\">
<label for=\"spdrop2\">お買い物ガイド</label>
<input type=\"checkbox\" id=\"spdrop2\"/>
<div class=\"spdrop\">
";
// line 33
$this->loadTemplate("Block/guidemenu_def.twig", "Block/spmenu.twig", 33)->display($context);
// line 34
echo " </div>
</div>
";
// line 36
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.', 36, $this->source); })()), "user", [], "any", false, false, true, 36), "school", [], "any", false, false, true, 36), "school_measuring_flag", [], "any", false, false, true, 36) == 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.', 36, $this->source); })()), "user", [], "any", false, false, true, 36), "school", [], "any", false, false, true, 36), "store_measuring_flag", [], "any", false, false, true, 36) == 1))) {
// line 37
echo " <div class=\"sublink\">
<label for=\"spdrop3\">予約管理</label>
<input type=\"checkbox\" id=\"spdrop3\"/>
<div class=\"spdrop\">
";
// line 41
$this->loadTemplate("Block/reserve_menu.twig", "Block/spmenu.twig", 41)->display($context);
// line 42
echo " </div>
</div>
";
}
}
// line 46
echo "
<a class=\"link100\" href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "correct_size"]);
echo "\">サイズの選び方</a>
<a class=\"link100\" href=\"";
// line 48
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "commitment_uniform"]);
echo "\">制服へのこだわり</a>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/spmenu.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 167 => 48, 163 => 47, 160 => 46, 154 => 42, 152 => 41, 146 => 37, 144 => 36, 140 => 34, 138 => 33, 127 => 25, 121 => 21, 119 => 20, 114 => 18, 109 => 15, 102 => 13, 98 => 12, 94 => 11, 90 => 10, 87 => 9, 80 => 7, 74 => 6, 68 => 5, 62 => 4, 50 => 3, 48 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"spbox1\">
{% if is_granted('ROLE_USER') %}
<p>{% if app.user.name01 != '' %}{{ app.user.name01 }} {{ app.user.name02 }} 様{% endif %} / ID…{{ app.user.company_name }}</p>
<a class=\"link50\" href=\"{{ url('mypage') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon01.gif\" />マイページ</a>
<a class=\"link50\" href=\"{{ url('logout') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon04.gif\" />ログアウト</a>
<a class=\"link50\" href=\"{{ url('mypage_favorite') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon02.gif\" />お気に入り</a>
<a class=\"link50\" href=\"{{ url('contact') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon03.gif\" />お問い合わせ</a>
{% else %}
<p>ゲスト様</p>
<p><img src=\"{{ asset('assets') }}/img/unishop/icon01.gif\" />
<a href=\"{{ url('mypage_login') }}\">ログイン</a>
<a href=\"{{ url('entry') }}\">生徒情報登録</a></p>
<a class=\"link100\" href=\"{{ url('contact') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon03.gif\" />お問い合わせ</a>
{% endif %}
</div>
<div class=\"spbox2\">
<a class=\"link100\" href=\"{{ url('homepage') }}\">HOME</a>
{% if is_granted('ROLE_USER') %}
<div class=\"sublink\">
<label for=\"spdrop1\">アイテム一覧</label>
<input type=\"checkbox\" id=\"spdrop1\"/>
<div class=\"spdrop\">
{{ render(path('block_category_def')) }}
</div>
</div>
<div class=\"sublink\">
<label for=\"spdrop2\">お買い物ガイド</label>
<input type=\"checkbox\" id=\"spdrop2\"/>
<div class=\"spdrop\">
{% include 'Block/guidemenu_def.twig' %}
</div>
</div>
{% if app.user.school.school_measuring_flag == 1 or app.user.school.store_measuring_flag == 1 %}
<div class=\"sublink\">
<label for=\"spdrop3\">予約管理</label>
<input type=\"checkbox\" id=\"spdrop3\"/>
<div class=\"spdrop\">
{% include 'Block/reserve_menu.twig' %}
</div>
</div>
{% endif %}
{% endif %}
<a class=\"link100\" href=\"{{url('user_data', {route: 'correct_size'})}}\">サイズの選び方</a>
<a class=\"link100\" href=\"{{url('user_data', {route: 'commitment_uniform'})}}\">制服へのこだわり</a>
</div>", "Block/spmenu.twig", "/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/unishop/Block/spmenu.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 2, "include" => 33);
static $filters = array("escape" => 3);
static $functions = array("is_granted" => 2, "url" => 4, "asset" => 4, "render" => 25, "path" => 25);
try {
$this->sandbox->checkSecurity(
['if', 'include'],
['escape'],
['is_granted', 'url', 'asset', '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;
}
}
}