123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class BlankAdPlugin extends UAPPlugin
- {
- const PLUGIN_VERSION = '2.0.0';
-
- protected function showMediumRectangle($action)
- {
- $action->element('img',
- array('width' => 300,
- 'height' => 250,
- 'src' => $this->path('redpixel.png')),
- '');
- }
-
- protected function showRectangle($action)
- {
- $action->element('img',
- array('width' => 180,
- 'height' => 150,
- 'src' => $this->path('redpixel.png')),
- '');
- }
-
- protected function showWideSkyscraper($action)
- {
- $action->element('img',
- array('width' => 160,
- 'height' => 600,
- 'src' => $this->path('redpixel.png')),
- '');
- }
-
- protected function showLeaderboard($action)
- {
- $action->element('img',
- array('width' => 728,
- 'height' => 90,
- 'src' => $this->path('redpixel.png')),
- '');
- }
- function onPluginVersion(array &$versions)
- {
- $versions[] = array('name' => 'BlankAd',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Evan Prodromou',
- 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BlankAdPlugin',
- 'rawdescription' =>
-
- _m('Plugin for testing ad layout.'));
- return true;
- }
- }
|