app/template/default/Case/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE, Addition by INSPIRATION
  3. #}
  4. {% extends 'default_frame.twig' %}
  5. {% if SearchCategoryData is defined and SearchCategoryData is not empty %}
  6.     {% set subtitle = SearchCategoryData.title ~ ' | ' ~ title %}
  7.     {% if SearchCategoryData.id == 17 %}
  8.         {% set meta_description = 'ゴルフプリントが手掛けたオリジナルゴルフボール導入事例をご紹介。特別な節目を祝うためのカスタムデザインやギフトのアイデアを参考に、心に残るプレゼントを作成するヒントを得てください' %}
  9.     {% else %}
  10.         {% set meta_description = 'ゴルフプリントが手掛けた' ~ SearchCategoryData.title ~ '向けのオリジナルゴルフボール導入事例をご紹介。特別な節目を祝うためのカスタムデザインやギフトのアイデアを参考に、心に残るプレゼントを作成するヒントを得てください' %}
  11.     {% endif %}
  12.     {% if app.request.query.get('pageno') == 1 %}
  13.         {% set meta_canonical = url('case', { 'category': SearchCategoryData.id })   %}
  14.     {% elseif pagination.paginationData.current > 1 %}
  15.         {% set meta_canonical = url('case', { 'category': SearchCategoryData.id, 'pageno': pagination.paginationData.current })   %}
  16.     {% endif %}
  17. {% endif %}
  18. {% block main %}
  19.     <div class="container">
  20.         <!-- パンくずリスト -->
  21.         <nav aria-label="breadcrumb" class="my-3">
  22.             <ol class="breadcrumb">
  23.                 <li class="breadcrumb-item"><a href="{{ url('homepage') }}">ホーム</a></li>
  24. {% if SearchCategoryData is empty %}
  25.                 <li class="breadcrumb-item active" aria-current="page">{{ title }}</li>
  26. {% else %}
  27.                 <li class="breadcrumb-item"><a href="{{ url('case') }}">{{ title }}</a></li>
  28.                 <li class="breadcrumb-item active" aria-current="page">{{ SearchCategoryData.title }}</li>
  29. {% endif %}
  30.             </ol>
  31.         </nav>
  32.         <div class="layout-2colmun">
  33. {{ include('Block/aside_others.twig') }}
  34.             <main class="main">
  35. {% if SearchCategoryData is empty %}
  36.                 <h1 class="fw-bold mb-5">{{ title }}</h1>
  37. {% else %}
  38.                 <h1 class="fw-bold mb-5">{{ SearchCategoryData.title }}|{{ title }}</h1>
  39. {% endif %}
  40.                 <div class="border mb-5">
  41.                     <div class="row px-3 pt-3">
  42.                         <p class="text-center fw-bold pt-3 _fs-4">事例を絞り込む</p>
  43. {% for CategoryData in CategoryDatas %}
  44. {% if CategoryData.id in CheckCategory %}
  45. {% if SearchCategory == CategoryData.id %}
  46.                         <div class="col-6 col-sm-4 col-md-3 mb-3"><a href="{{ url('case') }}?category={{ CategoryData.id }}" class="btn btn-outline-dark w-100 rounded-0 py-3 active">{{ CategoryData.title }}</a></div>
  47. {% else %}
  48.                         <div class="col-6 col-sm-4 col-md-3 mb-3"><a href="{{ url('case') }}?category={{ CategoryData.id }}" class="btn btn-outline-dark w-100 rounded-0 py-3">{{ CategoryData.title }}</a></div>
  49. {% endif %}
  50. {% endif %}
  51. {% endfor %}
  52.                     </div>
  53.                 </div>
  54.                 <div class="row">
  55. {% if pagination.totalItemCount > 0 %}
  56. {% for CaseData in pagination %}
  57.                     <div class="col-6 col-lg-3 mb-4 adjust-height">
  58.                         <div class="bg-secondary p-3 rounded caseheight">
  59.                             <a href="{{ url('case_detail', {'id': CaseData.id}) }}" class="numbering-container">
  60.                                 <div class="number">{{ CaseData.id }}</div>
  61.                                 <img src="/icms/user_data/image/Voice1/{{ CaseData.thumbnail_gazo }}" class="img-fluid text-dark mb-3" alt="{{ CaseData.title }}" width="500" height="500">
  62.                                 <p class="text-center text-dark mb-1">[NO.{{ CaseData.id }}]</p>
  63.                                 <p class="text-center text-dark mb-0">{{ CaseData.title|raw }}</p>
  64.                             </a>
  65.                         </div>
  66.                     </div>
  67. {% endfor %}
  68.                     {% include "pager_case.twig" with {'pages': pagination.paginationData} %}
  69. {% else %}
  70.                         <div class="d-flex justify-content-between mb-4 border-bottom py-3 align-items-center flex-column flex-md-row">
  71.                             <div><span>{{ 'ただいま準備中です'|trans }}</span></div>
  72.                         </div>
  73. {% endif %}
  74.                 </div>
  75.             </main>
  76.         </div>
  77.     </div>
  78. {% endblock %}