*
* @seeAlso Location
*/
-
class BlankAdPlugin extends UAPPlugin
{
/**
*
* @return void
*/
-
protected function showMediumRectangle($action)
{
$action->element('img',
array('width' => 300,
'height' => 250,
- 'src' => common_path('plugins/BlankAd/redpixel.png')),
+ 'src' => $this->path('redpixel.png')),
'');
}
*
* @return void
*/
-
protected function showRectangle($action)
{
$action->element('img',
array('width' => 180,
'height' => 150,
- 'src' => common_path('plugins/BlankAd/redpixel.png')),
+ 'src' => $this->path('redpixel.png')),
'');
}
*
* @return void
*/
-
protected function showWideSkyscraper($action)
{
$action->element('img',
array('width' => 160,
'height' => 600,
- 'src' => common_path('plugins/BlankAd/redpixel.png')),
+ 'src' => $this->path('redpixel.png')),
'');
}
*
* @return void
*/
-
protected function showLeaderboard($action)
{
$action->element('img',
array('width' => 728,
'height' => 90,
- 'src' => common_path('plugins/BlankAd/redpixel.png')),
+ 'src' => $this->path('redpixel.png')),
'');
}
-}
\ No newline at end of file
+
+ function onPluginVersion(array &$versions)
+ {
+ $versions[] = array('name' => 'BlankAd',
+ 'version' => GNUSOCIAL_VERSION,
+ 'author' => 'Evan Prodromou',
+ 'homepage' => 'http://status.net/wiki/Plugin:BlankAdPlugin',
+ 'rawdescription' =>
+ // TRANS: Plugin description.
+ _m('Plugin for testing ad layout.'));
+ return true;
+ }
+}