templates/components/entry/_entry_list_card.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="js-infiniteScroll--node"
  5. >
  6.   <div
  7.     class="img__modelPlan"
  8.     style="background-image: url({% include "components/entry/_entry_list_thumbnail.html.twig" with {item: item} %})"
  9.   ></div>
  10.   <h3>{{ item.titleLocale(app.request.locale)|strim_width(41) }}</h3>
  11.   {% if item.category == 8 or item.category == 16 %}{# activity tag? #}
  12.     {# <p>{{'components.index.resort' |trans|raw}}</p>TODO これは何が反映する? #}
  13.   {% endif %}
  14.   <p>{{ item.summaryLocale(app.request.locale)|strim_width(strim_width) }}</p>
  15.   {% if item.category == 2 and item.hotel %}{# hotel description #}
  16.     <p>{{ item.hotel.descriptionLocale(app.request.locale) }}</p>
  17.   {% endif %}
  18.   <span>{{ item.Area.getLocaleAreaName(app.request.locale) }}({{ item.Area.getLocaleName(app.request.locale) }})</span>
  19. </a>