var/cache/dev/twig/36/36eed224a1b06dc5738427ec62d7c2a5.php line 37

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. /* sticky-nav.twig */
  14. class __TwigTemplate_4b887ccfa2486acad45600018b61509d 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.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sticky-nav.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sticky-nav.twig"));
  37.         // line 11
  38.         echo "
  39. ";
  40.         // line 12
  41.         $this->displayBlock('javascript'$context$blocks);
  42.         // line 161
  43.         $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsetrue161);
  44.         // line 162
  45.         $context["categories"] = [=> ["name" => "お仏壇""id" => "2"], => ["name" => "お位牌""id" => "1"], => ["name" => "仏具""id" => "3"], => ["name" => "セット""id" => "4"], => ["name" => "手元供養""id" => "21"]];
  46.         // line 184
  47.         echo "
  48. ";
  49.         // line 185
  50.         $this->displayBlock('main'$context$blocks);
  51.         // line 242
  52.         echo "
  53. ";
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 12
  60.     public function block_javascript($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  67.         // line 13
  68.         echo "\t<script>
  69. \t\t\$(document).ready(function () {
  70.             \$(\"#nav\").hide();
  71.             \$('.open-category').on('click', function () {
  72.                 \$('.open-category').toggleClass('active bg-[#F7F6F2]');
  73.                 \$(\"#nav\").toggleClass('panelactive');
  74.                 \$('#nav').removeClass('opacity-0');
  75.                 \$('#nav').slideToggle(500)
  76.             });
  77.             \$('.open-category a').click(function () {
  78.                 \$('.open-category').removeClass('active');
  79.                 \$('#nav').removeClass('panelactive');
  80.             });
  81.             \$('.close-category').click(function () {
  82.                 \$('#nav').slideToggle(500)
  83.                  \$('.open-category').removeClass('bg-[#F7F6F2]');
  84.             });
  85.             \$('.js-hamburger-menu').on('click', function (){
  86.                 if(\$('.navigation').hasClass('active')){
  87.                     \$(\".sticky-nav\").removeClass('opacity-0');
  88.                 }else{
  89.                     \$(\".sticky-nav\").addClass('opacity-0');
  90.                 }
  91.             })
  92.         })
  93. \t</script>
  94. \t";
  95.         // line 41
  96.         echo "\t";
  97.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsetrue41), "get", [=> "_route"], "method"falsefalsetrue41) == "homepage")) {
  98.             // line 42
  99.             echo "\t\t<script>
  100.             \$(document).ready(function () {
  101.                 \$(\".pc-category\").removeClass('opacity-0');
  102.                 \$(window).on(\"scroll\", function () {
  103.                     // フッター
  104.                     const point = window.pageYOffset;
  105.                     const docHeight = \$(document).height();
  106.                     const dispHeight = \$(window).height();
  107.                     const sliderHeight = \$(\".footer\").height();
  108.                     const footerInnerHeight = \$('.footer').innerHeight();
  109.                     if (point > docHeight-dispHeight-footerInnerHeight) {
  110.                         \$(\".sticky-nav\").addClass('opacity-0');
  111.                     }else{
  112.                         \$(\".sticky-nav\").removeClass('opacity-0');
  113.                     }
  114.                     // TOPページ
  115.                     const mvHeight = \$(\".mv\").height();
  116.                     if (mvHeight - 300 < \$(this).scrollTop()) {
  117.                         if(point > docHeight-dispHeight-footerInnerHeight == false){
  118.                             \$(\".sticky-nav\").removeClass('opacity-0');
  119.                         }
  120.                     }else{
  121.                         \$('#nav').fadeOut(500)
  122.                         \$(\".sticky-nav\").addClass('opacity-0');
  123.                         \$('.open-category').removeClass('bg-[#F7F6F2]');
  124.                     }
  125.                 });
  126.             });
  127. \t\t</script>
  128. \t";
  129.         } else {
  130.             // line 72
  131.             echo "\t\t<script>
  132. \t\t\t\$(document).ready(function () {
  133.                 \$(\".sticky-nav\").removeClass('opacity-0');
  134.                 \$(\".pc-category\").removeClass('opacity-0');
  135.                     \$(window).on(\"scroll\", function () {
  136.                     // フッター
  137.                     const point = window.pageYOffset;
  138.                     const docHeight = \$(document).height();
  139.                     const dispHeight = \$(window).height();
  140.                     const sliderHeight = \$(\".footer\").height();
  141.                     const footerInnerHeight = \$('.footer').innerHeight();
  142.                     if (point > docHeight-dispHeight-footerInnerHeight) {
  143.                         \$(\".sticky-nav\").addClass('opacity-0');
  144.                     }else{
  145.                         \$(\".sticky-nav\").removeClass('opacity-0');
  146.                     }
  147.                 });
  148.             })
  149. \t\t</script>
  150. \t";
  151.         }
  152.         // line 92
  153.         echo "\t<script>
  154. \t\t\$(document).ready(function () {
  155.             var targetPages = [
  156.                 '/contact/complete',
  157.                 '/contact/confirm',
  158.                 '/contact',
  159.                 '/contact/showroom',
  160.                 '/contact/catalog',
  161.                 '/contact/other',
  162.                 '/contact/coordinate',
  163.                 '/contact/form',
  164.                 '/entry/activate',
  165.                 '/entry/complete',
  166.                 '/entry/confirm',
  167.                 '/entry',
  168.                 '/forgot/complete',
  169.                 '/forgot',
  170.                 '/forgot/reset',
  171.                 '/help/agreement',
  172.                 '/help/privacy',
  173.                 '/help/sitemap',
  174.                 '/help/tradelaw',
  175.                 '/mypage/change_complete',
  176.                 '/mypage/change',
  177.                 '/mypage/delivery_edit',
  178.                 '/mypage/delivery',
  179.                 '/mypage/favorite',
  180.                 '/mypage/',
  181.                 '/mypage/login',
  182.                 '/mypage/withdraw_complete',
  183.                 '/mypage/withdraw_confirm',
  184.                 '/mypage/withdraw',
  185.                 '/user_data/catalog',
  186.                 '/user_data/corporate',
  187.                 '/user_data/guide_detail',
  188.                 '/user_data/guide_top',
  189.                 '/user_data/movie',
  190.                 '/user_data/naire',
  191.                 '/user_data/photo_service',
  192.                 '/user_data/pick_up-altar',
  193.                 '/user_data/pick_up-altar',
  194.                 '/user_data/qa',
  195.                 '/user_data/reading_detail',
  196.                 '/user_data/reading',
  197.                 '/user_data/service',
  198.                 '/user_data/service',
  199.                 '/cart',
  200.                 '/shopping/alert',
  201.                 '/shopping/confirm',
  202.                 '/shopping/complete',
  203.                 '/shopping',
  204.                 '/shopping/login',
  205.                 '/shopping/nomember',
  206.                 '/shopping/shipping_edit',
  207.                 '/shopping/shipping_multiple_edit',
  208.                 '/shopping/shipping_multiple',
  209.                 '/shopping',
  210.                 '/shopping/error',
  211.             ];
  212.             var currentUrl = location.pathname;
  213.             if (\$.inArray(currentUrl, targetPages) !== -1) {
  214.                 console.log(\"test\");
  215.                 \$(\".sticky-nav\").hide();
  216.                 \$(\".pc-category\").hide();
  217.             }
  218.         });
  219. \t</script>
  220. ";
  221.         
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  223.         
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  225.     }
  226.     // line 185
  227.     public function block_main($context, array $blocks = [])
  228.     {
  229.         $macros $this->macros;
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  234.         // line 186
  235.         echo "\t<div class=\"bg-manakaBeige w-full fixed top-[82px] lg:top-[56px] z-10 md:hidden pc-category opacity-0\">
  236. \t\t<ul class=\"flex items-center gap-4 h-[82px] max-w-[1440px] justify-end mx-auto pr-4\">
  237. \t\t\t";
  238.         // line 188
  239.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'188$this->source); })()), "request", [], "any"falsefalsetrue188), "get", [=> "_route"], "method"falsefalsetrue188) == "product_list")) {
  240.             // line 189
  241.             echo "\t\t\t\t";
  242.             $context['_parent'] = $context;
  243.             $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); })()));
  244.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  245.                 // line 190
  246.                 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 ";
  247.                 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"falsefalsetrue190) == twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue190))) {
  248.                     echo "text-white !bg-[#D0CBBE]";
  249.                 }
  250.                 echo "\">
  251. \t\t\t\t\t\t<a href=\"";
  252.                 // line 191
  253.                 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"falsefalsetrue191)]), "html"nulltrue);
  254.                 echo "\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
  255. \t\t\t\t\t\t\t";
  256.                 // line 192
  257.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue192), 192$this->source), "html"nulltrue);
  258.                 echo "
  259. \t\t\t\t\t\t</a>
  260. \t\t\t\t\t</li>
  261. \t\t\t\t";
  262.             }
  263.             $_parent $context['_parent'];
  264.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  265.             $context array_intersect_key($context$_parent) + $_parent;
  266.             // line 196
  267.             echo "\t\t\t";
  268.         } else {
  269.             // line 197
  270.             echo "\t\t\t\t";
  271.             $context['_parent'] = $context;
  272.             $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); })()));
  273.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  274.                 // line 198
  275.                 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\">
  276. \t\t\t\t\t\t<a href=\"";
  277.                 // line 199
  278.                 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"falsefalsetrue199)]), "html"nulltrue);
  279.                 echo "\" class=\"cursor-pointer hover text-[15px] tracking-widest leading-8 \">
  280. \t\t\t\t\t\t\t";
  281.                 // line 200
  282.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue200), 200$this->source), "html"nulltrue);
  283.                 echo "
  284. \t\t\t\t\t\t</a>
  285. \t\t\t\t\t</li>
  286. \t\t\t\t";
  287.             }
  288.             $_parent $context['_parent'];
  289.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  290.             $context array_intersect_key($context$_parent) + $_parent;
  291.             // line 204
  292.             echo "\t\t\t";
  293.         }
  294.         // line 205
  295.         echo "\t\t</ul>
  296. \t</div>
  297. \t<div
  298. \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\">
  299. \t\t";
  300.         // line 210
  301.         echo "\t\t<button class=\"flex flex-col items-center justify-center p-4 w-full gap-2 open-category\">
  302. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
  303. \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\"/>
  304. \t\t\t</svg>
  305. \t\t\t<p class=\"text-xs\">商品カテゴリー</p>
  306. \t\t</button>
  307. \t\t<hr
  308. \t\tclass=\"h-10 bg-[#F7F6F2] w-[2px] border-none\">
  309. \t\t";
  310.         // line 219
  311.         echo "\t\t<a href=\"";
  312.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  313.         echo "\" class=\"flex flex-col items-center justify-center p-3 w-full gap-2\">
  314. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
  315. \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\"/>
  316. \t\t\t</svg>
  317. \t\t\t<p class=\"text-xs\">お問い合わせ</p>
  318. \t\t</a>
  319. \t</div>
  320. \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\">
  321. \t\t<div class=\"close-category absolute top-2 right-3\">
  322. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewbox=\"0 0 16 16\" fill=\"none\" class=\"\">
  323. \t\t\t\t<path d=\"M4 12L12 4M4 4L12 12\" stroke=\"#E2DFD6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
  324. \t\t\t</svg>
  325. \t\t</div>
  326. \t\t";
  327.         // line 232
  328.         $context['_parent'] = $context;
  329.         $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); })()));
  330.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  331.             // line 233
  332.             echo "\t\t\t<a href=\"";
  333.             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"falsefalsetrue233)]), "html"nulltrue);
  334.             echo "\" class=\"max-w-[calc(100%÷";
  335.             echo twig_escape_filter($this->envtwig_length_filter($this->env$this->sandbox->ensureToStringAllowed($context["category"], 233$this->source)), "html"nulltrue);
  336.             echo ")] bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
  337. \t\t\t\t";
  338.             // line 234
  339.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue234), 234$this->source), "html"nulltrue);
  340.             echo "
  341. \t\t\t</a>
  342. \t\t";
  343.         }
  344.         $_parent $context['_parent'];
  345.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  346.         $context array_intersect_key($context$_parent) + $_parent;
  347.         // line 237
  348.         echo "\t\t<a href=\"";
  349.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  350.         echo "\" class=\"w-full bg-white border border-[#E2DFD6] py-2 px-4 block whitespace-nowrap text-center rounded hover\">
  351. \t\t\tTOP
  352. \t\t</a>
  353. \t</nav>
  354. ";
  355.         
  356.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  357.         
  358.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  359.     }
  360.     public function getTemplateName()
  361.     {
  362.         return "sticky-nav.twig";
  363.     }
  364.     public function isTraitable()
  365.     {
  366.         return false;
  367.     }
  368.     public function getDebugInfo()
  369.     {
  370.         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,);
  371.     }
  372.     public function getSourceContext()
  373.     {
  374.         return new Source("{#
  375. This file is part of EC-CUBE
  376. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  377. http://www.ec-cube.co.jp/
  378. For the full copyright and license information, please view the LICENSE
  379. file that was distributed with this source code.
  380. #}
  381. {% block javascript %}
  382. \t<script>
  383. \t\t\$(document).ready(function () {
  384.             \$(\"#nav\").hide();
  385.             \$('.open-category').on('click', function () {
  386.                 \$('.open-category').toggleClass('active bg-[#F7F6F2]');
  387.                 \$(\"#nav\").toggleClass('panelactive');
  388.                 \$('#nav').removeClass('opacity-0');
  389.                 \$('#nav').slideToggle(500)
  390.             });
  391.             \$('.open-category a').click(function () {
  392.                 \$('.open-category').removeClass('active');
  393.                 \$('#nav').removeClass('panelactive');
  394.             });
  395.             \$('.close-category').click(function () {
  396.                 \$('#nav').slideToggle(500)
  397.                  \$('.open-category').removeClass('bg-[#F7F6F2]');
  398.             });
  399.             \$('.js-hamburger-menu').on('click', function (){
  400.                 if(\$('.navigation').hasClass('active')){
  401.                     \$(\".sticky-nav\").removeClass('opacity-0');
  402.                 }else{
  403.                     \$(\".sticky-nav\").addClass('opacity-0');
  404.                 }
  405.             })
  406.         })
  407. \t</script>
  408. \t{# ページ毎のスクロールイベント #}
  409. \t{% if app.request.get('_route') == 'homepage' %}
  410. \t\t<script>
  411.             \$(document).ready(function () {
  412.                 \$(\".pc-category\").removeClass('opacity-0');
  413.                 \$(window).on(\"scroll\", function () {
  414.                     // フッター
  415.                     const point = window.pageYOffset;
  416.                     const docHeight = \$(document).height();
  417.                     const dispHeight = \$(window).height();
  418.                     const sliderHeight = \$(\".footer\").height();
  419.                     const footerInnerHeight = \$('.footer').innerHeight();
  420.                     if (point > docHeight-dispHeight-footerInnerHeight) {
  421.                         \$(\".sticky-nav\").addClass('opacity-0');
  422.                     }else{
  423.                         \$(\".sticky-nav\").removeClass('opacity-0');
  424.                     }
  425.                     // TOPページ
  426.                     const mvHeight = \$(\".mv\").height();
  427.                     if (mvHeight - 300 < \$(this).scrollTop()) {
  428.                         if(point > docHeight-dispHeight-footerInnerHeight == false){
  429.                             \$(\".sticky-nav\").removeClass('opacity-0');
  430.                         }
  431.                     }else{
  432.                         \$('#nav').fadeOut(500)
  433.                         \$(\".sticky-nav\").addClass('opacity-0');
  434.                         \$('.open-category').removeClass('bg-[#F7F6F2]');
  435.                     }
  436.                 });
  437.             });
  438. \t\t</script>
  439. \t{% else %}
  440. \t\t<script>
  441. \t\t\t\$(document).ready(function () {
  442.                 \$(\".sticky-nav\").removeClass('opacity-0');
  443.                 \$(\".pc-category\").removeClass('opacity-0');
  444.                     \$(window).on(\"scroll\", function () {
  445.                     // フッター
  446.                     const point = window.pageYOffset;
  447.                     const docHeight = \$(document).height();
  448.                     const dispHeight = \$(window).height();
  449.                     const sliderHeight = \$(\".footer\").height();
  450.                     const footerInnerHeight = \$('.footer').innerHeight();
  451.                     if (point > docHeight-dispHeight-footerInnerHeight) {
  452.                         \$(\".sticky-nav\").addClass('opacity-0');
  453.                     }else{
  454.                         \$(\".sticky-nav\").removeClass('opacity-0');
  455.                     }
  456.                 });
  457.             })
  458. \t\t</script>
  459. \t{% endif %}
  460. \t<script>
  461. \t\t\$(document).ready(function () {
  462.             var targetPages = [
  463.                 '/contact/complete',
  464.                 '/contact/confirm',
  465.                 '/contact',
  466.                 '/contact/showroom',
  467.                 '/contact/catalog',
  468.                 '/contact/other',
  469.                 '/contact/coordinate',
  470.                 '/contact/form',
  471.                 '/entry/activate',
  472.                 '/entry/complete',
  473.                 '/entry/confirm',
  474.                 '/entry',
  475.                 '/forgot/complete',
  476.                 '/forgot',
  477.                 '/forgot/reset',
  478.                 '/help/agreement',
  479.                 '/help/privacy',
  480.                 '/help/sitemap',
  481.                 '/help/tradelaw',
  482.                 '/mypage/change_complete',
  483.                 '/mypage/change',
  484.                 '/mypage/delivery_edit',
  485.                 '/mypage/delivery',
  486.                 '/mypage/favorite',
  487.                 '/mypage/',
  488.                 '/mypage/login',
  489.                 '/mypage/withdraw_complete',
  490.                 '/mypage/withdraw_confirm',
  491.                 '/mypage/withdraw',
  492.                 '/user_data/catalog',
  493.                 '/user_data/corporate',
  494.                 '/user_data/guide_detail',
  495.                 '/user_data/guide_top',
  496.                 '/user_data/movie',
  497.                 '/user_data/naire',
  498.                 '/user_data/photo_service',
  499.                 '/user_data/pick_up-altar',
  500.                 '/user_data/pick_up-altar',
  501.                 '/user_data/qa',
  502.                 '/user_data/reading_detail',
  503.                 '/user_data/reading',
  504.                 '/user_data/service',
  505.                 '/user_data/service',
  506.                 '/cart',
  507.                 '/shopping/alert',
  508.                 '/shopping/confirm',
  509.                 '/shopping/complete',
  510.                 '/shopping',
  511.                 '/shopping/login',
  512.                 '/shopping/nomember',
  513.                 '/shopping/shipping_edit',
  514.                 '/shopping/shipping_multiple_edit',
  515.                 '/shopping/shipping_multiple',
  516.                 '/shopping',
  517.                 '/shopping/error',
  518.             ];
  519.             var currentUrl = location.pathname;
  520.             if (\$.inArray(currentUrl, targetPages) !== -1) {
  521.                 console.log(\"test\");
  522.                 \$(\".sticky-nav\").hide();
  523.                 \$(\".pc-category\").hide();
  524.             }
  525.         });
  526. \t</script>
  527. {% endblock %}
  528. {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  529. {% set categories = [
  530.     {
  531.         'name': 'お仏壇',
  532.         'id':'2',
  533.     },
  534.     {
  535.         'name': 'お位牌',
  536.          'id':'1',
  537.     },
  538.     {
  539.         'name': '仏具',
  540.          'id':'3',
  541.     },
  542.     {
  543.         'name': 'セット',
  544.          'id':'4',
  545.     },
  546.     {
  547.         'name': '手元供養',
  548.          'id':'21',
  549.     },
  550. ] %}
  551. {% block main %}
  552. \t<div class=\"bg-manakaBeige w-full fixed top-[82px] lg:top-[56px] z-10 md:hidden pc-category opacity-0\">
  553. \t\t<ul class=\"flex items-center gap-4 h-[82px] max-w-[1440px] justify-end mx-auto pr-4\">
  554. \t\t\t{% if app.request.get('_route') == 'product_list' %}
  555. \t\t\t\t{% for category in categories %}
  556. \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 %}\">
  557. \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 \">
  558. \t\t\t\t\t\t\t{{category.name}}
  559. \t\t\t\t\t\t</a>
  560. \t\t\t\t\t</li>
  561. \t\t\t\t{% endfor %}
  562. \t\t\t{% else %}
  563. \t\t\t\t{% for category in categories %}
  564. \t\t\t\t\t<li class=\"drop-shadow-lg bg-[#FBFBF9] px-1.5 py-0.5 rounded-3xl w-[86px] text-center\">
  565. \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 \">
  566. \t\t\t\t\t\t\t{{category.name}}
  567. \t\t\t\t\t\t</a>
  568. \t\t\t\t\t</li>
  569. \t\t\t\t{% endfor %}
  570. \t\t\t{% endif %}
  571. \t\t</ul>
  572. \t</div>
  573. \t<div
  574. \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\">
  575. \t\t{# 商品カテゴリー #}
  576. \t\t<button class=\"flex flex-col items-center justify-center p-4 w-full gap-2 open-category\">
  577. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
  578. \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\"/>
  579. \t\t\t</svg>
  580. \t\t\t<p class=\"text-xs\">商品カテゴリー</p>
  581. \t\t</button>
  582. \t\t<hr
  583. \t\tclass=\"h-10 bg-[#F7F6F2] w-[2px] border-none\">
  584. \t\t{# 問い合わせ #}
  585. \t\t<a href=\"{{url('contact')}}\" class=\"flex flex-col items-center justify-center p-3 w-full gap-2\">
  586. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"24\" viewbox=\"0 0 25 24\" fill=\"none\">
  587. \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\"/>
  588. \t\t\t</svg>
  589. \t\t\t<p class=\"text-xs\">お問い合わせ</p>
  590. \t\t</a>
  591. \t</div>
  592. \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\">
  593. \t\t<div class=\"close-category absolute top-2 right-3\">
  594. \t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewbox=\"0 0 16 16\" fill=\"none\" class=\"\">
  595. \t\t\t\t<path d=\"M4 12L12 4M4 4L12 12\" stroke=\"#E2DFD6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
  596. \t\t\t</svg>
  597. \t\t</div>
  598. \t\t{% for category in categories %}
  599. \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\">
  600. \t\t\t\t{{category.name}}
  601. \t\t\t</a>
  602. \t\t{% endfor %}
  603. \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\">
  604. \t\t\tTOP
  605. \t\t</a>
  606. \t</nav>
  607. {% endblock %}
  608. ""sticky-nav.twig""/home/xs082386/manaka-store.com/public_html/renewal.manaka-store.com/src/Eccube/Resource/template/default/sticky-nav.twig");
  609.     }
  610.     
  611.     public function checkSecurity()
  612.     {
  613.         static $tags = array("block" => 12"set" => 161"if" => 41"for" => 189);
  614.         static $filters = array("escape" => 191"length" => 233);
  615.         static $functions = array("repository" => 161"url" => 191);
  616.         try {
  617.             $this->sandbox->checkSecurity(
  618.                 ['block''set''if''for'],
  619.                 ['escape''length'],
  620.                 ['repository''url']
  621.             );
  622.         } catch (SecurityError $e) {
  623.             $e->setSourceContext($this->source);
  624.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  625.                 $e->setTemplateLine($tags[$e->getTagName()]);
  626.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  627.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  628.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  629.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  630.             }
  631.             throw $e;
  632.         }
  633.     }
  634. }