Источник шаблона: website/front.html

{% extends "website/layout.html" %} {% load staticfiles %} {% block title %} Сантех - партнер {% endblock %} {% block description %} Сантех - партнер {% endblock %} {% block styles %} <link href="{% static 'website/css/page_front.css' %}" type="text/css" data-template-style="true" rel="stylesheet" /> <link href="{% static 'website/css/popup.css' %}" type="text/css" data-template-style="true" rel="stylesheet" /> {% endblock %} {% block scripts %} <script type="text/javascript" src="{% static 'website/js/page_front.js' %}"></script> {% endblock %} {% block content %} {% if new_items.count %} <div id="homeCatalog"> <div class="captionList"> <div id="captionCarousel"> <ul class="slideBox"> <li class="cItem"> <div class="caption selected"> <a href="#" >Новинка</a> </div> </li> </ul> </div> </div> <div class="ajaxContainer"> <div class="items productList"> {% for item in new_items %} <div class="item product sku" id="{{ item.id }}" data-product-id="{{ item.id }}" data-product-width="220" data-product-height="200" data-hide-measure="" data-price-code=""> <div class="tabloid"> {% include 'website/elements/markers.html' with item=item %} <div class="rating"> <i class="m" style="width:0%"></i> <i class="h"></i> </div> <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="406">Быстрый просмотр</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> <a href="#" class="addCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="" class="icon">В корзину</a> </div> </div> {% endfor %} <div class="clear"></div> </div> </div> </div> <br><br><br> {% endif %} {% if pop_items.count %} <div id="homeCatalog"> <div class="captionList"> <div id="captionCarousel"> <ul class="slideBox"> <li class="cItem"> <div class="caption selected"> <a href="#" >Популярные</a> </div> </li> </ul> </div> </div> <div class="ajaxContainer"> <div class="items productList"> {% for item in pop_items %} <div class="item product sku" id="{{ item.id }}" data-product-id="{{ item.id }}" data-product-width="220" data-product-height="200" data-hide-measure="" data-price-code=""> <div class="tabloid"> {% include 'website/elements/markers.html' with item=item %} <div class="rating"> <i class="m" style="width:0%"></i> <i class="h"></i> </div> <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="406">Быстрый просмотр</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> <a href="#" class="addCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="" class="icon">В корзину</a> </div> </div> {% endfor %} <div class="clear"></div> </div> </div> </div> <br><br><br> {% endif %} {% if dis_items.count %} <div id="homeCatalog"> <div class="captionList"> <div id="captionCarousel"> <ul class="slideBox"> <li class="cItem"> <div class="caption selected"> <a href="#" >Скидки</a> </div> </li> </ul> </div> </div> <div class="ajaxContainer"> <div class="items productList"> {% for item in dis_items %} <div class="item product sku" id="{{ item.id }}" data-product-id="{{ item.id }}" data-product-width="220" data-product-height="200" data-hide-measure="" data-price-code=""> <div class="tabloid"> {% include 'website/elements/markers.html' with item=item %} <div class="rating"> <i class="m" style="width:0%"></i> <i class="h"></i> </div> <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="406">Быстрый просмотр</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> <a href="#" class="addCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="" class="icon">В корзину</a> </div> </div> {% endfor %} <div class="clear"></div> </div> </div> </div> <br><br><br> {% endif %} <script type="text/javascript"> var offersProductParams = '{"CACHE_TYPE":"Y","CACHE_TIME":"3600000","PROP_NAME":"OFFERS","IBLOCK_TYPE":"catalog","IBLOCK_ID":"13","PICTURE_WIDTH":"220","PICTURE_HEIGHT":"200","PROP_VALUE":["25","26","27","28","29"],"ELEMENTS_COUNT":"10","SORT_PROPERTY_NAME":"SORT","SORT_VALUE":"ASC","COMPONENT_TEMPLATE":".default","~CACHE_TYPE":"Y","~CACHE_TIME":"3600000","~PROP_NAME":"OFFERS","~IBLOCK_TYPE":"catalog","~IBLOCK_ID":"13","~PICTURE_WIDTH":"220","~PICTURE_HEIGHT":"200","~PROP_VALUE":["25","26","27","28","29"],"~ELEMENTS_COUNT":"10","~SORT_PROPERTY_NAME":"SORT","~SORT_VALUE":"ASC","~COMPONENT_TEMPLATE":".default","NEXT_ELEMENTS_COUNT":-9}'; </script> {% endblock %} {% block content1 %} <div id="homeCatalog"> <div class="captionList"> <div id="captionCarousel"> <ul class="slideBox"> <li class="cItem"> <div class="caption selected"> <a href="#" data-name="OFFERS" data-group="25" data-page="1" data-sheet="N" class="getProductByGroup">Новинка</a> </div> </li> </ul> <a href="#" class="captionBtnLeft"></a> <a href="#" class="captionBtnRight"></a> </div> <script type="text/javascript"> $("#captionCarousel").dwCarousel({ leftButton: ".captionBtnLeft", rightButton: ".captionBtnRight", countElement: 5, resizeElement: true, resizeAutoParams: { 1920: 5, 1800: 4, 1200: 3, 1100: 2, 1023: 3, 700: 2, 500: 1 } }); </script> </div> <div class="ajaxContainer"> <div class="items productList"> {% for item in pop_items %} <div class="item product sku" id="{{ item.id }}" data-product-id="{{ item.id }}" data-product-width="220" data-product-height="200" data-hide-measure="" data-price-code=""> <div class="tabloid"> {% include 'website/elements/markers.html' with item=item %} <div class="rating"> <i class="m" style="width:0%"></i> <i class="h"></i> </div> <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="406">Быстрый просмотр</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> <a href="#" class="addCart" data-id="{{item.id}}"><img src="{% static 'website/img/incart.png' %}" alt="" class="icon">В корзину</a> </div> </div> {% endfor %} <div class="clear"></div> </div> </div> </div> <script type="text/javascript"> var offersProductParams = '{"CACHE_TYPE":"Y","CACHE_TIME":"3600000","PROP_NAME":"OFFERS","IBLOCK_TYPE":"catalog","IBLOCK_ID":"13","PICTURE_WIDTH":"220","PICTURE_HEIGHT":"200","PROP_VALUE":["25","26","27","28","29"],"ELEMENTS_COUNT":"10","SORT_PROPERTY_NAME":"SORT","SORT_VALUE":"ASC","COMPONENT_TEMPLATE":".default","~CACHE_TYPE":"Y","~CACHE_TIME":"3600000","~PROP_NAME":"OFFERS","~IBLOCK_TYPE":"catalog","~IBLOCK_ID":"13","~PICTURE_WIDTH":"220","~PICTURE_HEIGHT":"200","~PROP_VALUE":["25","26","27","28","29"],"~ELEMENTS_COUNT":"10","~SORT_PROPERTY_NAME":"SORT","~SORT_VALUE":"ASC","~COMPONENT_TEMPLATE":".default","NEXT_ELEMENTS_COUNT":-9}'; </script> {% endblock %}