reeklama url

This commit is contained in:
merdan 2021-05-24 12:44:35 +05:00
parent a5bfbcde97
commit 5cd319ab8f
2 changed files with 10 additions and 5 deletions

View File

@ -13,9 +13,12 @@
</button> </button>
<div class="partnerSlider__inner"> <div class="partnerSlider__inner">
{% for reklama in __SELF__.group.adds %} {% for reklama in __SELF__.group.adds %}
<a class="partnerSlider__item" {% if reklama.enable_stats and reklama.url !="#" %} <a class="partnerSlider__item" {% if reklama.enable_stats and reklama.url %}
data-request="{{__SELF__}}::onRedirect" data-request-data='[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]' {% data-request="{{__SELF__}}::onRedirect" data-request-data='[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
endif %}> {% else %}
href="{{reklama.url|'#'}}" target="_blank"
{% endif %}
>
<img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}"> <img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}">
</a> </a>
{% endfor %} {% endfor %}
@ -121,4 +124,4 @@
// ================================================ // ================================================
</script> </script>
{% endput %} {% endput %}
{% endif %} {% endif %}

View File

@ -2,9 +2,11 @@
<div class="advertisiment_{{__SELF__}}"> <div class="advertisiment_{{__SELF__}}">
{% for reklama in __SELF__.group.adds %} {% for reklama in __SELF__.group.adds %}
<a class="advertisiment__item" <a class="advertisiment__item"
{% if reklama.enable_stats and reklama.url !="#" %} {% if reklama.enable_stats and reklama.url %}
data-request="{{__SELF__}}::onRedirect" data-request="{{__SELF__}}::onRedirect"
data-request-data = '[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]' data-request-data = '[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
{% else %}
href="{{reklama.url|'#'}}" target="_blank"
{% endif %} {% endif %}
> >
<img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}"> <img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}">