app/template/default/Block/header.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. {% block stylesheet %}
  9.     <style>
  10.         .margin {
  11.             margin: 2%;
  12.         }
  13.         .padding {
  14.             padding: 2%;
  15.         }
  16.     </style>
  17. {% endblock %}
  18. <div class="ec-headerNaviRole">
  19.     <div class="ec-headerNaviRole__left">
  20.         <div class="ec-headerNaviRole__search">
  21.             <a href="/" class="under1655">タスタス</a>
  22.             <a href="/" class="over1655">タスタスアートギャラリーカフェ</a>
  23.         </div>
  24.         <div class="ec-headerRole__navSP">
  25.             {{ include('Block/nav_sp.twig') }}
  26.         </div>
  27.     </div>
  28.     <div class="ec-headerNaviRole__center">
  29.         <div class="ec-headerNaviRole__nav">
  30.             <ul class="gnav main-wrapper">
  31.                 <li>
  32.                 <a href="/products/list" class="under1189"><i class="fa-solid fa-palette fontawesome-size"></i></a>
  33.                 <a href="/products/list" class="over1189">作品</a>
  34.                 <div class="megamenu">
  35.                     <div class="megamenu-left">
  36.                         <p class="fontweight-bold">サイズから探す</p>
  37.                         <div class="margin-top">
  38.                             <a href="/products/list?name=&price_min=0&price_max=1000000&size_vertical_min=0&size_vertical_max=50&size_width_min=0&size_width_max=50" class="btn btn--header">~50cm</a>
  39.                         </div>
  40.                         <div>
  41.                             <a href="/products/list?name=&price_min=0&price_max=1000000&size_vertical_min=50&size_vertical_max=150&size_width_min=50&size_width_max=150" class="btn btn--header">50~150cm</a>
  42.                         </div>
  43.                         <div>
  44.                             <a href="/products/list?name=&price_min=0&price_max=1000000&size_vertical_min=150&size_vertical_max=300&size_width_min=150&size_width_max=300" class="btn btn--header">150cm~</a>
  45.                         </div>
  46.                     </div>
  47.                     <div class="megamenu-right">
  48.                         <p class="fontweight-bold">価格から探す</p>
  49.                         <div class="margin-top">
  50.                             <a href="https://tas-lab.net/products/list?name=&price_min=0&price_max=5000&size_vertical_min=0&size_vertical_max=300&size_width_min=0&size_width_max=300" class="btn btn--header">~5000円</a>
  51.                         </div>
  52.                         <div>
  53.                             <a href="https://tas-lab.net/products/list?name=&price_min=5000&price_max=10000&size_vertical_min=0&size_vertical_max=300&size_width_min=0&size_width_max=300" class="btn btn--header">5000円~10000円</a>
  54.                         </div>
  55.                         <div>
  56.                             <a href="https://tas-lab.net/products/list?name=&price_min=10000&price_max=1000000&size_vertical_min=0&size_vertical_max=300&size_width_min=0&size_width_max=300" class="btn btn--header">10000円~</a>
  57.                         </div>
  58.                     </div>
  59.                 </div><!-- .megamenu -->
  60.                 </li>
  61.                 <li>
  62.                 <a href="/category" class="under1189"><i class="fa-solid fa-building-columns fontawesome-size"></i></a>
  63.                 <a href="/category" class="over1189">カテゴリー</a>
  64.                 <div class="megamenu">
  65.                 <ul class="megamenu-inner main-wrapper margin padding">
  66.                     {# forでやるとcategoriesを全コントローラーで登録しないとになる #}
  67.                     {# {% for category in categories %}
  68.                     <li>
  69.                         <a href="/products/feature/{{ category.id }}">
  70.                         <div class="megamenu-inner-text"><img src="{{ asset(category.category_image |no_image_product, 'user_data') }}" alt=category.name>{{ category.name }}</div>
  71.                         </a>
  72.                     </li>
  73.                     {% endfor %} #}
  74.                     {# <li>
  75.                         {% for ProductCategory in Product.ProductCategories %}
  76.                             {% for Category in ProductCategory.Category.path %}
  77.                                 <a href="{{ url('product_list') }}?category_id={{ Category.id }}"><div class="megamenu-inner-text"><img src="{{ asset(Category.category_image |no_image_product, 'user_data') }}" alt=Category.name>{{ Category.name }}</div></a> {%- if loop.last == false %}
  78.                                 <span></span>{% endif -%}
  79.                             {% endfor %}
  80.                          {% endfor %}
  81.                     </li> #}
  82.                     
  83.                     <li>
  84.                         <a href="{{ url('product_list') }}?category_id=1">
  85.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/animal.png' |no_image_product, 'user_data') }}" alt="動物" class='radius6'>動物</div>
  86.                         </a>
  87.                     </li>
  88.                     <li>
  89.                         <a href="{{ url('product_list') }}?category_id=2">
  90.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/new.jpg' |no_image_product, 'user_data') }}" alt="新入荷" class='radius6'>新入荷</div>
  91.                         </a>
  92.                     </li>
  93.                     <li>
  94.                         <a href="{{ url('product_list') }}?category_id=3">
  95.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/vintage.jpg' |no_image_product, 'user_data') }}" alt="ヴィンテージ" class='radius6'>ヴィンテージ</div>
  96.                         </a>
  97.                     </li>
  98.                     <li>
  99.                         <a href="{{ url('product_list') }}?category_id=4">
  100.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/monotone.jpg' |no_image_product, 'user_data') }}" alt="モノトーン" class='radius6'>モノトーン</div>
  101.                         </a>
  102.                     </li>
  103.                     <li>
  104.                         <a href="{{ url('product_list') }}?category_id=5">
  105.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/fantasy.jpg' |no_image_product, 'user_data') }}" alt="ファンタジー" class='radius6'>ファンタジー</div>
  106.                         </a>
  107.                     </li>
  108.                     <li>
  109.                         <a href="{{ url('product_list') }}?category_id=6">
  110.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/abstract.jpg' |no_image_product, 'user_data') }}" alt="抽象画" class='radius6'>抽象画</div>
  111.                         </a>
  112.                     </li>
  113.                     <li>
  114.                         <a href="{{ url('product_list') }}?category_id=7">
  115.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/street.png' |no_image_product, 'user_data') }}" alt="ストリート" class='radius6'>ストリート</div>
  116.                         </a>
  117.                     </li>
  118.                     <li>
  119.                         <a href="{{ url('product_list') }}?category_id=8">
  120.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/fuukei.png' |no_image_product, 'user_data') }}" alt="風景" class='radius6'>風景</div>
  121.                         </a>
  122.                     </li>
  123.                     <li>
  124.                         <a href="{{ url('product_list') }}?category_id=9">
  125.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/portlate.png' |no_image_product, 'user_data') }}" alt="ポートレート" class='radius6'>ポートレート</div>
  126.                         </a>
  127.                     </li>
  128.                     <li>
  129.                         <a href="{{ url('product_list') }}?category_id=10">
  130.                         <div class="megamenu-inner-text"><img src="{{ asset('assets/img/category/daily.jpg' |no_image_product, 'user_data') }}" alt="日常" class='radius6'>日常</div>
  131.                         </a>
  132.                     </li>
  133.                 </ul><!-- .megamenu-inner -->
  134.                 </div><!-- .megamenu --></li>
  135.                 <li><a href="/artists" class="under1189"><i class="fa-solid fa-user fontawesome-size"></i></a></li>
  136.                 <li><a href="/artists" class="over1189">アーティスト</a></li>
  137.             </ul>
  138.         </div>
  139.     </div>
  140.     <div class="ec-headerNaviRole__right">
  141.         <div class="ec-headerNaviRole__nav">
  142.             {{ include('Block/login.twig') }}
  143.         </div>
  144.         <div class="ec-headerRole__cart">
  145.             {{ include('Block/cart.twig') }}
  146.         </div>
  147.     </div>
  148. </div>