You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

142 lines
5.1 KiB

{% load static %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% comment %}
This template include basic anf main styles and js files,
block with header and footer, which same in all pages,
register, login, search popups
blocks for add or change: title(title), styles(style), header(header), footer(footer) banners(header_banner),
scripts(script), popups(popup) and blocks: main_part, top, search, catalog, announces, partners, services
head with title block, style block
{% endcomment %}
<!DOCTYPE html>
<!--[if lt IE 8]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
{% include 'includes/meta.html' %}
<link rel="icon" href="{% static 'client/img/favicon.ico' %}" type="image/x-icon" />
<link rel="shortcut icon" href="{% static 'client/img/favicon.ico' %}" type="image/x-icon" />
<link rel="stylesheet" href="{% static 'client/css/app.css' %}">
<link rel="stylesheet" href="{% static 'client/css/main.css' %}">
<script src="{% static 'client/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js' %}"></script>
<script src="{% static 'client/js/vendor/jquery-1.10.1.min.js' %}"></script>
<script src="{% static 'client/js/jquery-ui-1.10.4.custom.min.js' %}" type="text/javascript"></script>
<script src="{% static 'client/js/_modules/block.common.js' %}"></script>
<!--if IE 8><script src="js/selectivizr-min.js"></script><![endif]-->
{% if not request.user.is_anonymous %}
{% if not request.user.url %}
<link rel="stylesheet" href="{% static 'client/css/select2.css' %}">
{% endif %}
{% endif %}
<!-- extra styles -->
{% block style %}
{% endblock %}
<script type="text/javascript">
EXPO.common.init({
addCalendarClass:"addcalendar",
removeCalendarClass:"removecalendar",
addCalendarText:"{% trans 'добавить в календарь' %}",
removeCalendarText:"{% trans 'Убрать из календаря' %}",
loginModalId:'pw-login',
staticValidation:{
errorClass:'error-field',
blobClass:'error-blob',
containerClass:'validate-field'
}
});
</script>
</head>
<body {% block body_class %}{% endblock %}>
<!--[if lt IE 8]>
<p class="chromeframe">Вы используете <strong>устаревший</strong> браузер. Пожалуйста, <a href="http://browsehappy.com/">обновите его</a> или <a href="http://www.google.com/chromeframe/?redirect=true">активируйте Google Chrome Frame</a>, чтобы расширить возможности вашего браузера.</p>
<![endif]-->
<!-- Английский вариант текста для p.chromeframe
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
-->
<div class="page-wrap">
{% block header %}
{% include 'header.html' %}
{% endblock %}
{% block main_part %}
{% endblock %}
{% block top %}
{% endblock %}
{% block search %}
{% endblock %}
{% block catalog %}
{% endblock %}
{% block announces %}
{% endblock %}
{% block partners %}
{% endblock %}
{% block services %}
{% endblock %}
{% block footer %}
{% include 'footer.html' %}
{% endblock %}
</div>
<div class="popups-wrap">
{% if not user.is_authenticated %}
{% include 'client/popups/login.html' %}
{% include 'client/popups/register.html' %}
{% include 'client/popups/reg_send.html' %}
{% endif %}
{% comment "Убрал т.к. функционал диалоговых окон расширенного поиска переносится в catalog_search.html" %}
{% include 'client/popups/theme.html' %}
{% if search_form.area %}
{% include 'client/popups/place.html' with search_form=search_form search_action=search_action %}
{% endif %}
{% if search_form.fr %}
{% with search_form=search_form search_action=search_action type=type%}
{% include 'client/popups/period.html' %}
{% endwith %}
{% endif %}
{% endcomment %}
{% include 'client/popups/callback.html' %}
{# if user doesnt have url- show form #}
{% if not request.user.is_anonymous %}
{% if not request.user.url %}
{% include 'client/popups/user_information.html' with form=reg_complete %}
{% endif %}
{% endif %}
{% block popup %}
{% endblock %}
</div>
{% block photogallery %}
{% endblock %}
<!-- scripts -->
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<!--vendor scripts concatenated-->
<script type="text/javascript" src="{% static 'client/js/min/app.min.js' %}"></script>
<div id="wait-ajax" class="wait-ajax" style="display:none;"><img src="{% static 'client/img/ajax-loader.gif' %}" alt=""/></div>
</body>