var/cache/dev/twig/b3/b317527b864933c23e36300e82bdc213023f7f90cdd8bb482f853772599ed995.php line 39

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. /* brand.twig */
  14. class __TwigTemplate_a2f6efa23cbf640c07db2f55adfe7f1fa472283d2d2f3f3243921ec5ec726a43 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->blocks = [
  23.             'main' => [$this'block_main'],
  24.             'javascript' => [$this'block_javascript'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "fullwidth_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""brand.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""brand.twig"));
  39.         $this->parent $this->loadTemplate("fullwidth_frame.twig""brand.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_main($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         // line 4
  55.         echo "
  56.     ";
  57.         // line 6
  58.         echo "    ";
  59.         $context["parentId"] = 34;
  60.         // line 7
  61.         echo "    ";
  62.         $context["ParentCategory"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["parentId"]) || array_key_exists("parentId"$context) ? $context["parentId"] : (function () { throw new RuntimeError('Variable "parentId" does not exist.'7$this->source); })())], "method"falsefalsefalse7);
  63.         // line 8
  64.         echo "    ";
  65.         $context["childCategories"] = twig_sort_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ParentCategory"]) || array_key_exists("ParentCategory"$context) ? $context["ParentCategory"] : (function () { throw new RuntimeError('Variable "ParentCategory" does not exist.'8$this->source); })()), "children", [], "any"falsefalsefalse8), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'8$this->source); })()), "sortNo", [], "any"falsefalsefalse8) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'8$this->source); })()), "sortNo", [], "any"falsefalsefalse8)); });
  66.         // line 9
  67.         echo "
  68.     <div class=\"home_title__inner\">
  69.         <h2 class=\"home_en_title \"><span class=\"en\">Brand</span><small>ブランドから探す</small></h2>
  70.     </div><!--/.home_title__inner-->
  71.     <div class=\"brand_sort_area\">
  72.         <ul class=\"sort-btn\">
  73.             <li class=\"sort_search_btn\">
  74.                 <input class=\"search-field form-control\" type=\"text\" name=\"search\" placeholder=\"ブランド名検索\">
  75.                 <img class=\"seach_icon\" src=\"";
  76.         // line 18
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/search-dark.svg"), "html"nulltrue);
  78.         echo "\" alt=\"\">
  79.             </li>
  80.             <li class=\"alphabet_wrap\">
  81.                 <ul class=\"alphabet\">
  82.                     <li class=\"brand_A\"><span>A</span></li>
  83.                     <li class=\"brand_B\"><span>B</span></li>
  84.                     <li class=\"brand_C\"><span>C</span></li>
  85.                     <li class=\"brand_D\"><span>D</span></li>
  86.                     <li class=\"brand_E\"><span>E</span></li>
  87.                     <li class=\"brand_F\"><span>F</span></li>
  88.                     <li class=\"brand_G\"><span>G</span></li>
  89.                     <li class=\"brand_H\"><span>H</span></li>
  90.                     <li class=\"brand_I\"><span>I</span></li>
  91.                     <li class=\"brand_J\"><span>J</span></li>
  92.                     <li class=\"brand_K\"><span>K</span></li>
  93.                     <li class=\"brand_L\"><span>L</span></li>
  94.                     <li class=\"brand_M\"><span>M</span></li>
  95.                     <li class=\"brand_N\"><span>N</span></li>
  96.                     <li class=\"brand_O\"><span>O</span></li>
  97.                     <li class=\"brand_P\"><span>P</span></li>
  98.                     <li class=\"brand_Q\"><span>Q</span></li>
  99.                     <li class=\"brand_R\"><span>R</span></li>
  100.                     <li class=\"brand_S\"><span>S</span></li>
  101.                     <li class=\"brand_T\"><span>T</span></li>
  102.                     <li class=\"brand_U\"><span>U</span></li>
  103.                     <li class=\"brand_V\"><span>V</span></li>
  104.                     <li class=\"brand_W\"><span>W</span></li>
  105.                     <li class=\"brand_X\"><span>X</span></li>
  106.                     <li class=\"brand_Y\"><span>Y</span></li>
  107.                     <li class=\"brand_Z\"><span>Z</span></li>
  108.                 </ul>
  109.             </li>
  110.         </ul>
  111.         <ul class=\"grid\">
  112.             ";
  113.         // line 53
  114.         $context['_parent'] = $context;
  115.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'53$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'53$this->source); })()), "slug", [], "any"falsefalsefalse53) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'53$this->source); })()), "slug", [], "any"falsefalsefalse53)); }));
  116.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  117.             // line 54
  118.             echo "                <li class=\"item brand_";
  119.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "slug", [], "any"falsefalsefalse54), "html"nulltrue);
  120.             echo "\">
  121.                     <a class=\"item_content\" href=\"#target";
  122.             // line 55
  123.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse55), "html"nulltrue);
  124.             echo "\" data-id=\"";
  125.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse55), "html"nulltrue);
  126.             echo "\">
  127.                         <div class=\"thumb\">
  128.                             <img src=\"";
  129.             // line 57
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse57)), "save_image"), "html"nulltrue);
  131.             echo "\">
  132.                         </div><!--/.thumb-->
  133.                         <span class=\"ttl_en\">";
  134.             // line 59
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "englishText", [], "any"falsefalsefalse59), "html"nulltrue);
  136.             echo "</span>
  137.                         <span class=\"ttl\">";
  138.             // line 60
  139.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse60), "html"nulltrue);
  140.             echo "</span>
  141.                         <span class=\"search_keywords\">";
  142.             // line 61
  143.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "searchKeywords", [], "any"falsefalsefalse61), "html"nulltrue);
  144.             echo "</span>
  145.                     </a>
  146.                 </li>
  147.             ";
  148.         }
  149.         $_parent $context['_parent'];
  150.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  151.         $context array_intersect_key($context$_parent) + $_parent;
  152.         // line 65
  153.         echo "        </ul>
  154.     </div><!--/wrapper-->
  155.     <section class=\"brand_display_section\">
  156.     ";
  157.         // line 71
  158.         echo "    ";
  159.         $context["filteredCategories"] = twig_array_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'71$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return twig_in_filter(twig_upper_filter($this->envtwig_slice($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.'71$this->source); })()), "slug", [], "any"falsefalsefalse71), 01)), [=> "A"=> "B"=> "C"=> "D"=> "E"]); });
  160.         // line 72
  161.         echo "    ";
  162.         if ((isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'72$this->source); })())) {
  163.             // line 73
  164.             echo "    <div class=\"home_title__inner\">
  165.         <h2 class=\"home_en_title \"><span class=\"en\">A-E</span></h2>
  166.     </div><!--/.home_title__inner-->
  167.     <div class=\"category_detail_list\">
  168.     ";
  169.             // line 77
  170.             $context['_parent'] = $context;
  171.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'77$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'77$this->source); })()), "slug", [], "any"falsefalsefalse77) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'77$this->source); })()), "slug", [], "any"falsefalsefalse77)); }));
  172.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  173.                 // line 78
  174.                 echo "        <a id=\"target";
  175.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse78), "html"nulltrue);
  176.                 echo "\" class=\"category_detail_block\" href=\"";
  177.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  178.                 echo "products/list?category_id=";
  179.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse78), "html"nulltrue);
  180.                 echo "\">
  181.             <div class=\"category_detail_block__inner\">
  182.                 <div class=\"category_detail_block__img\">
  183.                     <img src=\"";
  184.                 // line 81
  185.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse81)), "save_image"), "html"nulltrue);
  186.                 echo "\">
  187.                 </div>
  188.                 <div class=\"category_detail_block__txt\">
  189.                     <div class=\"logo_ja_block\">
  190.                         <img src=\"";
  191.                 // line 86
  192.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "logo_file_name", [], "any"falsefalsefalse86)), "save_image"), "html"nulltrue);
  193.                 echo "\">
  194.                         <p class=\"cat_ttl\">";
  195.                 // line 87
  196.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse87), "html"nulltrue);
  197.                 echo "</p>
  198.                     </div><!--/.logo_ja_block-->
  199.                     <p>";
  200.                 // line 90
  201.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"truetruefalse90)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"falsefalsefalse90), "説明文がありません")) : ("説明文がありません")), "html"nulltrue);
  202.                 echo "</p>
  203.                     <div class=\"text-right\">
  204.                     <span class=\"base_link_brn\">
  205.                         <span>詳細を見る</span>
  206.                         <span>詳細を見る</span>
  207.                     </span>
  208.                     </div><!--/.text-right-->
  209.                 </div><!--./category_detail_block__txt-->
  210.             </div><!--/.category_detail_block__inner-->
  211.         </a><!--/.category_detail_block-->
  212.     ";
  213.             }
  214.             $_parent $context['_parent'];
  215.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  216.             $context array_intersect_key($context$_parent) + $_parent;
  217.             // line 101
  218.             echo "    </div><!--/.category_detail_list-->
  219.     ";
  220.         }
  221.         // line 103
  222.         echo "
  223.     ";
  224.         // line 105
  225.         echo "    ";
  226.         $context["filteredCategories"] = twig_array_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'105$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return twig_in_filter(twig_upper_filter($this->envtwig_slice($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.'105$this->source); })()), "slug", [], "any"falsefalsefalse105), 01)), [=> "F"=> "G"=> "H"=> "I"=> "J"]); });
  227.         // line 106
  228.         echo "    <div class=\"home_title__inner\">
  229.         <h2 class=\"home_en_title \"><span class=\"en\">F-J</span></h2>
  230.     </div><!--/.home_title__inner-->
  231.     ";
  232.         // line 109
  233.         if ((isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'109$this->source); })())) {
  234.             // line 110
  235.             echo "    <div class=\"category_detail_list\">
  236.         ";
  237.             // line 111
  238.             $context['_parent'] = $context;
  239.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'111$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'111$this->source); })()), "slug", [], "any"falsefalsefalse111) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'111$this->source); })()), "slug", [], "any"falsefalsefalse111)); }));
  240.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  241.                 // line 112
  242.                 echo "            <a id=\"target";
  243.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse112), "html"nulltrue);
  244.                 echo "\" class=\"category_detail_block\" href=\"";
  245.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  246.                 echo "products/list?category_id=";
  247.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse112), "html"nulltrue);
  248.                 echo "\">
  249.                 <div class=\"category_detail_block__inner\">
  250.                     <div class=\"category_detail_block__img\">
  251.                         <img src=\"";
  252.                 // line 115
  253.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse115)), "save_image"), "html"nulltrue);
  254.                 echo "\">
  255.                     </div>
  256.                     <div class=\"category_detail_block__txt\">
  257.                         <div class=\"logo_ja_block\">
  258.                             <img src=\"";
  259.                 // line 119
  260.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "logo_file_name", [], "any"falsefalsefalse119)), "save_image"), "html"nulltrue);
  261.                 echo "\">
  262.                             <p class=\"cat_ttl\">";
  263.                 // line 120
  264.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse120), "html"nulltrue);
  265.                 echo "</p>
  266.                         </div><!--/.logo_ja_block-->
  267.                         <p>";
  268.                 // line 122
  269.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"truetruefalse122)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"falsefalsefalse122), "説明文がありません")) : ("説明文がありません")), "html"nulltrue);
  270.                 echo "</p>
  271.                         <div class=\"text-right\">
  272.                     <span class=\"base_link_brn\">
  273.                         <span>詳細を見る</span>
  274.                         <span>詳細を見る</span>
  275.                     </span>
  276.                         </div><!--/.text-right-->
  277.                     </div><!--./category_detail_block__txt-->
  278.                 </div><!--/.category_detail_block__inner-->
  279.             </a><!--/.category_detail_block-->
  280.         ";
  281.             }
  282.             $_parent $context['_parent'];
  283.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  284.             $context array_intersect_key($context$_parent) + $_parent;
  285.             // line 133
  286.             echo "    </div><!--/.category_detail_list-->
  287.     ";
  288.         }
  289.         // line 135
  290.         echo "
  291.     ";
  292.         // line 137
  293.         echo "    ";
  294.         $context["filteredCategories"] = twig_array_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'137$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return twig_in_filter(twig_upper_filter($this->envtwig_slice($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.'137$this->source); })()), "slug", [], "any"falsefalsefalse137), 01)), [=> "K"=> "L"=> "M"=> "N"=> "O"]); });
  295.         // line 138
  296.         echo "    ";
  297.         if ((isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'138$this->source); })())) {
  298.             // line 139
  299.             echo "    <div class=\"home_title__inner\">
  300.         <h2 class=\"home_en_title \"><span class=\"en\">K-O</span></h2>
  301.     </div><!--/.home_title__inner-->
  302.     <div class=\"category_detail_list\">
  303.         ";
  304.             // line 143
  305.             $context['_parent'] = $context;
  306.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'143$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'143$this->source); })()), "slug", [], "any"falsefalsefalse143) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'143$this->source); })()), "slug", [], "any"falsefalsefalse143)); }));
  307.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  308.                 // line 144
  309.                 echo "            <a id=\"target";
  310.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse144), "html"nulltrue);
  311.                 echo "\" class=\"category_detail_block\" href=\"";
  312.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  313.                 echo "products/list?category_id=";
  314.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse144), "html"nulltrue);
  315.                 echo "\">
  316.                 <div class=\"category_detail_block__inner\">
  317.                     <div class=\"category_detail_block__img\">
  318.                         <img src=\"";
  319.                 // line 147
  320.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse147)), "save_image"), "html"nulltrue);
  321.                 echo "\">
  322.                     </div>
  323.                     <div class=\"category_detail_block__txt\">
  324.                         <div class=\"logo_ja_block\">
  325.                             <img src=\"";
  326.                 // line 151
  327.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "logo_file_name", [], "any"falsefalsefalse151)), "save_image"), "html"nulltrue);
  328.                 echo "\">
  329.                             <p class=\"cat_ttl\">";
  330.                 // line 152
  331.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse152), "html"nulltrue);
  332.                 echo "</p>
  333.                         </div><!--/.logo_ja_block-->
  334.                         <p>";
  335.                 // line 154
  336.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"truetruefalse154)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"falsefalsefalse154), "説明文がありません")) : ("説明文がありません")), "html"nulltrue);
  337.                 echo "</p>
  338.                         <div class=\"text-right\">
  339.                     <span class=\"base_link_brn\">
  340.                         <span>詳細を見る</span>
  341.                         <span>詳細を見る</span>
  342.                     </span>
  343.                         </div><!--/.text-right-->
  344.                     </div><!--./category_detail_block__txt-->
  345.                 </div><!--/.category_detail_block__inner-->
  346.             </a><!--/.category_detail_block-->
  347.         ";
  348.             }
  349.             $_parent $context['_parent'];
  350.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  351.             $context array_intersect_key($context$_parent) + $_parent;
  352.             // line 165
  353.             echo "    </div><!--/.category_detail_list-->
  354.     ";
  355.         }
  356.         // line 167
  357.         echo "
  358.     ";
  359.         // line 169
  360.         echo "    ";
  361.         $context["filteredCategories"] = twig_array_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'169$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return twig_in_filter(twig_upper_filter($this->envtwig_slice($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.'169$this->source); })()), "slug", [], "any"falsefalsefalse169), 01)), [=> "P"=> "Q"=> "R"=> "S"=> "T"]); });
  362.         // line 170
  363.         echo "    ";
  364.         if ((isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'170$this->source); })())) {
  365.             // line 171
  366.             echo "    <div class=\"home_title__inner\">
  367.         <h2 class=\"home_en_title \"><span class=\"en\">P-T</span></h2>
  368.     </div><!--/.home_title__inner-->
  369.     <div class=\"category_detail_list\">
  370.         ";
  371.             // line 175
  372.             $context['_parent'] = $context;
  373.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'175$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'175$this->source); })()), "slug", [], "any"falsefalsefalse175) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'175$this->source); })()), "slug", [], "any"falsefalsefalse175)); }));
  374.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  375.                 // line 176
  376.                 echo "            <a id=\"target";
  377.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse176), "html"nulltrue);
  378.                 echo "\" class=\"category_detail_block\" href=\"";
  379.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  380.                 echo "products/list?category_id=";
  381.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse176), "html"nulltrue);
  382.                 echo "\">
  383.                 <div class=\"category_detail_block__inner\">
  384.                     <div class=\"category_detail_block__img\">
  385.                         <img src=\"";
  386.                 // line 179
  387.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse179)), "save_image"), "html"nulltrue);
  388.                 echo "\">
  389.                     </div>
  390.                     <div class=\"category_detail_block__txt\">
  391.                         <div class=\"logo_ja_block\">
  392.                             <img src=\"";
  393.                 // line 183
  394.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "logo_file_name", [], "any"falsefalsefalse183)), "save_image"), "html"nulltrue);
  395.                 echo "\">
  396.                             <p class=\"cat_ttl\">";
  397.                 // line 184
  398.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse184), "html"nulltrue);
  399.                 echo "</p>
  400.                         </div><!--/.logo_ja_block-->
  401.                         <p>";
  402.                 // line 186
  403.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"truetruefalse186)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"falsefalsefalse186), "説明文がありません")) : ("説明文がありません")), "html"nulltrue);
  404.                 echo "</p>
  405.                         <div class=\"text-right\">
  406.                     <span class=\"base_link_brn\">
  407.                         <span>詳細を見る</span>
  408.                         <span>詳細を見る</span>
  409.                     </span>
  410.                         </div><!--/.text-right-->
  411.                     </div><!--./category_detail_block__txt-->
  412.                 </div><!--/.category_detail_block__inner-->
  413.             </a><!--/.category_detail_block-->
  414.         ";
  415.             }
  416.             $_parent $context['_parent'];
  417.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  418.             $context array_intersect_key($context$_parent) + $_parent;
  419.             // line 197
  420.             echo "    </div><!--/.category_detail_list-->
  421.     ";
  422.         }
  423.         // line 199
  424.         echo "
  425.     ";
  426.         // line 202
  427.         echo "    ";
  428.         $context["filteredCategories"] = twig_array_filter($this->env, (isset($context["childCategories"]) || array_key_exists("childCategories"$context) ? $context["childCategories"] : (function () { throw new RuntimeError('Variable "childCategories" does not exist.'202$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return twig_in_filter(twig_upper_filter($this->envtwig_slice($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.'202$this->source); })()), "slug", [], "any"falsefalsefalse202), 01)), [=> "U"=> "V"=> "W"=> "X"=> "Y"=> "Z"]); });
  429.         // line 203
  430.         echo "    ";
  431.         if ((isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'203$this->source); })())) {
  432.             // line 204
  433.             echo "    <div class=\"home_title__inner\">
  434.         <h2 class=\"home_en_title \"><span class=\"en\">U-Z</span></h2>
  435.     </div><!--/.home_title__inner-->
  436.     <div class=\"category_detail_list\">
  437.         ";
  438.             // line 208
  439.             $context['_parent'] = $context;
  440.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["filteredCategories"]) || array_key_exists("filteredCategories"$context) ? $context["filteredCategories"] : (function () { throw new RuntimeError('Variable "filteredCategories" does not exist.'208$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'208$this->source); })()), "slug", [], "any"falsefalsefalse208) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'208$this->source); })()), "slug", [], "any"falsefalsefalse208)); }));
  441.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  442.                 // line 209
  443.                 echo "            <a id=\"target";
  444.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse209), "html"nulltrue);
  445.                 echo "\" class=\"category_detail_block\" href=\"";
  446.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  447.                 echo "products/list?category_id=";
  448.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse209), "html"nulltrue);
  449.                 echo "\">
  450.                 <div class=\"category_detail_block__inner\">
  451.                     <div class=\"category_detail_block__img\">
  452.                         <img src=\"";
  453.                 // line 212
  454.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "file_name", [], "any"falsefalsefalse212)), "save_image"), "html"nulltrue);
  455.                 echo "\">
  456.                     </div>
  457.                     <div class=\"category_detail_block__txt\">
  458.                         <div class=\"logo_ja_block\">
  459.                             <img src=\"";
  460.                 // line 216
  461.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" twig_get_attribute($this->env$this->source$context["category"], "logo_file_name", [], "any"falsefalsefalse216)), "save_image"), "html"nulltrue);
  462.                 echo "\">
  463.                             <p class=\"cat_ttl\">";
  464.                 // line 217
  465.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "japaneseText", [], "any"falsefalsefalse217), "html"nulltrue);
  466.                 echo "</p>
  467.                         </div><!--/.logo_ja_block-->
  468.                         <p>";
  469.                 // line 219
  470.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"truetruefalse219)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["category"], "content", [], "any"falsefalsefalse219), "説明文がありません")) : ("説明文がありません")), "html"nulltrue);
  471.                 echo "</p>
  472.                         <div class=\"text-right\">
  473.                     <span class=\"base_link_brn\">
  474.                         <span>詳細を見る</span>
  475.                         <span>詳細を見る</span>
  476.                     </span>
  477.                         </div><!--/.text-right-->
  478.                     </div><!--./category_detail_block__txt-->
  479.                 </div><!--/.category_detail_block__inner-->
  480.             </a><!--/.category_detail_block-->
  481.         ";
  482.             }
  483.             $_parent $context['_parent'];
  484.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  485.             $context array_intersect_key($context$_parent) + $_parent;
  486.             // line 230
  487.             echo "    </div><!--/.category_detail_list-->
  488.     ";
  489.         }
  490.         // line 232
  491.         echo "    </section><!--/.brand_display_section-->
  492. ";
  493.         
  494.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  495.         
  496.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  497.     }
  498.     // line 237
  499.     public function block_javascript($context, array $blocks = [])
  500.     {
  501.         $macros $this->macros;
  502.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  503.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  504.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  505.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  506.         // line 238
  507.         echo "<script>
  508.     \$(window).on('load',function(){
  509.         \$('.grid').addClass('show');
  510.         //Muuriギャラリープラグイン設定
  511.         var grid = new Muuri('.grid', {
  512.     });
  513.         // 検索機能
  514.         \$('input.search-field').on('input', function () {
  515.         var searchText = \$(this).val().toLowerCase();
  516.         grid.filter(function (item) {
  517.         var element = item.getElement();
  518.         var textContent = element.textContent || element.innerText;
  519.         return textContent.toLowerCase().indexOf(searchText) > -1;
  520.     });
  521.     });
  522.         //並び替えボタン設定
  523.         \$('.sort-btn ul li').on('click',function(){//並び替えボタンをクリックしたら
  524.         var className = \$(this).attr(\"class\")//クリックしたボタンのクラス名を取得
  525.         className = className.split(' '); //「.sort-btn ul li」のクラス名を分割して配列にする
  526.         //ボタンにクラス名activeがついている場合
  527.         if(\$(this).hasClass(\"active\")){
  528.         if(className[0] != \"all\"){              //ボタンのクラス名がallでなければ
  529.         \$(this).removeClass(\"active\");          //activeクラスを消す
  530.         var selectElms = \$(\".sort-btn ul li.active\"); //ボタン内にactiveクラスがついている要素を全て取得
  531.         if(selectElms.length == 0){           //取得した配列内にactiveクラスがついている要素がなければ
  532.         \$(\".sort-btn ul li.all\").addClass(\"active\");//ボタンallにactiveを追加し
  533.         grid.show('');                //ギャラリーの全ての画像を表示
  534.     }else{
  535.         filterDo();                 //取得した配列内にactiveクラスがついている要素があれば並び替えを行う
  536.     }
  537.     }
  538.     }
  539.         //ボタンにクラス名activeがついていない場合
  540.         else{
  541.         if(className[0] == \"all\"){              //ボタンのクラス名にallとついていたら
  542.         \$(\".sort-btn ul li\").removeClass(\"active\");   //ボタンのli要素の全てのactiveを削除し
  543.         \$(this).addClass(\"active\");           //allにactiveクラスを付与
  544.         grid.show('');                  //ギャラリーの全ての画像を表示
  545.     }else{
  546.         if(\$(\".all\").hasClass(\"active\")){       //allクラス名にactiveクラスが付いていたら
  547.         \$(\".sort-btn ul li.all\").removeClass(\"active\");//ボタンallのactiveクラスを消し
  548.     }
  549.         \$(this).addClass(\"active\");           //クリックしたチェックボックスへactiveクラスを付与
  550.         filterDo();                   //並び替えを行う
  551.     }
  552.     }
  553.     });
  554.         //画像の並び替え設定
  555.         function filterDo(){
  556.         var selectElms = \$(\".sort-btn ul li.active\"); //全てのボタンのactive要素を取得
  557.         var selectElemAry = [];             //activeクラスがついているボタンのクラス名(sortXX)を保存する配列を定義
  558.         \$.each(selectElms, function(index, selectElm) {
  559.         var className = \$(this).attr(\"class\")   //activeクラスがついている全てのボタンのクラス名(sortXX)を取得
  560.         className = className.split(' ');     //ボタンのクラス名を分割して配列にし、
  561.         selectElemAry.push(\".\"+className[0]);   //selectElemAry配列に、チェックのついたクラス名(sortXX)を追加
  562.     })
  563.         str = selectElemAry.join(',');        //selectElemAry配列に追加されたクラス名をカンマ区切りでテキストにして
  564.         grid.filter(str);               //grid.filter(str);のstrに代入し、ボタンのクラス名と<li>につけられたクラス名が一致したら出現
  565.     }
  566. });
  567. </script>
  568. ";
  569.         
  570.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  571.         
  572.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  573.     }
  574.     public function getTemplateName()
  575.     {
  576.         return "brand.twig";
  577.     }
  578.     public function isTraitable()
  579.     {
  580.         return false;
  581.     }
  582.     public function getDebugInfo()
  583.     {
  584.         return array (  533 => 238,  523 => 237,  512 => 232,  508 => 230,  491 => 219,  486 => 217,  482 => 216,  475 => 212,  464 => 209,  460 => 208,  454 => 204,  451 => 203,  448 => 202,  444 => 199,  440 => 197,  423 => 186,  418 => 184,  414 => 183,  407 => 179,  396 => 176,  392 => 175,  386 => 171,  383 => 170,  380 => 169,  377 => 167,  373 => 165,  356 => 154,  351 => 152,  347 => 151,  340 => 147,  329 => 144,  325 => 143,  319 => 139,  316 => 138,  313 => 137,  310 => 135,  306 => 133,  289 => 122,  284 => 120,  280 => 119,  273 => 115,  262 => 112,  258 => 111,  255 => 110,  253 => 109,  248 => 106,  245 => 105,  242 => 103,  238 => 101,  221 => 90,  215 => 87,  211 => 86,  203 => 81,  192 => 78,  188 => 77,  182 => 73,  179 => 72,  176 => 71,  169 => 65,  159 => 61,  155 => 60,  151 => 59,  146 => 57,  139 => 55,  134 => 54,  130 => 53,  92 => 18,  81 => 9,  78 => 8,  75 => 7,  72 => 6,  69 => 4,  59 => 3,  36 => 1,);
  585.     }
  586.     public function getSourceContext()
  587.     {
  588.         return new Source("{% extends 'fullwidth_frame.twig' %}
  589. {% block main %}
  590.     {# ブランド[カテゴリID:34]の子カテゴリ一覧を表示 #}
  591.     {% set parentId = 34 %}
  592.     {% set ParentCategory = repository('Eccube\\\\Entity\\\\Category').find(parentId) %}
  593.     {% set childCategories = ParentCategory.children|sort((a, b) => a.sortNo <=> b.sortNo) %}
  594.     <div class=\"home_title__inner\">
  595.         <h2 class=\"home_en_title \"><span class=\"en\">Brand</span><small>ブランドから探す</small></h2>
  596.     </div><!--/.home_title__inner-->
  597.     <div class=\"brand_sort_area\">
  598.         <ul class=\"sort-btn\">
  599.             <li class=\"sort_search_btn\">
  600.                 <input class=\"search-field form-control\" type=\"text\" name=\"search\" placeholder=\"ブランド名検索\">
  601.                 <img class=\"seach_icon\" src=\"{{ asset('assets/icon/search-dark.svg') }}\" alt=\"\">
  602.             </li>
  603.             <li class=\"alphabet_wrap\">
  604.                 <ul class=\"alphabet\">
  605.                     <li class=\"brand_A\"><span>A</span></li>
  606.                     <li class=\"brand_B\"><span>B</span></li>
  607.                     <li class=\"brand_C\"><span>C</span></li>
  608.                     <li class=\"brand_D\"><span>D</span></li>
  609.                     <li class=\"brand_E\"><span>E</span></li>
  610.                     <li class=\"brand_F\"><span>F</span></li>
  611.                     <li class=\"brand_G\"><span>G</span></li>
  612.                     <li class=\"brand_H\"><span>H</span></li>
  613.                     <li class=\"brand_I\"><span>I</span></li>
  614.                     <li class=\"brand_J\"><span>J</span></li>
  615.                     <li class=\"brand_K\"><span>K</span></li>
  616.                     <li class=\"brand_L\"><span>L</span></li>
  617.                     <li class=\"brand_M\"><span>M</span></li>
  618.                     <li class=\"brand_N\"><span>N</span></li>
  619.                     <li class=\"brand_O\"><span>O</span></li>
  620.                     <li class=\"brand_P\"><span>P</span></li>
  621.                     <li class=\"brand_Q\"><span>Q</span></li>
  622.                     <li class=\"brand_R\"><span>R</span></li>
  623.                     <li class=\"brand_S\"><span>S</span></li>
  624.                     <li class=\"brand_T\"><span>T</span></li>
  625.                     <li class=\"brand_U\"><span>U</span></li>
  626.                     <li class=\"brand_V\"><span>V</span></li>
  627.                     <li class=\"brand_W\"><span>W</span></li>
  628.                     <li class=\"brand_X\"><span>X</span></li>
  629.                     <li class=\"brand_Y\"><span>Y</span></li>
  630.                     <li class=\"brand_Z\"><span>Z</span></li>
  631.                 </ul>
  632.             </li>
  633.         </ul>
  634.         <ul class=\"grid\">
  635.             {% for category in childCategories|sort((a, b) => a.slug <=> b.slug) %}
  636.                 <li class=\"item brand_{{ category.slug }}\">
  637.                     <a class=\"item_content\" href=\"#target{{ category.id }}\" data-id=\"{{ category.id }}\">
  638.                         <div class=\"thumb\">
  639.                             <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  640.                         </div><!--/.thumb-->
  641.                         <span class=\"ttl_en\">{{ category.englishText }}</span>
  642.                         <span class=\"ttl\">{{ category.japaneseText }}</span>
  643.                         <span class=\"search_keywords\">{{ category.searchKeywords }}</span>
  644.                     </a>
  645.                 </li>
  646.             {% endfor %}
  647.         </ul>
  648.     </div><!--/wrapper-->
  649.     <section class=\"brand_display_section\">
  650.     {# A〜E #}
  651.     {% set filteredCategories = childCategories|filter(category => category.slug|slice(0, 1)|upper in ['A', 'B', 'C', 'D', 'E']) %}
  652.     {% if filteredCategories %}
  653.     <div class=\"home_title__inner\">
  654.         <h2 class=\"home_en_title \"><span class=\"en\">A-E</span></h2>
  655.     </div><!--/.home_title__inner-->
  656.     <div class=\"category_detail_list\">
  657.     {% for category in filteredCategories|sort((a, b) => a.slug <=> b.slug) %}
  658.         <a id=\"target{{ category.id }}\" class=\"category_detail_block\" href=\"{{ url('homepage') }}products/list?category_id={{ category.id }}\">
  659.             <div class=\"category_detail_block__inner\">
  660.                 <div class=\"category_detail_block__img\">
  661.                     <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  662.                 </div>
  663.                 <div class=\"category_detail_block__txt\">
  664.                     <div class=\"logo_ja_block\">
  665.                         <img src=\"{{ asset('rich_category/'~category.logo_file_name,'save_image') }}\">
  666.                         <p class=\"cat_ttl\">{{ category.japaneseText }}</p>
  667.                     </div><!--/.logo_ja_block-->
  668.                     <p>{{ category.content|default('説明文がありません') }}</p>
  669.                     <div class=\"text-right\">
  670.                     <span class=\"base_link_brn\">
  671.                         <span>詳細を見る</span>
  672.                         <span>詳細を見る</span>
  673.                     </span>
  674.                     </div><!--/.text-right-->
  675.                 </div><!--./category_detail_block__txt-->
  676.             </div><!--/.category_detail_block__inner-->
  677.         </a><!--/.category_detail_block-->
  678.     {% endfor %}
  679.     </div><!--/.category_detail_list-->
  680.     {% endif %}
  681.     {# F〜J #}
  682.     {% set filteredCategories = childCategories|filter(category => category.slug|slice(0, 1)|upper in ['F', 'G', 'H', 'I', 'J']) %}
  683.     <div class=\"home_title__inner\">
  684.         <h2 class=\"home_en_title \"><span class=\"en\">F-J</span></h2>
  685.     </div><!--/.home_title__inner-->
  686.     {% if filteredCategories %}
  687.     <div class=\"category_detail_list\">
  688.         {% for category in filteredCategories|sort((a, b) => a.slug <=> b.slug) %}
  689.             <a id=\"target{{ category.id }}\" class=\"category_detail_block\" href=\"{{ url('homepage') }}products/list?category_id={{ category.id }}\">
  690.                 <div class=\"category_detail_block__inner\">
  691.                     <div class=\"category_detail_block__img\">
  692.                         <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  693.                     </div>
  694.                     <div class=\"category_detail_block__txt\">
  695.                         <div class=\"logo_ja_block\">
  696.                             <img src=\"{{ asset('rich_category/'~category.logo_file_name,'save_image') }}\">
  697.                             <p class=\"cat_ttl\">{{ category.japaneseText }}</p>
  698.                         </div><!--/.logo_ja_block-->
  699.                         <p>{{ category.content|default('説明文がありません') }}</p>
  700.                         <div class=\"text-right\">
  701.                     <span class=\"base_link_brn\">
  702.                         <span>詳細を見る</span>
  703.                         <span>詳細を見る</span>
  704.                     </span>
  705.                         </div><!--/.text-right-->
  706.                     </div><!--./category_detail_block__txt-->
  707.                 </div><!--/.category_detail_block__inner-->
  708.             </a><!--/.category_detail_block-->
  709.         {% endfor %}
  710.     </div><!--/.category_detail_list-->
  711.     {% endif %}
  712.     {# K〜O #}
  713.     {% set filteredCategories = childCategories|filter(category => category.slug|slice(0, 1)|upper in ['K', 'L', 'M', 'N', 'O']) %}
  714.     {% if filteredCategories %}
  715.     <div class=\"home_title__inner\">
  716.         <h2 class=\"home_en_title \"><span class=\"en\">K-O</span></h2>
  717.     </div><!--/.home_title__inner-->
  718.     <div class=\"category_detail_list\">
  719.         {% for category in filteredCategories|sort((a, b) => a.slug <=> b.slug) %}
  720.             <a id=\"target{{ category.id }}\" class=\"category_detail_block\" href=\"{{ url('homepage') }}products/list?category_id={{ category.id }}\">
  721.                 <div class=\"category_detail_block__inner\">
  722.                     <div class=\"category_detail_block__img\">
  723.                         <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  724.                     </div>
  725.                     <div class=\"category_detail_block__txt\">
  726.                         <div class=\"logo_ja_block\">
  727.                             <img src=\"{{ asset('rich_category/'~category.logo_file_name,'save_image') }}\">
  728.                             <p class=\"cat_ttl\">{{ category.japaneseText }}</p>
  729.                         </div><!--/.logo_ja_block-->
  730.                         <p>{{ category.content|default('説明文がありません') }}</p>
  731.                         <div class=\"text-right\">
  732.                     <span class=\"base_link_brn\">
  733.                         <span>詳細を見る</span>
  734.                         <span>詳細を見る</span>
  735.                     </span>
  736.                         </div><!--/.text-right-->
  737.                     </div><!--./category_detail_block__txt-->
  738.                 </div><!--/.category_detail_block__inner-->
  739.             </a><!--/.category_detail_block-->
  740.         {% endfor %}
  741.     </div><!--/.category_detail_list-->
  742.     {% endif %}
  743.     {# P〜T #}
  744.     {% set filteredCategories = childCategories|filter(category => category.slug|slice(0, 1)|upper in ['P', 'Q', 'R', 'S', 'T']) %}
  745.     {% if filteredCategories %}
  746.     <div class=\"home_title__inner\">
  747.         <h2 class=\"home_en_title \"><span class=\"en\">P-T</span></h2>
  748.     </div><!--/.home_title__inner-->
  749.     <div class=\"category_detail_list\">
  750.         {% for category in filteredCategories|sort((a, b) => a.slug <=> b.slug) %}
  751.             <a id=\"target{{ category.id }}\" class=\"category_detail_block\" href=\"{{ url('homepage') }}products/list?category_id={{ category.id }}\">
  752.                 <div class=\"category_detail_block__inner\">
  753.                     <div class=\"category_detail_block__img\">
  754.                         <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  755.                     </div>
  756.                     <div class=\"category_detail_block__txt\">
  757.                         <div class=\"logo_ja_block\">
  758.                             <img src=\"{{ asset('rich_category/'~category.logo_file_name,'save_image') }}\">
  759.                             <p class=\"cat_ttl\">{{ category.japaneseText }}</p>
  760.                         </div><!--/.logo_ja_block-->
  761.                         <p>{{ category.content|default('説明文がありません') }}</p>
  762.                         <div class=\"text-right\">
  763.                     <span class=\"base_link_brn\">
  764.                         <span>詳細を見る</span>
  765.                         <span>詳細を見る</span>
  766.                     </span>
  767.                         </div><!--/.text-right-->
  768.                     </div><!--./category_detail_block__txt-->
  769.                 </div><!--/.category_detail_block__inner-->
  770.             </a><!--/.category_detail_block-->
  771.         {% endfor %}
  772.     </div><!--/.category_detail_list-->
  773.     {% endif %}
  774.     {# U〜Z #}
  775.     {% set filteredCategories = childCategories|filter(category => category.slug|slice(0, 1)|upper in ['U', 'V', 'W', 'X', 'Y','Z']) %}
  776.     {% if filteredCategories %}
  777.     <div class=\"home_title__inner\">
  778.         <h2 class=\"home_en_title \"><span class=\"en\">U-Z</span></h2>
  779.     </div><!--/.home_title__inner-->
  780.     <div class=\"category_detail_list\">
  781.         {% for category in filteredCategories|sort((a, b) => a.slug <=> b.slug) %}
  782.             <a id=\"target{{ category.id }}\" class=\"category_detail_block\" href=\"{{ url('homepage') }}products/list?category_id={{ category.id }}\">
  783.                 <div class=\"category_detail_block__inner\">
  784.                     <div class=\"category_detail_block__img\">
  785.                         <img src=\"{{ asset('rich_category/'~category.file_name,'save_image') }}\">
  786.                     </div>
  787.                     <div class=\"category_detail_block__txt\">
  788.                         <div class=\"logo_ja_block\">
  789.                             <img src=\"{{ asset('rich_category/'~category.logo_file_name,'save_image') }}\">
  790.                             <p class=\"cat_ttl\">{{ category.japaneseText }}</p>
  791.                         </div><!--/.logo_ja_block-->
  792.                         <p>{{ category.content|default('説明文がありません') }}</p>
  793.                         <div class=\"text-right\">
  794.                     <span class=\"base_link_brn\">
  795.                         <span>詳細を見る</span>
  796.                         <span>詳細を見る</span>
  797.                     </span>
  798.                         </div><!--/.text-right-->
  799.                     </div><!--./category_detail_block__txt-->
  800.                 </div><!--/.category_detail_block__inner-->
  801.             </a><!--/.category_detail_block-->
  802.         {% endfor %}
  803.     </div><!--/.category_detail_list-->
  804.     {% endif %}
  805.     </section><!--/.brand_display_section-->
  806. {% endblock %}
  807. {% block javascript %}
  808. <script>
  809.     \$(window).on('load',function(){
  810.         \$('.grid').addClass('show');
  811.         //Muuriギャラリープラグイン設定
  812.         var grid = new Muuri('.grid', {
  813.     });
  814.         // 検索機能
  815.         \$('input.search-field').on('input', function () {
  816.         var searchText = \$(this).val().toLowerCase();
  817.         grid.filter(function (item) {
  818.         var element = item.getElement();
  819.         var textContent = element.textContent || element.innerText;
  820.         return textContent.toLowerCase().indexOf(searchText) > -1;
  821.     });
  822.     });
  823.         //並び替えボタン設定
  824.         \$('.sort-btn ul li').on('click',function(){//並び替えボタンをクリックしたら
  825.         var className = \$(this).attr(\"class\")//クリックしたボタンのクラス名を取得
  826.         className = className.split(' '); //「.sort-btn ul li」のクラス名を分割して配列にする
  827.         //ボタンにクラス名activeがついている場合
  828.         if(\$(this).hasClass(\"active\")){
  829.         if(className[0] != \"all\"){              //ボタンのクラス名がallでなければ
  830.         \$(this).removeClass(\"active\");          //activeクラスを消す
  831.         var selectElms = \$(\".sort-btn ul li.active\"); //ボタン内にactiveクラスがついている要素を全て取得
  832.         if(selectElms.length == 0){           //取得した配列内にactiveクラスがついている要素がなければ
  833.         \$(\".sort-btn ul li.all\").addClass(\"active\");//ボタンallにactiveを追加し
  834.         grid.show('');                //ギャラリーの全ての画像を表示
  835.     }else{
  836.         filterDo();                 //取得した配列内にactiveクラスがついている要素があれば並び替えを行う
  837.     }
  838.     }
  839.     }
  840.         //ボタンにクラス名activeがついていない場合
  841.         else{
  842.         if(className[0] == \"all\"){              //ボタンのクラス名にallとついていたら
  843.         \$(\".sort-btn ul li\").removeClass(\"active\");   //ボタンのli要素の全てのactiveを削除し
  844.         \$(this).addClass(\"active\");           //allにactiveクラスを付与
  845.         grid.show('');                  //ギャラリーの全ての画像を表示
  846.     }else{
  847.         if(\$(\".all\").hasClass(\"active\")){       //allクラス名にactiveクラスが付いていたら
  848.         \$(\".sort-btn ul li.all\").removeClass(\"active\");//ボタンallのactiveクラスを消し
  849.     }
  850.         \$(this).addClass(\"active\");           //クリックしたチェックボックスへactiveクラスを付与
  851.         filterDo();                   //並び替えを行う
  852.     }
  853.     }
  854.     });
  855.         //画像の並び替え設定
  856.         function filterDo(){
  857.         var selectElms = \$(\".sort-btn ul li.active\"); //全てのボタンのactive要素を取得
  858.         var selectElemAry = [];             //activeクラスがついているボタンのクラス名(sortXX)を保存する配列を定義
  859.         \$.each(selectElms, function(index, selectElm) {
  860.         var className = \$(this).attr(\"class\")   //activeクラスがついている全てのボタンのクラス名(sortXX)を取得
  861.         className = className.split(' ');     //ボタンのクラス名を分割して配列にし、
  862.         selectElemAry.push(\".\"+className[0]);   //selectElemAry配列に、チェックのついたクラス名(sortXX)を追加
  863.     })
  864.         str = selectElemAry.join(',');        //selectElemAry配列に追加されたクラス名をカンマ区切りでテキストにして
  865.         grid.filter(str);               //grid.filter(str);のstrに代入し、ボタンのクラス名と<li>につけられたクラス名が一致したら出現
  866.     }
  867. });
  868. </script>
  869. {% endblock %}
  870. ""brand.twig""/home/xs626321/ikus.furniture/public_html/dev/app/template/default/brand.twig");
  871.     }
  872. }