|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
{% extends 'base_catalog.html' %} |
|
|
|
|
{% load i18n %} |
|
|
|
|
{% load template_filters %} |
|
|
|
|
|
|
|
|
|
{% block bread_scrumbs %} |
|
|
|
|
<div class="bread-crumbs"> |
|
|
|
|
@ -25,4 +26,82 @@ |
|
|
|
|
|
|
|
|
|
{% block paginator %} |
|
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block popup%} |
|
|
|
|
|
|
|
|
|
{% if not request.COOKIES.popover_test1 %} |
|
|
|
|
|
|
|
|
|
{% with theme_ids=object.theme_ids %} |
|
|
|
|
{% if 32 in theme_ids %} |
|
|
|
|
{% 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 == 5 %} |
|
|
|
|
{% 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 %} |
|
|
|
|
{% else %} |
|
|
|
|
{% if 2 in theme_ids %} |
|
|
|
|
{% if False|random_social %} |
|
|
|
|
{% include 'client/popups/auto_modal.html' %} |
|
|
|
|
{% else %} |
|
|
|
|
{% include 'client/popups/auto_banner.html' %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endwith %} |
|
|
|
|
<script> |
|
|
|
|
$(function() { |
|
|
|
|
if ($('#expo-ad-popup').length > 0){ |
|
|
|
|
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 %} |
|
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|