app/template/user_data/topic.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% block main %}
  3.     {{ include('Block/banner.twig', { 'image': asset('assets/img/topic.png', "user_data"), 'title': 'TOPICS', 'subtitle': 'トピックス' }) }}
  4.     <div class="topic">
  5.         <div class="topic__container">
  6.             <div class="topic__list">
  7.                 {% if pagination.totalItemCount > 0 %}
  8.                     <div class="topic__list__inner">
  9.                         {% for Blog in pagination %}
  10.                             <a class="topic__post" href="{{ url('topic_detail', {'id': Blog.slug ? Blog.slug : Blog.id}) }}">
  11.                                 <div class="topic__post__image">
  12.                                     <img src="{{ asset(Blog.getMainListImage|no_image_product, 'save_image') }}" />
  13.                                 </div>
  14.                                 <div class="topic__post__content">
  15.                                     <h2 class="topic__post__title">
  16.                                         {{ Blog.getTitle|length > 45 ? Blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : Blog.getTitle|raw }}
  17.                                     </h2>
  18.                                     <p class="topic__post__date">
  19.                                         {{ Blog.release_date|date('Y年m月d日')}}
  20.                                     </p>
  21.                                     <p class="topic__post__desc">
  22.                                         {{ Blog.getFigCaption }}
  23.                                     </p>
  24.                                 </div>
  25.                             </a>
  26.                         {% endfor %}
  27.                     </div>
  28.                     <div class="ec-pagerRole">
  29.                         {% include "pager.twig" with {'pages': pagination.paginationData, 'routes' : 'topic'} %}
  30.                     </div>
  31.                 {% endif %}
  32.             </div>
  33.             <div class="topic__archive">
  34.                 <div class="topic__archive__title">
  35.                     月別アーカイブ
  36.                 </div>
  37.                 <div class="topic__archive__list">
  38.                     {% for key, month in monthArr %}
  39.                         <a href="{{ url('topic', {date: key}) }}">{{ month }}</a>
  40.                     {% endfor %}
  41.                 </div>
  42.             </div>
  43.         </div>
  44.     </div>
  45. {% endblock %}