Add popunder ads based on file size
This commit is contained in:
@@ -113,7 +113,20 @@
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Other.AdUnderType 1}}
|
||||
{{ if eq .Other.AdPopupType 1 }}
|
||||
<script data-cfasync="false" type="text/javascript" async src="//depirsmandk5.com/t/9/fret/meow4/1846775/brt.js"></script>
|
||||
{{ else if eq .Other.AdPopupType 2 }}
|
||||
<script>
|
||||
window.addEventListener("load", () => {
|
||||
(function(s,u,z,p){
|
||||
s.src=u,s.setAttribute('data-zone',z),p.appendChild(s);
|
||||
})(
|
||||
document.createElement('script'),
|
||||
'https://iclickcdn.com/tag.min.js',
|
||||
3750089,
|
||||
document.body||document.documentElement,
|
||||
)
|
||||
})
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@@ -143,13 +143,13 @@
|
||||
{{ if and .Other.FileAdsEnabled .Other.UserAdsEnabled }}
|
||||
{{ template "banner_ads" . }}
|
||||
{{ else if not .Other.UserAdsEnabled }}
|
||||
<div style="text-align: center; line-height: 1.3em; font-size: 13px;">
|
||||
Thank you for supporting pixeldrain!
|
||||
</div>
|
||||
<div style="text-align: center; line-height: 1.3em; font-size: 13px;">
|
||||
Thank you for supporting pixeldrain!
|
||||
</div>
|
||||
{{ else if not .Other.FileAdsEnabled }}
|
||||
<div style="text-align: center; line-height: 1.3em; font-size: 13px;">
|
||||
The uploader of this file disabled advertisements. You can do the same for <a href="/#pro">only €2 per month</a>!
|
||||
</div>
|
||||
<div style="text-align: center; line-height: 1.3em; font-size: 13px;">
|
||||
The uploader of this file disabled advertisements. You can do the same for <a href="/#pro">only €2 per month</a>!
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user