src/WebBundle/Resources/views/Home/_blogs.html.twig line 1

Open in your IDE?
  1. <div id="blogs" class="carousel-collection-block js-carousel-block swiper-container">
  2.     
  3.     <div class="carousel-controls">
  4.         <h2 class="carousel-name">
  5.             {% if is_mobile() and not is_tablet() %}
  6.                 <a href="{{ path('app_publications' ) }}">{{ 'footer_blogs' | trans }}</a>
  7.             {% else %}
  8.                 {{ 'footer_blogs' | trans }}&nbsp;
  9.                 <span class="carousel-number-status">
  10.                     <span class="carousel-number-current">
  11.                         <span data-first-slide>1</span> - <span data-last-slide>{{ publications.count < 8 ? publications.count : 8}}</span>
  12.                     </span>
  13.                     {# для финской локали предлоги отсутствуют, поэтому вместо of добавить пробелы, чтобы было заметно расстояние #}
  14.                     {% set local = te.request.get('_locale') %}
  15.                     {% if local == 'fi' %}
  16.                         &nbsp;&nbsp;&nbsp;
  17.                     {% else %}
  18.                         <span class="of">&nbsp;{{ 'of' | trans }}&nbsp;</span>
  19.                     {% endif %}
  20.                     <a href="{{ path('app_publications' ) }}" title="{{ 'main_all_blogs' | trans }}">{{ publications.count }}</a>
  21.                 </span>
  22.             {% endif %}
  23.         </h2>
  24.         <span class="material-icons prev slick-disabled hidden-xs" data-prev-show>
  25.             &#xE314;
  26.         </span>
  27.         <span class="material-icons next hidden-xs ladda-button" 
  28.               data-ajax-url="{{ path('app_publication_html_page', {page: 1}) }}"
  29.               data-style="zoom-in" 
  30.               data-spinner-color="#6890c5" 
  31.               data-next-show
  32.         >
  33.             <span class="ladda-label">&#xE315;</span>
  34.         </span>  
  35.     </div>
  36.   
  37.     <div class="slick-carousel pre-styled-carousel publications"
  38.             data-page-load="2"
  39.             data-total-slides="{{ publications.count }}"
  40.             data-type-carousel="blogs"
  41.     >
  42.         {% include '@Web/Publication/page.html.twig' with {'blogs': publications} %}
  43.     </div>
  44.     {#<span data-prev-show class="material-icons prev disabled hidden-xs swiper-button-prev">
  45.         &#xE314;
  46.     </span>
  47.     <span data-next-show class="material-icons next disabled hidden-xs swiper-button-next" data-ajax-url="{{ path('app_publication_html_page', { page: 1 }) }}">
  48.         &#xE315;
  49.     </span>#}
  50. </div>