var/cache/dev/twig/14/1467bb7d1eae63fc3e0ee35cd3b4f2d6.php line 73

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/header1.twig */
  14. class __TwigTemplate_352dd9d223fef81e8ee4f96d7ff8e95c 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.             'stylesheet' => [$this'block_stylesheet'],
  25.             'javascript' => [$this'block_javascript'],
  26.         ];
  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/header1.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/header1.twig"));
  35.         // line 11
  36.         echo "
  37. ";
  38.         // line 13
  39.         $this->displayBlock('stylesheet'$context$blocks);
  40.         // line 17
  41.         echo "
  42. ";
  43.         // line 18
  44.         $this->displayBlock('javascript'$context$blocks);
  45.         // line 22
  46.         echo "
  47. <div class=\"fixed-header\">
  48.     <section>
  49.     <div id=\"site_header\">
  50.         <div class=\"header_logo\">
  51.             <a href=\"https://photo-pub.com/books\">
  52.                 <img src=\"";
  53.         // line 29
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/photopub_title.svg""user_data"), "html"nulltrue);
  55.         echo "\">
  56.             </a>
  57.         </div>
  58.         <div class=\"header_menus\">
  59.             <div class=\"header_inner1\">
  60.                 ";
  61.         // line 34
  62.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  63.         echo "
  64.                 <div class=\"header_link1 pc\">
  65.                     <ul class=\"link1\">
  66.                         <li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
  67.                         <li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
  68.                         <li><a href=\"";
  69.         // line 39
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  71.         echo "\">お問い合わせ</a></li>
  72.                         <li><a href=\"";
  73.         // line 40
  74.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("opinion");
  75.         echo "\">意見箱</a></li>
  76.                     </ul>
  77.                 </div>
  78.                 <div class=\"header_link2\">
  79.                     ";
  80.         // line 44
  81.         echo twig_include($this->env$context"Block/login.twig");
  82.         echo "
  83.                 </div>
  84.                 <div class=\"hamburger-menu sp\">
  85.                     <button id=\"hamburger\" class=\"hamburger\">
  86.                         <span></span>
  87.                         <span></span>
  88.                         <span></span>
  89.                     </button>
  90.                     <nav id=\"menus\" class=\"menus\">
  91.                         <ul class=\"hamburger-tabs\">
  92.                             <li class=\"menu-item\">
  93.                                 <a href=\"https://photo-pub.com/\">TOP</a>
  94.                             </li>
  95.                             <li class=\"menu-item\">
  96.                                 <a href=\"";
  97.         // line 60
  98.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  99.         echo "\">フォトパブ堂書店</a>
  100.                                 <ul class=\"submenu\">
  101.                                     <li><span></span><a href=\"";
  102.         // line 62
  103.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  104.         echo "books\">  フォトパブ堂書店TOP</a></li>
  105.                                     <li><span></span><a href=\"";
  106.         // line 63
  107.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  108.         echo "products/list?category_id=1\">  鉄道</a></li>
  109.                                     <li><span></span><a href=\"";
  110.         // line 64
  111.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  112.         echo "products/list?category_id=2\">  バス</a></li>
  113.                                     <li><span></span><a href=\"";
  114.         // line 65
  115.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  116.         echo "products/list?category_id=5\">  古地図・歴史散歩(地域)</a></li>
  117.                                     <li><span></span><a href=\"";
  118.         // line 66
  119.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  120.         echo "products/list?category_id=7\">  その他</a></li>
  121.                                 </ul>
  122.                             </li>
  123.                             <li class=\"menu-item\">
  124.                                 <a href=\"https://jihi.photo-pub.co.jp/\">自費出版サービス</a>
  125.                                 <ul class=\"submenu\">
  126.                                     <li><span></span><a href=\"https://jihi.photo-pub.co.jp/\">詳細情報</a></li>
  127.                                 </ul>
  128.                             </li>
  129.                             <li class=\"menu-item\">
  130.                                 <a href=\"https://photo-pub.co.jp/event\">イベント情報</a>
  131.                                 <ul class=\"submenu\">
  132.                                     <li><span></span><a href=\"https://photo-pub.co.jp/event\">イベント一覧</a></li>
  133.                                 </ul>
  134.                             </li>
  135.                             <li class=\"menu-item\">
  136.                                 <a href=\"https://photo-pub.co.jp/recruit\">各種募集</a>
  137.                                 <ul class=\"submenu\">
  138.                                     <li><span></span><a href=\"https://photo-pub.co.jp/recruit\">募集一覧</a></li>
  139.                                 </ul>
  140.                             </li>
  141.                         </ul>
  142.                         <ul class=\"hamburger-links\">
  143.                             <li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
  144.                             <li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
  145.                             <li><a href=\"";
  146.         // line 92
  147.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  148.         echo "\">お問い合わせ</a></li>
  149.                             <li><a href=\"";
  150.         // line 93
  151.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("opinion");
  152.         echo "\">意見箱</a></li>
  153.                             <li><a href=\"https://photo-pub.com/help/privacy\">プライバシー<br class=\"br_linkbox\">ポリシー</a></li>
  154.                             <li><a href=\"https://photo-pub.com/help/tradelaw\">特定商取引法<br class=\"br_linkbox\">に基づく表記</a></li>
  155.                         </ul>
  156.                         <ul class=\"hamburger-sns\">
  157.                             <li><a><img src=\"";
  158.         // line 99
  159.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_insta.png""user_data"), "html"nulltrue);
  160.         echo "\" alt=\"insta\"></a></li>
  161.                             <li><a href=\"https://www.youtube.com/@%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96\"><img src=\"";
  162.         // line 100
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_youtube.svg""user_data"), "html"nulltrue);
  164.         echo "\" alt=\"youtube\"></a></li>
  165.                             <li><a href=\"https://twitter.com/share?url=https://photo-pub.co.jp/&via=photopub402&hashtags=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0&text=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0\"><img src=\"";
  166.         // line 101
  167.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_x.svg""user_data"), "html"nulltrue);
  168.         echo "\" alt=\"x\"></a></li>
  169.                             <li><a href=\"http://www.facebook.com/share.php?u=https://photo-pub.co.jp/\"><img src=\"";
  170.         // line 102
  171.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_fb.svg""user_data"), "html"nulltrue);
  172.         echo "\" alt=\"fb\"></a></li>
  173.                         </ul>
  174.                     </nav>
  175.                 </div>
  176.             </div>
  177.             <div class=\"header_inner2 pc\">
  178.                 <ul class=\"select_btns\">
  179.                     <li class=\"btn\"><a href=\"https://photo-pub.com/\">TOP</a></li>
  180.                     <li class=\"btn\"><a href=\"";
  181.         // line 111
  182.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  183.         echo "books\">フォトパブ堂書店</a></li>
  184.                     <li class=\"btn\"><a href=\"http://jihi.photo-pub.co.jp/\">自費出版サービス</a></li>
  185.                     <li class=\"btn\"><a href=\"https://photo-pub.co.jp/event\">イベント情報</a></li>
  186.                     <li class=\"btn\"><a href=\"https://photo-pub.co.jp/recruit\">各種募集</a></li>
  187.                 </ul>
  188.             </div>
  189.         </div>
  190.     </div>
  191.     <div class=\"tabs\">
  192.         <ul class=\"tabs_inner\">
  193.             ";
  194.         // line 121
  195.         $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsefalse121);
  196.         // line 122
  197.         echo "    
  198.             ";
  199.         // line 124
  200.         echo "            ";
  201.         // line 142
  202.         echo "    
  203.             ";
  204.         // line 143
  205.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  206.         // line 144
  207.         echo "    
  208.             <div class=\"ec-categoryNaviRole\">
  209.                 <div class=\"ec-itemNav\">
  210.                     <ul class=\"ec-itemNav__nav\">
  211.                         ";
  212.         // line 148
  213.         $context['_parent'] = $context;
  214.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'148$this->source); })()));
  215.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  216.             // line 149
  217.             echo "                            <li>
  218.                                 ";
  219.             // line 151
  220.             echo "                                ";
  221.             echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"], 1], 151$context$this->getSourceContext());
  222.             echo "
  223.                             </li>
  224.                         ";
  225.         }
  226.         $_parent $context['_parent'];
  227.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  228.         $context array_intersect_key($context$_parent) + $_parent;
  229.         // line 154
  230.         echo "                    </ul>
  231.                 </div>
  232.             </div>
  233.         </ul>
  234.     </div>
  235.     <div class=\"sp-search-form\">
  236.         <form action=\"";
  237.         // line 160
  238.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
  239.         echo "\" class=\"search-form sp\">
  240.             <input type=\"text\" class=\"search-form-input\" placeholder=\"キーワード(タイトル、著者など)を入力\">
  241.             <button type=\"submit\" class=\"search-form-submit\" aria-label=\"検索\"></button>
  242.         </form>
  243.     </div>
  244. </section>
  245. </div>
  246. <style>
  247.     .fixed-header {
  248.     position: fixed;
  249.     top: 0;
  250.     left: 0;
  251.     width: 100%;
  252.     z-index: 9999;
  253.     background-color: #fff; /* 背景が透けないように */
  254.     box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 任意:影で浮かせる */
  255.     }
  256.     
  257.     body {
  258.         padding-top: 150px; /* ヘッダーの高さに合わせて調整(例:80px) */
  259.     }
  260. @media screen and (max-width: 820px) {
  261.     body {
  262.         padding-top: 180px; /* ヘッダーの高さに合わせて調整(例:80px) */
  263.     }
  264. }
  265. </style>";
  266.         
  267.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  268.         
  269.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  270.     }
  271.     // line 13
  272.     public function block_stylesheet($context, array $blocks = [])
  273.     {
  274.         $macros $this->macros;
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  278.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  279.         // line 14
  280.         echo "    <link rel=\"stylesheet\" href=\"";
  281.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/main_module.css""user_data"), "html"nulltrue);
  282.         echo "\">
  283.     <link rel=\"stylesheet\" href=\"";
  284.         // line 15
  285.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/header_style.css""user_data"), "html"nulltrue);
  286.         echo "\">
  287. ";
  288.         
  289.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  290.         
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292.     }
  293.     // line 18
  294.     public function block_javascript($context, array $blocks = [])
  295.     {
  296.         $macros $this->macros;
  297.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  299.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  301.         // line 19
  302.         echo "    <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  303.     <script src=\"";
  304.         // line 20
  305.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/header.js""user_data"), "html"nulltrue);
  306.         echo "\"></script>
  307. ";
  308.         
  309.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  310.         
  311.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  312.     }
  313.     // line 124
  314.     public function macro_tree($__Category__ null$__depth__ null, ...$__varargs__)
  315.     {
  316.         $macros $this->macros;
  317.         $context $this->env->mergeGlobals([
  318.             "Category" => $__Category__,
  319.             "depth" => $__depth__,
  320.             "varargs" => $__varargs__,
  321.         ]);
  322.         $blocks = [];
  323.         ob_start();
  324.         try {
  325.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  326.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  327.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  328.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  329.             // line 125
  330.             echo "                ";
  331.             $macros["__internal_parse_0"] = $this;
  332.             // line 126
  333.             echo "                
  334.                 <a href=\"";
  335.             // line 127
  336.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  337.             echo "?category_id=";
  338.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'127$this->source); })()), "id", [], "any"falsefalsefalse127), "html"nulltrue);
  339.             echo "\">
  340.                     ";
  341.             // line 128
  342.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'128$this->source); })()), "name", [], "any"falsefalsefalse128), "html"nulltrue);
  343.             echo "
  344.                 </a>
  345.     
  346.                 ";
  347.             // line 132
  348.             echo "                ";
  349.             if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'132$this->source); })()), "children", [], "any"falsefalsefalse132)) > 0) && ((isset($context["depth"]) || array_key_exists("depth"$context) ? $context["depth"] : (function () { throw new RuntimeError('Variable "depth" does not exist.'132$this->source); })()) == 1))) {
  350.                 // line 133
  351.                 echo "                    <ul>
  352.                         ";
  353.                 // line 134
  354.                 $context['_parent'] = $context;
  355.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'134$this->source); })()), "children", [], "any"falsefalsefalse134));
  356.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  357.                     // line 135
  358.                     echo "                            <li>
  359.                                 ";
  360.                     // line 136
  361.                     echo twig_call_macro($macros["__internal_parse_0"], "macro_tree", [$context["ChildCategory"], ((isset($context["depth"]) || array_key_exists("depth"$context) ? $context["depth"] : (function () { throw new RuntimeError('Variable "depth" does not exist.'136$this->source); })()) + 1)], 136$context$this->getSourceContext());
  362.                     echo "
  363.                             </li>
  364.                         ";
  365.                 }
  366.                 $_parent $context['_parent'];
  367.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  368.                 $context array_intersect_key($context$_parent) + $_parent;
  369.                 // line 139
  370.                 echo "                    </ul>
  371.                 ";
  372.             }
  373.             // line 141
  374.             echo "            ";
  375.             
  376.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  377.             
  378.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  379.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  380.         } finally {
  381.             ob_end_clean();
  382.         }
  383.     }
  384.     public function getTemplateName()
  385.     {
  386.         return "Block/header1.twig";
  387.     }
  388.     public function isTraitable()
  389.     {
  390.         return false;
  391.     }
  392.     public function getDebugInfo()
  393.     {
  394.         return array (  409 => 141,  405 => 139,  396 => 136,  393 => 135,  389 => 134,  386 => 133,  383 => 132,  377 => 128,  371 => 127,  368 => 126,  365 => 125,  345 => 124,  333 => 20,  330 => 19,  320 => 18,  308 => 15,  303 => 14,  293 => 13,  254 => 160,  246 => 154,  236 => 151,  233 => 149,  229 => 148,  223 => 144,  221 => 143,  218 => 142,  216 => 124,  213 => 122,  211 => 121,  198 => 111,  186 => 102,  182 => 101,  178 => 100,  174 => 99,  165 => 93,  161 => 92,  132 => 66,  128 => 65,  124 => 64,  120 => 63,  116 => 62,  111 => 60,  92 => 44,  85 => 40,  81 => 39,  73 => 34,  65 => 29,  56 => 22,  54 => 18,  51 => 17,  49 => 13,  45 => 11,);
  395.     }
  396.     public function getSourceContext()
  397.     {
  398.         return new Source("{#
  399. This file is part of EC-CUBE
  400. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  401. http://www.ec-cube.co.jp/
  402. For the full copyright and license information, please view the LICENSE
  403. file that was distributed with this source code.
  404. #}
  405. {% block stylesheet %}
  406.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/main_module.css', 'user_data') }}\">
  407.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/header_style.css', 'user_data') }}\">
  408. {% endblock %}
  409. {% block javascript %}
  410.     <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  411.     <script src=\"{{ asset('assets/js/header.js', 'user_data') }}\"></script>
  412. {% endblock  %}
  413. <div class=\"fixed-header\">
  414.     <section>
  415.     <div id=\"site_header\">
  416.         <div class=\"header_logo\">
  417.             <a href=\"https://photo-pub.com/books\">
  418.                 <img src=\"{{ asset('assets/img/common/photopub_title.svg', 'user_data') }}\">
  419.             </a>
  420.         </div>
  421.         <div class=\"header_menus\">
  422.             <div class=\"header_inner1\">
  423.                 {{ render(path('block_search_product')) }}
  424.                 <div class=\"header_link1 pc\">
  425.                     <ul class=\"link1\">
  426.                         <li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
  427.                         <li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
  428.                         <li><a href=\"{{ url('contact') }}\">お問い合わせ</a></li>
  429.                         <li><a href=\"{{ url('opinion') }}\">意見箱</a></li>
  430.                     </ul>
  431.                 </div>
  432.                 <div class=\"header_link2\">
  433.                     {{ include('Block/login.twig') }}
  434.                 </div>
  435.                 <div class=\"hamburger-menu sp\">
  436.                     <button id=\"hamburger\" class=\"hamburger\">
  437.                         <span></span>
  438.                         <span></span>
  439.                         <span></span>
  440.                     </button>
  441.                     <nav id=\"menus\" class=\"menus\">
  442.                         <ul class=\"hamburger-tabs\">
  443.                             <li class=\"menu-item\">
  444.                                 <a href=\"https://photo-pub.com/\">TOP</a>
  445.                             </li>
  446.                             <li class=\"menu-item\">
  447.                                 <a href=\"{{ url('homepage') }}\">フォトパブ堂書店</a>
  448.                                 <ul class=\"submenu\">
  449.                                     <li><span></span><a href=\"{{ url('homepage') }}books\">  フォトパブ堂書店TOP</a></li>
  450.                                     <li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=1\">  鉄道</a></li>
  451.                                     <li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=2\">  バス</a></li>
  452.                                     <li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=5\">  古地図・歴史散歩(地域)</a></li>
  453.                                     <li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=7\">  その他</a></li>
  454.                                 </ul>
  455.                             </li>
  456.                             <li class=\"menu-item\">
  457.                                 <a href=\"https://jihi.photo-pub.co.jp/\">自費出版サービス</a>
  458.                                 <ul class=\"submenu\">
  459.                                     <li><span></span><a href=\"https://jihi.photo-pub.co.jp/\">詳細情報</a></li>
  460.                                 </ul>
  461.                             </li>
  462.                             <li class=\"menu-item\">
  463.                                 <a href=\"https://photo-pub.co.jp/event\">イベント情報</a>
  464.                                 <ul class=\"submenu\">
  465.                                     <li><span></span><a href=\"https://photo-pub.co.jp/event\">イベント一覧</a></li>
  466.                                 </ul>
  467.                             </li>
  468.                             <li class=\"menu-item\">
  469.                                 <a href=\"https://photo-pub.co.jp/recruit\">各種募集</a>
  470.                                 <ul class=\"submenu\">
  471.                                     <li><span></span><a href=\"https://photo-pub.co.jp/recruit\">募集一覧</a></li>
  472.                                 </ul>
  473.                             </li>
  474.                         </ul>
  475.                         <ul class=\"hamburger-links\">
  476.                             <li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
  477.                             <li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
  478.                             <li><a href=\"{{ url('contact') }}\">お問い合わせ</a></li>
  479.                             <li><a href=\"{{ url('opinion') }}\">意見箱</a></li>
  480.                             <li><a href=\"https://photo-pub.com/help/privacy\">プライバシー<br class=\"br_linkbox\">ポリシー</a></li>
  481.                             <li><a href=\"https://photo-pub.com/help/tradelaw\">特定商取引法<br class=\"br_linkbox\">に基づく表記</a></li>
  482.                         </ul>
  483.                         <ul class=\"hamburger-sns\">
  484.                             <li><a><img src=\"{{ asset('assets/img/common/sns_ic_insta.png', 'user_data') }}\" alt=\"insta\"></a></li>
  485.                             <li><a href=\"https://www.youtube.com/@%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96\"><img src=\"{{ asset('assets/img/common/sns_ic_youtube.svg', 'user_data') }}\" alt=\"youtube\"></a></li>
  486.                             <li><a href=\"https://twitter.com/share?url=https://photo-pub.co.jp/&via=photopub402&hashtags=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0&text=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0\"><img src=\"{{ asset('assets/img/common/sns_ic_x.svg', 'user_data') }}\" alt=\"x\"></a></li>
  487.                             <li><a href=\"http://www.facebook.com/share.php?u=https://photo-pub.co.jp/\"><img src=\"{{ asset('assets/img/common/sns_ic_fb.svg', 'user_data') }}\" alt=\"fb\"></a></li>
  488.                         </ul>
  489.                     </nav>
  490.                 </div>
  491.             </div>
  492.             <div class=\"header_inner2 pc\">
  493.                 <ul class=\"select_btns\">
  494.                     <li class=\"btn\"><a href=\"https://photo-pub.com/\">TOP</a></li>
  495.                     <li class=\"btn\"><a href=\"{{ url('homepage') }}books\">フォトパブ堂書店</a></li>
  496.                     <li class=\"btn\"><a href=\"http://jihi.photo-pub.co.jp/\">自費出版サービス</a></li>
  497.                     <li class=\"btn\"><a href=\"https://photo-pub.co.jp/event\">イベント情報</a></li>
  498.                     <li class=\"btn\"><a href=\"https://photo-pub.co.jp/recruit\">各種募集</a></li>
  499.                 </ul>
  500.             </div>
  501.         </div>
  502.     </div>
  503.     <div class=\"tabs\">
  504.         <ul class=\"tabs_inner\">
  505.             {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  506.     
  507.             {# depthつきマクロに書き直し! #}
  508.             {% macro tree(Category, depth) %}
  509.                 {% from _self import tree %}
  510.                 
  511.                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  512.                     {{ Category.name }}
  513.                 </a>
  514.     
  515.                 {# 第二階層(depth==1)のときだけ子を表示する #}
  516.                 {% if Category.children|length > 0 and depth == 1 %}
  517.                     <ul>
  518.                         {% for ChildCategory in Category.children %}
  519.                             <li>
  520.                                 {{ tree(ChildCategory, depth + 1) }}
  521.                             </li>
  522.                         {% endfor %}
  523.                     </ul>
  524.                 {% endif %}
  525.             {% endmacro %}
  526.     
  527.             {% from _self import tree %}
  528.     
  529.             <div class=\"ec-categoryNaviRole\">
  530.                 <div class=\"ec-itemNav\">
  531.                     <ul class=\"ec-itemNav__nav\">
  532.                         {% for Category in Categories %}
  533.                             <li>
  534.                                 {# 最初はdepth=1で開始 #}
  535.                                 {{ tree(Category, 1) }}
  536.                             </li>
  537.                         {% endfor %}
  538.                     </ul>
  539.                 </div>
  540.             </div>
  541.         </ul>
  542.     </div>
  543.     <div class=\"sp-search-form\">
  544.         <form action=\"{{ path('product_list') }}\" class=\"search-form sp\">
  545.             <input type=\"text\" class=\"search-form-input\" placeholder=\"キーワード(タイトル、著者など)を入力\">
  546.             <button type=\"submit\" class=\"search-form-submit\" aria-label=\"検索\"></button>
  547.         </form>
  548.     </div>
  549. </section>
  550. </div>
  551. <style>
  552.     .fixed-header {
  553.     position: fixed;
  554.     top: 0;
  555.     left: 0;
  556.     width: 100%;
  557.     z-index: 9999;
  558.     background-color: #fff; /* 背景が透けないように */
  559.     box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 任意:影で浮かせる */
  560.     }
  561.     
  562.     body {
  563.         padding-top: 150px; /* ヘッダーの高さに合わせて調整(例:80px) */
  564.     }
  565. @media screen and (max-width: 820px) {
  566.     body {
  567.         padding-top: 180px; /* ヘッダーの高さに合わせて調整(例:80px) */
  568.     }
  569. }
  570. </style>""Block/header1.twig""/home/photo-pub/www/photo-pub.com/app/template/default/Block/header1.twig");
  571.     }
  572. }