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.
98 lines
3.1 KiB
98 lines
3.1 KiB
{% extends 'base_catalog.html' %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
|
|
{% block bread_scrumbs %}
|
|
<div class="bread-crumbs">
|
|
<a href="/">{% trans 'Главная страница' %}</a>
|
|
<a href="{{ object.catalog }}">{% trans 'Выставки' %}</a>
|
|
<a href="{{ object.catalog }}country/{{ object.country.url }}/">{{ object.country }}</a>
|
|
<a href="{{ object.catalog }}city/{{ object.city.url }}/">{{ object.city }}</a>
|
|
<strong>{{ object.name }}</strong>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|
|
{% block page_title %}
|
|
{% endblock %}
|
|
|
|
{% block content_list %}
|
|
{% if object.paid_new_id and object.paid_new.public %}
|
|
{% include 'client/includes/exposition/expo_paid.html' with exposition=object %}
|
|
{% else %}
|
|
{% include 'client/includes/exposition/exposition_object.html' with exposition=object %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block paginator %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block popup%}
|
|
|
|
{% if not request.COOKIES.popover_test1 %}
|
|
|
|
{% with theme_ids=object.theme_ids %}
|
|
{% if 32 in theme_ids %}
|
|
{% with r=False|random3 %}
|
|
{% if r == 0 %}
|
|
{% include 'client/popups/cemat_modal.html' %}
|
|
{% endif %}
|
|
{% if r == 1 %}
|
|
{% include 'client/popups/cemat_banner1.html' %}
|
|
{% endif %}
|
|
{% if r == 2 %}
|
|
{% include 'client/popups/cemat_banner2.html' %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% else %}
|
|
{% if 54 in theme_ids or 26 in theme_ids or 22 in theme_ids or 15 in theme_ids or 44 in theme_ids or 30 in theme_ids %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
<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};
|
|
$.ajax({
|
|
url: '/ajax/get_popover/',
|
|
data: sendData,
|
|
type: 'GET',
|
|
async: true,
|
|
success: function(data){
|
|
console.log(data);
|
|
}
|
|
});
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
});
|
|
</script>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|