From 9f38be46358e62f33ae2c556269a0223963edc26 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 10 Jun 2009 23:17:54 +0200 Subject: implement ads for archlinux.org as plugin --- extensions/ArchLinuxAds.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 extensions/ArchLinuxAds.php (limited to 'extensions/ArchLinuxAds.php') diff --git a/extensions/ArchLinuxAds.php b/extensions/ArchLinuxAds.php new file mode 100644 index 00000000..f95288da --- /dev/null +++ b/extensions/ArchLinuxAds.php @@ -0,0 +1,37 @@ + 'ArchLinuxAds', + 'version' => '1.0', + 'description' => 'Display ads on wiki.archlinux.org', + 'author' => 'Pierre Schmitz', + 'url' => 'http://www.archlinux.org' +); + +$wgHooks['SkinAfterBottomScripts'][] = 'ArchLinuxAds::addAds'; + + +class ArchLinuxAds { + +public static function addAds($skin, $text) { + $text .= '
+ + +
'; + + return true; +} + +} + +?> -- cgit v1.2.2