app/PluginData/TabaCMS2/template/airconwork/widget_list.twig line 1

Open in your IDE?
  1. {#
  2. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  3. For the full copyright and license information, please view the LICENSE
  4. file that was distributed with this source code.
  5. #}
  6. {% set post_list = TabaCMSPostList({type_data_key:options.type_data_key,overwrite_query:false,page_count:4}) %}
  7. <ul class="c-info-list">
  8.     {% for post in post_list %}
  9.     <li class="c-info-list__item">
  10.         <time class="c-info-list__date font-en">{{ post.getPublicDate|date('Y.m.d') }}</time>
  11.         <div class="c-info-list__title">
  12.             {% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
  13.                 <a href="{{ post.getURI }}">{{ post.getTitle }}</a>
  14.             {% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
  15.                 <a href="{{ post.getLinkUrl }}" {% if post.getLinkTarget %}target="{{ post.getLinkTarget }}"{% endif %}>{{ post.getTitle }}</a>
  16.             {% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
  17.                 {{ post.getTitle }}
  18.             {% endif %}
  19.         </div>
  20.     </li>
  21.     {% endfor %}
  22. </ul>
  23. <div class="block-right">
  24.     <a href="{{ type.getListURI }}" class="c-link-01">
  25.     <span class="s-text">{{ type.getTypeName }}一覧を見る</span>
  26.     <i class="s-icon">
  27.         <svg>
  28.         <use xlink:href="{{ asset('assets/img/ico/ico_arrow_forward.svg#obj') }}"></use>
  29.         </svg>
  30.     </i>
  31.     </a>
  32. </div>