fix sukebei condition (#1569)
* fix sukebei condition * put top ad into a div
Cette révision appartient à :
Parent
79b05a8a84
révision
2ec6eaab9d
2 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -54,7 +54,7 @@
|
|||
<div class="content container center">
|
||||
{{ yield infos()}}
|
||||
{{ yield errors()}}
|
||||
{{ yield ad_wide(Type=AdType, ID=AdID) }}
|
||||
<div>{{ yield ad_wide(Type=AdType, ID=AdID) }}</div>
|
||||
{{ block content_body_base() }}{{end}}
|
||||
</div>
|
||||
{{ block mascot() }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{block ad_wide(Type=0, ID=0)}}
|
||||
{{ if !kilo_strcmp(URL.String(), "/mod", 4, 1) }}
|
||||
{{if Type < 4}}
|
||||
{{ if Sukebei }}
|
||||
{{ if Sukebei() }}
|
||||
<a href="https://jlist.com/category/adult-corner?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img class="jl-w" src="/img/Jlist/Onahole_728x90.jpg"></a>
|
||||
{{else}}
|
||||
{{ if ID == 0}} <a href="https://jlist.com/category/games-computers?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img class="jl-w" src="/img/Jlist/Games_728x90.jpg"></a> {{ end }}
|
||||
|
@ -15,7 +15,7 @@
|
|||
{{end}}
|
||||
{{block ad_cube(ID=0)}}
|
||||
{{ if !kilo_strcmp(URL.String(), "/mod", 4, 1) }}
|
||||
{{ if Sukebei }}
|
||||
{{ if Sukebei() }}
|
||||
<a href="https://jlist.com/category/adult-corner?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img class="jl-c" src="/img/Jlist/Onahole_300x250.jpg"></a>
|
||||
{{else}}
|
||||
{{ if ID == 0}} <a href="https://jlist.com/category/games-computers?utm_source=NS&utm_medium=Nyaa&utm_campaign=sep17"><img class="jl-c" src="/img/Jlist/Games_300x250.jpg"></a> {{ end }}
|
||||
|
|
Référencer dans un nouveau ticket