Commit 664292fc authored by root's avatar root

Ads.

parent c5fd07f3
......@@ -9,6 +9,14 @@ class :logs:foot extends :x:element {
protected function render() {
$url = 'irc://' . $this->getAttribute('server') . '/' . substr($this->getAttribute('channel'), 1);
return <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>
<br />
These logs were automatically created by <b>{$this->getAttribute('nick')}</b> on <a href={$url}>{$this->getAttribute('server')}</a>.
This site is powered by <a href="http://logs.simon.geek.nz/source/">code</a> available under a <a href="http://logs.simon.geek.nz/LICENSE">BSD license</a>.
</p>;
......
......@@ -17,6 +17,7 @@ class :logs:head extends :x:element {
<meta name="robots" content={$this->getAttribute('robots')} />
<meta name="viewport" content="width=device-width, user-scalable=1" />
<link rel="stylesheet" type="text/css" href="logs.css?6" />
<script async="true" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>;
}
}
......@@ -19,7 +19,13 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
$body->appendChild(<logs:info>
<h2>IRC log for {date('j F Y', $time)}</h2>
</logs:info>);
$body->appendChild(<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-2032949232018859"
data-ad-slot="3856665720"></ins>);
$body->appendChild(<script>
(adsbygoogle = window.adsbygoogle || []).push({'{}'});
</script>);
$body->appendChild(<logs:timezone />);
$body->appendChild(<logs:logs stamp={$time} />);
......
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