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.
275 lines
9.8 KiB
275 lines
9.8 KiB
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
{% 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]-->
|
|
<!--if IE 8><script src="js/selectivizr-min.js"></script><![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" />
|
|
|
|
{% if request.GET.debug == '1' %}
|
|
<link rel="stylesheet" href="{% static 'client/css/vendor.css' %}">
|
|
{% else %}
|
|
<link rel="stylesheet" href="{% static 'client/css_min/vendor.min.css' %}">
|
|
{% endif %}
|
|
|
|
|
|
{% if request.GET.debug == '1' %}
|
|
<link rel="stylesheet" href="{% static 'client/css/main.css' %}">
|
|
{% else %}
|
|
<link rel="stylesheet" href="{% static 'client/css_min/main.min.css' %}">
|
|
{% endif %}
|
|
<link rel="stylesheet" href="{% static 'client/lib/font-awesome-4.3.0/css/font-awesome.min.css' %}">
|
|
{% block styles %}
|
|
{% endblock %}
|
|
<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>
|
|
{% if request.GET.debug == '1' %}
|
|
<script src="{% static 'client/js/_modules/block.common.js' %}"></script>
|
|
{% else %}
|
|
<script src="{% static 'client/js_min/_modules/block.common.min.js' %}"></script>
|
|
{% endif %}
|
|
<script type="text/javascript">
|
|
EXPO.common.init({
|
|
activeClass:"active",
|
|
errMessageClass:'err-message-box',
|
|
addCalendarClass:"addcalendar",
|
|
removeCalendarClass:"removecalendar",
|
|
addCalendarText:"{% trans 'добавить в календарь' %}",
|
|
removeCalendarText:"{% trans 'Убрать из календаря' %}",
|
|
loginModalId:'pw-login',
|
|
registerFormId:'reg_form',
|
|
successRegisterId:'pw-reg-complete',
|
|
resendLetterClass:'resend-letter',
|
|
resendLetterUrl:'/registration/reply/',
|
|
requiredClass:"required",
|
|
errorClass:"err",
|
|
socialFormId:"social_form",
|
|
staticValidation:{
|
|
errorClass:'error-field',
|
|
blobClass:'error-blob',
|
|
containerClass:'validate-field'
|
|
},
|
|
httpFormIds:['social_form','web_page_form'],
|
|
seoLinksClass : 'link-encode',
|
|
dataKey:'data-type',
|
|
socialInputMask:['http://','https://']
|
|
});
|
|
</script>
|
|
<!-- Yandex.Metrika counter -->
|
|
<script type="text/javascript">
|
|
(function (d, w, c) {
|
|
(w[c] = w[c] || []).push(function() {
|
|
try {
|
|
w.yaCounter21606697 = new Ya.Metrika(
|
|
{id:21606697, webvisor:true, clickmap:true, trackLinks:true, accurateTrackBounce:true}
|
|
);
|
|
} catch(e) { }
|
|
});
|
|
var n = d.getElementsByTagName("script")[0],
|
|
s = d.createElement("script"),
|
|
f = function ()
|
|
{ n.parentNode.insertBefore(s, n); }
|
|
;
|
|
s.type = "text/javascript";
|
|
s.async = true;
|
|
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
|
|
if (w.opera == "[object Opera]")
|
|
{ d.addEventListener("DOMContentLoaded", f, false); }
|
|
else
|
|
{ f(); }
|
|
})(document, window, "yandex_metrika_callbacks");
|
|
</script>
|
|
<noscript><div><img src="//mc.yandex.ru/watch/21606697" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
|
<!-- /Yandex.Metrika counter -->
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function()
|
|
{ (i[r].q=i[r].q||[]).push(arguments)}
|
|
,i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-3151423-1', 'auto');
|
|
ga('send', 'pageview');
|
|
</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]-->
|
|
{% comment %}
|
|
<!-- Английский вариант текста для 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>
|
|
{% endcomment %}
|
|
<div class="page-wrap">
|
|
{% block header %}
|
|
{% include 'client/includes/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 'client/includes/footer.html' %}
|
|
{% endblock %}
|
|
</div>
|
|
<div class="popups-wrap" id="main-popup-wrap">
|
|
{% if not user.is_authenticated %}
|
|
{% include 'client/popups/login.html' %}
|
|
{% include 'client/popups/register.html' %}
|
|
{% include 'client/popups/reg_send.html' %}
|
|
|
|
{% endif %}
|
|
|
|
{% include 'client/popups/callback.html' %}
|
|
{% block popup_banner %}
|
|
{% if not request.COOKIES.popover_test1 %}
|
|
{% if theme_for_filter %}
|
|
|
|
|
|
{% if theme_for_filter.id == 2 %}
|
|
{% if False|random_social %}
|
|
{% include 'client/popups/auto_modal.html' %}
|
|
{% else %}
|
|
{% include 'client/popups/auto_banner.html' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if theme_for_filter.id == 54 or theme_for_filter.id == 26 or theme_for_filter.id == 22 or theme_for_filter.id == 15 or theme_for_filter.id == 44 or theme_for_filter.id == 30 %}
|
|
{% with r=False|random3 %}
|
|
{% if r == 1 %}
|
|
{% include 'client/popups/cemat_modal.html' %}
|
|
{% else %}
|
|
{% if r == 2 %}
|
|
{% include 'client/popups/cemat_banner1.html' %}
|
|
{% else %}
|
|
{% include 'client/popups/cemat_banner2.html' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
|
|
{% if theme_for_filter.id == 32 %}
|
|
{% with r=False|random5 %}
|
|
{% if r == 1 %}
|
|
{% include 'client/popups/auto_modal.html' %}
|
|
{% endif %}
|
|
|
|
{% if r == 2 %}
|
|
{% include 'client/popups/auto_banner.html' %}
|
|
{% endif %}
|
|
{% if r == 3 %}
|
|
{% include 'client/popups/cemat_modal.html' %}
|
|
{% endif %}
|
|
{% if r == 4 %}
|
|
{% include 'client/popups/cemat_banner1.html' %}
|
|
{% endif %}
|
|
{% if r == 0 %}
|
|
{% include 'client/popups/cemat_banner2.html' %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
|
|
|
|
<script>
|
|
$(function() {
|
|
if ($('#expo-ad-popup').length > 0){
|
|
$('#expo-form-popup').on('submit', function(e){
|
|
e.preventDefault();
|
|
var link = $('#expo-form-popup').attr('action');
|
|
|
|
window.location = link;
|
|
});
|
|
|
|
setTimeout(function(){
|
|
$.fancybox.open(
|
|
[{href: '#expo-ad-popup'}],
|
|
{}
|
|
);
|
|
var rdr = $('#expo-ad-popup').attr('data-rdr');
|
|
sendData = {'rdr': rdr};
|
|
console.log(rdr);
|
|
$.ajax({
|
|
url: '/ajax/get_popover/',
|
|
data: sendData,
|
|
type: 'GET',
|
|
async: true,
|
|
success: function(data){
|
|
console.log(data);
|
|
}
|
|
});
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
|
|
});
|
|
</script>
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{# 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 %}
|
|
{% if request.GET.debug == '1' %}
|
|
<script src="{% static 'client/js/_modules/block.registration.completion.js' %}"></script>
|
|
{% else %}
|
|
<script src="{% static 'client/js_min/_modules/block.registration.completion.min.js' %}"></script>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% block popup %}
|
|
{% endblock %}
|
|
</div>
|
|
{% block photogallery %}
|
|
{% endblock %}
|
|
|
|
{# js libs #}
|
|
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
|
|
{% if request.GET.debug == '1' %}
|
|
<script src="{% static 'client/js/vendor.js' %}"></script>
|
|
{% else %}
|
|
<script src="{% static 'client/js_min/vendor.min.js' %}"></script>
|
|
{% endif %}
|
|
<div id="wait-ajax" class="wait-ajax" style="display:none;"><img src="{% static 'client/img/ajax-loader.gif' %}" alt=""/></div>
|
|
</body>
|
|
|
|
|