Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "shop/base.html" %}
- {% load gshop_extras %}
- {% load gshop %}
- {% load i18n %}
- {% load i18n_extra %}
- {% block title %}
- {% if view_type == "category" %}
- {% if seo_page_text and seo_page_text_meta_title %}
- {{ seo_page_text_meta_title }}
- {% elif meta_title %}
- {{ meta_title }}
- {% else %}
- {% get_field_translate object_item "meta_title" LANGUAGE_CODE %}
- {% endif %}
- {% elif seo_page_text %}
- {% get_field_translate seo_page_text "meta_title" LANGUAGE_CODE %}
- {% else %}
- {% trans section|capfirst %}
- {% endif %}
- {% if page_num %}
- {% if page_num != 1 %} - {% if LANGUAGE_CODE == 'ru' %}страница{% else %}сторінка{% endif %} {{ page_num }}{% endif %}
- {% endif %}
- {% endblock %}
- {% block meta %}
- {% if view_type == "category" %}
- {% if seo_page_text and seo_page_text_meta_keywords %}
- {% if page_num != 1 %}
- <meta name="keywords" content="{{ seo_page_text_meta_keywords }} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="keywords" content="{{ seo_page_text_meta_keywords }}" />
- {% endif %}
- {% elif meta_keywords %}
- {% if page_num != 1 %}
- <meta name="keywords" content="{{ meta_keywords }} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="keywords" content="{{ meta_keywords }}" />
- {% endif %}
- {% else %}
- {% if page_num != 1 %}
- <meta name="keywords" content="{% get_field_translate object_item "meta_keywords" LANGUAGE_CODE %} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="keywords" content="{% get_field_translate object_item "meta_keywords" LANGUAGE_CODE %}" />
- {% endif %}
- {% endif %}
- {% if seo_page_text and seo_page_text_meta_description %}
- {% if page_num != 1 %}
- <meta name="description" content="{{ seo_page_text_meta_description }} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="description" content="{{ seo_page_text_meta_description }}" />
- {% endif %}
- {% elif meta_description %}
- {% if page_num != 1 %}
- <meta name="description" content="{{ meta_description }} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="description" content="{{ meta_description }}" />
- {% endif %}
- {% else %}
- {% if page_num != 1 %}
- <meta name="description" content="{% get_field_translate object_item "meta_description" LANGUAGE_CODE %} {% trans 'страница' %} {{ page_num }}" />
- {% else %}
- <meta name="description" content="{% get_field_translate object_item "meta_description" LANGUAGE_CODE %}" />
- {% endif %}
- {% endif %}
- {% else %}
- {% if page_num == 1 %}
- <meta name="keywords" content="{% get_field_translate seo_page_text "meta_keywords" LANGUAGE_CODE %}" />
- <meta name="description" content="{% get_field_translate seo_page_text "meta_description" LANGUAGE_CODE %}" />
- {% else %}
- {# Fix product keywords and description #}
- {% if page_num %}
- <meta name="keywords" content="{% get_field_translate seo_page_text "meta_keywords" LANGUAGE_CODE %}, {% if LANGUAGE_CODE == 'ru' %}страница{% else %}сторінка{% endif %} {{ page_num }}" />
- <meta name="description" content="{% get_field_translate seo_page_text "meta_description" LANGUAGE_CODE %} {% if LANGUAGE_CODE == 'ru' %}Cтраница{% else %}Сторінка{% endif %} {{ page_num }}" />
- {% else %}
- <meta name="keywords" content="{% get_field_translate seo_page_text "meta_keywords" LANGUAGE_CODE %}" />
- <meta name="description" content="{% get_field_translate seo_page_text "meta_description" LANGUAGE_CODE %}" />
- {% endif %}
- {% endif %}
- {% endif %}
- {% if PREVIOUS %}
- {% if PREVIOUS == 1 %}
- <link rel="prev" href="https://paniyanovska.ua{{ path_redirect }}">
- {% else %}
- <link rel="prev" href="https://paniyanovska.ua{{ path_redirect }}page-{{ PREVIOUS }}/">
- {% endif %}
- {% endif %}
- {% if NEXT %}
- <link rel="next" href="https://paniyanovska.ua{{ path_redirect }}page-{{ NEXT }}/">
- {% endif %}
- {% if show_noindex_tag %}
- <meta name="robots" content="noindex, nofollow" />
- {% endif %}
- {% endblock %}
- {% block body %}
- {% block body__breadcrumbs %}
- {{ block.super }}
- {% endblock body__breadcrumbs %}
- {% block content__seo %}
- {% endblock content__seo %}
- {% block left_sidebar %}
- {% endblock left_sidebar %}
- {% block content %}
- <div id="content" class="col-sm-9 wrapper-product">
- <div id="content-inner" class="row">
- <div class="view-product-list view-catalog">
- <div class="view-content row clearfix mobile-change--row">
- {% block content__content %}
- {% for product in object_list %}
- {% include "shop/parts/product.html" with object=product %}
- {% endfor %}
- {% endblock content__content %}
- </div>
- </div>
- </div>
- {% include 'paginator.html' %}
- </div>
- {% endblock content %}
- {% block body__top_bottom %}
- {% endblock %}
- {% block body__bottom %}
- <div id="sidebar-bottom" class="inactive">
- {% if view_type == "category" and object_list %}
- {% if choosen_filter %}
- {% if seo_page_text and seo_page_text_bottom and page_num == 1 %}
- <div class="sidebar-inner">
- <div class="category-description">
- <div class='sidebar-inner__all-text'>
- {{ seo_page_text_bottom|safe }}
- </div>
- <div class="btn is-more-text">{% trans "Read more" %}</div>
- <div class="btn is-minimize-text" style="display: none;">{% trans 'Свернуть' %}</div>
- </div>
- </div>
- {% endif %}
- {% elif page_num == 1 and object_list %}
- <div class="sidebar-inner">
- <div class="category-description">
- <div class='sidebar-inner__all-text'>
- {% get_field_translate object_item "seo_bottom_text" LANGUAGE_CODE %}
- </div>
- <div class="btn is-more-text">{% trans "Read more" %}</div>
- <div class="btn is-minimize-text" style="display: none;">{% trans 'Свернуть' %}</div>
- </div>
- </div>
- {% endif %}
- {% elif view_type == "section" and object_list %}
- {% if seo_page_text and page_num == 1 %}
- <div class="sidebar-inner">
- <div class="category-description">
- <div class='sidebar-inner__all-text'>
- {% get_field_translate seo_page_text "bottom" LANGUAGE_CODE %}
- </div>
- <div class="btn is-more-text">{% trans "Read more" %}</div>
- <div class="btn is-minimize-text" style="display: none;">{% trans 'Свернуть' %}</div>
- </div>
- </div>
- {% endif %}
- {% elif seo_page_text and page_num == 1 and object_list %}
- <div class="sidebar-inner">
- <div class="category-description">
- <div class='sidebar-inner__all-text'>
- {% get_field_translate seo_page_text "bottom" LANGUAGE_CODE %}
- </div>
- <div class="btn is-more-text">{% trans "Read more" %}</div>
- <div class="btn is-minimize-text" style="display: none;">{% trans 'Свернуть' %}</div>
- </div>
- </div>
- {% endif %}
- </div>
- {% endblock body__bottom %}
- {% endblock body %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement