<?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;
/* sticky-nav.twig */
class __TwigTemplate_4b887ccfa2486acad45600018b61509d 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 = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sticky-nav.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sticky-nav.twig"));
// line 11
echo "
";
// line 12
$this->displayBlock('javascript', $context, $blocks);
// line 161
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, true, 161);
// line 162
$context["categories"] = [0 => ["name" => "お仏壇", "id" => "2"], 1 => ["name" => "お位牌", "id" => "1"], 2 => ["name" => "仏具", "id" => "3"], 3 => ["name" => "セット", "id" => "4"], 4 => ["name" => "手元供養", "id" => "21"]];
// line 184
echo "
";
// line 185
$this->displayBlock('main', $context, $blocks);
// line 242
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 12
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 13
echo "\t<script>
\t\t\$(document).ready(function () {
\$(\"#nav\").hide();
\$('.open-category').on('click', function () {
\$('.open-category').toggleClass('active bg-[#F7F6F2]');
\$(\"#nav\").toggleClass('panelactive');
\$('#nav').removeClass('opacity-0');
\$('#nav').slideToggle(500)
});
\$('.open-category a').click(function () {
\$('.open-category').removeClass('active');
\$('#nav').removeClass('panelactive');
});
\$('.close-category').click(function () {
\$('#nav').slideToggle(500)
\$('.open-category').removeClass('bg-[#F7F6F2]');
});
\$('.js-hamburger-menu').on('click', function (){
if(\$('.navigation').hasClass('active')){
\$(\".sticky-nav\").removeClass('opacity-0');
}else{
\$(\".sticky-nav\").addClass('opacity-0');
}
})
})
\t</script>
\t";
// line 41
echo "\t";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "request", [], "any", false, false, true, 41), "get", [0 => "_route"], "method", false, false, true, 41) == "homepage")) {
// line 42
echo "\t\t<script>
\$(document).ready(function () {
\$(\".pc-category\").removeClass('opacity-0');
\$(window).on(\"scroll\", function () {
// フッター
const point = window.pageYOffset;
const docHeight = \$(document).height();
const dispHeight = \$(window).height();
const sliderHeight = \$(\".footer\").height();
const footerInnerHeight = \$('.footer').innerHeight();
if (point > docHeight-dispHeight-footerInnerHeight) {
\$(\".sticky-nav\").addClass('opacity-0');
}else{
\$(\".sticky-nav\").removeClass('opacity-0');
}
// TOPページ
const mvHeight = \$(\".mv\").height();
if (mvHeight - 300 < \$(this).scrollTop()) {
if(point > docHeight-dispHeight-footerInnerHeight == false){
\$(\".sticky-nav\").removeClass('opacity-0');
}
}else{
\$('#nav').fadeOut(500)
\$(\".sticky-nav\").addClass('opacity-0');
\$('.open-category').removeClass('bg-[#F7F6F2]');
}
});
});
\t\t</script>
\t";
} else {
// line 72
echo "\t\t<script>
\t\t\t\$(document).ready(function () {
\$(\".sticky-nav\").removeClass('opacity-0');
\$(\".pc-category\").removeClass('opacity-0');
\$(window).on(\"scroll\", function () {
// フッター
const point = window.pageYOffset;
const docHeight = \$(document).height();
const dispHeight = \$(window).height();
const sliderHeight = \$(\".footer\").height();
const footerInnerHeight = \$('.footer').innerHeight();
if (point > docHeight-dispHeight-footerInnerHeight) {
\$(\".sticky-nav\").addClass('opacity-0');
}else{
\$(\".sticky-nav\").removeClass('opacity-0');
}
});
})
\t\t</script>
\t";
}
// line 92
echo "\t<script>
\t\t\$(document).ready(function () {
var targetPages = [
'/contact/complete',
'/contact/confirm',
'/contact',
'/contact/showroom',
'/contact/catalog',
'/contact/other',
'/contact/coordinate',
'/contact/form',
'/entry/activate',
'/entry/complete',
'/entry/confirm',
'/entry',
'/forgot/complete',
'/forgot',
'/forgot/reset',
'/help/agreement',
'/help/privacy',
'/help/sitemap',
'/help/tradelaw',
'/mypage/change_complete',
'/mypage/change',
'/mypage/delivery_edit',
'/mypage/delivery',
'/mypage/favorite',
'/mypage/',
'/mypage/login',
'/mypage/withdraw_complete',
'/mypage/withdraw_confirm',
'/mypage/withdraw',
'/user_data/catalog',
'/user_data/corporate',
'/user_data/guide_detail',
'/user_data/guide_top',
'/user_data/movie',
'/user_data/naire',
'/user_data/photo_service',
'/user_data/pick_up-altar',
'/user_data/pick_up-altar',
'/user_data/qa',
'/user_data/reading_detail',
'/user_data/reading',
'/user_data/service',
'/user_data/service',
'/cart',
'/shopping/alert',
'/shopping/confirm',
'/shopping/complete',
'/shopping',
'/shopping/login',
'/shopping/nomember',
'/shopping/shipping_edit',
'/shopping/shipping_multiple_edit',
'/shopping/shipping_multiple',
'/shopping',
'/shopping/error',
];
var currentUrl = location.pathname;
if (\$.inArray(currentUrl, targetPages) !== -1) {
console.log(\"test\");
\$(\".sticky-nav\").hide();
\$(\".pc-category\").hide();
}
});
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 185
public function block_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 186
echo "\t<div class=\"bg-manakaBeige w-full fixed top-[82px] lg:top-[56px] z-10 md:hidden pc-category opacity-0\">
\t\t<ul class=\"flex items-center gap-4 h-[82px] max-w-[1440px] justify-end mx-auto pr-4\">
\t\t\t";
// line 188
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 188, $this->source); })()), "request", [], "any", false, false, true, 188), "get", [0 => "_route"], "method", false, false, true, 188) == "product_list")) {
// line 189
echo "\t\t\t\t";
$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.', 189, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 190
echo "\t\t\t\t\t<li class=\"drop-shadow-lg bg-[#FBFBF9] px-1.5 py-0.5 rounded-3xl w-[86px] text-center ";
if ((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.', 190, $this->source); })()), "id", [], "any", false, false, true, 190) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 190))) {
echo "text-white !bg-[#D0CBBE]";
}
echo "\">
\t\t\t\t\t\t<a href=\"";
// line 191
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list", ["category_id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 191)]), "html", null, true);
echo "\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
\t\t\t\t\t\t\t";
// line 192
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 192), 192, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t</a>
\t\t\t\t\t</li>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 196
echo "\t\t\t";
} else {
// line 197
echo "\t\t\t\t";
$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.', 197, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 198
echo "\t\t\t\t\t<li class=\"drop-shadow-lg bg-[#FBFBF9] px-1.5 py-0.5 rounded-3xl w-[86px] text-center\">
\t\t\t\t\t\t<a href=\"";
// line 199
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list", ["category_id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 199)]), "html", null, true);
echo "\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
\t\t\t\t\t\t\t";
// line 200
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 200), 200, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t</a>
\t\t\t\t\t</li>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 204
echo "\t\t\t";
}
// line 205
echo "\t\t</ul>
\t</div>
\t<div
\t\tclass=\"md:flex hidden fixed bg-white bottom-0 left-0 z-20 w-full items-center border-[#F7F6F2] border-t sticky-nav opacity-0 duration-700\">
\t\t";
// line 210
echo "\t\t<button class=\"flex flex-col items-center justify-center p-4 w-full gap-2 open-category\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
\t\t\t\t<path d=\"M9.5 5H7.5C6.96957 5 6.46086 5.21071 6.08579 5.58579C5.71071 5.96086 5.5 6.46957 5.5 7V19C5.5 19.5304 5.71071 20.0391 6.08579 20.4142C6.46086 20.7893 6.96957 21 7.5 21H17.5C18.0304 21 18.5391 20.7893 18.9142 20.4142C19.2893 20.0391 19.5 19.5304 19.5 19V7C19.5 6.46957 19.2893 5.96086 18.9142 5.58579C18.5391 5.21071 18.0304 5 17.5 5H15.5M9.5 5C9.5 5.53043 9.71071 6.03914 10.0858 6.41421C10.4609 6.78929 10.9696 7 11.5 7H13.5C14.0304 7 14.5391 6.78929 14.9142 6.41421C15.2893 6.03914 15.5 5.53043 15.5 5M9.5 5C9.5 4.46957 9.71071 3.96086 10.0858 3.58579C10.4609 3.21071 10.9696 3 11.5 3H13.5C14.0304 3 14.5391 3.21071 14.9142 3.58579C15.2893 3.96086 15.5 4.46957 15.5 5M12.5 12H15.5M12.5 16H15.5M9.5 12H9.51M9.5 16H9.51\" stroke=\"#222222\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t\t<p class=\"text-xs\">商品カテゴリー</p>
\t\t</button>
\t\t<hr
\t\tclass=\"h-10 bg-[#F7F6F2] w-[2px] border-none\">
\t\t";
// line 219
echo "\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\" class=\"flex flex-col items-center justify-center p-3 w-full gap-2\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
\t\t\t\t<path d=\"M3.5 8L11.39 13.26C11.7187 13.4793 12.1049 13.5963 12.5 13.5963C12.8951 13.5963 13.2813 13.4793 13.61 13.26L21.5 8M5.5 19H19.5C20.0304 19 20.5391 18.7893 20.9142 18.4142C21.2893 18.0391 21.5 17.5304 21.5 17V7C21.5 6.46957 21.2893 5.96086 20.9142 5.58579C20.5391 5.21071 20.0304 5 19.5 5H5.5C4.96957 5 4.46086 5.21071 4.08579 5.58579C3.71071 5.96086 3.5 6.46957 3.5 7V17C3.5 17.5304 3.71071 18.0391 4.08579 18.4142C4.46086 18.7893 4.96957 19 5.5 19Z\" stroke=\"#222222\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t\t<p class=\"text-xs\">お問い合わせ</p>
\t\t</a>
\t</div>
\t<nav class=\"fixed bottom-[72px] w-full md:grid grid-cols-3 gap-3 hidden py-7 px-8 bg-white border-[#F7F6F2] border-t z-10 opacity-0\" id=\"nav\">
\t\t<div class=\"close-category absolute top-2 right-3\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewbox=\"0 0 16 16\" fill=\"none\" class=\"\">
\t\t\t\t<path d=\"M4 12L12 4M4 4L12 12\" stroke=\"#E2DFD6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t</div>
\t\t";
// line 232
$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.', 232, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 233
echo "\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list", ["category_id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 233)]), "html", null, true);
echo "\" class=\"max-w-[calc(100%÷";
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed($context["category"], 233, $this->source)), "html", null, true);
echo ")] bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
\t\t\t\t";
// line 234
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 234), 234, $this->source), "html", null, true);
echo "
\t\t\t</a>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 237
echo "\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" class=\"w-full bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
\t\t\tTOP
\t\t</a>
\t</nav>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "sticky-nav.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 369 => 237, 360 => 234, 353 => 233, 349 => 232, 332 => 219, 322 => 210, 316 => 205, 313 => 204, 303 => 200, 299 => 199, 296 => 198, 291 => 197, 288 => 196, 278 => 192, 274 => 191, 267 => 190, 262 => 189, 260 => 188, 256 => 186, 246 => 185, 168 => 92, 146 => 72, 114 => 42, 111 => 41, 82 => 13, 72 => 12, 61 => 242, 59 => 185, 56 => 184, 54 => 162, 52 => 161, 50 => 12, 47 => 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 javascript %}
\t<script>
\t\t\$(document).ready(function () {
\$(\"#nav\").hide();
\$('.open-category').on('click', function () {
\$('.open-category').toggleClass('active bg-[#F7F6F2]');
\$(\"#nav\").toggleClass('panelactive');
\$('#nav').removeClass('opacity-0');
\$('#nav').slideToggle(500)
});
\$('.open-category a').click(function () {
\$('.open-category').removeClass('active');
\$('#nav').removeClass('panelactive');
});
\$('.close-category').click(function () {
\$('#nav').slideToggle(500)
\$('.open-category').removeClass('bg-[#F7F6F2]');
});
\$('.js-hamburger-menu').on('click', function (){
if(\$('.navigation').hasClass('active')){
\$(\".sticky-nav\").removeClass('opacity-0');
}else{
\$(\".sticky-nav\").addClass('opacity-0');
}
})
})
\t</script>
\t{# ページ毎のスクロールイベント #}
\t{% if app.request.get('_route') == 'homepage' %}
\t\t<script>
\$(document).ready(function () {
\$(\".pc-category\").removeClass('opacity-0');
\$(window).on(\"scroll\", function () {
// フッター
const point = window.pageYOffset;
const docHeight = \$(document).height();
const dispHeight = \$(window).height();
const sliderHeight = \$(\".footer\").height();
const footerInnerHeight = \$('.footer').innerHeight();
if (point > docHeight-dispHeight-footerInnerHeight) {
\$(\".sticky-nav\").addClass('opacity-0');
}else{
\$(\".sticky-nav\").removeClass('opacity-0');
}
// TOPページ
const mvHeight = \$(\".mv\").height();
if (mvHeight - 300 < \$(this).scrollTop()) {
if(point > docHeight-dispHeight-footerInnerHeight == false){
\$(\".sticky-nav\").removeClass('opacity-0');
}
}else{
\$('#nav').fadeOut(500)
\$(\".sticky-nav\").addClass('opacity-0');
\$('.open-category').removeClass('bg-[#F7F6F2]');
}
});
});
\t\t</script>
\t{% else %}
\t\t<script>
\t\t\t\$(document).ready(function () {
\$(\".sticky-nav\").removeClass('opacity-0');
\$(\".pc-category\").removeClass('opacity-0');
\$(window).on(\"scroll\", function () {
// フッター
const point = window.pageYOffset;
const docHeight = \$(document).height();
const dispHeight = \$(window).height();
const sliderHeight = \$(\".footer\").height();
const footerInnerHeight = \$('.footer').innerHeight();
if (point > docHeight-dispHeight-footerInnerHeight) {
\$(\".sticky-nav\").addClass('opacity-0');
}else{
\$(\".sticky-nav\").removeClass('opacity-0');
}
});
})
\t\t</script>
\t{% endif %}
\t<script>
\t\t\$(document).ready(function () {
var targetPages = [
'/contact/complete',
'/contact/confirm',
'/contact',
'/contact/showroom',
'/contact/catalog',
'/contact/other',
'/contact/coordinate',
'/contact/form',
'/entry/activate',
'/entry/complete',
'/entry/confirm',
'/entry',
'/forgot/complete',
'/forgot',
'/forgot/reset',
'/help/agreement',
'/help/privacy',
'/help/sitemap',
'/help/tradelaw',
'/mypage/change_complete',
'/mypage/change',
'/mypage/delivery_edit',
'/mypage/delivery',
'/mypage/favorite',
'/mypage/',
'/mypage/login',
'/mypage/withdraw_complete',
'/mypage/withdraw_confirm',
'/mypage/withdraw',
'/user_data/catalog',
'/user_data/corporate',
'/user_data/guide_detail',
'/user_data/guide_top',
'/user_data/movie',
'/user_data/naire',
'/user_data/photo_service',
'/user_data/pick_up-altar',
'/user_data/pick_up-altar',
'/user_data/qa',
'/user_data/reading_detail',
'/user_data/reading',
'/user_data/service',
'/user_data/service',
'/cart',
'/shopping/alert',
'/shopping/confirm',
'/shopping/complete',
'/shopping',
'/shopping/login',
'/shopping/nomember',
'/shopping/shipping_edit',
'/shopping/shipping_multiple_edit',
'/shopping/shipping_multiple',
'/shopping',
'/shopping/error',
];
var currentUrl = location.pathname;
if (\$.inArray(currentUrl, targetPages) !== -1) {
console.log(\"test\");
\$(\".sticky-nav\").hide();
\$(\".pc-category\").hide();
}
});
\t</script>
{% endblock %}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
{% set categories = [
{
'name': 'お仏壇',
'id':'2',
},
{
'name': 'お位牌',
'id':'1',
},
{
'name': '仏具',
'id':'3',
},
{
'name': 'セット',
'id':'4',
},
{
'name': '手元供養',
'id':'21',
},
] %}
{% block main %}
\t<div class=\"bg-manakaBeige w-full fixed top-[82px] lg:top-[56px] z-10 md:hidden pc-category opacity-0\">
\t\t<ul class=\"flex items-center gap-4 h-[82px] max-w-[1440px] justify-end mx-auto pr-4\">
\t\t\t{% if app.request.get('_route') == 'product_list' %}
\t\t\t\t{% for category in categories %}
\t\t\t\t\t<li class=\"drop-shadow-lg bg-[#FBFBF9] px-1.5 py-0.5 rounded-3xl w-[86px] text-center {% if Category.id == category.id %}text-white !bg-[#D0CBBE]{% endif %}\">
\t\t\t\t\t\t<a href=\"{{url('product_list',{'category_id':category.id})}}\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
\t\t\t\t\t\t\t{{category.name}}
\t\t\t\t\t\t</a>
\t\t\t\t\t</li>
\t\t\t\t{% endfor %}
\t\t\t{% else %}
\t\t\t\t{% for category in categories %}
\t\t\t\t\t<li class=\"drop-shadow-lg bg-[#FBFBF9] px-1.5 py-0.5 rounded-3xl w-[86px] text-center\">
\t\t\t\t\t\t<a href=\"{{url('product_list',{'category_id':category.id})}}\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
\t\t\t\t\t\t\t{{category.name}}
\t\t\t\t\t\t</a>
\t\t\t\t\t</li>
\t\t\t\t{% endfor %}
\t\t\t{% endif %}
\t\t</ul>
\t</div>
\t<div
\t\tclass=\"md:flex hidden fixed bg-white bottom-0 left-0 z-20 w-full items-center border-[#F7F6F2] border-t sticky-nav opacity-0 duration-700\">
\t\t{# 商品カテゴリー #}
\t\t<button class=\"flex flex-col items-center justify-center p-4 w-full gap-2 open-category\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
\t\t\t\t<path d=\"M9.5 5H7.5C6.96957 5 6.46086 5.21071 6.08579 5.58579C5.71071 5.96086 5.5 6.46957 5.5 7V19C5.5 19.5304 5.71071 20.0391 6.08579 20.4142C6.46086 20.7893 6.96957 21 7.5 21H17.5C18.0304 21 18.5391 20.7893 18.9142 20.4142C19.2893 20.0391 19.5 19.5304 19.5 19V7C19.5 6.46957 19.2893 5.96086 18.9142 5.58579C18.5391 5.21071 18.0304 5 17.5 5H15.5M9.5 5C9.5 5.53043 9.71071 6.03914 10.0858 6.41421C10.4609 6.78929 10.9696 7 11.5 7H13.5C14.0304 7 14.5391 6.78929 14.9142 6.41421C15.2893 6.03914 15.5 5.53043 15.5 5M9.5 5C9.5 4.46957 9.71071 3.96086 10.0858 3.58579C10.4609 3.21071 10.9696 3 11.5 3H13.5C14.0304 3 14.5391 3.21071 14.9142 3.58579C15.2893 3.96086 15.5 4.46957 15.5 5M12.5 12H15.5M12.5 16H15.5M9.5 12H9.51M9.5 16H9.51\" stroke=\"#222222\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t\t<p class=\"text-xs\">商品カテゴリー</p>
\t\t</button>
\t\t<hr
\t\tclass=\"h-10 bg-[#F7F6F2] w-[2px] border-none\">
\t\t{# 問い合わせ #}
\t\t<a href=\"{{url('contact')}}\" class=\"flex flex-col items-center justify-center p-3 w-full gap-2\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
\t\t\t\t<path d=\"M3.5 8L11.39 13.26C11.7187 13.4793 12.1049 13.5963 12.5 13.5963C12.8951 13.5963 13.2813 13.4793 13.61 13.26L21.5 8M5.5 19H19.5C20.0304 19 20.5391 18.7893 20.9142 18.4142C21.2893 18.0391 21.5 17.5304 21.5 17V7C21.5 6.46957 21.2893 5.96086 20.9142 5.58579C20.5391 5.21071 20.0304 5 19.5 5H5.5C4.96957 5 4.46086 5.21071 4.08579 5.58579C3.71071 5.96086 3.5 6.46957 3.5 7V17C3.5 17.5304 3.71071 18.0391 4.08579 18.4142C4.46086 18.7893 4.96957 19 5.5 19Z\" stroke=\"#222222\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t\t<p class=\"text-xs\">お問い合わせ</p>
\t\t</a>
\t</div>
\t<nav class=\"fixed bottom-[72px] w-full md:grid grid-cols-3 gap-3 hidden py-7 px-8 bg-white border-[#F7F6F2] border-t z-10 opacity-0\" id=\"nav\">
\t\t<div class=\"close-category absolute top-2 right-3\">
\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewbox=\"0 0 16 16\" fill=\"none\" class=\"\">
\t\t\t\t<path d=\"M4 12L12 4M4 4L12 12\" stroke=\"#E2DFD6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
\t\t\t</svg>
\t\t</div>
\t\t{% for category in categories %}
\t\t\t<a href=\"{{url('product_list',{'category_id':category.id})}}\" class=\"max-w-[calc(100%÷{{ category|length }})] bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
\t\t\t\t{{category.name}}
\t\t\t</a>
\t\t{% endfor %}
\t\t<a href=\"{{url('homepage')}}\" class=\"w-full bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
\t\t\tTOP
\t\t</a>
\t</nav>
{% endblock %}
", "sticky-nav.twig", "/home/xs082386/manaka-store.com/public_html/stg-renewal.manaka-store.com/src/Eccube/Resource/template/default/sticky-nav.twig");
}
public function checkSecurity()
{
static $tags = array("block" => 12, "set" => 161, "if" => 41, "for" => 189);
static $filters = array("escape" => 191, "length" => 233);
static $functions = array("repository" => 161, "url" => 191);
try {
$this->sandbox->checkSecurity(
['block', 'set', 'if', 'for'],
['escape', 'length'],
['repository', 'url']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}