src/Elements/Bundle/DemiFrontendBundle/Resources/views/Infrastructure/infrastructure-result.html.twig line 1

Open in your IDE?
  1. {% set isTeaserGrid = isTeaserGrid is defined ? isTeaserGrid : false %}
  2. {% if demi_hasKnpPaginator(infrastructureList) and infrastructureList.getTotalItemCount() > 0 and not isTeaserGrid %}
  3.     {{ include('@ElementsDemiFrontend/Includes/paging.html.twig', demi_getPagesArray(infrastructureList)|merge({
  4.         pagingClass: 'demi-infrastructure-paging demi-infrastructure-paging--top',
  5.         pageLinkClass: 'js-demi-ajax-form__link'
  6.     })) }}
  7. {% elseif not isTeaserGrid %}
  8.     <div class="demi-infrastructure-paging demi-infrastructure-paging--top">
  9.         <div class="row align-items-center ">
  10.             <div class="col has-paging--count">
  11.                 <div class="row row--gutter-with-10">
  12.                     <div class="col-md-auto text-nowrap">
  13.                         {{ infrastructureList.getTotalItemCount() }} {{ infrastructureList.getTotalItemCount()== 1 ? 'demi.infrastructure.paging.result' : 'demi.infrastructure.paging.results' | trans }}
  14.                     </div>
  15.                 </div>
  16.             </div>
  17.         </div>
  18.     </div>
  19. {% endif %}
  20. <div class="row row--same-height row--has-demi-infrastructure-teaser demi-infrastructure-overview-teaser-list">
  21.     {% if infrastructureList.getTotalItemCount() <= 0 and not editmode %}
  22.         <div class="demi-infrastructure-overview-teaser-list__item {{ colClass is defined ? colClass :  '' }}">
  23.             <div class="alert alert-danger wysiwyg">
  24.                 {{ demiConfigurationHelper().getInfrastructureNoResultText() | raw }}
  25.             </div>
  26.         </div>
  27.     {% endif %}
  28.     {% for key,item in infrastructureList %}
  29.         {% set perPage = pimcore_numeric('perPage').number ?: 12 %}
  30.         {% if key < perPage %}
  31.             {# no more json LD data for additional service teaser overview WF_1468733 #}
  32.             {# do jsonLd().add("infrasructure" ~ key, demi_infrastructureGetJsonLdData(item)) #}
  33.         {% endif %}
  34.         {{ include('@ElementsDemiFrontend/Infrastructure/includes/teaser.html.twig', {
  35.             'item' : item,
  36.             'teaserColClass' : 'col-6 col-md-3 demi-infrastructure-overview-teaser-list__item',
  37.             'open' : demi_infrastructureGetIsOpened(item)
  38.         }) }}
  39.     {% endfor %}
  40. </div>
  41. {% if demi_hasKnpPaginator(infrastructureList) and infrastructureList.getTotalItemCount() > 0 and not isTeaserGrid %}
  42.     {{ include('@ElementsDemiFrontend/Includes/paging.html.twig', demi_getPagesArray(infrastructureList)|merge({
  43.         pagingClass: 'demi-infrastructure-paging demi-infrastructure-paging--bottom',
  44.         pageLinkClass: 'js-demi-ajax-form__link'
  45.     })) }}
  46. {% elseif not isTeaserGrid %}
  47.     <div class="demi-infrastructure-paging demi-infrastructure-paging--bottom">
  48.         <div class="row align-items-center ">
  49.             <div class="col has-paging--count">
  50.                 <div class="row row--gutter-with-10">
  51.                     <div class="col-md-auto text-nowrap">
  52.                         {{ infrastructureList.getTotalItemCount() }} {{ infrastructureList.getTotalItemCount()== 1 ? 'demi.infrastructure.paging.result' : 'demi.infrastructure.paging.results' | trans }}
  53.                     </div>
  54.                 </div>
  55.             </div>
  56.         </div>
  57.     </div>
  58. {% endif %}