var/cache/dev/twig/25/256800015b71892603423d3ebb1cc08b666a471b207d16ea3c047de6abc6a0ca.php line 34

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/mob_cat_nav.twig */
  14. class __TwigTemplate_3a79b638ec4412864b1b8c0ba8581a7f5ba3c6ee130a75e1ec2d60b5a6cd567f 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.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/mob_cat_nav.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/mob_cat_nav.twig"));
  34.         // line 1
  35.         $context["hasCategory"] = false;
  36.         // line 2
  37.         echo "
  38. ";
  39.         // line 3
  40.         $context["request_uri"] = twig_get_attribute($this->env$this->sourcetwig_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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "server", [], "any"falsefalsefalse3), "get", [=> "REQUEST_URI"], "method"falsefalsefalse3);
  41.         // line 4
  42.         if (twig_in_filter("name=", (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'4$this->source); })()))) {
  43.             // line 5
  44.             echo "    ";
  45.             $context["hasCategory"] = false;
  46.             // line 6
  47.             echo "    ";
  48.             $context["RootCategory"] = "";
  49.         } elseif ((twig_in_filter("name=",         // line 7
  50. (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'7$this->source); })())) && ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'7$this->source); })()) != ""))) {
  51.             // line 8
  52.             echo "    ";
  53.             $context["hasCategory"] = true;
  54.             // line 9
  55.             echo "    ";
  56.             $context["RootCategory"] = 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.'9$this->source); })()), "RootCategory", [], "any"falsefalsefalse9);
  57.         } elseif ((        // line 10
  58. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'10$this->source); })()) != "")) {
  59.             // line 11
  60.             echo "    ";
  61.             $context["hasCategory"] = true;
  62.             // line 12
  63.             echo "    ";
  64.             $context["RootCategory"] = 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.'12$this->source); })()), "RootCategory", [], "any"falsefalsefalse12);
  65.         } else {
  66.             // line 14
  67.             echo "    ";
  68.             $context["hasCategory"] = false;
  69.             // line 15
  70.             echo "    ";
  71.             $context["RootCategory"] = "";
  72.         }
  73.         // line 17
  74.         echo "
  75. ";
  76.         // line 19
  77.         if (((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'19$this->source); })()) != "")) {
  78.             // line 20
  79.             echo "    ";
  80.             $this->displayBlock('javascript'$context$blocks);
  81.             // line 35
  82.             echo "    
  83.     
  84.     ";
  85.             // line 37
  86.             $context["RootCategory"] = 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.'37$this->source); })()), "RootCategory", [], "any"falsefalsefalse37);
  87.             // line 38
  88.             echo "
  89.     ";
  90.             // line 39
  91.             if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'39$this->source); })()) == "新入荷") || ((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'39$this->source); })()) == "おすすめ商品"))) {
  92.                 // line 40
  93.                 echo "        <div class=\"mob-topnav\">
  94.             <div class=\"title-box\">
  95.                 <a href=\"";
  96.                 // line 42
  97.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  98.                 echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  99.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  100.                 echo "\" alt=\"\"></a>
  101.                 <div class=\"sbbtn-box\">
  102.                     <div class=\"salebtn\">
  103.                         <div>
  104.                             <a href=\"";
  105.                 // line 46
  106.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  107.                 echo "products/list?category_id=7\">買う</a>
  108.                         </div>
  109.                     </div>
  110.                     <div class=\"buybtn\">
  111.                         <div>
  112.                             <a href=\"";
  113.                 // line 52
  114.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  115.                 echo "products/list?category_id=219\">売る</a>
  116.                         </div>
  117.                     </div>
  118.                 </div>
  119.             </div>
  120.             <div class=\"title-box\">
  121.                 <a href=\"";
  122.                 // line 59
  123.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  124.                 echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  125.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  126.                 echo "\" alt=\"\"></a>
  127.                 <div class=\"sbbtn-box\">
  128.                     <div class=\"salebtn\">
  129.                         <div>
  130.                             <a href=\"";
  131.                 // line 63
  132.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  133.                 echo "products/list?category_id=8\">買う</a>
  134.                         </div>
  135.                     </div>
  136.                     <div class=\"buybtn\">
  137.                         <div>
  138.                             <a href=\"";
  139.                 // line 69
  140.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  141.                 echo "products/list?category_id=218\">売る</a>
  142.                         </div>
  143.                     </div>
  144.                 </div>
  145.             </div>
  146.             
  147.         </div>
  148.         <div class=\"mob-topnsearch\">
  149.             ";
  150.                 // line 78
  151.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
  152.                 echo "
  153.         </div>
  154.  
  155.     
  156.     ";
  157.             } elseif ((            // line 82
  158. (isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'82$this->source); })()) == "販売")) {
  159.                 // line 83
  160.                 echo "       <!--現在のカテゴリID取得-->
  161.         ";
  162.                 // line 84
  163.                 $context["now_id"] = twig_get_attribute($this->env$this->sourcetwig_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.'84$this->source); })()), "request", [], "any"falsefalsefalse84), "query", [], "any"falsefalsefalse84), "get", [=> "category_id"], "method"falsefalsefalse84);
  164.                 // line 85
  165.                 echo "        <!--買い取り配下のカテゴリ取得-->
  166.         ";
  167.                 // line 86
  168.                 $context["cate_childs"] = twig_get_attribute($this->env$this->source, (isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'86$this->source); })()), "getDescendants", [], "any"falsefalsefalse86);
  169.                 // line 87
  170.                 echo "        <!--ルート表示-->
  171.         <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  172.         <!--現在カテゴリの上のカテゴリを取得 -->
  173.         ";
  174.                 // line 92
  175.                 $context["nowparent"] = 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.'92$this->source); })()), "getParent", [], "method"falsefalsefalse92);
  176.                 // line 93
  177.                 echo "        ";
  178.                 $context["h"] = (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.'93$this->source); })()), "hierarchy", [], "any"falsefalsefalse93) - 1);
  179.                 // line 94
  180.                 echo "
  181.         <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  182.         ";
  183.                 // line 96
  184.                 if ((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'96$this->source); })()) == "シュヴァルツサイド") || ((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'96$this->source); })()) == "ヴァイスサイド"))) {
  185.                     // line 97
  186.                     echo "        ";
  187.                     $context["nowparent"] = "ヴァイスシュヴァルツ";
  188.                     // line 98
  189.                     echo "        ";
  190.                 }
  191.                 // line 99
  192.                 echo "
  193.         ";
  194.                 // line 100
  195.                 $context['_parent'] = $context;
  196.                 $context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'100$this->source); })()));
  197.                 foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  198.                     // line 101
  199.                     echo "            ";
  200.                     if (((isset($context["h"]) || array_key_exists("h"$context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.'101$this->source); })()) == twig_get_attribute($this->env$this->source$context["cate"], "hierarchy", [], "any"falsefalsefalse101))) {
  201.                         // line 102
  202.                         echo "            ";
  203.                         // line 103
  204.                         echo "            ";
  205.                     }
  206.                     // line 104
  207.                     echo "        ";
  208.                 }
  209.                 $_parent $context['_parent'];
  210.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  211.                 $context array_intersect_key($context$_parent) + $_parent;
  212.                 // line 105
  213.                 echo "
  214.             ";
  215.                 // line 106
  216.                 if ((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'106$this->source); })()) == "ポケモン") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'106$this->source); })()) == "ポケモン"))) {
  217.                     // line 107
  218.                     echo "                ";
  219.                     $context["cnt"] = 7;
  220.                     // line 108
  221.                     echo "            
  222.                 ";
  223.                     // line 109
  224.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
  225.                     echo "
  226.             
  227.             
  228.                 ";
  229.                     // line 113
  230.                     echo "                ";
  231.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 7], "method"falsefalsefalse113);
  232.                     // line 114
  233.                     echo "            
  234.             
  235.                 ";
  236.                     // line 117
  237.                     echo "                ";
  238.                     $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this;
  239.                     // line 118
  240.                     echo "            
  241.             
  242.             
  243.                 <div class=\"side-cat1\">
  244.                     <div class=\"side-cat-smallbox\">
  245.                         <a href=\"";
  246.                     // line 123
  247.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  248.                     echo "products/list?category_id=7\">ポケモン</a>
  249.                         <ul>
  250.                         ";
  251.                     // line 125
  252.                     $context['_parent'] = $context;
  253.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'125$this->source); })()));
  254.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  255.                         // line 126
  256.                         echo "                            <li>";
  257.                         echo twig_call_macro($macros["__internal_parse_0"], "macro_tree", [$context["Category"]], 126$context$this->getSourceContext());
  258.                         echo "</li>
  259.                         ";
  260.                     }
  261.                     $_parent $context['_parent'];
  262.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  263.                     $context array_intersect_key($context$_parent) + $_parent;
  264.                     // line 128
  265.                     echo "                        </ul>
  266.                     </div>
  267.                 </div>
  268.             ";
  269.                 } elseif (((                // line 133
  270. (isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'133$this->source); })()) == "ヴァイスシュヴァルツ") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'133$this->source); })()) == "ヴァイスシュヴァルツ"))) {
  271.                     // line 134
  272.                     echo "
  273.                 ";
  274.                     // line 135
  275.                     $context["cnt"] = 7;
  276.                     // line 136
  277.                     echo "            
  278.                 ";
  279.                     // line 137
  280.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
  281.                     echo "
  282.             
  283.             
  284.                 ";
  285.                     // line 141
  286.                     echo "                ";
  287.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 9], "method"falsefalsefalse141);
  288.                     // line 142
  289.                     echo "            
  290.             
  291.                 ";
  292.                     // line 145
  293.                     echo "                ";
  294.                     $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  295.                     // line 146
  296.                     echo "            
  297.             
  298.             
  299.                 <div class=\"side-cat1\">
  300.                     <div class=\"side-cat-smallbox\">
  301.                         <a href=\"";
  302.                     // line 151
  303.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  304.                     echo "products/list?category_id=9\">シュヴァルツサイド</a>
  305.                         <ul>
  306.                         ";
  307.                     // line 153
  308.                     $context['_parent'] = $context;
  309.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'153$this->source); })()));
  310.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  311.                         // line 154
  312.                         echo "                            <li>";
  313.                         echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 154$context$this->getSourceContext());
  314.                         echo "</li>
  315.                         ";
  316.                     }
  317.                     $_parent $context['_parent'];
  318.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  319.                     $context array_intersect_key($context$_parent) + $_parent;
  320.                     // line 156
  321.                     echo "                        </ul>
  322.                     </div>
  323.                 </div>
  324.             
  325.             
  326.                 ";
  327.                     // line 163
  328.                     echo "                ";
  329.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 10], "method"falsefalsefalse163);
  330.                     // line 164
  331.                     echo "                ";
  332.                     // line 165
  333.                     echo "                ";
  334.                     $macros["__internal_parse_2"] = $this->macros["__internal_parse_2"] = $this;
  335.                     // line 166
  336.                     echo "            
  337.                 <div class=\"side-cat1\">
  338.                     <div class=\"side-cat-smallbox\">
  339.                         <a href=\"";
  340.                     // line 170
  341.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  342.                     echo "products/list?category_id=10\">ヴァイスサイド</a>
  343.                         <ul>
  344.                         ";
  345.                     // line 172
  346.                     $context['_parent'] = $context;
  347.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'172$this->source); })()));
  348.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  349.                         // line 173
  350.                         echo "                            <li>";
  351.                         echo twig_call_macro($macros["__internal_parse_2"], "macro_tree", [$context["Category"]], 173$context$this->getSourceContext());
  352.                         echo "</li>
  353.                         ";
  354.                     }
  355.                     $_parent $context['_parent'];
  356.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  357.                     $context array_intersect_key($context$_parent) + $_parent;
  358.                     // line 175
  359.                     echo "                        </ul>
  360.                     </div>
  361.                 </div>
  362.             
  363.             ";
  364.                 } else {
  365.                     // line 181
  366.                     echo "                <div class=\"mob-topnav\">
  367.                     <div class=\"title-box\">
  368.                         <a href=\"";
  369.                     // line 183
  370.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  371.                     echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  372.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  373.                     echo "\" alt=\"\"></a>
  374.                         <div class=\"sbbtn-box\">
  375.                             <div class=\"salebtn\">
  376.                                 <div>
  377.                                     <a href=\"";
  378.                     // line 187
  379.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  380.                     echo "products/list?category_id=7\">買う</a>
  381.                                 </div>
  382.                             </div>
  383.                             <div class=\"buybtn\">
  384.                                 <div>
  385.                                     <a href=\"";
  386.                     // line 193
  387.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  388.                     echo "products/list?category_id=219\">売る</a>
  389.                                 </div>
  390.                             </div>
  391.                         </div>
  392.                     </div>
  393.                     <div class=\"title-box\">
  394.                         <a href=\"";
  395.                     // line 200
  396.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  397.                     echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  398.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  399.                     echo "\" alt=\"\"></a>
  400.                         <div class=\"sbbtn-box\">
  401.                             <div class=\"salebtn\">
  402.                                 <div>
  403.                                     <a href=\"";
  404.                     // line 204
  405.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  406.                     echo "products/list?category_id=8\">買う</a>
  407.                                 </div>
  408.                             </div>
  409.                             <div class=\"buybtn\">
  410.                                 <div>
  411.                                     <a href=\"";
  412.                     // line 210
  413.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  414.                     echo "products/list?category_id=218\">売る</a>
  415.                                 </div>
  416.                             </div>
  417.                         </div>
  418.                     </div>
  419.                     
  420.                 </div>
  421.                 <div class=\"mob-topnsearch\">
  422.                     ";
  423.                     // line 219
  424.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
  425.                     echo "
  426.                 </div>
  427.  
  428.             ";
  429.                 }
  430.                 // line 224
  431.                 echo "
  432.     
  433.     ";
  434.             } elseif ((            // line 226
  435. (isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'226$this->source); })()) == "買い取り")) {
  436.                 // line 227
  437.                 echo "
  438.         <!--現在のカテゴリID取得-->
  439.         ";
  440.                 // line 230
  441.                 $context["now_id"] = twig_get_attribute($this->env$this->sourcetwig_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.'230$this->source); })()), "request", [], "any"falsefalsefalse230), "query", [], "any"falsefalsefalse230), "get", [=> "category_id"], "method"falsefalsefalse230);
  442.                 // line 231
  443.                 echo "        <!--買い取り配下のカテゴリ取得-->
  444.         ";
  445.                 // line 232
  446.                 $context["cate_childs"] = twig_get_attribute($this->env$this->source, (isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'232$this->source); })()), "getDescendants", [], "any"falsefalsefalse232);
  447.                 // line 233
  448.                 echo "        <!--ルート表示-->
  449.         <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  450.         <!--現在カテゴリの上のカテゴリを取得 -->
  451.         ";
  452.                 // line 238
  453.                 $context["nowparent"] = 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.'238$this->source); })()), "getParent", [], "method"falsefalsefalse238);
  454.                 // line 239
  455.                 echo "        ";
  456.                 $context["h"] = (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.'239$this->source); })()), "hierarchy", [], "any"falsefalsefalse239) - 1);
  457.                 // line 240
  458.                 echo "
  459.         <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  460.         ";
  461.                 // line 242
  462.                 if ((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'242$this->source); })()) == "シュヴァルツサイド") || ((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'242$this->source); })()) == "ヴァイスサイド"))) {
  463.                     // line 243
  464.                     echo "        ";
  465.                     $context["nowparent"] = "ヴァイスシュヴァルツ";
  466.                     // line 244
  467.                     echo "        ";
  468.                 }
  469.                 // line 245
  470.                 echo "
  471.         ";
  472.                 // line 246
  473.                 $context['_parent'] = $context;
  474.                 $context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'246$this->source); })()));
  475.                 foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  476.                     // line 247
  477.                     echo "            ";
  478.                     if (((isset($context["h"]) || array_key_exists("h"$context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.'247$this->source); })()) == twig_get_attribute($this->env$this->source$context["cate"], "hierarchy", [], "any"falsefalsefalse247))) {
  479.                         // line 248
  480.                         echo "            ";
  481.                         // line 249
  482.                         echo "            ";
  483.                     }
  484.                     // line 250
  485.                     echo "        ";
  486.                 }
  487.                 $_parent $context['_parent'];
  488.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  489.                 $context array_intersect_key($context$_parent) + $_parent;
  490.                 // line 251
  491.                 echo "
  492.             ";
  493.                 // line 252
  494.                 if ((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'252$this->source); })()) == "ポケモン") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'252$this->source); })()) == "ポケモン"))) {
  495.                     // line 253
  496.                     echo "
  497.                 ";
  498.                     // line 254
  499.                     $context["cnt"] = 7;
  500.                     // line 255
  501.                     echo "            
  502.                 ";
  503.                     // line 256
  504.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  505.                     echo "
  506.                 ";
  507.                     // line 258
  508.                     echo "                ";
  509.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 219], "method"falsefalsefalse258);
  510.                     // line 259
  511.                     echo "        
  512.                 ";
  513.                     // line 261
  514.                     echo "                ";
  515.                     $macros["__internal_parse_3"] = $this->macros["__internal_parse_3"] = $this;
  516.                     // line 262
  517.                     echo "            
  518.                 <div class=\"side-cat1\">
  519.                     <div class=\"side-cat-smallbox\">
  520.                         <a href=\"";
  521.                     // line 265
  522.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  523.                     echo "products/list?category_id=7\">ポケモン</a>
  524.                         <ul>
  525.                         ";
  526.                     // line 267
  527.                     $context['_parent'] = $context;
  528.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'267$this->source); })()));
  529.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  530.                         // line 268
  531.                         echo "                            <li>";
  532.                         echo twig_call_macro($macros["__internal_parse_3"], "macro_tree", [$context["Category"]], 268$context$this->getSourceContext());
  533.                         echo "</li>
  534.                         ";
  535.                     }
  536.                     $_parent $context['_parent'];
  537.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  538.                     $context array_intersect_key($context$_parent) + $_parent;
  539.                     // line 270
  540.                     echo "                        </ul>
  541.                     </div>
  542.                 </div>
  543.  
  544.             ";
  545.                 } elseif (((                // line 277
  546. (isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'277$this->source); })()) == "ヴァイスシュヴァルツ") || ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'277$this->source); })()) == "ヴァイスシュヴァルツ"))) {
  547.                     // line 278
  548.                     echo "                ";
  549.                     $context["cnt"] = 7;
  550.                     // line 279
  551.                     echo "            
  552.                 ";
  553.                     // line 280
  554.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  555.                     echo "
  556.             
  557.             
  558.                 ";
  559.                     // line 284
  560.                     echo "                ";
  561.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 221], "method"falsefalsefalse284);
  562.                     // line 285
  563.                     echo "            
  564.             
  565.                 ";
  566.                     // line 288
  567.                     echo "                ";
  568.                     $macros["__internal_parse_4"] = $this->macros["__internal_parse_4"] = $this;
  569.                     // line 289
  570.                     echo "            
  571.             
  572.             
  573.                 <div class=\"side-cat1\">
  574.                     <div class=\"side-cat-smallbox\">
  575.                         <a href=\"";
  576.                     // line 294
  577.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  578.                     echo "products/list?category_id=9\">シュヴァルツサイド</a>
  579.                         <ul>
  580.                         ";
  581.                     // line 296
  582.                     $context['_parent'] = $context;
  583.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'296$this->source); })()));
  584.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  585.                         // line 297
  586.                         echo "                            <li>";
  587.                         echo twig_call_macro($macros["__internal_parse_4"], "macro_tree", [$context["Category"]], 297$context$this->getSourceContext());
  588.                         echo "</li>
  589.                         ";
  590.                     }
  591.                     $_parent $context['_parent'];
  592.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  593.                     $context array_intersect_key($context$_parent) + $_parent;
  594.                     // line 299
  595.                     echo "                        </ul>
  596.                     </div>
  597.                 </div>
  598.             
  599.             
  600.                 ";
  601.                     // line 306
  602.                     echo "                ";
  603.                     $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [=> 220], "method"falsefalsefalse306);
  604.                     // line 307
  605.                     echo "                ";
  606.                     // line 308
  607.                     echo "                ";
  608.                     $macros["__internal_parse_5"] = $this->macros["__internal_parse_5"] = $this;
  609.                     // line 309
  610.                     echo "            
  611.                 <div class=\"side-cat1\">
  612.                     <div class=\"side-cat-smallbox\">
  613.                         <a href=\"";
  614.                     // line 313
  615.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  616.                     echo "products/list?category_id=10\">ヴァイスサイド</a>
  617.                         <ul>
  618.                         ";
  619.                     // line 315
  620.                     $context['_parent'] = $context;
  621.                     $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'315$this->source); })()));
  622.                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  623.                         // line 316
  624.                         echo "                            <li>";
  625.                         echo twig_call_macro($macros["__internal_parse_5"], "macro_tree", [$context["Category"]], 316$context$this->getSourceContext());
  626.                         echo "</li>
  627.                         ";
  628.                     }
  629.                     $_parent $context['_parent'];
  630.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  631.                     $context array_intersect_key($context$_parent) + $_parent;
  632.                     // line 318
  633.                     echo "                        </ul>
  634.                     </div>
  635.                 </div>
  636.             
  637.                 ";
  638.                     // line 340
  639.                     echo "
  640.             ";
  641.                 } else {
  642.                     // line 342
  643.                     echo "                  <div class=\"mob-topnav\">
  644.                     <div class=\"title-box\">
  645.                         <a href=\"";
  646.                     // line 344
  647.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  648.                     echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  649.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  650.                     echo "\" alt=\"\"></a>
  651.                         <div class=\"sbbtn-box\">
  652.                             <div class=\"salebtn\">
  653.                                 <div>
  654.                                     <a href=\"";
  655.                     // line 348
  656.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  657.                     echo "products/list?category_id=7\">買う</a>
  658.                                 </div>
  659.                             </div>
  660.                             <div class=\"buybtn\">
  661.                                 <div>
  662.                                     <a href=\"";
  663.                     // line 354
  664.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  665.                     echo "products/list?category_id=219\">売る</a>
  666.                                 </div>
  667.                             </div>
  668.                         </div>
  669.                     </div>
  670.                     <div class=\"title-box\">
  671.                         <a href=\"";
  672.                     // line 361
  673.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  674.                     echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  675.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  676.                     echo "\" alt=\"\"></a>
  677.                         <div class=\"sbbtn-box\">
  678.                             <div class=\"salebtn\">
  679.                                 <div>
  680.                                     <a href=\"";
  681.                     // line 365
  682.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  683.                     echo "products/list?category_id=8\">買う</a>
  684.                                 </div>
  685.                             </div>
  686.                             <div class=\"buybtn\">
  687.                                 <div>
  688.                                     <a href=\"";
  689.                     // line 371
  690.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  691.                     echo "products/list?category_id=218\">売る</a>
  692.                                 </div>
  693.                             </div>
  694.                         </div>
  695.                     </div>
  696.                     
  697.                 </div>
  698.                 <div class=\"mob-topnsearch\">
  699.                 ";
  700.                     // line 380
  701.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  702.                     echo "
  703.                 </div>
  704.             ";
  705.                 }
  706.                 // line 383
  707.                 echo "    ";
  708.             } else {
  709.                 // line 384
  710.                 echo "\t<div class=\"mob-topnav\">
  711. \t<div class=\"title-box\">
  712.     <a href=\"";
  713.                 // line 386
  714.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  715.                 echo "products/list?category_id=708\" class=\"titlebtn\"><img src=\"";
  716.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/box.png"), "html"nulltrue);
  717.                 echo "\" alt=\"新品&中古box\"></a>
  718.         <div class=\"sbbtn-box\">
  719.             <div class=\"nbbtn\">
  720.                 <div>
  721.                     <a href=\"";
  722.                 // line 390
  723.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  724.                 echo "products/list?category_id=708\">新品BOX</a>
  725.                 </div>
  726.             </div>
  727.             <div class=\"ubbtn\">
  728.                 <div>
  729.                     <a href=\"";
  730.                 // line 396
  731.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  732.                 echo "products/list?category_id=708\">予約BOX</a>
  733.                 </div>
  734.             </div>
  735.         </div>
  736.     </div>
  737.                  
  738.                     <div class=\"title-box\">
  739.                         <a href=\"";
  740.                 // line 404
  741.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  742.                 echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  743.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  744.                 echo "\" alt=\"\"></a>
  745.                         <div class=\"sbbtn-box\">
  746.                             <div class=\"salebtn\">
  747.                                 <div>
  748.                                     <a href=\"";
  749.                 // line 408
  750.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  751.                 echo "products/list?category_id=7\">買う</a>
  752.                                 </div>
  753.                             </div>
  754.                             <div class=\"buybtn\">
  755.                                 <div>
  756.                                     <a href=\"";
  757.                 // line 414
  758.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  759.                 echo "products/list?category_id=219\">売る</a>
  760.                                 </div>
  761.                             </div>
  762.                         </div>
  763.                     </div>
  764. \t\t\t\t\t
  765. \t\t\t\t\t</div>
  766. \t\t\t\t\t
  767. \t\t\t\t\t<div class=\"mob-topnav mob-topnav_sec\">
  768. \t\t\t\t\t
  769.                     <div class=\"title-box\">
  770.                         <a href=\"";
  771.                 // line 426
  772.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  773.                 echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  774.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  775.                 echo "\" alt=\"\"></a>
  776.                         <div class=\"sbbtn-box\">
  777.                             <div class=\"salebtn\">
  778.                                 <div>
  779.                                     <a href=\"";
  780.                 // line 430
  781.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  782.                 echo "products/list?category_id=8\">買う</a>
  783.                                 </div>
  784.                             </div>
  785.                             <div class=\"buybtn\">
  786.                                 <div>
  787.                                     <a href=\"";
  788.                 // line 436
  789.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  790.                 echo "products/list?category_id=218\">売る</a>
  791.                                 </div>
  792.                             </div>
  793.                         </div>
  794.                     </div>
  795.                     
  796.                 </div>
  797.                 <div class=\"mob-topnsearch\">
  798.                 ";
  799.                 // line 445
  800.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  801.                 echo "
  802.                 </div>
  803.     ";
  804.             }
  805.         } else {
  806.             // line 450
  807.             echo "               <div class=\"mob-topnav\">
  808.                     <div class=\"title-box\">
  809.                         <a href=\"";
  810.             // line 452
  811.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  812.             echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  813.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  814.             echo "\" alt=\"\"></a>
  815.                         <div class=\"sbbtn-box\">
  816.                             <div class=\"salebtn\">
  817.                                 <div>
  818.                                     <a href=\"";
  819.             // line 456
  820.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  821.             echo "products/list?category_id=7\">買う</a>
  822.                                 </div>
  823.                             </div>
  824.                             <div class=\"buybtn\">
  825.                                 <div>
  826.                                     <a href=\"";
  827.             // line 462
  828.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  829.             echo "products/list?category_id=219\">売る</a>
  830.                                 </div>
  831.                             </div>
  832.                         </div>
  833.                     </div>
  834.                     <div class=\"title-box\">
  835.                         <a href=\"";
  836.             // line 469
  837.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  838.             echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  839.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  840.             echo "\" alt=\"\"></a>
  841.                         <div class=\"sbbtn-box\">
  842.                             <div class=\"salebtn\">
  843.                                 <div>
  844.                                     <a href=\"";
  845.             // line 473
  846.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  847.             echo "products/list?category_id=8\">買う</a>
  848.                                 </div>
  849.                             </div>
  850.                             <div class=\"buybtn\">
  851.                                 <div>
  852.                                     <a href=\"";
  853.             // line 479
  854.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  855.             echo "products/list?category_id=218\">売る</a>
  856.                                 </div>
  857.                             </div>
  858.                         </div>
  859.                     </div>
  860.                     
  861.                 </div>
  862.                 <div class=\"mob-topnsearch\">
  863.                     ";
  864.             // line 488
  865.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
  866.             echo "
  867.                 </div>
  868. ";
  869.         }
  870.         // line 491
  871.         echo "
  872.                 ";
  873.         
  874.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  875.         
  876.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  877.     }
  878.     // line 20
  879.     public function block_javascript($context, array $blocks = [])
  880.     {
  881.         $macros $this->macros;
  882.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  883.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  884.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  885.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  886.         // line 21
  887.         echo "    
  888.     <script>
  889.     \$(function() {
  890.         ";
  891.         // line 25
  892.         if (((((isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'25$this->source); })()) == "買い取り") || twig_in_filter("id=217", (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'25$this->source); })()))) || twig_in_filter("id=218", (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'25$this->source); })())))) {
  893.             // line 26
  894.             echo "
  895.                 \$('.cat_mob_top-content-box').css('background-color','#22b573');
  896.                 \$('.mob_top-content-box').css('background-color','#22b573');
  897.         ";
  898.         }
  899.         // line 30
  900.         echo "
  901.     });
  902.     </script>
  903.     
  904.     ";
  905.         
  906.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  907.         
  908.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  909.     }
  910.     // line 492
  911.     public function macro_tree($__Category__ null, ...$__varargs__)
  912.     {
  913.         $macros $this->macros;
  914.         $context $this->env->mergeGlobals([
  915.             "Category" => $__Category__,
  916.             "varargs" => $__varargs__,
  917.         ]);
  918.         $blocks = [];
  919.         ob_start();
  920.         try {
  921.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  922.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  923.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  924.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  925.             // line 493
  926.             echo "                    ";
  927.             $macros["__internal_parse_7"] = $this;
  928.             // line 494
  929.             echo "            
  930.                         <a href=\"";
  931.             // line 495
  932.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  933.             echo "?category_id=";
  934.             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.'495$this->source); })()), "id", [], "any"falsefalsefalse495), "html"nulltrue);
  935.             echo "\">
  936.                             ";
  937.             // line 496
  938.             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.'496$this->source); })()), "name", [], "any"falsefalsefalse496), "html"nulltrue);
  939.             echo "
  940.                         </a>
  941.                         ";
  942.             // line 498
  943.             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.'498$this->source); })()), "children", [], "any"falsefalsefalse498)) > 0)) {
  944.                 // line 499
  945.                 echo "                            <ul>
  946.                                 ";
  947.                 // line 500
  948.                 $context['_parent'] = $context;
  949.                 $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.'500$this->source); })()), "children", [], "any"falsefalsefalse500));
  950.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  951.                     // line 501
  952.                     echo "                                    <li>
  953.                                         ";
  954.                     // line 502
  955.                     echo twig_call_macro($macros["__internal_parse_7"], "macro_tree", [$context["ChildCategory"]], 502$context$this->getSourceContext());
  956.                     echo "
  957.                                     </li>
  958.                                 ";
  959.                 }
  960.                 $_parent $context['_parent'];
  961.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  962.                 $context array_intersect_key($context$_parent) + $_parent;
  963.                 // line 505
  964.                 echo "                            </ul>
  965.                         ";
  966.             }
  967.             // line 507
  968.             echo "            
  969.                 ";
  970.             
  971.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  972.             
  973.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  974.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  975.         } finally {
  976.             ob_end_clean();
  977.         }
  978.     }
  979.     public function getTemplateName()
  980.     {
  981.         return "Block/mob_cat_nav.twig";
  982.     }
  983.     public function isTraitable()
  984.     {
  985.         return false;
  986.     }
  987.     public function getDebugInfo()
  988.     {
  989.         return array (  1031 => 507,  1027 => 505,  1018 => 502,  1015 => 501,  1011 => 500,  1008 => 499,  1006 => 498,  1001 => 496,  995 => 495,  992 => 494,  989 => 493,  970 => 492,  956 => 30,  950 => 26,  948 => 25,  942 => 21,  932 => 20,  921 => 491,  915 => 488,  903 => 479,  894 => 473,  885 => 469,  875 => 462,  866 => 456,  857 => 452,  853 => 450,  845 => 445,  833 => 436,  824 => 430,  815 => 426,  800 => 414,  791 => 408,  782 => 404,  771 => 396,  762 => 390,  753 => 386,  749 => 384,  746 => 383,  740 => 380,  728 => 371,  719 => 365,  710 => 361,  700 => 354,  691 => 348,  682 => 344,  678 => 342,  674 => 340,  667 => 318,  658 => 316,  654 => 315,  649 => 313,  643 => 309,  640 => 308,  638 => 307,  635 => 306,  627 => 299,  618 => 297,  614 => 296,  609 => 294,  602 => 289,  599 => 288,  595 => 285,  592 => 284,  586 => 280,  583 => 279,  580 => 278,  578 => 277,  569 => 270,  560 => 268,  556 => 267,  551 => 265,  546 => 262,  543 => 261,  540 => 259,  537 => 258,  533 => 256,  530 => 255,  528 => 254,  525 => 253,  523 => 252,  520 => 251,  514 => 250,  511 => 249,  509 => 248,  506 => 247,  502 => 246,  499 => 245,  496 => 244,  493 => 243,  491 => 242,  487 => 240,  484 => 239,  482 => 238,  475 => 233,  473 => 232,  470 => 231,  468 => 230,  463 => 227,  461 => 226,  457 => 224,  449 => 219,  437 => 210,  428 => 204,  419 => 200,  409 => 193,  400 => 187,  391 => 183,  387 => 181,  379 => 175,  370 => 173,  366 => 172,  361 => 170,  355 => 166,  352 => 165,  350 => 164,  347 => 163,  339 => 156,  330 => 154,  326 => 153,  321 => 151,  314 => 146,  311 => 145,  307 => 142,  304 => 141,  298 => 137,  295 => 136,  293 => 135,  290 => 134,  288 => 133,  281 => 128,  272 => 126,  268 => 125,  263 => 123,  256 => 118,  253 => 117,  249 => 114,  246 => 113,  240 => 109,  237 => 108,  234 => 107,  232 => 106,  229 => 105,  223 => 104,  220 => 103,  218 => 102,  215 => 101,  211 => 100,  208 => 99,  205 => 98,  202 => 97,  200 => 96,  196 => 94,  193 => 93,  191 => 92,  184 => 87,  182 => 86,  179 => 85,  177 => 84,  174 => 83,  172 => 82,  165 => 78,  153 => 69,  144 => 63,  135 => 59,  125 => 52,  116 => 46,  107 => 42,  103 => 40,  101 => 39,  98 => 38,  96 => 37,  92 => 35,  89 => 20,  87 => 19,  83 => 17,  79 => 15,  76 => 14,  72 => 12,  69 => 11,  67 => 10,  64 => 9,  61 => 8,  59 => 7,  56 => 6,  53 => 5,  51 => 4,  49 => 3,  46 => 2,  44 => 1,);
  990.     }
  991.     public function getSourceContext()
  992.     {
  993.         return new Source("{% set hasCategory = false %}
  994. {% set request_uri = app.request.server.get('REQUEST_URI') %}
  995. {% if 'name=' in request_uri %}
  996.     {% set hasCategory = false %}
  997.     {% set RootCategory = \"\" %}
  998. {% elseif 'name=' in request_uri and Category != \"\" %}
  999.     {% set hasCategory = true %}
  1000.     {% set RootCategory = Category.RootCategory %}
  1001. {% elseif Category != \"\" %}
  1002.     {% set hasCategory = true %}
  1003.     {% set RootCategory = Category.RootCategory %}
  1004. {% else %}
  1005.     {% set hasCategory = false %}
  1006.     {% set RootCategory = \"\" %}
  1007. {% endif %}
  1008. {% if Category != \"\" %}
  1009.     {% block javascript %}
  1010.     
  1011.     <script>
  1012.     \$(function() {
  1013.         {% if RootCategory == \"買い取り\" or 'id=217' in request_uri or 'id=218' in request_uri%}
  1014.                 \$('.cat_mob_top-content-box').css('background-color','#22b573');
  1015.                 \$('.mob_top-content-box').css('background-color','#22b573');
  1016.         {% endif %}
  1017.     });
  1018.     </script>
  1019.     
  1020.     {% endblock %}
  1021.     
  1022.     
  1023.     {% set RootCategory = Category.RootCategory %}
  1024.     {% if RootCategory == '新入荷' or RootCategory ==  \"おすすめ商品\" %}
  1025.         <div class=\"mob-topnav\">
  1026.             <div class=\"title-box\">
  1027.                 <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  1028.                 <div class=\"sbbtn-box\">
  1029.                     <div class=\"salebtn\">
  1030.                         <div>
  1031.                             <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  1032.                         </div>
  1033.                     </div>
  1034.                     <div class=\"buybtn\">
  1035.                         <div>
  1036.                             <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  1037.                         </div>
  1038.                     </div>
  1039.                 </div>
  1040.             </div>
  1041.             <div class=\"title-box\">
  1042.                 <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  1043.                 <div class=\"sbbtn-box\">
  1044.                     <div class=\"salebtn\">
  1045.                         <div>
  1046.                             <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  1047.                         </div>
  1048.                     </div>
  1049.                     <div class=\"buybtn\">
  1050.                         <div>
  1051.                             <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  1052.                         </div>
  1053.                     </div>
  1054.                 </div>
  1055.             </div>
  1056.             
  1057.         </div>
  1058.         <div class=\"mob-topnsearch\">
  1059.             {{ render(path('block_side_serch')) }}
  1060.         </div>
  1061.  
  1062.     
  1063.     {% elseif RootCategory == '販売' %}
  1064.        <!--現在のカテゴリID取得-->
  1065.         {% set now_id = app.request.query.get('category_id') %}
  1066.         <!--買い取り配下のカテゴリ取得-->
  1067.         {% set cate_childs = RootCategory.getDescendants %}
  1068.         <!--ルート表示-->
  1069.         <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  1070.         <!--現在カテゴリの上のカテゴリを取得 -->
  1071.         {% set nowparent = Category.getParent() %}
  1072.         {% set h = Category.hierarchy - 1 %}
  1073.         <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  1074.         {% if nowparent == \"シュヴァルツサイド\" or nowparent == \"ヴァイスサイド\" %}
  1075.         {% set nowparent = \"ヴァイスシュヴァルツ\" %}
  1076.         {% endif %}
  1077.         {% for cate in cate_childs %}
  1078.             {% if h == cate.hierarchy %}
  1079.             {# cate.name #}
  1080.             {% endif %}
  1081.         {% endfor %}
  1082.             {% if nowparent == \"ポケモン\" or Category == \"ポケモン\" %}
  1083.                 {% set cnt = 7 %}
  1084.             
  1085.                 {{ render(path('block_side_serch')) }}
  1086.             
  1087.             
  1088.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 7}) #}
  1089.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(7) %}
  1090.             
  1091.             
  1092.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1093.                 {% from _self import tree %}
  1094.             
  1095.             
  1096.             
  1097.                 <div class=\"side-cat1\">
  1098.                     <div class=\"side-cat-smallbox\">
  1099.                         <a href=\"{{url('homepage')}}products/list?category_id=7\">ポケモン</a>
  1100.                         <ul>
  1101.                         {% for Category in Categories %}
  1102.                             <li>{{ tree(Category) }}</li>
  1103.                         {% endfor %}
  1104.                         </ul>
  1105.                     </div>
  1106.                 </div>
  1107.             {% elseif nowparent == \"ヴァイスシュヴァルツ\" or Category == \"ヴァイスシュヴァルツ\" %}
  1108.                 {% set cnt = 7 %}
  1109.             
  1110.                 {{ render(path('block_side_serch')) }}
  1111.             
  1112.             
  1113.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 9}) #}
  1114.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(9) %}
  1115.             
  1116.             
  1117.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1118.                 {% from _self import tree %}
  1119.             
  1120.             
  1121.             
  1122.                 <div class=\"side-cat1\">
  1123.                     <div class=\"side-cat-smallbox\">
  1124.                         <a href=\"{{url('homepage')}}products/list?category_id=9\">シュヴァルツサイド</a>
  1125.                         <ul>
  1126.                         {% for Category in Categories %}
  1127.                             <li>{{ tree(Category) }}</li>
  1128.                         {% endfor %}
  1129.                         </ul>
  1130.                     </div>
  1131.                 </div>
  1132.             
  1133.             
  1134.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 10}) #}
  1135.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(10) %}
  1136.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1137.                 {% from _self import tree %}
  1138.             
  1139.                 <div class=\"side-cat1\">
  1140.                     <div class=\"side-cat-smallbox\">
  1141.                         <a href=\"{{url('homepage')}}products/list?category_id=10\">ヴァイスサイド</a>
  1142.                         <ul>
  1143.                         {% for Category in Categories %}
  1144.                             <li>{{ tree(Category) }}</li>
  1145.                         {% endfor %}
  1146.                         </ul>
  1147.                     </div>
  1148.                 </div>
  1149.             
  1150.             {% else %}
  1151.                 <div class=\"mob-topnav\">
  1152.                     <div class=\"title-box\">
  1153.                         <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  1154.                         <div class=\"sbbtn-box\">
  1155.                             <div class=\"salebtn\">
  1156.                                 <div>
  1157.                                     <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  1158.                                 </div>
  1159.                             </div>
  1160.                             <div class=\"buybtn\">
  1161.                                 <div>
  1162.                                     <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  1163.                                 </div>
  1164.                             </div>
  1165.                         </div>
  1166.                     </div>
  1167.                     <div class=\"title-box\">
  1168.                         <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  1169.                         <div class=\"sbbtn-box\">
  1170.                             <div class=\"salebtn\">
  1171.                                 <div>
  1172.                                     <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  1173.                                 </div>
  1174.                             </div>
  1175.                             <div class=\"buybtn\">
  1176.                                 <div>
  1177.                                     <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  1178.                                 </div>
  1179.                             </div>
  1180.                         </div>
  1181.                     </div>
  1182.                     
  1183.                 </div>
  1184.                 <div class=\"mob-topnsearch\">
  1185.                     {{ render(path('block_side_serch')) }}
  1186.                 </div>
  1187.  
  1188.             {% endif %}
  1189.     
  1190.     {% elseif  RootCategory == '買い取り' %}
  1191.         <!--現在のカテゴリID取得-->
  1192.         {% set now_id = app.request.query.get('category_id') %}
  1193.         <!--買い取り配下のカテゴリ取得-->
  1194.         {% set cate_childs = RootCategory.getDescendants %}
  1195.         <!--ルート表示-->
  1196.         <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  1197.         <!--現在カテゴリの上のカテゴリを取得 -->
  1198.         {% set nowparent = Category.getParent() %}
  1199.         {% set h = Category.hierarchy - 1 %}
  1200.         <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  1201.         {% if nowparent == \"シュヴァルツサイド\" or nowparent == \"ヴァイスサイド\" %}
  1202.         {% set nowparent = \"ヴァイスシュヴァルツ\" %}
  1203.         {% endif %}
  1204.         {% for cate in cate_childs %}
  1205.             {% if h == cate.hierarchy %}
  1206.             {# cate.name #}
  1207.             {% endif %}
  1208.         {% endfor %}
  1209.             {% if nowparent == \"ポケモン\" or Category == \"ポケモン\" %}
  1210.                 {% set cnt = 7 %}
  1211.             
  1212.                 {{ render(path('block_side_serch_buy')) }}
  1213.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 219}) #}
  1214.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(219) %}
  1215.         
  1216.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1217.                 {% from _self import tree %}
  1218.             
  1219.                 <div class=\"side-cat1\">
  1220.                     <div class=\"side-cat-smallbox\">
  1221.                         <a href=\"{{url('homepage')}}products/list?category_id=7\">ポケモン</a>
  1222.                         <ul>
  1223.                         {% for Category in Categories %}
  1224.                             <li>{{ tree(Category) }}</li>
  1225.                         {% endfor %}
  1226.                         </ul>
  1227.                     </div>
  1228.                 </div>
  1229.  
  1230.             {% elseif nowparent == \"ヴァイスシュヴァルツ\" or Category == \"ヴァイスシュヴァルツ\" %}
  1231.                 {% set cnt = 7 %}
  1232.             
  1233.                 {{ render(path('block_side_serch_buy')) }}
  1234.             
  1235.             
  1236.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 221}) #}
  1237.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(221) %}
  1238.             
  1239.             
  1240.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1241.                 {% from _self import tree %}
  1242.             
  1243.             
  1244.             
  1245.                 <div class=\"side-cat1\">
  1246.                     <div class=\"side-cat-smallbox\">
  1247.                         <a href=\"{{url('homepage')}}products/list?category_id=9\">シュヴァルツサイド</a>
  1248.                         <ul>
  1249.                         {% for Category in Categories %}
  1250.                             <li>{{ tree(Category) }}</li>
  1251.                         {% endfor %}
  1252.                         </ul>
  1253.                     </div>
  1254.                 </div>
  1255.             
  1256.             
  1257.                 {# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 220}) #}
  1258.                 {% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(220) %}
  1259.                 {# @see https://github.com/bolt/bolt/pull/2388 #}
  1260.                 {% from _self import tree %}
  1261.             
  1262.                 <div class=\"side-cat1\">
  1263.                     <div class=\"side-cat-smallbox\">
  1264.                         <a href=\"{{url('homepage')}}products/list?category_id=10\">ヴァイスサイド</a>
  1265.                         <ul>
  1266.                         {% for Category in Categories %}
  1267.                             <li>{{ tree(Category) }}</li>
  1268.                         {% endfor %}
  1269.                         </ul>
  1270.                     </div>
  1271.                 </div>
  1272.             
  1273.                 {% macro tree(Category) %}
  1274.                     {% from _self import tree %}
  1275.             
  1276.                         <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  1277.                             {{ Category.name }}
  1278.                         </a>
  1279.                         {% if Category.children|length > 0 %}
  1280.                             <ul>
  1281.                                 {% for ChildCategory in Category.children %}
  1282.                                     <li>
  1283.                                         {{ tree(ChildCategory) }}
  1284.                                     </li>
  1285.                                 {% endfor %}
  1286.                             </ul>
  1287.                         {% endif %}
  1288.             
  1289.                 {% endmacro %}
  1290.             {% else %}
  1291.                   <div class=\"mob-topnav\">
  1292.                     <div class=\"title-box\">
  1293.                         <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  1294.                         <div class=\"sbbtn-box\">
  1295.                             <div class=\"salebtn\">
  1296.                                 <div>
  1297.                                     <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  1298.                                 </div>
  1299.                             </div>
  1300.                             <div class=\"buybtn\">
  1301.                                 <div>
  1302.                                     <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  1303.                                 </div>
  1304.                             </div>
  1305.                         </div>
  1306.                     </div>
  1307.                     <div class=\"title-box\">
  1308.                         <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  1309.                         <div class=\"sbbtn-box\">
  1310.                             <div class=\"salebtn\">
  1311.                                 <div>
  1312.                                     <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  1313.                                 </div>
  1314.                             </div>
  1315.                             <div class=\"buybtn\">
  1316.                                 <div>
  1317.                                     <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  1318.                                 </div>
  1319.                             </div>
  1320.                         </div>
  1321.                     </div>
  1322.                     
  1323.                 </div>
  1324.                 <div class=\"mob-topnsearch\">
  1325.                 {{ render(path('block_side_serch_buy')) }}
  1326.                 </div>
  1327.             {% endif %}
  1328.     {% else %}
  1329. \t<div class=\"mob-topnav\">
  1330. \t<div class=\"title-box\">
  1331.     <a href=\"{{url('homepage')}}products/list?category_id=708\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/box.png') }}\" alt=\"新品&中古box\"></a>
  1332.         <div class=\"sbbtn-box\">
  1333.             <div class=\"nbbtn\">
  1334.                 <div>
  1335.                     <a href=\"{{url('homepage')}}products/list?category_id=708\">新品BOX</a>
  1336.                 </div>
  1337.             </div>
  1338.             <div class=\"ubbtn\">
  1339.                 <div>
  1340.                     <a href=\"{{url('homepage')}}products/list?category_id=708\">予約BOX</a>
  1341.                 </div>
  1342.             </div>
  1343.         </div>
  1344.     </div>
  1345.                  
  1346.                     <div class=\"title-box\">
  1347.                         <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  1348.                         <div class=\"sbbtn-box\">
  1349.                             <div class=\"salebtn\">
  1350.                                 <div>
  1351.                                     <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  1352.                                 </div>
  1353.                             </div>
  1354.                             <div class=\"buybtn\">
  1355.                                 <div>
  1356.                                     <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  1357.                                 </div>
  1358.                             </div>
  1359.                         </div>
  1360.                     </div>
  1361. \t\t\t\t\t
  1362. \t\t\t\t\t</div>
  1363. \t\t\t\t\t
  1364. \t\t\t\t\t<div class=\"mob-topnav mob-topnav_sec\">
  1365. \t\t\t\t\t
  1366.                     <div class=\"title-box\">
  1367.                         <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  1368.                         <div class=\"sbbtn-box\">
  1369.                             <div class=\"salebtn\">
  1370.                                 <div>
  1371.                                     <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  1372.                                 </div>
  1373.                             </div>
  1374.                             <div class=\"buybtn\">
  1375.                                 <div>
  1376.                                     <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  1377.                                 </div>
  1378.                             </div>
  1379.                         </div>
  1380.                     </div>
  1381.                     
  1382.                 </div>
  1383.                 <div class=\"mob-topnsearch\">
  1384.                 {{ render(path('block_side_serch_buy')) }}
  1385.                 </div>
  1386.     {% endif %}
  1387. {% else %}
  1388.                <div class=\"mob-topnav\">
  1389.                     <div class=\"title-box\">
  1390.                         <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  1391.                         <div class=\"sbbtn-box\">
  1392.                             <div class=\"salebtn\">
  1393.                                 <div>
  1394.                                     <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  1395.                                 </div>
  1396.                             </div>
  1397.                             <div class=\"buybtn\">
  1398.                                 <div>
  1399.                                     <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  1400.                                 </div>
  1401.                             </div>
  1402.                         </div>
  1403.                     </div>
  1404.                     <div class=\"title-box\">
  1405.                         <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  1406.                         <div class=\"sbbtn-box\">
  1407.                             <div class=\"salebtn\">
  1408.                                 <div>
  1409.                                     <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  1410.                                 </div>
  1411.                             </div>
  1412.                             <div class=\"buybtn\">
  1413.                                 <div>
  1414.                                     <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  1415.                                 </div>
  1416.                             </div>
  1417.                         </div>
  1418.                     </div>
  1419.                     
  1420.                 </div>
  1421.                 <div class=\"mob-topnsearch\">
  1422.                     {{ render(path('block_side_serch')) }}
  1423.                 </div>
  1424. {% endif %}
  1425.                 {% macro tree(Category) %}
  1426.                     {% from _self import tree %}
  1427.             
  1428.                         <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  1429.                             {{ Category.name }}
  1430.                         </a>
  1431.                         {% if Category.children|length > 0 %}
  1432.                             <ul>
  1433.                                 {% for ChildCategory in Category.children %}
  1434.                                     <li>
  1435.                                         {{ tree(ChildCategory) }}
  1436.                                     </li>
  1437.                                 {% endfor %}
  1438.                             </ul>
  1439.                         {% endif %}
  1440.             
  1441.                 {% endmacro %}""Block/mob_cat_nav.twig""/home/northserver/tcg-mana.com/public_html/app/template/default/Block/mob_cat_nav.twig");
  1442.     }
  1443. }