diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-23 19:23:25 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-23 19:23:25 +0200 |
commit | 3329685beb28b8a487692b7fa147a23c492930c8 (patch) | |
tree | 93f0964d9ddca464d93027083cda1e0080b9ab3a /plugins/OpenX/OpenXPlugin.php | |
parent | 0b6cc7c33d5239bbc9f01c00d3fb8c00a3d6e4c7 (diff) |
* onPluginVersion added.
* i18n fix: use _m() in plugins, don't use _()
* some translator documentation added.
* superfluous whitespace removed.
Diffstat (limited to 'plugins/OpenX/OpenXPlugin.php')
-rw-r--r-- | plugins/OpenX/OpenXPlugin.php | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/plugins/OpenX/OpenXPlugin.php b/plugins/OpenX/OpenXPlugin.php index 3206e4c71..5d3bb2306 100644 --- a/plugins/OpenX/OpenXPlugin.php +++ b/plugins/OpenX/OpenXPlugin.php @@ -75,7 +75,6 @@ if (!defined('STATUSNET')) { * * @seeAlso UAPPlugin */ - class OpenXPlugin extends UAPPlugin { public $adScript = null; @@ -103,7 +102,6 @@ class OpenXPlugin extends UAPPlugin * * @return void */ - protected function showMediumRectangle($action) { $this->showAd($action, $this->mediumRectangle); @@ -116,7 +114,6 @@ class OpenXPlugin extends UAPPlugin * * @return void */ - protected function showRectangle($action) { $this->showAd($action, $this->rectangle); @@ -129,7 +126,6 @@ class OpenXPlugin extends UAPPlugin * * @return void */ - protected function showWideSkyscraper($action) { $this->showAd($action, $this->wideSkyscraper); @@ -142,7 +138,6 @@ class OpenXPlugin extends UAPPlugin * * @return void */ - protected function showLeaderboard($action) { $this->showAd($action, $this->leaderboard); @@ -156,7 +151,6 @@ class OpenXPlugin extends UAPPlugin * * @return void */ - protected function showAd($action, $zone) { $scr = <<<ENDOFSCRIPT @@ -211,4 +205,23 @@ ENDOFSCRIPT; } return true; } + + /** + * Add our version information to output + * + * @param array &$versions Array of version-data arrays + * + * @return boolean hook value + */ + function onPluginVersion(&$versions) + { + $versions[] = array('name' => 'OpenX', + 'version' => STATUSNET_VERSION, + 'author' => 'Evan Prodromou', + 'homepage' => 'http://status.net/wiki/Plugin:OpenX', + 'rawdescription' => + // TRANS: Plugin description. + _m('Plugin for <a href="http://www.openx.org/">OpenX Ad Server</a>.')); + return true; + } } |