custom/plugins/SasBlogModule/src/Resources/views/storefront/component/blog/newest-listing.html.twig line 1

Open in your IDE?
  1. {% block sas_element_blog_newest_listing_row %}
  2.     <div class="cms-news-full-listing-row js-listing-wrapper"
  3.          itemscope
  4.          itemtype="https://schema.org/ItemList">
  5.         {% if searchResult.total > 0 %}
  6.             <meta itemprop="numberOfItems" content="{{ searchResult.total }}">
  7.             {% block sas_element_blog_newest_listing_col %}
  8.                 <div class="row">
  9.                     {% for article in searchResult %}
  10.                         {% block sas_element_blog_newest_listing_box %}
  11.                             <div class="col-12 col-md-4 col-lg-3 my-4"
  12.                                  itemprop="itemListElement"
  13.                                  itemscope
  14.                                  itemtype="https://schema.org/ListItem">
  15.                                 <meta itemprop="position" content="{{ loop.index }}">
  16.                                 {% sw_include '@Storefront/storefront/component/blog/card/box.html.twig' %}
  17.                             </div>
  18.                         {% endblock %}
  19.                     {% endfor %}
  20.                 </div>
  21.             {% endblock %}
  22.         {% else %}
  23.             {% block sas_element_blog_newest_listing_col_empty %}
  24.                 <div class="cms-listing-col col-12">
  25.                     {% block sas_element_blog_newest_listing_col_empty_alert %}
  26.                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  27.                             type: 'info',
  28.                             content: 'sas-blog.search.emptyResult'|trans|sw_sanitize
  29.                         } %}
  30.                     {% endblock %}
  31.                 </div>
  32.             {% endblock %}
  33.         {% endif %}
  34.     </div>
  35. {% endblock %}