diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-29 11:22:35 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-29 11:22:35 -0700 |
commit | 693fecc44a70e25d5ef0ca784a462aadb487ef1e (patch) | |
tree | 0d87c9e0934f356fc66373e8fe66b664fcc790ec | |
parent | 9e516ed1bbb7b7a32fce006e5f2915b0ca344b98 (diff) | |
parent | 36baff3d41c1475f09dbc4f049eca0da4c2ad04f (diff) |
Merge branch 'master' into 0.9.x
-rw-r--r-- | lib/uapplugin.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/uapplugin.php b/lib/uapplugin.php index ef35bafbf..277781768 100644 --- a/lib/uapplugin.php +++ b/lib/uapplugin.php @@ -95,6 +95,24 @@ abstract class UAPPlugin extends Plugin $action->elementEnd('div'); } + // XXX: Hack to force ads to show on single-notice pages + + if (!is_null($this->rectangle) && + $action->trimmed('action') == 'shownotice') { + + $action->elementStart('div', array('id' => 'aside_primary', + 'class' => 'aside')); + + if (Event::handle('StartShowSections', array($action))) { + $action->showSections(); + Event::handle('EndShowSections', array($action)); + } + + $action->elementEnd('div'); + + return false; + } + return true; } |