summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-29 11:21:19 -0700
committerBrion Vibber <brion@pobox.com>2010-10-29 11:21:19 -0700
commit0b1f48ebd0fcfed50d2110b7731196e9adcc04a6 (patch)
tree8afb207552506806119084fcb8140efc342df49c
parente76028b629ccc819160ff5a95393c4cb86b34c1f (diff)
parent36baff3d41c1475f09dbc4f049eca0da4c2ad04f (diff)
Merge remote branch 'origin/master' into twitstream
-rw-r--r--lib/uapplugin.php18
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;
}