var/cache/dev/twig/0a/0aab423204dae4f269178b4922dfab6088842fc457b1b0c314823cfaac8e8d44.php line 250

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/product_sidemenu.twig */
  14. class __TwigTemplate_0f1ad48a0b12f299d5c0ec4deaa83f393db61ca299126698e24ce6e3eda80cff 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.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/product_sidemenu.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/product_sidemenu.twig"));
  33.         // line 1
  34.         $context["break"] = false;
  35.         // line 2
  36.         $context["cat"] = "";
  37.         // line 3
  38.         echo "
  39. ";
  40.         // line 4
  41.         if ( !(null === (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'4$this->source); })()))) {
  42.             // line 5
  43.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'5$this->source); })()), "ProductCategories", [], "any"falsefalsefalse5))) {
  44.                 // line 6
  45.                 echo "
  46.             ";
  47.                 // line 7
  48.                 $context['_parent'] = $context;
  49.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'7$this->source); })()), "ProductCategories", [], "any"falsefalsefalse7));
  50.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  51.                     if ( !(isset($context["break"]) || array_key_exists("break"$context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.'7$this->source); })())) {
  52.                         // line 8
  53.                         echo "                ";
  54.                         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse8), "name", [], "any"falsefalsefalse8) == "ヴァイスシュヴァルツ")) {
  55.                             // line 9
  56.                             echo "                    ";
  57.                             $context["cat"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse9), "name", [], "any"falsefalsefalse9);
  58.                             // line 10
  59.                             echo "                    ";
  60.                             $context["break"] = true;
  61.                             // line 11
  62.                             echo "                ";
  63.                         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse11), "name", [], "any"falsefalsefalse11) == "ポケモン")) {
  64.                             // line 12
  65.                             echo "                    ";
  66.                             $context["cat"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse12), "name", [], "any"falsefalsefalse12);
  67.                             // line 13
  68.                             echo "                    ";
  69.                             $context["break"] = true;
  70.                             // line 14
  71.                             echo "                ";
  72.                         }
  73.                         // line 15
  74.                         echo "            ";
  75.                     }
  76.                 }
  77.                 $_parent $context['_parent'];
  78.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  79.                 $context array_intersect_key($context$_parent) + $_parent;
  80.                 // line 16
  81.                 echo "
  82. ";
  83.             }
  84.         }
  85.         // line 19
  86.         echo "
  87. ";
  88.         // line 20
  89.         if (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'20$this->source); })()) == "ヴァイスシュヴァルツ")) {
  90.             // line 21
  91.             echo "    <div class=\"title-box\">
  92.         <a href=\"";
  93.             // line 22
  94.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  95.             echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
  96.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html"nulltrue);
  97.             echo "\" alt=\"\"></a>
  98.         <div class=\"sbbtn-box\">
  99.             <div class=\"graybtn\">
  100.                 <div>
  101.                     <a href=\"";
  102.             // line 26
  103.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  104.             echo "products/list?category_id=8\">買う</a>
  105.                 </div>
  106.             </div>
  107.             <div class=\"buybtn\">
  108.                 <div>
  109.                     <a href=\"";
  110.             // line 32
  111.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  112.             echo "products/list?category_id=218\">売る</a>
  113.                 </div>
  114.             </div>
  115.         </div>
  116.     </div>
  117.     ";
  118.             // line 38
  119.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  120.             echo "
  121.     ";
  122.             // line 41
  123.             $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findBy", [=> ["Parent" => 9]], "method"falsefalsefalse41);
  124.             // line 42
  125.             echo "
  126.     ";
  127.             // line 46
  128.             echo "    ";
  129.             $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this;
  130.             // line 47
  131.             echo "
  132.     <div class=\"side-cat1\">
  133.         <div class=\"side-cat-smallbox\">
  134.             <a href=\"";
  135.             // line 52
  136.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  137.             echo "products/list?category_id=221\">シュヴァルツサイド</a>
  138.             <ul>
  139.             ";
  140.             // line 54
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'54$this->source); })()));
  143.             foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  144.                 // line 55
  145.                 echo "                <li>";
  146.                 echo twig_call_macro($macros["__internal_parse_0"], "macro_tree", [$context["Category"]], 55$context$this->getSourceContext());
  147.                 echo "</li>
  148.             ";
  149.             }
  150.             $_parent $context['_parent'];
  151.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  152.             $context array_intersect_key($context$_parent) + $_parent;
  153.             // line 57
  154.             echo "            </ul>
  155.         </div>
  156.     </div>
  157.     ";
  158.             // line 62
  159.             $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findBy", [=> ["Parent" => 10]], "method"falsefalsefalse62);
  160.             // line 63
  161.             echo "
  162.     ";
  163.             // line 65
  164.             echo "    ";
  165.             $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  166.             // line 66
  167.             echo "
  168.     <div class=\"side-cat1\">
  169.         <div class=\"side-cat-smallbox\">
  170.             <a href=\"";
  171.             // line 71
  172.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  173.             echo "products/list?category_id=220\">ヴァイスサイド</a>
  174.             <ul>
  175.             ";
  176.             // line 73
  177.             $context['_parent'] = $context;
  178.             $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'73$this->source); })()));
  179.             foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  180.                 // line 74
  181.                 echo "                <li>";
  182.                 echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 74$context$this->getSourceContext());
  183.                 echo "</li>
  184.             ";
  185.             }
  186.             $_parent $context['_parent'];
  187.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  188.             $context array_intersect_key($context$_parent) + $_parent;
  189.             // line 76
  190.             echo "            </ul>
  191.         </div>
  192.     </div>
  193. ";
  194.         } elseif ((        // line 80
  195. (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'80$this->source); })()) == "ポケモン")) {
  196.             // line 81
  197.             echo "    <div class=\"title-box\">
  198.         <a href=\"";
  199.             // line 82
  200.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  201.             echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
  202.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html"nulltrue);
  203.             echo "\" alt=\"\"></a>
  204.         <div class=\"sbbtn-box\">
  205.             <div class=\"salebtn\">
  206.                 <div>
  207.                     <a href=\"";
  208.             // line 86
  209.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  210.             echo "products/list?category_id=7\">買う</a>
  211.                 </div>
  212.             </div>
  213.             <div class=\"graybtn\">
  214.                 <div>
  215.                     <a href=\"";
  216.             // line 92
  217.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  218.             echo "products/list?category_id=219\">売る</a>
  219.                 </div>
  220.             </div>
  221.         </div>
  222.     </div>
  223.     ";
  224.             // line 99
  225.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
  226.             echo "
  227.     ";
  228.             // line 100
  229.             $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findBy", [=> ["Parent" => 7]], "method"falsefalsefalse100);
  230.             // line 101
  231.             echo "
  232.     ";
  233.             // line 104
  234.             echo "    ";
  235.             $macros["__internal_parse_2"] = $this->macros["__internal_parse_2"] = $this;
  236.             // line 105
  237.             echo "
  238.     <div class=\"side-cat1\">
  239.         <div class=\"side-cat-smallbox\">
  240.             <a href=\"";
  241.             // line 108
  242.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  243.             echo "products/list?category_id=219\">ポケモン</a>
  244.             <ul>
  245.             ";
  246.             // line 110
  247.             $context['_parent'] = $context;
  248.             $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'110$this->source); })()));
  249.             foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  250.                 // line 111
  251.                 echo "                <li>";
  252.                 echo twig_call_macro($macros["__internal_parse_2"], "macro_tree", [$context["Category"]], 111$context$this->getSourceContext());
  253.                 echo "</li>
  254.             ";
  255.             }
  256.             $_parent $context['_parent'];
  257.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  258.             $context array_intersect_key($context$_parent) + $_parent;
  259.             // line 113
  260.             echo "            </ul>
  261.         </div>
  262.     </div>
  263.                     
  264. ";
  265.         }
  266.         // line 120
  267.         echo "
  268. ";
  269.         
  270.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  271.         
  272.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  273.     }
  274.     // line 121
  275.     public function macro_tree($__Category__ null, ...$__varargs__)
  276.     {
  277.         $macros $this->macros;
  278.         $context $this->env->mergeGlobals([
  279.             "Category" => $__Category__,
  280.             "varargs" => $__varargs__,
  281.         ]);
  282.         $blocks = [];
  283.         ob_start();
  284.         try {
  285.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  286.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  287.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  288.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  289.             // line 122
  290.             echo "    ";
  291.             $macros["__internal_parse_3"] = $this;
  292.             // line 123
  293.             echo "
  294.         <a href=\"";
  295.             // line 124
  296.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  297.             echo "?category_id=";
  298.             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.'124$this->source); })()), "id", [], "any"falsefalsefalse124), "html"nulltrue);
  299.             echo "\">
  300.             ";
  301.             // line 125
  302.             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.'125$this->source); })()), "name", [], "any"falsefalsefalse125), "html"nulltrue);
  303.             echo "
  304.         </a>
  305.         ";
  306.             // line 127
  307.             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.'127$this->source); })()), "children", [], "any"falsefalsefalse127)) > 0)) {
  308.                 // line 128
  309.                 echo "            <ul>
  310.                 ";
  311.                 // line 129
  312.                 $context['_parent'] = $context;
  313.                 $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.'129$this->source); })()), "children", [], "any"falsefalsefalse129));
  314.                 foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  315.                     // line 130
  316.                     echo "                    <li>
  317.                         ";
  318.                     // line 131
  319.                     echo twig_call_macro($macros["__internal_parse_3"], "macro_tree", [$context["ChildCategory"]], 131$context$this->getSourceContext());
  320.                     echo "
  321.                     </li>
  322.                 ";
  323.                 }
  324.                 $_parent $context['_parent'];
  325.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  326.                 $context array_intersect_key($context$_parent) + $_parent;
  327.                 // line 134
  328.                 echo "            </ul>
  329.         ";
  330.             }
  331.             // line 136
  332.             echo "
  333. ";
  334.             
  335.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  336.             
  337.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  338.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  339.         } finally {
  340.             ob_end_clean();
  341.         }
  342.     }
  343.     public function getTemplateName()
  344.     {
  345.         return "Block/product_sidemenu.twig";
  346.     }
  347.     public function isTraitable()
  348.     {
  349.         return false;
  350.     }
  351.     public function getDebugInfo()
  352.     {
  353.         return array (  367 => 136,  363 => 134,  354 => 131,  351 => 130,  347 => 129,  344 => 128,  342 => 127,  337 => 125,  331 => 124,  328 => 123,  325 => 122,  306 => 121,  295 => 120,  286 => 113,  277 => 111,  273 => 110,  268 => 108,  263 => 105,  260 => 104,  256 => 101,  254 => 100,  250 => 99,  240 => 92,  231 => 86,  222 => 82,  219 => 81,  217 => 80,  211 => 76,  202 => 74,  198 => 73,  193 => 71,  186 => 66,  183 => 65,  180 => 63,  178 => 62,  171 => 57,  162 => 55,  158 => 54,  153 => 52,  146 => 47,  143 => 46,  138 => 42,  136 => 41,  130 => 38,  121 => 32,  112 => 26,  103 => 22,  100 => 21,  98 => 20,  95 => 19,  90 => 16,  83 => 15,  80 => 14,  77 => 13,  74 => 12,  71 => 11,  68 => 10,  65 => 9,  62 => 8,  57 => 7,  54 => 6,  52 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  354.     }
  355.     public function getSourceContext()
  356.     {
  357.         return new Source("{% set break = false %}
  358. {% set cat = \"\" %}
  359. {% if Product is not null %}
  360. {% if Product.ProductCategories is not empty %}
  361.             {% for ProductCategory in Product.ProductCategories if not break %}
  362.                 {% if ProductCategory.Category.name == \"ヴァイスシュヴァルツ\" %}
  363.                     {% set cat = ProductCategory.Category.name %}
  364.                     {% set break = true %}
  365.                 {% elseif ProductCategory.Category.name == \"ポケモン\" %}
  366.                     {% set cat = ProductCategory.Category.name %}
  367.                     {% set break = true %}
  368.                 {% endif %}
  369.             {% endfor %}
  370. {% endif %}
  371. {% endif %}
  372. {% if cat == \"ヴァイスシュヴァルツ\" %}
  373.     <div class=\"title-box\">
  374.         <a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
  375.         <div class=\"sbbtn-box\">
  376.             <div class=\"graybtn\">
  377.                 <div>
  378.                     <a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
  379.                 </div>
  380.             </div>
  381.             <div class=\"buybtn\">
  382.                 <div>
  383.                     <a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
  384.                 </div>
  385.             </div>
  386.         </div>
  387.     </div>
  388.     {{ render(path('block_side_serch_buy')) }}
  389.     {% set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 9}) %}
  390.     {# @see https://github.com/bolt/bolt/pull/2388 #}
  391.     {% from _self import tree %}
  392.     <div class=\"side-cat1\">
  393.         <div class=\"side-cat-smallbox\">
  394.             <a href=\"{{url('homepage')}}products/list?category_id=221\">シュヴァルツサイド</a>
  395.             <ul>
  396.             {% for Category in Categories %}
  397.                 <li>{{ tree(Category) }}</li>
  398.             {% endfor %}
  399.             </ul>
  400.         </div>
  401.     </div>
  402.     {% set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 10}) %}
  403.     {# @see https://github.com/bolt/bolt/pull/2388 #}
  404.     {% from _self import tree %}
  405.     <div class=\"side-cat1\">
  406.         <div class=\"side-cat-smallbox\">
  407.             <a href=\"{{url('homepage')}}products/list?category_id=220\">ヴァイスサイド</a>
  408.             <ul>
  409.             {% for Category in Categories %}
  410.                 <li>{{ tree(Category) }}</li>
  411.             {% endfor %}
  412.             </ul>
  413.         </div>
  414.     </div>
  415. {% elseif cat == \"ポケモン\" %}
  416.     <div class=\"title-box\">
  417.         <a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
  418.         <div class=\"sbbtn-box\">
  419.             <div class=\"salebtn\">
  420.                 <div>
  421.                     <a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
  422.                 </div>
  423.             </div>
  424.             <div class=\"graybtn\">
  425.                 <div>
  426.                     <a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
  427.                 </div>
  428.             </div>
  429.         </div>
  430.     </div>
  431.     {{ render(path('block_side_serch_buy')) }}
  432.     {% set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 7}) %}
  433.     {# @see https://github.com/bolt/bolt/pull/2388 #}
  434.     {% from _self import tree %}
  435.     <div class=\"side-cat1\">
  436.         <div class=\"side-cat-smallbox\">
  437.             <a href=\"{{url('homepage')}}products/list?category_id=219\">ポケモン</a>
  438.             <ul>
  439.             {% for Category in Categories %}
  440.                 <li>{{ tree(Category) }}</li>
  441.             {% endfor %}
  442.             </ul>
  443.         </div>
  444.     </div>
  445.                     
  446. {% endif %}
  447. {% macro tree(Category) %}
  448.     {% from _self import tree %}
  449.         <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  450.             {{ Category.name }}
  451.         </a>
  452.         {% if Category.children|length > 0 %}
  453.             <ul>
  454.                 {% for ChildCategory in Category.children %}
  455.                     <li>
  456.                         {{ tree(ChildCategory) }}
  457.                     </li>
  458.                 {% endfor %}
  459.             </ul>
  460.         {% endif %}
  461. {% endmacro %}""Block/product_sidemenu.twig""/home/northserver/tcg-mana.com/public_html/app/template/default/Block/product_sidemenu.twig");
  462.     }
  463. }