var/cache/dev/twig/61/61633569ce3ae84c99d374aadaea3bee.php line 35

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. /* Block/spmenu.twig */
  14. class __TwigTemplate_1d884bf860ffc5494e3eed1f54c8ebda extends \Eccube\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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/spmenu.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/spmenu.twig"));
  35.         // line 1
  36.         echo "<div class=\"spbox1\">
  37. ";
  38.         // line 2
  39.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  40.             // line 3
  41.             echo "<p>";
  42.             if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue3), "name01", [], "any"falsefalsetrue3) != "")) {
  43.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue3), "name01", [], "any"falsefalsetrue3), 3$this->source), "html"nulltrue);
  44.                 echo " ";
  45.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue3), "name02", [], "any"falsefalsetrue3), 3$this->source), "html"nulltrue);
  46.                 echo " 様";
  47.             }
  48.             echo " / ID…";
  49.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue3), "company_name", [], "any"falsefalsetrue3), 3$this->source), "html"nulltrue);
  50.             echo "</p>
  51. <a class=\"link50\" href=\"";
  52.             // line 4
  53.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
  54.             echo "\"><img src=\"";
  55.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  56.             echo "/img/unishop/icon01.gif\" />マイページ</a>
  57. <a class=\"link50\" href=\"";
  58.             // line 5
  59.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
  60.             echo "\"><img src=\"";
  61.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  62.             echo "/img/unishop/icon04.gif\" />ログアウト</a>
  63. <a class=\"link50\" href=\"";
  64.             // line 6
  65.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  66.             echo "\"><img src=\"";
  67.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  68.             echo "/img/unishop/icon02.gif\" />お気に入り</a>
  69. <a class=\"link50\" href=\"";
  70.             // line 7
  71.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  72.             echo "\"><img src=\"";
  73.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  74.             echo "/img/unishop/icon03.gif\" />お問い合わせ</a>
  75. ";
  76.         } else {
  77.             // line 9
  78.             echo "<p>ゲスト様</p>
  79. <p><img src=\"";
  80.             // line 10
  81.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  82.             echo "/img/unishop/icon01.gif\" />
  83. <a href=\"";
  84.             // line 11
  85.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  86.             echo "\">ログイン</a>
  87. <a href=\"";
  88.             // line 12
  89.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  90.             echo "\">生徒情報登録</a></p>
  91. <a class=\"link100\" href=\"";
  92.             // line 13
  93.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  94.             echo "\"><img src=\"";
  95.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html"nulltrue);
  96.             echo "/img/unishop/icon03.gif\" />お問い合わせ</a>
  97. ";
  98.         }
  99.         // line 15
  100.         echo "</div>
  101. <div class=\"spbox2\">
  102. <a class=\"link100\" href=\"";
  103.         // line 18
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  105.         echo "\">HOME</a>
  106. ";
  107.         // line 20
  108.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  109.             // line 21
  110.             echo "    <div class=\"sublink\">
  111.         <label for=\"spdrop1\">アイテム一覧</label>
  112.         <input type=\"checkbox\" id=\"spdrop1\"/>
  113.         <div class=\"spdrop\">
  114.         ";
  115.             // line 25
  116.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_category_def"));
  117.             echo "
  118.         </div>
  119.     </div>
  120.     <div class=\"sublink\">
  121.         <label for=\"spdrop2\">お買い物ガイド</label>
  122.         <input type=\"checkbox\" id=\"spdrop2\"/>
  123.         <div class=\"spdrop\">
  124.         ";
  125.             // line 33
  126.             $this->loadTemplate("Block/guidemenu_def.twig""Block/spmenu.twig"33)->display($context);
  127.             // line 34
  128.             echo "        </div>
  129.     </div>
  130.     ";
  131.             // line 36
  132.             if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue36), "school", [], "any"falsefalsetrue36), "school_measuring_flag", [], "any"falsefalsetrue36) == 1) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue36), "school", [], "any"falsefalsetrue36), "store_measuring_flag", [], "any"falsefalsetrue36) == 1))) {
  133.                 // line 37
  134.                 echo "    <div class=\"sublink\">
  135.         <label for=\"spdrop3\">予約管理</label>
  136.         <input type=\"checkbox\" id=\"spdrop3\"/>
  137.         <div class=\"spdrop\">
  138.             ";
  139.                 // line 41
  140.                 $this->loadTemplate("Block/reserve_menu.twig""Block/spmenu.twig"41)->display($context);
  141.                 // line 42
  142.                 echo "        </div>
  143.     </div>
  144.     ";
  145.             }
  146.         }
  147.         // line 46
  148.         echo "
  149. <a class=\"link100\" href=\"";
  150.         // line 47
  151.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "correct_size"]);
  152.         echo "\">サイズの選び方</a>
  153. <a class=\"link100\" href=\"";
  154.         // line 48
  155.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "commitment_uniform"]);
  156.         echo "\">制服へのこだわり</a>
  157. </div>";
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.         
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162.     }
  163.     public function getTemplateName()
  164.     {
  165.         return "Block/spmenu.twig";
  166.     }
  167.     public function isTraitable()
  168.     {
  169.         return false;
  170.     }
  171.     public function getDebugInfo()
  172.     {
  173.         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,);
  174.     }
  175.     public function getSourceContext()
  176.     {
  177.         return new Source("<div class=\"spbox1\">
  178. {% if is_granted('ROLE_USER') %}
  179. <p>{% if app.user.name01 != '' %}{{ app.user.name01 }} {{ app.user.name02 }} 様{% endif %} / ID…{{ app.user.company_name }}</p>
  180. <a class=\"link50\" href=\"{{ url('mypage') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon01.gif\" />マイページ</a>
  181. <a class=\"link50\" href=\"{{ url('logout') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon04.gif\" />ログアウト</a>
  182. <a class=\"link50\" href=\"{{ url('mypage_favorite') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon02.gif\" />お気に入り</a>
  183. <a class=\"link50\" href=\"{{ url('contact') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon03.gif\" />お問い合わせ</a>
  184. {% else %}
  185. <p>ゲスト様</p>
  186. <p><img src=\"{{ asset('assets') }}/img/unishop/icon01.gif\" />
  187. <a href=\"{{ url('mypage_login') }}\">ログイン</a>
  188. <a href=\"{{ url('entry') }}\">生徒情報登録</a></p>
  189. <a class=\"link100\" href=\"{{ url('contact') }}\"><img src=\"{{ asset('assets') }}/img/unishop/icon03.gif\" />お問い合わせ</a>
  190. {% endif %}
  191. </div>
  192. <div class=\"spbox2\">
  193. <a class=\"link100\" href=\"{{ url('homepage') }}\">HOME</a>
  194. {% if is_granted('ROLE_USER') %}
  195.     <div class=\"sublink\">
  196.         <label for=\"spdrop1\">アイテム一覧</label>
  197.         <input type=\"checkbox\" id=\"spdrop1\"/>
  198.         <div class=\"spdrop\">
  199.         {{ render(path('block_category_def')) }}
  200.         </div>
  201.     </div>
  202.     <div class=\"sublink\">
  203.         <label for=\"spdrop2\">お買い物ガイド</label>
  204.         <input type=\"checkbox\" id=\"spdrop2\"/>
  205.         <div class=\"spdrop\">
  206.         {% include 'Block/guidemenu_def.twig' %}
  207.         </div>
  208.     </div>
  209.     {% if app.user.school.school_measuring_flag == 1 or app.user.school.store_measuring_flag == 1 %}
  210.     <div class=\"sublink\">
  211.         <label for=\"spdrop3\">予約管理</label>
  212.         <input type=\"checkbox\" id=\"spdrop3\"/>
  213.         <div class=\"spdrop\">
  214.             {% include 'Block/reserve_menu.twig' %}
  215.         </div>
  216.     </div>
  217.     {% endif %}
  218. {% endif %}
  219. <a class=\"link100\" href=\"{{url('user_data', {route: 'correct_size'})}}\">サイズの選び方</a>
  220. <a class=\"link100\" href=\"{{url('user_data', {route: 'commitment_uniform'})}}\">制服へのこだわり</a>
  221. </div>""Block/spmenu.twig""/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/unishop/Block/spmenu.twig");
  222.     }
  223.     
  224.     public function checkSecurity()
  225.     {
  226.         static $tags = array("if" => 2"include" => 33);
  227.         static $filters = array("escape" => 3);
  228.         static $functions = array("is_granted" => 2"url" => 4"asset" => 4"render" => 25"path" => 25);
  229.         try {
  230.             $this->sandbox->checkSecurity(
  231.                 ['if''include'],
  232.                 ['escape'],
  233.                 ['is_granted''url''asset''render''path']
  234.             );
  235.         } catch (SecurityError $e) {
  236.             $e->setSourceContext($this->source);
  237.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  238.                 $e->setTemplateLine($tags[$e->getTagName()]);
  239.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  240.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  241.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  242.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  243.             }
  244.             throw $e;
  245.         }
  246.     }
  247. }