reklamalar single href

This commit is contained in:
merdan 2021-05-01 18:10:40 +05:00
parent 8cba20a907
commit 8ac9fd5368
2 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,14 @@
{% set reklama = group.adds.first %}
<a
{% if reklama.enable_stats and reklama.url !="#" %}
data-request="{{__SELF__}}::onRedirect"
data-request-data = '[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
{% if reklama.url %}
{% if reklama.enable_stats %}
data-request="{{__SELF__}}::onRedirect"
data-request-data = '[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
{% else %}
href="{{reklama.url}}"
target="_blank"
{% endif %}
class="{{class}}"
>
<img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}">
</a>

View File

@ -119,10 +119,9 @@ random = 0
<div class="main__sidebar-title">
ИНТЕРЕСНЫЕ ССЫЛКИ
</div>
{% component 'right_top' %}
{% component 'right_top' class = 'primary progressive replace' %}
{% component 'right_middle' %}
{% component 'right_bottom' %}
{% partial 'tags' %}
{% partial 'calendar' %}
</div>