app/template/default/Block/case_home.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE, Overwrite by INSPIRATION
  3. #}
  4. {% set VoiceList = repository('Customize\\Entity\\Voices').getHomeList() %}
  5. {% set ViewCategoryDataList = repository('Customize\\Entity\\Voices').getCaseValidCategory() %}
  6. {% set CategoryDataList = repository('Customize\\Entity\\Categories').getListVoise() %}
  7.         <h2 class="section-title -underline my-5">
  8.             <span>導入事例</span>
  9.         </h2>
  10.         <div class="row">
  11. {% for CategoryData in CategoryDataList %}
  12. {% if CategoryData.id in ViewCategoryDataList %}
  13.             <div class="col-md-4 mb-3">
  14.                 <a href="{{ url('case') }}?category={{ CategoryData.id }}" class="btn btn-outline-dark btn-lg rounded-0 w-100 py-3 py-md-5"><i class="icon-chevron_right"></i> {{ CategoryData.title }}</a>
  15.             </div>
  16. {% endif %}
  17. {% endfor %}
  18.         </div>
  19.         <div class="text-center mt-3 mb-5">
  20.             <a href="{{ url('case') }}" class="btn btn-lg btn-dark">導入事例一覧を見る</a>
  21.         </div>
  22. {% if VoiceList is not empty %}
  23.         <div class="text-center my-5">
  24.             <h3 class="fw-bold"><i class="icon-reviews text-primary"></i>直近の導入事例</h3>
  25.         </div>
  26.         <div class="row">
  27. {% for VoiceData in VoiceList %}
  28.             <div class="col-6 col-sm-4 col-lg-2">
  29.                 <a href="/case/detail/{{ VoiceData.id }}" class="numbering-container">
  30.                     <div class="number">{{ VoiceData.id }}</div>
  31.                     <img src="/icms/user_data/image/Voice1/{{ VoiceData.thumbnail_gazo }}" class="img-fluid" alt="{{ VoiceData.title }}">
  32.                     <p class="description mb-1">[{{ VoiceData.id }}] {{ VoiceData.title|raw }}</p>
  33.                 </a>
  34.             </div>
  35. {% endfor %}
  36.         </div>
  37. {% endif %}