var/cache/dev/twig/14/14cf167ead0515914d183e2bc8d9d0eb175ce110059cc6a31d3af1a7fab02179.php line 152

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/header.twig */
  14. class __TwigTemplate_c59c5cd5c8f3f18a62d7384f43e7a6886bd84bb2296475269cc77b0b1247e0fb 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  33.         // line 11
  34.         echo "<div class=\"ec-headerNaviTop\">
  35.     <div class=\"ec-headerNaviTop__inner\">
  36.         <div class=\"ec-headerNaviTop__left\">
  37.             <p class=\"ec-headerNaviTop__left__text\">8,800円(税込)以上<br class=\"sp-show\">送料無料</p>
  38.             <p class=\"ec-headerNaviTop__left__text m-none\">営業日 月~金 11時までで当日発送<span>※在庫商品に限る</span></p>
  39.         </div>
  40.         <p class=\"ec-headerNaviTop__right\">ブレイバーズは美容師さん、理容師さんのための会員制プロショップです</p>
  41.     </div>
  42. </div>
  43. <div class=\"ec-headerNaviRole\">
  44.     <div class=\"ec-headerNaviRole__left\">
  45.         <div class=\"ec-headerNaviRole__logo\">
  46.             <a href=\"";
  47.         // line 23
  48.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  49.         echo "\">
  50.                 <img src=\"";
  51.         // line 24
  52.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/logo-header.svg"), "html"nulltrue);
  53.         echo "\" alt=\"株式会社bravers(ブレイバーズ)\" width=\"150\" height=\"150\" loading=\"lazy\">
  54.             </a>
  55.         </div>
  56.         ";
  57.         // line 33
  58.         echo "    </div>
  59.     <div class=\"ec-headerNaviRole__right\">
  60.         <div class=\"ec-headerNaviRole__link bt\">
  61.             <a href=\"";
  62.         // line 36
  63.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  64.         echo "\" class=\"link\">
  65.                 <img src=\"";
  66.         // line 37
  67.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/hatena.svg"), "html"nulltrue);
  68.         echo "\" alt=\"ヘルプ\" width=\"22\" height=\"22\" loading=\"lazy\">
  69.                 <span class=\"ec-headerNaviRole__link__linkText\">";
  70.         // line 38
  71.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ヘルプ・お問い合わせ"), "html"nulltrue);
  72.         echo "</span>
  73.             </a>
  74.         </div>
  75.         ";
  76.         // line 41
  77.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  78.             // line 42
  79.             echo "            <div class=\"ec-headerNaviRole__link moderate s-show\">
  80.                 <button class=\"white-no-warp button\">
  81.                     <img class=\"user-icon\"class=\"user-icon\" src=\"";
  82.             // line 44
  83.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/user.svg"), "html"nulltrue);
  84.             echo "\" alt=\"\" width=\"12\" height=\"18\" loading=\"lazy\">
  85.                     <p class=\"text\">";
  86.             // line 45
  87.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%last_name% %first_name%", ["%last_name%" => 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.'45$this->source); })()), "user", [], "any"falsefalsefalse45), "name01", [], "any"falsefalsefalse45), "%first_name%" => 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.'45$this->source); })()), "user", [], "any"falsefalsefalse45), "name02", [], "any"falsefalsefalse45)]), "html"nulltrue);
  88.             echo "<span>";
  89.             if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'45$this->source); })()), "option_point", [], "any"falsefalsefalse45)) {
  90.                 echo "(";
  91.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ポイント%point%", ["%point%" => twig_number_format_filter($this->envtwig_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.'45$this->source); })()), "user", [], "any"falsefalsefalse45), "point", [], "any"falsefalsefalse45))]), "html"nulltrue);
  92.                 echo ")";
  93.             }
  94.             echo "</span></p>
  95.                 </button>
  96.                 <div class=\"dropdown ec-headerNaviRole__link__dropdown\">
  97.                     <a href=\"";
  98.             // line 48
  99.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
  100.             echo "\">マイページ</a>
  101.                     <a href=\"";
  102.             // line 49
  103.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
  104.             echo "\">ログアウト</a>
  105.                 </div>
  106.             </div>
  107.         ";
  108.         } else {
  109.             // line 53
  110.             echo "            <div class=\"ec-headerNaviRole__link\">
  111.                 <a class=\"link\" href=\"";
  112.             // line 54
  113.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  114.             echo "\">
  115.                     <img src=\"";
  116.             // line 55
  117.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/login.svg"), "html"nulltrue);
  118.             echo "\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\">
  119.                     <span class=\"ec-headerNaviRole__link__linkText\">";
  120.             // line 56
  121.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  122.             echo "</span>
  123.                 </a>
  124.             </div>
  125.         ";
  126.         }
  127.         // line 60
  128.         echo "        ";
  129.         // line 65
  130.         echo "        ";
  131.         echo twig_include($this->env$context"Block/nav_sp.twig");
  132.         echo "
  133.         ";
  134.         // line 72
  135.         echo "    </div>
  136. </div>
  137. <div class=\"ec-headerMenu\">
  138.     <div class=\"ec-headerMenu__inner\">
  139.         <div class=\"ec-headerMenu__left\">
  140.             <div class=\"ec-headerMenu__search\">
  141.                 ";
  142.         // line 78
  143.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  144.         echo "
  145.             </div>
  146.         </div>
  147.         <div class=\"ec-headerMenu__right\">
  148.             <ul class=\"ec-headerMenu__list\">
  149.                 <li class=\"ec-headerMenu__list__maker\">
  150.                     <div class=\"moderate\">
  151.                         <button id=\"dropdown__btn\" class=\"dropdown__btn white-no-warp button\">メーカー・カテゴリー</button>
  152.                         <div class=\"dropdown__body dropdown\" data-tabs>
  153.                             <nav class=\"dropdown__body__left\">
  154.                                 ";
  155.         // line 88
  156.         $context['_parent'] = $context;
  157.         $context['_seq'] = twig_ensure_traversable((isset($context["TopCategories"]) || array_key_exists("TopCategories"$context) ? $context["TopCategories"] : (function () { throw new RuntimeError('Variable "TopCategories" does not exist.'88$this->source); })()));
  158.         $context['loop'] = [
  159.           'parent' => $context['_parent'],
  160.           'index0' => 0,
  161.           'index'  => 1,
  162.           'first'  => true,
  163.         ];
  164.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  165.             $length count($context['_seq']);
  166.             $context['loop']['revindex0'] = $length 1;
  167.             $context['loop']['revindex'] = $length;
  168.             $context['loop']['length'] = $length;
  169.             $context['loop']['last'] = === $length;
  170.         }
  171.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  172.             // line 89
  173.             echo "                                    <button class=\"dropdown__body__left__btn ";
  174.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse89) == 1)) {
  175.                 echo "is-active";
  176.             }
  177.             echo "\" data-tab>
  178.                                         ";
  179.             // line 90
  180.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse90), "html"nulltrue);
  181.             echo "
  182.                                     </button>
  183.                                 ";
  184.             ++$context['loop']['index0'];
  185.             ++$context['loop']['index'];
  186.             $context['loop']['first'] = false;
  187.             if (isset($context['loop']['length'])) {
  188.                 --$context['loop']['revindex0'];
  189.                 --$context['loop']['revindex'];
  190.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  191.             }
  192.         }
  193.         $_parent $context['_parent'];
  194.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  195.         $context array_intersect_key($context$_parent) + $_parent;
  196.         // line 93
  197.         echo "                            </nav>
  198.                             <div class=\"dropdown__body__right\">
  199.                                 ";
  200.         // line 95
  201.         $context['_parent'] = $context;
  202.         $context['_seq'] = twig_ensure_traversable((isset($context["TopCategories"]) || array_key_exists("TopCategories"$context) ? $context["TopCategories"] : (function () { throw new RuntimeError('Variable "TopCategories" does not exist.'95$this->source); })()));
  203.         $context['loop'] = [
  204.           'parent' => $context['_parent'],
  205.           'index0' => 0,
  206.           'index'  => 1,
  207.           'first'  => true,
  208.         ];
  209.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  210.             $length count($context['_seq']);
  211.             $context['loop']['revindex0'] = $length 1;
  212.             $context['loop']['revindex'] = $length;
  213.             $context['loop']['length'] = $length;
  214.             $context['loop']['last'] = === $length;
  215.         }
  216.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  217.             // line 96
  218.             echo "                                    ";
  219.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "children", [], "any"falsefalsefalse96)) > 0)) {
  220.                 // line 97
  221.                 echo "                                    <ul class=\"dropdown__list ";
  222.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse97) == 1)) {
  223.                     echo "is-show";
  224.                 }
  225.                 echo "\" data-tab-content>
  226.                                     ";
  227.                 // line 99
  228.                 echo "                                        ";
  229.                 $context['_parent'] = $context;
  230.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Category"], "children", [], "any"falsefalsefalse99));
  231.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  232.                     // line 100
  233.                     echo "                                            <li class=\"dropdown__item\">
  234.                                                 <a href=\"";
  235.                     // line 101
  236.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  237.                     echo "?category_id=";
  238.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory"], "id", [], "any"falsefalsefalse101), "html"nulltrue);
  239.                     echo "\" class=\"dropdown__item-link ";
  240.                     if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory"], "children", [], "any"falsefalsefalse101)) > 0)) {
  241.                         echo "lowerLayer";
  242.                     }
  243.                     echo "\">
  244.                                                     ";
  245.                     // line 102
  246.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory"], "name", [], "any"falsefalsefalse102), "html"nulltrue);
  247.                     echo "
  248.                                                 </a>
  249.                                                 ";
  250.                     // line 105
  251.                     echo "                                                ";
  252.                     if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory"], "children", [], "any"falsefalsefalse105)) > 0)) {
  253.                         // line 106
  254.                         echo "                                                    <ul class=\"dropdown__item__hover\">
  255.                                                         ";
  256.                         // line 107
  257.                         $context['_parent'] = $context;
  258.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["ChildCategory"], "children", [], "any"falsefalsefalse107));
  259.                         foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory2"]) {
  260.                             // line 108
  261.                             echo "                                                            <li class=\"dropdown__item__hover__item\">
  262.                                                                 <a href=\"";
  263.                             // line 109
  264.                             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  265.                             echo "?category_id=";
  266.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory2"], "id", [], "any"falsefalsefalse109), "html"nulltrue);
  267.                             echo "\" class=\"dropdown__item__hover__item__link\">";
  268.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ChildCategory2"], "name", [], "any"falsefalsefalse109), "html"nulltrue);
  269.                             echo "</a>
  270.                                                             </li>
  271.                                                         ";
  272.                         }
  273.                         $_parent $context['_parent'];
  274.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory2'], $context['_parent'], $context['loop']);
  275.                         $context array_intersect_key($context$_parent) + $_parent;
  276.                         // line 112
  277.                         echo "                                                    </ul>
  278.                                                 ";
  279.                     }
  280.                     // line 114
  281.                     echo "                                            </li>
  282.                                         ";
  283.                 }
  284.                 $_parent $context['_parent'];
  285.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  286.                 $context array_intersect_key($context$_parent) + $_parent;
  287.                 // line 116
  288.                 echo "                                    </ul>
  289.                                     ";
  290.             }
  291.             // line 118
  292.             echo "                                ";
  293.             ++$context['loop']['index0'];
  294.             ++$context['loop']['index'];
  295.             $context['loop']['first'] = false;
  296.             if (isset($context['loop']['length'])) {
  297.                 --$context['loop']['revindex0'];
  298.                 --$context['loop']['revindex'];
  299.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  300.             }
  301.         }
  302.         $_parent $context['_parent'];
  303.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  304.         $context array_intersect_key($context$_parent) + $_parent;
  305.         // line 119
  306.         echo "                            </div>
  307.                             
  308.                         </div>
  309.                     </div>
  310.                     <button class=\"sp-hamburger\" aria-controls=\"hamburger_menu\">メーカー・カテゴリー</button>
  311.                 </li>
  312.                 <li class=\"ec-headerMenu__list__item\">
  313.                     <a href=\"";
  314.         // line 126
  315.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  316.         echo "\" class=\"link\">
  317.                         <img src=\"";
  318.         // line 127
  319.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/favorite.svg"), "html"nulltrue);
  320.         echo "\" alt=\"お気に入り\" width=\"24\" height=\"24\" loading=\"lazy\">
  321.                         <span class=\"ec-headerNav__itemLink\">";
  322.         // line 128
  323.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入り"), "html"nulltrue);
  324.         echo "</span>
  325.                     </a>
  326.                 </li>
  327.                 <li class=\"ec-headerMenu__list__item\">
  328.                     <a href=\"";
  329.         // line 132
  330.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("history_product_list");
  331.         echo "\" class=\"link\">
  332.                         <img src=\"";
  333.         // line 133
  334.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/purchase.svg"), "html"nulltrue);
  335.         echo "\" alt=\"お気に入り\" width=\"24\" height=\"24\" loading=\"lazy\">
  336.                         <span>購入履歴</span>
  337.                     </a>
  338.                 </li>
  339.                 <li class=\"ec-headerMenu__list__item \">
  340.                     ";
  341.         // line 138
  342.         echo twig_include($this->env$context"Block/cart.twig");
  343.         echo "
  344.                 </li>
  345.             </ul>
  346.         </div>
  347.     </div>
  348. </div>
  349. ";
  350.         
  351.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  352.         
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  354.     }
  355.     public function getTemplateName()
  356.     {
  357.         return "Block/header.twig";
  358.     }
  359.     public function isTraitable()
  360.     {
  361.         return false;
  362.     }
  363.     public function getDebugInfo()
  364.     {
  365.         return array (  351 => 138,  343 => 133,  339 => 132,  332 => 128,  328 => 127,  324 => 126,  315 => 119,  301 => 118,  297 => 116,  290 => 114,  286 => 112,  273 => 109,  270 => 108,  266 => 107,  263 => 106,  260 => 105,  255 => 102,  245 => 101,  242 => 100,  237 => 99,  230 => 97,  227 => 96,  210 => 95,  206 => 93,  189 => 90,  182 => 89,  165 => 88,  152 => 78,  144 => 72,  139 => 65,  137 => 60,  130 => 56,  126 => 55,  122 => 54,  119 => 53,  112 => 49,  108 => 48,  96 => 45,  92 => 44,  88 => 42,  86 => 41,  80 => 38,  76 => 37,  72 => 36,  67 => 33,  61 => 24,  57 => 23,  43 => 11,);
  366.     }
  367.     public function getSourceContext()
  368.     {
  369.         return new Source("{#
  370. This file is part of EC-CUBE
  371. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  372. http://www.ec-cube.co.jp/
  373. For the full copyright and license information, please view the LICENSE
  374. file that was distributed with this source code.
  375. #}
  376. <div class=\"ec-headerNaviTop\">
  377.     <div class=\"ec-headerNaviTop__inner\">
  378.         <div class=\"ec-headerNaviTop__left\">
  379.             <p class=\"ec-headerNaviTop__left__text\">8,800円(税込)以上<br class=\"sp-show\">送料無料</p>
  380.             <p class=\"ec-headerNaviTop__left__text m-none\">営業日 月~金 11時までで当日発送<span>※在庫商品に限る</span></p>
  381.         </div>
  382.         <p class=\"ec-headerNaviTop__right\">ブレイバーズは美容師さん、理容師さんのための会員制プロショップです</p>
  383.     </div>
  384. </div>
  385. <div class=\"ec-headerNaviRole\">
  386.     <div class=\"ec-headerNaviRole__left\">
  387.         <div class=\"ec-headerNaviRole__logo\">
  388.             <a href=\"{{ url('homepage') }}\">
  389.                 <img src=\"{{ asset('assets/img/common/logo-header.svg') }}\" alt=\"株式会社bravers(ブレイバーズ)\" width=\"150\" height=\"150\" loading=\"lazy\">
  390.             </a>
  391.         </div>
  392.         {# <div class=\"ec-headerNaviRole__search\">
  393.             {{ render(path('block_search_product')) }}
  394.         </div>
  395.         <div class=\"ec-headerRole__navSP\">
  396.             {{ include('Block/nav_sp.twig') }}
  397.         </div> #}
  398.     </div>
  399.     <div class=\"ec-headerNaviRole__right\">
  400.         <div class=\"ec-headerNaviRole__link bt\">
  401.             <a href=\"{{ url('contact')}}\" class=\"link\">
  402.                 <img src=\"{{ asset('assets/img/common/hatena.svg') }}\" alt=\"ヘルプ\" width=\"22\" height=\"22\" loading=\"lazy\">
  403.                 <span class=\"ec-headerNaviRole__link__linkText\">{{ 'ヘルプ・お問い合わせ'|trans }}</span>
  404.             </a>
  405.         </div>
  406.         {% if is_granted('ROLE_USER') %}
  407.             <div class=\"ec-headerNaviRole__link moderate s-show\">
  408.                 <button class=\"white-no-warp button\">
  409.                     <img class=\"user-icon\"class=\"user-icon\" src=\"{{ asset('assets/img/common/user.svg') }}\" alt=\"\" width=\"12\" height=\"18\" loading=\"lazy\">
  410.                     <p class=\"text\">{{ '%last_name% %first_name%'|trans({ '%last_name%': app.user.name01, '%first_name%': app.user.name02 }) }}<span>{% if BaseInfo.option_point %}({{ 'ポイント%point%'|trans({ '%point%': app.user.point|number_format}) }}){% endif %}</span></p>
  411.                 </button>
  412.                 <div class=\"dropdown ec-headerNaviRole__link__dropdown\">
  413.                     <a href=\"{{ url('mypage') }}\">マイページ</a>
  414.                     <a href=\"{{ url('logout') }}\">ログアウト</a>
  415.                 </div>
  416.             </div>
  417.         {% else %}
  418.             <div class=\"ec-headerNaviRole__link\">
  419.                 <a class=\"link\" href=\"{{ url('mypage_login') }}\">
  420.                     <img src=\"{{ asset('assets/img/common/login.svg') }}\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\">
  421.                     <span class=\"ec-headerNaviRole__link__linkText\">{{ 'ログイン'|trans }}</span>
  422.                 </a>
  423.             </div>
  424.         {% endif %}
  425.         {# <button class=\"hamburger-btn\">
  426.             <span></span>
  427.             <span></span>
  428.             <span></span>
  429.         </button> #}
  430.         {{ include('Block/nav_sp.twig') }}
  431.         {# <div class=\"ec-headerNaviRole__nav\">
  432.             {{ include('Block/login.twig') }}
  433.         </div>
  434.         <div class=\"ec-headerRole__cart\">
  435.             {{ include('Block/cart.twig') }}
  436.         </div> #}
  437.     </div>
  438. </div>
  439. <div class=\"ec-headerMenu\">
  440.     <div class=\"ec-headerMenu__inner\">
  441.         <div class=\"ec-headerMenu__left\">
  442.             <div class=\"ec-headerMenu__search\">
  443.                 {{ render(path('block_search_product')) }}
  444.             </div>
  445.         </div>
  446.         <div class=\"ec-headerMenu__right\">
  447.             <ul class=\"ec-headerMenu__list\">
  448.                 <li class=\"ec-headerMenu__list__maker\">
  449.                     <div class=\"moderate\">
  450.                         <button id=\"dropdown__btn\" class=\"dropdown__btn white-no-warp button\">メーカー・カテゴリー</button>
  451.                         <div class=\"dropdown__body dropdown\" data-tabs>
  452.                             <nav class=\"dropdown__body__left\">
  453.                                 {% for Category in TopCategories %}
  454.                                     <button class=\"dropdown__body__left__btn {% if loop.index == 1 %}is-active{% endif %}\" data-tab>
  455.                                         {{ Category.name }}
  456.                                     </button>
  457.                                 {% endfor %}
  458.                             </nav>
  459.                             <div class=\"dropdown__body__right\">
  460.                                 {% for Category in TopCategories %}
  461.                                     {% if Category.children|length > 0 %}
  462.                                     <ul class=\"dropdown__list {% if loop.index == 1 %}is-show{% endif %}\" data-tab-content>
  463.                                     {# ここにカテゴリーを置いて欲しいです。 #}
  464.                                         {% for ChildCategory in Category.children %}
  465.                                             <li class=\"dropdown__item\">
  466.                                                 <a href=\"{{ url('product_list') }}?category_id={{ ChildCategory.id }}\" class=\"dropdown__item-link {% if ChildCategory.children|length > 0 %}lowerLayer{% endif %}\">
  467.                                                     {{ ChildCategory.name }}
  468.                                                 </a>
  469.                                                 {# ここは第三階層 #}
  470.                                                 {% if ChildCategory.children|length > 0 %}
  471.                                                     <ul class=\"dropdown__item__hover\">
  472.                                                         {% for ChildCategory2 in ChildCategory.children %}
  473.                                                             <li class=\"dropdown__item__hover__item\">
  474.                                                                 <a href=\"{{ url('product_list') }}?category_id={{ ChildCategory2.id }}\" class=\"dropdown__item__hover__item__link\">{{ChildCategory2.name}}</a>
  475.                                                             </li>
  476.                                                         {% endfor %}
  477.                                                     </ul>
  478.                                                 {% endif %}
  479.                                             </li>
  480.                                         {% endfor %}
  481.                                     </ul>
  482.                                     {% endif %}
  483.                                 {% endfor %}
  484.                             </div>
  485.                             
  486.                         </div>
  487.                     </div>
  488.                     <button class=\"sp-hamburger\" aria-controls=\"hamburger_menu\">メーカー・カテゴリー</button>
  489.                 </li>
  490.                 <li class=\"ec-headerMenu__list__item\">
  491.                     <a href=\"{{ url('mypage_favorite') }}\" class=\"link\">
  492.                         <img src=\"{{ asset('assets/img/common/favorite.svg') }}\" alt=\"お気に入り\" width=\"24\" height=\"24\" loading=\"lazy\">
  493.                         <span class=\"ec-headerNav__itemLink\">{{ 'お気に入り'|trans }}</span>
  494.                     </a>
  495.                 </li>
  496.                 <li class=\"ec-headerMenu__list__item\">
  497.                     <a href=\"{{ url('history_product_list') }}\" class=\"link\">
  498.                         <img src=\"{{ asset('assets/img/common/purchase.svg') }}\" alt=\"お気に入り\" width=\"24\" height=\"24\" loading=\"lazy\">
  499.                         <span>購入履歴</span>
  500.                     </a>
  501.                 </li>
  502.                 <li class=\"ec-headerMenu__list__item \">
  503.                     {{ include('Block/cart.twig') }}
  504.                 </li>
  505.             </ul>
  506.         </div>
  507.     </div>
  508. </div>
  509. ""Block/header.twig""/home/bravers/bravers.xbiz.jp/public_html/app/template/bravers/Block/header.twig");
  510.     }
  511. }