{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'all-brand-list' %}
{% block stylesheet %}
<link rel="stylesheet" href="{{ asset('assets/css/contents.css') }}">
{% endblock stylesheet %}
{% block main %}
{{ include('Block/header.twig') }}
<!-- HEADER -->
{# {% set BrandMaxCategory = repository('Eccube\\Entity\\Category').find(3) %}
{% set BrandCategories = repository('Eccube\\Entity\\Category').getList(BrandMaxCategory) %} #}
<div class="allbrandListwrap" id="brand-list_wrap">
<div class="brand-list-wrap flex">
<div>
<h2 class="brandlist_ttl pcShow"><span>BRAND LIST</span><small>取扱ブランド一覧</small></h2>
<ul class="catlist">
<li><a href="{{ url('all_brand_list') }}">ALL</a></li>
<li><a href="{{ url('all_brand_list', {'cat': 'mens'}) }}">MENS</a></li>
<li><a href="{{ url('all_brand_list', {'cat': 'womens'}) }}">WOMENS</a></li>
</ul>
</div>
<div class="flex">
{% set oneThirdCount = (BrandCategories|length / 2)|round %}
{# {% set brandsToShow = [
"ACRONYM",
"Aeta",
"amachi.",
"ARCHI",
"AURALEE (mens)",
"AURALEE (womens)",
"AVIREX7522",
"BLACKBIRD",
"C.E",
"CASEY CASEY",
"CHACOLI",
"CHALLENGER",
"Clarks",
"COMOLI",
"UMBRO×COMOLI",
"CONVERSE ADDICT",
"Cristaseya",
"DESCENDANT",
"DS&DURGA",
"The DUFFER N NEPHEWS",
"ensou.",
"F.C.Real Bristol",
"F.LLI Giacometti",
"FOOTWORKS",
"FUMIKA_UCHIDA",
"GURANK",
"HERILL",
"HEUGN",
"HYKE",
"jonnlynx",
"KHOKI",
"Le Yucca's",
"MAD et LEN",
"Maison Margiela",
"MALU",
"MARTINIANO",
"N.HOOLYWOOD",
"NEAT",
"NEIGHBORHOOD",
"New Balance",
"New Manual",
"NEXUS VII",
"NICENESS",
"NICENESS - Leather Goods",
"OAMC",
"_J.L-A.L_",
"R.ALAGAN",
"READYMADE",
"SUNSEA",
"REVERBERATE",
"sage NATION",
"SAINT Mxxxxxx",
"SOPHNET.",
"SOWER",
"stein",
"Subsequence Magazine",
"TAIGA TAKAHASHI",
"THE INOUE BROTHERS…",
"UNDERCOVER",
"uniform experiment",
"UNUSED",
"visvim WMV",
"WACKO MARIA",
"YOKE",
"WTAPS",
] %} #}
<div>
<ul>
{% for i in range(0, oneThirdCount - 1) if BrandCategories|length and oneThirdCount %}
<li><a href="{{ url('brand_detail', {'id' : BrandCategories[i].id}) }}">{{ BrandCategories[i].name }}</a></li>
{% endfor %}
</ul>
</div>
{% set twoThirdCount = ((BrandCategories|length - oneThirdCount))|round %}
<div class="list2">
<ul>
{% for i in range(oneThirdCount, oneThirdCount + twoThirdCount - 1) if BrandCategories|length and twoThirdCount %}
{% if BrandCategories[i].id == 126 %}
<li><a href="{{ url('brand_detail', {'id' : BrandCategories[i+1].id}) }}">{{ BrandCategories[i+1].name }}</a></li>
{% elseif BrandCategories[i].id == 1453 %}
<li><a href="{{ url('brand_detail', {'id' : BrandCategories[i-1].id}) }}">{{ BrandCategories[i-1].name }}</a></li>
{% else %}
<li><a href="{{ url('brand_detail', {'id' : BrandCategories[i].id}) }}">{{ BrandCategories[i].name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}