*
* @seeAlso UAPPlugin
*/
-
class OpenXPlugin extends UAPPlugin
{
public $adScript = null;
*
* @return void
*/
-
protected function showMediumRectangle($action)
{
$this->showAd($action, $this->mediumRectangle);
*
* @return void
*/
-
protected function showRectangle($action)
{
$this->showAd($action, $this->rectangle);
*
* @return void
*/
-
protected function showWideSkyscraper($action)
{
$this->showAd($action, $this->wideSkyscraper);
*
* @return void
*/
-
protected function showLeaderboard($action)
{
$this->showAd($action, $this->leaderboard);
*
* @return void
*/
-
protected function showAd($action, $zone)
{
$scr = <<<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;
+ }
}
*/
function title()
{
+ // TRANS: Page title for OpenX admin panel.
return _m('TITLE', 'OpenX');
}
*/
function getInstructions()
{
+ // TRANS: Instructions for OpenX admin panel.
return _m('OpenX settings for this StatusNet site');
}
$this->out->elementStart('ul', 'form_data');
$this->li();
$this->input('adScript',
+ // TRANS: Form label in OpenX admin panel.
_m('Ad script URL'),
+ // TRANS: Tooltip for form label in OpenX admin panel.
_m('Script URL'),
'openx');
$this->unli();
$this->li();
$this->input('mediumRectangle',
+ // TRANS: Form label in OpenX admin panel. Refers to advertisement format.
_m('Medium rectangle'),
+ // TRANS: Tooltip for form label in OpenX admin panel. Refers to advertisement format.
_m('Medium rectangle zone'),
'openx');
$this->unli();
$this->li();
$this->input('rectangle',
+ // TRANS: Form label in OpenX admin panel. Refers to advertisement format.
_m('Rectangle'),
+ // TRANS: Tooltip for form label in OpenX admin panel. Refers to advertisement format.
_m('Rectangle zone'),
'openx');
$this->unli();
$this->li();
$this->input('leaderboard',
+ // TRANS: Form label in OpenX admin panel. Refers to advertisement format.
_m('Leaderboard'),
+ // TRANS: Tooltip for form label in OpenX admin panel. Refers to advertisement format.
_m('Leaderboard zone'),
'openx');
$this->unli();
$this->li();
$this->input('wideSkyscraper',
+ // TRANS: Form label in OpenX admin panel. Refers to advertisement format.
_m('Skyscraper'),
+ // TRANS: Tooltip for form label in OpenX admin panel. Refers to advertisement format.
_m('Wide skyscraper zone'),
'openx');
$this->unli();
*/
function formActions()
{
- $this->out->submit('submit', _m('Save'), 'submit', null, _m('Save OpenX settings'));
+ $this->out->submit('submit',
+ // TRANS: Submit button text in OpenX admin panel.
+ _m('BUTTON','Save'),
+ 'submit',
+ null,
+ // TRANS: Submit button title in OpenX admin panel.
+ _m('Save OpenX settings'));
}
}