app/template/idealinc/Other/brand.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'all-brand-list' %}
  10. {% block stylesheet %}
  11. <link rel="stylesheet" href="{{ asset('assets/css/contents.css') }}">
  12. {% endblock stylesheet %}
  13. {% block main %}
  14.  {{ include('Block/header.twig') }}
  15. <!-- HEADER -->
  16. {# {% set BrandMaxCategory = repository('Eccube\\Entity\\Category').find(3) %}
  17. {% set BrandCategories = repository('Eccube\\Entity\\Category').getList(BrandMaxCategory) %} #}
  18. <div class="allbrandListwrap" id="brand-list_wrap">
  19.   <div class="brand-list-wrap flex">
  20.       <div>
  21.           <h2 class="brandlist_ttl pcShow"><span>BRAND LIST</span><small>取扱ブランド一覧</small></h2>
  22.         <ul class="catlist">
  23.             <li><a href="{{ url('all_brand_list') }}">ALL</a></li>
  24.             <li><a href="{{ url('all_brand_list', {'cat': 'mens'}) }}">MENS</a></li>
  25.             <li><a href="{{ url('all_brand_list', {'cat': 'womens'}) }}">WOMENS</a></li>
  26.         </ul>
  27.       </div>
  28.     <div class="flex">
  29.       {% set oneThirdCount = (BrandCategories|length / 2)|round %}
  30.       {# {% set brandsToShow = [
  31.         "ACRONYM",
  32.         "Aeta",
  33.         "amachi.",
  34.         "ARCHI",
  35.         "AURALEE (mens)",
  36.         "AURALEE (womens)",
  37.         "AVIREX7522",
  38.         "BLACKBIRD",
  39.         "C.E",
  40.         "CASEY CASEY",
  41.         "CHACOLI",
  42.         "CHALLENGER",
  43.         "Clarks",
  44.         "COMOLI",
  45.         "UMBRO×COMOLI",
  46.         "CONVERSE ADDICT",
  47.         "Cristaseya",
  48.         "DESCENDANT",
  49.         "DS&DURGA",
  50.         "The DUFFER N NEPHEWS",
  51.         "ensou.",
  52.         "F.C.Real Bristol",
  53.         "F.LLI Giacometti",
  54.         "FOOTWORKS",
  55.         "FUMIKA_UCHIDA",
  56.         "GURANK",
  57.         "HERILL",
  58.         "HEUGN",
  59.         "HYKE",
  60.         "jonnlynx",
  61.         "KHOKI",
  62.         "Le Yucca's",
  63.         "MAD et LEN",
  64.         "Maison Margiela",
  65.         "MALU",
  66.         "MARTINIANO",
  67.         "N.HOOLYWOOD",
  68.         "NEAT",
  69.         "NEIGHBORHOOD",
  70.         "New Balance",
  71.         "New Manual",
  72.         "NEXUS VII",
  73.         "NICENESS",
  74.         "NICENESS - Leather Goods",
  75.         "OAMC",
  76.         "_J.L-A.L_",
  77.         "R.ALAGAN",
  78.         "READYMADE",
  79.         "SUNSEA",
  80.         "REVERBERATE",
  81.         "sage NATION",
  82.         "SAINT Mxxxxxx",
  83.         "SOPHNET.",
  84.         "SOWER",
  85.         "stein",
  86.         "Subsequence Magazine",
  87.         "TAIGA TAKAHASHI",
  88.         "THE INOUE BROTHERS…",
  89.         "UNDERCOVER",
  90.         "uniform experiment",
  91.         "UNUSED",
  92.         "visvim WMV",
  93.         "WACKO MARIA",
  94.         "YOKE",
  95.         "WTAPS",
  96.       ] %} #}
  97.       <div>
  98.         <ul>
  99.           {% for i in range(0, oneThirdCount - 1) if BrandCategories|length and oneThirdCount %}
  100.             <li><a href="{{ url('brand_detail', {'id' : BrandCategories[i].id}) }}">{{ BrandCategories[i].name }}</a></li>
  101.           {% endfor %}
  102.         </ul>
  103.       </div>
  104.       {% set twoThirdCount = ((BrandCategories|length - oneThirdCount))|round  %}
  105.       <div class="list2">
  106.         <ul>
  107.           {% for i in range(oneThirdCount, oneThirdCount + twoThirdCount - 1) if BrandCategories|length and twoThirdCount %}
  108.             {% if BrandCategories[i].id == 126 %}
  109.               <li><a href="{{ url('brand_detail', {'id' : BrandCategories[i+1].id}) }}">{{ BrandCategories[i+1].name }}</a></li>
  110.             {% elseif BrandCategories[i].id == 1453 %}
  111.               <li><a href="{{ url('brand_detail', {'id' : BrandCategories[i-1].id}) }}">{{ BrandCategories[i-1].name }}</a></li>
  112.             {% else %}
  113.               <li><a href="{{ url('brand_detail', {'id' : BrandCategories[i].id}) }}">{{ BrandCategories[i].name }}</a></li>
  114.             {% endif %}
  115.           {% endfor %}
  116.         </ul>
  117.       </div>
  118.     </div>
  119.   </div>
  120. </div>
  121. {% endblock %}