X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fuapplugin.php;h=ef35bafbfb0fabce891c3439320d8d78438f2f68;hb=1652ded48c9c62c40157a5142e5231adbc574ddb;hp=4364b1e190e9731bd010bddbc76cd5994aeafd71;hpb=e9feafc3ca4641bf5c51bbced3454962ed89b8ef;p=quix0rs-gnu-social.git diff --git a/lib/uapplugin.php b/lib/uapplugin.php index 4364b1e190..ef35bafbfb 100644 --- a/lib/uapplugin.php +++ b/lib/uapplugin.php @@ -54,10 +54,10 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { abstract class UAPPlugin extends Plugin { - public $MediumRectangle = null; - public $Rectangle = null; - public $Leaderboard = null; - public $WideSkyscraper = null; + public $mediumRectangle = null; + public $rectangle = null; + public $leaderboard = null; + public $wideSkyscraper = null; /** * Output our dedicated stylesheet @@ -99,14 +99,14 @@ abstract class UAPPlugin extends Plugin } /** - * Add a leaderboard and/or rectangle in the header + * Add a leaderboard in the header * * @param Action $action Action being shown * * @return boolean hook flag */ - function onStartShowHeader($action) + function onEndShowHeader($action) { if (!is_null($this->leaderboard)) { $action->elementStart('div', @@ -116,6 +116,19 @@ abstract class UAPPlugin extends Plugin $action->elementEnd('div'); } + return true; + } + + /** + * Add a rectangle before aside sections + * + * @param Action $action Action being shown + * + * @return boolean hook flag + */ + + function onStartShowSections($action) + { if (!is_null($this->rectangle)) { $action->elementStart('div', array('id' => 'ad_rectangle',