Источник шаблона: website/elements/footer-tabs.html

{% load staticfiles %} {% if footer_tab_items %} <div class="footer_items_tabs__header"> <h4><a href="{{ footer_tab_url }}">{{ footer_tab_title }}</a></h4> </div> <div id="footerTabs"> <div class="wrapper"> <div class="items"> <div class="tab item"> <div id="topProduct"> <div class="wrap"> <ul class="slideBox productList"> {% for item in footer_tab_items %} <li> <div class="item product" data-price-code="BASE"> <div class="tabloid"> {% include 'website/elements/markers.html' with item=item %} <a href="{{item.get_url}}" class="picture"> <img src="{% if item.photos.first %} {{ item.photos.first.image_thumb_b_url }} {% else %} {% static 'website/img/empty.png' %} {% endif %}" alt="{{ item.name }}"> {% comment %}<span class="getFastView" data-id="{{item.id}}">Быстрый просмотр</span>{% endcomment %} </a> <a href="{{item.get_url}}" class="name"><span class="middle">{{ item.name }}</span></a> <a class="price">{{ item.get_actual_price }} ₽ <span class="measure"> / шт</span></a> </div> </div> </li> {% endfor %} </ul> <a href="#" class="topBtnLeft"></a> <a href="#" class="topBtnRight"></a> </div> </div> <script> $("#topProduct").dwCarousel({ leftButton: ".topBtnLeft", rightButton: ".topBtnRight", countElement: 8, resizeElement: true, resizeAutoParams: { 1920: 6,1700: 5,1500: 4,1200: 3,850: 2 } }); </script> </div> </div> </div> </div> {% endif %}