templates/Slivki/mobile/sale/index.html.twig line 34

Open in your IDE?
  1. {% extends 'Slivki/mobile/base.html.twig' %}
  2. {% block styles %}
  3.     <link rel="stylesheet" href="/css/swiper/swiper.min.css" />
  4.     {{ parent() }}
  5. {% endblock %}
  6. {% block content %}
  7.     <input id="categoryID" type="hidden" value="{{ currentCategoryID }}"/>
  8.     <nav aria-label="breadcrumb">
  9.         <ol class="breadcrumb m-0 py-1 px-2 bg-white">
  10.             <li class="breadcrumb-item"><a href="{{ base_url }}">Главная</a></li>
  11.             {% if currentCategoryID > 0 %}
  12.                 {% if isChildOfVideoGuide is defined and isChildOfVideoGuide %}
  13.                     <li class="breadcrumb-item">
  14.                         <a href="{{ getURL("Slivki:Sale:category", videoguideCategory.category.getID()) }}">
  15.                             {{ videoguideCategory.category.getName() }}
  16.                         </a>
  17.                     </li>
  18.                 {% else %}
  19.                     <li class="breadcrumb-item"><a href="{{ base_url }}{{ path('sales') }}">Новости скидок</a></li>
  20.                 {% endif %}
  21.                 {% if parentCategory is defined %}
  22.                     <li class="breadcrumb-item"><a href="{{ getURL("Slivki:Sale:category", parentCategory.category.getID()) }}">{{ parentCategory.category.getName() }}</a></li>
  23.                 {% endif %}
  24.                 <li class="breadcrumb-item text-muted">{{ currentCategory.category.getName() }}</li>
  25.             {% else %}
  26.                 <li class="breadcrumb-item text-muted">Новости скидок</li>
  27.             {% endif %}
  28.         </ol>
  29.     </nav>
  30.     <div class="content-title alt-font">
  31.         <h1>{{ currentCategoryID > 0 ? currentCategory.category.getName() : 'Новости скидок' }}</h1>
  32.         ({{ currentCategoryID > 0 ? currentCategory.entityList|length : getActiveSalesCount() }})
  33.     </div>
  34.     {% if firstBanner is defined and firstBanner %}
  35.         {% include 'Slivki/mobile/banner/banner.html.twig' with {'banner': firstBanner} only %}
  36.     {% endif %}
  37.     {% if isVideoguideCategory is not defined or not isVideoguideCategory %}
  38.         <div id="mustBeFixedContainer">
  39.             <div id="mustBeFixed" class="py-1">
  40.                 <ul class="capsule-menu">
  41.                     {% apply spaceless %}
  42.                         {% for category in saleMenu %}
  43.                             <li>
  44.                                 <a href="{{ getURL("Slivki:Sale:category", category.category.getID()) }}" {{ category.category.getID() == currentCategoryID ? 'class="active"'}}>
  45.                                     {{ category.category.getName() }} <span>{{ category.category.getEntityCount() }}</span>
  46.                                 </a>
  47.                             </li>
  48.                         {% endfor %}
  49.                     {% endapply %}
  50.                 </ul>
  51.             </div>
  52.         </div>
  53.     {% else %}
  54.         {% include 'Slivki/mobile/sale/videoguide/menu.html.twig' %}
  55.     {% endif %}
  56.     <div class="px-2 mb-2">
  57.         {% if isVideoguideCategory is not defined or not isVideoguideCategory %}
  58.             {% include 'Slivki/mobile/sale/category_map.html.twig' %}
  59.         {% endif %}
  60.         {% if mainHotFeed is defined %}
  61.             <div id="mainHotFeed" class="px-1 position-relative">
  62.                 <h6 class="clearfix">
  63.                     <span class="blink text-slivki">·</span>
  64.                     <div class="d-inline-block alt-bold-font">ГОРЯЧАЯ ЛЕНТА</div>
  65.                 </h6>
  66.                 <div id="mainHotFeedSlider" class="swiper-container" data-offset="0" data-type="{{ constant('Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE') }}">
  67.                     <div class="swiper-wrapper">
  68.                         {{ mainHotFeed|raw }}
  69.                     </div>
  70.                     <div class="swiper-button swiper-button-prev"></div>
  71.                     <div class="swiper-button swiper-button-next"></div>
  72.                 </div>
  73.             </div>
  74.         {% endif %}
  75.         {% include 'Slivki/mobile/sale/category.html.twig' %}
  76.         {% if currentCategoryID == 0 %}
  77.             <img class="d-block my-3 mx-auto" id='saleCategoryListLoader' src='/images/image-preview-ajax-loader.gif' alt='Загрузка...'/>
  78.         {% endif %}
  79.     </div>
  80. {% endblock %}
  81. {% block popup %}
  82.     {{ parent() }}
  83.     {% if not app.user %}
  84.         {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  85.     {% endif %}
  86. {% endblock %}
  87. {% block javascripts %}
  88.     <script src="/js/swiper-js/swiper.min.js"></script>
  89.     <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
  90.     <script src="//mourner.github.io/simplify-js/simplify.js"></script>
  91.     {{ parent() }}
  92.     <script src="/mobile/js/sales.min.js?v={{ mobile_sales_js_version }}"></script>
  93. {% endblock %}