templates/components/entry/_entry_list_item.html.twig line 1

Open in your IDE?
  1. {% if strim_width is not defined %}{% set strim_width = 82 %}{% endif %}
  2. <a
  3.   href="{% include "components/entry/_entry_list_link.html.twig" with {item: item} %}"
  4.   class="searchContentsContainer__item js-infiniteScroll--node"
  5. >
  6.   <div
  7.     class="img__search"
  8.     style="background-image: url({% include "components/entry/_entry_list_thumbnail.html.twig" with {item: item} %})"
  9.   ></div>
  10.   <div class="searchContentsContainerItem__info">
  11.     {% if item.category == 1 %}{# ModelPlan Number #}
  12.       <h5>No.{{ item.modelplan.number }}</h5>
  13.     {% endif %}
  14.     {% if item.category == 8 or item.category == 16 %}{# Activity category #}
  15.       <span class="searchContentsContainerItemInfo__class">{{ item.categoryLocale(app.request.locale) }}</span>
  16.     {% endif %}
  17.     <h3>{{ item.titleLocale(app.request.locale) |strim_width(41) }}</h3>
  18.     {% if item.category == 8 or item.category == 16 %}{# activity tag? #}
  19.       {# <p>{{'components.index.resort' |trans|raw}}</p>TODO これは何が反映する? #}
  20.     {% endif %}
  21.     <p>{{ item.summaryLocale(app.request.locale)|strim_width(strim_width) }}</p>
  22.     {% if item.category == 2 and item.hotel %}{# hotel description #}
  23.     <p>{{ item.hotel.descriptionLocale(app.request.locale) }}</p>
  24.     {% endif %}
  25.     <span>#{{ item.Area.getLocaleAreaName(app.request.locale) }}({{ item.Area.getLocaleName(app.request.locale) }})</span>
  26.   </div>
  27. </a>