Commit bd9450cc authored by Simon Welsh's avatar Simon Welsh

Only show the ad in the footer

parent 829791c5
......@@ -6,23 +6,14 @@ class :logs:sponsor extends :x:element {
bool foot = false;
protected function render() {
if ($this->:withAd) {
if ($this->:foot) {
$ad = <p>
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2032949232018859"
data-ad-slot="3717064928"></ins>
</p>;
} else {
$ad = <p>
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2032949232018859"
data-ad-slot="3856665720"></ins>
</p>;
}
$ad->appendChild(<script>(adsbygoogle = window.adsbygoogle || []).push({'{}'});</script>);
if ($this->:withAd && $this->:foot) {
$ad = <p>
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2032949232018859"
data-ad-slot="3717064928"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({'{}'});</script>
</p>;
} else {
$ad = <x:frag />;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment