<?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/header1.twig */
class __TwigTemplate_352dd9d223fef81e8ee4f96d7ff8e95c 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 = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
];
}
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/header1.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header1.twig"));
// line 11
echo "
";
// line 13
$this->displayBlock('stylesheet', $context, $blocks);
// line 17
echo "
";
// line 18
$this->displayBlock('javascript', $context, $blocks);
// line 22
echo "
<div class=\"fixed-header\">
<section>
<div id=\"site_header\">
<div class=\"header_logo\">
<a href=\"https://photo-pub.com/books\">
<img src=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/photopub_title.svg", "user_data"), "html", null, true);
echo "\">
</a>
</div>
<div class=\"header_menus\">
<div class=\"header_inner1\">
";
// line 34
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
<div class=\"header_link1 pc\">
<ul class=\"link1\">
<li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
<li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
<li><a href=\"";
// line 39
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">お問い合わせ</a></li>
<li><a href=\"";
// line 40
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("opinion");
echo "\">意見箱</a></li>
</ul>
</div>
<div class=\"header_link2\">
";
// line 44
echo twig_include($this->env, $context, "Block/login.twig");
echo "
</div>
<div class=\"hamburger-menu sp\">
<button id=\"hamburger\" class=\"hamburger\">
<span></span>
<span></span>
<span></span>
</button>
<nav id=\"menus\" class=\"menus\">
<ul class=\"hamburger-tabs\">
<li class=\"menu-item\">
<a href=\"https://photo-pub.com/\">TOP</a>
</li>
<li class=\"menu-item\">
<a href=\"";
// line 60
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">フォトパブ堂書店</a>
<ul class=\"submenu\">
<li><span></span><a href=\"";
// line 62
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "books\"> フォトパブ堂書店TOP</a></li>
<li><span></span><a href=\"";
// line 63
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=1\"> 鉄道</a></li>
<li><span></span><a href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=2\"> バス</a></li>
<li><span></span><a href=\"";
// line 65
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=5\"> 古地図・歴史散歩(地域)</a></li>
<li><span></span><a href=\"";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\"> その他</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://jihi.photo-pub.co.jp/\">自費出版サービス</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://jihi.photo-pub.co.jp/\">詳細情報</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://photo-pub.co.jp/event\">イベント情報</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://photo-pub.co.jp/event\">イベント一覧</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://photo-pub.co.jp/recruit\">各種募集</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://photo-pub.co.jp/recruit\">募集一覧</a></li>
</ul>
</li>
</ul>
<ul class=\"hamburger-links\">
<li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
<li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
<li><a href=\"";
// line 92
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">お問い合わせ</a></li>
<li><a href=\"";
// line 93
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("opinion");
echo "\">意見箱</a></li>
<li><a href=\"https://photo-pub.com/help/privacy\">プライバシー<br class=\"br_linkbox\">ポリシー</a></li>
<li><a href=\"https://photo-pub.com/help/tradelaw\">特定商取引法<br class=\"br_linkbox\">に基づく表記</a></li>
</ul>
<ul class=\"hamburger-sns\">
<li><a><img src=\"";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_insta.png", "user_data"), "html", null, true);
echo "\" alt=\"insta\"></a></li>
<li><a href=\"https://www.youtube.com/@%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96\"><img src=\"";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_youtube.svg", "user_data"), "html", null, true);
echo "\" alt=\"youtube\"></a></li>
<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=\"";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_x.svg", "user_data"), "html", null, true);
echo "\" alt=\"x\"></a></li>
<li><a href=\"http://www.facebook.com/share.php?u=https://photo-pub.co.jp/\"><img src=\"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/sns_ic_fb.svg", "user_data"), "html", null, true);
echo "\" alt=\"fb\"></a></li>
</ul>
</nav>
</div>
</div>
<div class=\"header_inner2 pc\">
<ul class=\"select_btns\">
<li class=\"btn\"><a href=\"https://photo-pub.com/\">TOP</a></li>
<li class=\"btn\"><a href=\"";
// line 111
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "books\">フォトパブ堂書店</a></li>
<li class=\"btn\"><a href=\"http://jihi.photo-pub.co.jp/\">自費出版サービス</a></li>
<li class=\"btn\"><a href=\"https://photo-pub.co.jp/event\">イベント情報</a></li>
<li class=\"btn\"><a href=\"https://photo-pub.co.jp/recruit\">各種募集</a></li>
</ul>
</div>
</div>
</div>
<div class=\"tabs\">
<ul class=\"tabs_inner\">
";
// line 121
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, false, 121);
// line 122
echo "
";
// line 124
echo " ";
// line 142
echo "
";
// line 143
$macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
// line 144
echo "
<div class=\"ec-categoryNaviRole\">
<div class=\"ec-itemNav\">
<ul class=\"ec-itemNav__nav\">
";
// line 148
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 149
echo " <li>
";
// line 151
echo " ";
echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"], 1], 151, $context, $this->getSourceContext());
echo "
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 154
echo " </ul>
</div>
</div>
</ul>
</div>
<div class=\"sp-search-form\">
<form action=\"";
// line 160
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
echo "\" class=\"search-form sp\">
<input type=\"text\" class=\"search-form-input\" placeholder=\"キーワード(タイトル、著者など)を入力\">
<button type=\"submit\" class=\"search-form-submit\" aria-label=\"検索\"></button>
</form>
</div>
</section>
</div>
<style>
.fixed-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 9999;
background-color: #fff; /* 背景が透けないように */
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 任意:影で浮かせる */
}
body {
padding-top: 150px; /* ヘッダーの高さに合わせて調整(例:80px) */
}
@media screen and (max-width: 820px) {
body {
padding-top: 180px; /* ヘッダーの高さに合わせて調整(例:80px) */
}
}
</style>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_stylesheet($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(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 14
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/main_module.css", "user_data"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/header_style.css", "user_data"), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_javascript($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(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 19
echo " <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/header.js", "user_data"), "html", null, true);
echo "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 124
public function macro_tree($__Category__ = null, $__depth__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"Category" => $__Category__,
"depth" => $__depth__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
// line 125
echo " ";
$macros["__internal_parse_0"] = $this;
// line 126
echo "
<a href=\"";
// line 127
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, 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.', 127, $this->source); })()), "id", [], "any", false, false, false, 127), "html", null, true);
echo "\">
";
// line 128
echo twig_escape_filter($this->env, 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.', 128, $this->source); })()), "name", [], "any", false, false, false, 128), "html", null, true);
echo "
</a>
";
// line 132
echo " ";
if (((twig_length_filter($this->env, 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.', 132, $this->source); })()), "children", [], "any", false, false, false, 132)) > 0) && ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new RuntimeError('Variable "depth" does not exist.', 132, $this->source); })()) == 1))) {
// line 133
echo " <ul>
";
// line 134
$context['_parent'] = $context;
$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", false, false, false, 134));
foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
// line 135
echo " <li>
";
// line 136
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());
echo "
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 139
echo " </ul>
";
}
// line 141
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "Block/header1.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/main_module.css', 'user_data') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/header_style.css', 'user_data') }}\">
{% endblock %}
{% block javascript %}
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"{{ asset('assets/js/header.js', 'user_data') }}\"></script>
{% endblock %}
<div class=\"fixed-header\">
<section>
<div id=\"site_header\">
<div class=\"header_logo\">
<a href=\"https://photo-pub.com/books\">
<img src=\"{{ asset('assets/img/common/photopub_title.svg', 'user_data') }}\">
</a>
</div>
<div class=\"header_menus\">
<div class=\"header_inner1\">
{{ render(path('block_search_product')) }}
<div class=\"header_link1 pc\">
<ul class=\"link1\">
<li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
<li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
<li><a href=\"{{ url('contact') }}\">お問い合わせ</a></li>
<li><a href=\"{{ url('opinion') }}\">意見箱</a></li>
</ul>
</div>
<div class=\"header_link2\">
{{ include('Block/login.twig') }}
</div>
<div class=\"hamburger-menu sp\">
<button id=\"hamburger\" class=\"hamburger\">
<span></span>
<span></span>
<span></span>
</button>
<nav id=\"menus\" class=\"menus\">
<ul class=\"hamburger-tabs\">
<li class=\"menu-item\">
<a href=\"https://photo-pub.com/\">TOP</a>
</li>
<li class=\"menu-item\">
<a href=\"{{ url('homepage') }}\">フォトパブ堂書店</a>
<ul class=\"submenu\">
<li><span></span><a href=\"{{ url('homepage') }}books\"> フォトパブ堂書店TOP</a></li>
<li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=1\"> 鉄道</a></li>
<li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=2\"> バス</a></li>
<li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=5\"> 古地図・歴史散歩(地域)</a></li>
<li><span></span><a href=\"{{ url('homepage') }}products/list?category_id=7\"> その他</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://jihi.photo-pub.co.jp/\">自費出版サービス</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://jihi.photo-pub.co.jp/\">詳細情報</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://photo-pub.co.jp/event\">イベント情報</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://photo-pub.co.jp/event\">イベント一覧</a></li>
</ul>
</li>
<li class=\"menu-item\">
<a href=\"https://photo-pub.co.jp/recruit\">各種募集</a>
<ul class=\"submenu\">
<li><span></span><a href=\"https://photo-pub.co.jp/recruit\">募集一覧</a></li>
</ul>
</li>
</ul>
<ul class=\"hamburger-links\">
<li><a href=\"https://photo-pub.co.jp/news\">NEWS</a></li>
<li><a href=\"https://photo-pub.co.jp/company\">会社概要</a></li>
<li><a href=\"{{ url('contact') }}\">お問い合わせ</a></li>
<li><a href=\"{{ url('opinion') }}\">意見箱</a></li>
<li><a href=\"https://photo-pub.com/help/privacy\">プライバシー<br class=\"br_linkbox\">ポリシー</a></li>
<li><a href=\"https://photo-pub.com/help/tradelaw\">特定商取引法<br class=\"br_linkbox\">に基づく表記</a></li>
</ul>
<ul class=\"hamburger-sns\">
<li><a><img src=\"{{ asset('assets/img/common/sns_ic_insta.png', 'user_data') }}\" alt=\"insta\"></a></li>
<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>
<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>
<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>
</ul>
</nav>
</div>
</div>
<div class=\"header_inner2 pc\">
<ul class=\"select_btns\">
<li class=\"btn\"><a href=\"https://photo-pub.com/\">TOP</a></li>
<li class=\"btn\"><a href=\"{{ url('homepage') }}books\">フォトパブ堂書店</a></li>
<li class=\"btn\"><a href=\"http://jihi.photo-pub.co.jp/\">自費出版サービス</a></li>
<li class=\"btn\"><a href=\"https://photo-pub.co.jp/event\">イベント情報</a></li>
<li class=\"btn\"><a href=\"https://photo-pub.co.jp/recruit\">各種募集</a></li>
</ul>
</div>
</div>
</div>
<div class=\"tabs\">
<ul class=\"tabs_inner\">
{% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
{# depthつきマクロに書き直し! #}
{% macro tree(Category, depth) %}
{% from _self import tree %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
{{ Category.name }}
</a>
{# 第二階層(depth==1)のときだけ子を表示する #}
{% if Category.children|length > 0 and depth == 1 %}
<ul>
{% for ChildCategory in Category.children %}
<li>
{{ tree(ChildCategory, depth + 1) }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
{% from _self import tree %}
<div class=\"ec-categoryNaviRole\">
<div class=\"ec-itemNav\">
<ul class=\"ec-itemNav__nav\">
{% for Category in Categories %}
<li>
{# 最初はdepth=1で開始 #}
{{ tree(Category, 1) }}
</li>
{% endfor %}
</ul>
</div>
</div>
</ul>
</div>
<div class=\"sp-search-form\">
<form action=\"{{ path('product_list') }}\" class=\"search-form sp\">
<input type=\"text\" class=\"search-form-input\" placeholder=\"キーワード(タイトル、著者など)を入力\">
<button type=\"submit\" class=\"search-form-submit\" aria-label=\"検索\"></button>
</form>
</div>
</section>
</div>
<style>
.fixed-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 9999;
background-color: #fff; /* 背景が透けないように */
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 任意:影で浮かせる */
}
body {
padding-top: 150px; /* ヘッダーの高さに合わせて調整(例:80px) */
}
@media screen and (max-width: 820px) {
body {
padding-top: 180px; /* ヘッダーの高さに合わせて調整(例:80px) */
}
}
</style>", "Block/header1.twig", "/home/photo-pub/www/photo-pub.com/app/template/default/Block/header1.twig");
}
}