templates/layout/_aside.html.twig line 1

Open in your IDE?
  1. {% set aside_items = [
  2.     {
  3.         key: "{^/company}",
  4.     href: path('company_index'),
  5.     japanese: '会社概要',
  6.     english: 'COMPANY',
  7.     },
  8.     {
  9.         key: "{^/message}",
  10.     href: path('message_index'),
  11.     japanese: 'メッセージ',
  12.     english: 'MESSAGE',
  13.     },
  14.     {
  15.         key: "{^/staff}",
  16.     href: path('staff_index'),
  17.     japanese: 'スタッフ紹介',
  18.     english: 'STAFF',
  19.     },
  20.     {
  21.         key: "{^/news}",
  22.     href: path('news_index'),
  23.     japanese: 'お知らせ',
  24.     english: 'NEWS',
  25.     },
  26. ]%}
  27. <section class="l-aside">
  28.     <div class="l-aside_inner">
  29.         <div class="l-aside_logo">
  30.             <a class="l-aside_logo__anchor" href="{{ path('top') }}">
  31.                 <img src="{{ asset('build/images/common/logo.png') }}" alt="ふじきっちん">
  32.                 <span class="l-aside_logo_text">FUJI KITCHEN</span>
  33.             </a>
  34.         </div>
  35.         <ul class="l-aside_list">
  36.             {% for item in aside_items %}
  37.             <li class="l-aside_list-item">
  38.                 <a class="l-aside_list-item_anchor{% if app.request.requestUri matches item.key %} active{% endif %}" href="{{ item.href }}">
  39.                     <span class="l-aside_list-item_anchor__japanese">{{ item.japanese }}</span>
  40.                     <span class="l-aside_list-item_anchor__english">{{ item.english }}</span>
  41.                 </a>
  42.             </li>
  43.             {% endfor %}
  44.         </ul>
  45.         <div class="l-aside_button-area">
  46.             <div class="l-aside_contact-button">
  47.                 {% include "components/common/_button.html.twig" with {
  48.         text: 'お問い合わせ',
  49.         src: 'build/images/common/double_arrow_black.svg',
  50.         href: path('contact_index'),
  51.         width: '12',
  52.         height: '10',
  53.         class: 'c-white-border-more_button',
  54.           }%}
  55.             </div>
  56.             <div class="l-aside_contact-recruit">
  57.                 {% include "components/common/_button.html.twig" with {
  58.         text: '求人情報',
  59.         src: 'build/images/common/double_arrow_black.svg',
  60.         href: path('recruit_index'),
  61.         width: '12',
  62.         height: '10',
  63.         class: 'c-red-more_button',
  64.           }%}
  65.             </div>
  66.         </div>
  67.     </div>
  68. </section>