var/cache/dev/twig/b7/b7c679e5131357734e69ae5c1427f0d6.php line 58

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/drawer_search.twig */
  14. class __TwigTemplate_ad5b52435873737589f4f6749acd6292 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.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros = $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/drawer_search.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/drawer_search.twig"));
  35.         // line 1
  36.         echo "<div class=\"search_drawer_box\">
  37.     <i id=\"js-header-search-close\" class=\"fas fa-times search_box_close\"></i>
  38.     <div class=\"search_box_head_white\"></div>
  39.     <div class=\"search_box_head_blue\"></div>
  40.     <div class=\"search_box_ears\"><img src=\"";
  41.         // line 5
  42.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/search_ears.svg", "user_data"), "html", null, true);
  43.         echo "\" alt=\"宇宙グッズを探す\" /></div>
  44.     <div class=\"search_box_top\"></div>
  45.     <div class=\"search_drawer_box_inner\">
  46.         <p class=\"search_box_title\">キーワードで探す</p>
  47.         ";
  48.         // line 9
  49.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  50.         echo "
  51.         <p class=\"search_box_title\">カテゴリで探す</p>
  52.         <div>
  53.             ";
  54.         // line 12
  55.         $context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, true, 12);
  56.         // line 13
  57.         echo "            ";
  58.         // line 60
  59.         echo "            ";
  60.         // line 61
  61.         echo "            ";
  62.         $macros["__internal_parse_8"] = $this->macros["__internal_parse_8"] = $this;
  63.         // line 62
  64.         echo "            <div class=\"ec-headerCategoryArea\">
  65.                 <div class=\"ec-itemNav\">
  66.                     <ul class=\"ec-itemNav__nav\">
  67.                         ";
  68.         // line 65
  69.         $context['_parent'] = $context;
  70.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 65, $this->source); })()));
  71.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  72.             // line 66
  73.             echo "                            ";
  74.             if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "ProductCategories", [], "any", false, false, true, 66)) > 0)) {
  75.                 // line 67
  76.                 echo "                                <li>";
  77.                 echo twig_call_macro($macros["__internal_parse_8"], "macro_tree", [$context["Category"]], 67, $context, $this->getSourceContext());
  78.                 echo "</li>
  79.                             ";
  80.             }
  81.             // line 69
  82.             echo "                        ";
  83.         }
  84.         $_parent = $context['_parent'];
  85.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  86.         $context = array_intersect_key($context, $_parent) + $_parent;
  87.         // line 70
  88.         echo "                    </ul>
  89.                 </div>
  90.             </div>
  91.         </div>
  92.         <div class=\"search_box_bottom\"><a href=\"";
  93.         // line 74
  94.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  95.         echo "\">すべての宇宙グッズ</a></div>
  96.     </div>
  97. </div>";
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.     }
  103.     // line 13
  104.     public function macro_tree($__Category__ = null, ...$__varargs__)
  105.     {
  106.         $macros = $this->macros;
  107.         $context = $this->env->mergeGlobals([
  108.             "Category" => $__Category__,
  109.             "varargs" => $__varargs__,
  110.         ]);
  111.         $blocks = [];
  112.         ob_start();
  113.         try {
  114.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
  116.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
  118.             // line 14
  119.             echo "            ";
  120.             $macros["__internal_parse_7"] = $this;
  121.             // line 15
  122.             echo "            ";
  123.             // line 16
  124.             echo "            ";
  125.             if (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 16, $this->source); })()), "ProductCategories", [], "any", false, false, true, 16)) > 0) && (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.', 16, $this->source); })()), "id", [], "any", false, false, true, 16) > 178))) {
  126.                 // line 17
  127.                 echo "                ";
  128.                 if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 17, $this->source); })()), "children", [], "any", false, false, true, 17)) > 0)) {
  129.                     // line 18
  130.                     echo "                    ";
  131.                     if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 18, $this->source); })()), "parents", [], "any", false, false, true, 18)) > 0)) {
  132.                         // line 19
  133.                         echo "                        <p class=\"second_title category_id_";
  134.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 19, $this->source); })()), "id", [], "any", false, false, true, 19), 19, $this->source), "html", null, true);
  135.                         echo "\"><span class=\"category_icon\"></span>";
  136.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 19, $this->source); })()), "name", [], "any", false, false, true, 19), 19, $this->source), "html", null, true);
  137.                         echo "<span class=\"category_length\">";
  138.                         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 19, $this->source); })()), "ProductCategories", [], "any", false, false, true, 19), 19, $this->source)), "html", null, true);
  139.                         echo "</span></p>
  140.                         <div class=\"category_bottom second_bottom\"></div>
  141.                         <ul class=\"second_children category_id_";
  142.                         // line 21
  143.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 21, $this->source); })()), "id", [], "any", false, false, true, 21), 21, $this->source), "html", null, true);
  144.                         echo "\">
  145.                             <li>
  146.                                 <a href=\"";
  147.                         // line 23
  148.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  149.                         echo "?category_id=";
  150.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 23, $this->source); })()), "id", [], "any", false, false, true, 23), 23, $this->source), "html", null, true);
  151.                         echo "\" class=\"category_id_";
  152.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 23, $this->source); })()), "id", [], "any", false, false, true, 23), 23, $this->source), "html", null, true);
  153.                         echo "\">
  154.                                     <span class=\"category_icon category_all\"></span>
  155.                                     すべての";
  156.                         // line 25
  157.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 25, $this->source); })()), "name", [], "any", false, false, true, 25), 25, $this->source), "html", null, true);
  158.                         echo "<span class=\"category_length\">";
  159.                         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 25, $this->source); })()), "ProductCategories", [], "any", false, false, true, 25), 25, $this->source)), "html", null, true);
  160.                         echo "</span>
  161.                                 </a>
  162.                                 <div class=\"category_bottom third_bottom\"></div>
  163.                             </li>
  164.                     ";
  165.                     } else {
  166.                         // line 30
  167.                         echo "                        <p class=\"first_title category_id_";
  168.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 30, $this->source); })()), "id", [], "any", false, false, true, 30), 30, $this->source), "html", null, true);
  169.                         echo "\"><span></span>";
  170.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 30, $this->source); })()), "name", [], "any", false, false, true, 30), 30, $this->source), "html", null, true);
  171.                         echo "</p>
  172.                         <div class=\"category_bottom\"></div>
  173.                         <ul class=\"first_children category_id_";
  174.                         // line 32
  175.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 32, $this->source); })()), "id", [], "any", false, false, true, 32), 32, $this->source), "html", null, true);
  176.                         echo "\">
  177.                             <li>
  178.                                 <a href=\"";
  179.                         // line 34
  180.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  181.                         echo "?category_id=";
  182.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 34, $this->source); })()), "id", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
  183.                         echo "\" class=\"category_id_";
  184.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 34, $this->source); })()), "id", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
  185.                         echo "\">
  186.                                     <span class=\"category_icon category_all\"></span>
  187.                                     すべての";
  188.                         // line 36
  189.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 36, $this->source); })()), "name", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
  190.                         echo "<span class=\"category_length\">";
  191.                         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 36, $this->source); })()), "ProductCategories", [], "any", false, false, true, 36), 36, $this->source)), "html", null, true);
  192.                         echo "</span>
  193.                                 </a>
  194.                                 <div class=\"category_bottom second_bottom\"></div>
  195.                             </li>
  196.                     ";
  197.                     }
  198.                     // line 41
  199.                     echo "                            ";
  200.                     $context['_parent'] = $context;
  201.                     $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.', 41, $this->source); })()), "children", [], "any", false, false, true, 41));
  202.                     foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
  203.                         // line 42
  204.                         echo "                            <li>
  205.                                 ";
  206.                         // line 43
  207.                         echo twig_call_macro($macros["__internal_parse_7"], "macro_tree", [$context["ChildCategory"]], 43, $context, $this->getSourceContext());
  208.                         echo "
  209.                             </li>
  210.                             ";
  211.                     }
  212.                     $_parent = $context['_parent'];
  213.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  214.                     $context = array_intersect_key($context, $_parent) + $_parent;
  215.                     // line 46
  216.                     echo "                        </ul>
  217.                 ";
  218.                 } else {
  219.                     // line 48
  220.                     echo "                    <a href=\"";
  221.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  222.                     echo "?category_id=";
  223.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 48, $this->source); })()), "id", [], "any", false, false, true, 48), 48, $this->source), "html", null, true);
  224.                     echo "\" class=\"category_id_";
  225.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 48, $this->source); })()), "id", [], "any", false, false, true, 48), 48, $this->source), "html", null, true);
  226.                     echo "\">
  227.                         <span class=\"category_icon\"></span>
  228.                         ";
  229.                     // line 50
  230.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 50, $this->source); })()), "name", [], "any", false, false, true, 50), 50, $this->source), "html", null, true);
  231.                     echo "<span class=\"category_length\">";
  232.                     echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 50, $this->source); })()), "ProductCategories", [], "any", false, false, true, 50), 50, $this->source)), "html", null, true);
  233.                     echo "</span>
  234.                     </a>
  235.                     ";
  236.                     // line 52
  237.                     if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 52, $this->source); })()), "parents", [], "any", false, false, true, 52)) > 1)) {
  238.                         // line 53
  239.                         echo "                        <div class=\"category_bottom third_bottom\"></div>
  240.                     ";
  241.                     } else {
  242.                         // line 55
  243.                         echo "                        <div class=\"category_bottom second_bottom\"></div>
  244.                     ";
  245.                     }
  246.                     // line 57
  247.                     echo "                ";
  248.                 }
  249.                 // line 58
  250.                 echo "            ";
  251.             }
  252.             // line 59
  253.             echo "            ";
  254.             
  255.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  256.             
  257.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  258.             return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
  259.         } finally {
  260.             ob_end_clean();
  261.         }
  262.     }
  263.     public function getTemplateName()
  264.     {
  265.         return "Block/drawer_search.twig";
  266.     }
  267.     public function isTraitable()
  268.     {
  269.         return false;
  270.     }
  271.     public function getDebugInfo()
  272.     {
  273.         return array (  269 => 59,  266 => 58,  263 => 57,  259 => 55,  255 => 53,  253 => 52,  246 => 50,  236 => 48,  232 => 46,  223 => 43,  220 => 42,  215 => 41,  205 => 36,  196 => 34,  191 => 32,  183 => 30,  173 => 25,  164 => 23,  159 => 21,  149 => 19,  146 => 18,  143 => 17,  140 => 16,  138 => 15,  135 => 14,  116 => 13,  103 => 74,  97 => 70,  91 => 69,  85 => 67,  82 => 66,  78 => 65,  73 => 62,  70 => 61,  68 => 60,  66 => 13,  64 => 12,  58 => 9,  51 => 5,  45 => 1,);
  274.     }
  275.     public function getSourceContext()
  276.     {
  277.         return new Source("<div class=\"search_drawer_box\">
  278.     <i id=\"js-header-search-close\" class=\"fas fa-times search_box_close\"></i>
  279.     <div class=\"search_box_head_white\"></div>
  280.     <div class=\"search_box_head_blue\"></div>
  281.     <div class=\"search_box_ears\"><img src=\"{{ asset('assets/img/common/search_ears.svg', 'user_data') }}\" alt=\"宇宙グッズを探す\" /></div>
  282.     <div class=\"search_box_top\"></div>
  283.     <div class=\"search_drawer_box_inner\">
  284.         <p class=\"search_box_title\">キーワードで探す</p>
  285.         {{ render(path('block_search_product')) }}
  286.         <p class=\"search_box_title\">カテゴリで探す</p>
  287.         <div>
  288.             {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  289.             {% macro tree(Category) %}
  290.             {% from _self import tree %}
  291.             {# {% if Category.ProductCategories|length > 0 %} #}
  292.             {% if Category.ProductCategories|length > 0 and Category.id > 178  %}
  293.                 {% if Category.children|length > 0 %}
  294.                     {% if Category.parents|length > 0 %}
  295.                         <p class=\"second_title category_id_{{ Category.id }}\"><span class=\"category_icon\"></span>{{ Category.name }}<span class=\"category_length\">{{ Category.ProductCategories|length}}</span></p>
  296.                         <div class=\"category_bottom second_bottom\"></div>
  297.                         <ul class=\"second_children category_id_{{ Category.id }}\">
  298.                             <li>
  299.                                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\" class=\"category_id_{{ Category.id }}\">
  300.                                     <span class=\"category_icon category_all\"></span>
  301.                                     すべての{{ Category.name }}<span class=\"category_length\">{{ Category.ProductCategories|length}}</span>
  302.                                 </a>
  303.                                 <div class=\"category_bottom third_bottom\"></div>
  304.                             </li>
  305.                     {% else %}
  306.                         <p class=\"first_title category_id_{{ Category.id }}\"><span></span>{{ Category.name }}</p>
  307.                         <div class=\"category_bottom\"></div>
  308.                         <ul class=\"first_children category_id_{{ Category.id }}\">
  309.                             <li>
  310.                                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\" class=\"category_id_{{ Category.id }}\">
  311.                                     <span class=\"category_icon category_all\"></span>
  312.                                     すべての{{ Category.name }}<span class=\"category_length\">{{ Category.ProductCategories|length}}</span>
  313.                                 </a>
  314.                                 <div class=\"category_bottom second_bottom\"></div>
  315.                             </li>
  316.                     {% endif %}
  317.                             {% for ChildCategory in Category.children %}
  318.                             <li>
  319.                                 {{ tree(ChildCategory) }}
  320.                             </li>
  321.                             {% endfor %}
  322.                         </ul>
  323.                 {% else %}
  324.                     <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\" class=\"category_id_{{ Category.id }}\">
  325.                         <span class=\"category_icon\"></span>
  326.                         {{ Category.name }}<span class=\"category_length\">{{ Category.ProductCategories|length}}</span>
  327.                     </a>
  328.                     {% if Category.parents|length > 1 %}
  329.                         <div class=\"category_bottom third_bottom\"></div>
  330.                     {% else %}
  331.                         <div class=\"category_bottom second_bottom\"></div>
  332.                     {% endif %}
  333.                 {% endif %}
  334.             {% endif %}
  335.             {% endmacro %}
  336.             {# @see https://github.com/bolt/bolt/pull/2388 #}
  337.             {% from _self import tree %}
  338.             <div class=\"ec-headerCategoryArea\">
  339.                 <div class=\"ec-itemNav\">
  340.                     <ul class=\"ec-itemNav__nav\">
  341.                         {% for Category in Categories %}
  342.                             {% if Category.ProductCategories|length > 0 %}
  343.                                 <li>{{ tree(Category) }}</li>
  344.                             {% endif %}
  345.                         {% endfor %}
  346.                     </ul>
  347.                 </div>
  348.             </div>
  349.         </div>
  350.         <div class=\"search_box_bottom\"><a href=\"{{ url('product_list') }}\">すべての宇宙グッズ</a></div>
  351.     </div>
  352. </div>", "Block/drawer_search.twig", "/home/unibo-test/www/html/app/template/default/Block/drawer_search.twig");
  353.     }
  354.     
  355.     public function checkSecurity()
  356.     {
  357.         static $tags = array("set" => 12, "from" => 61, "for" => 65, "if" => 66, "macro" => 13);
  358.         static $filters = array("escape" => 5, "length" => 66);
  359.         static $functions = array("asset" => 5, "render" => 9, "path" => 9, "repository" => 12, "url" => 74);
  360.         try {
  361.             $this->sandbox->checkSecurity(
  362.                 ['set', 'from', 'for', 'if', 'macro'],
  363.                 ['escape', 'length'],
  364.                 ['asset', 'render', 'path', 'repository', 'url'],
  365.                 $this->source
  366.             );
  367.         } catch (SecurityError $e) {
  368.             $e->setSourceContext($this->source);
  369.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  370.                 $e->setTemplateLine($tags[$e->getTagName()]);
  371.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  372.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  373.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  374.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  375.             }
  376.             throw $e;
  377.         }
  378.     }
  379. }