summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-10-29 11:13:33 -0400
committerEvan Prodromou <evan@status.net>2010-10-29 11:13:33 -0400
commitc8dab140f41a397c245a8858cb6030e2c985012c (patch)
tree9fa863a4590a9397c845720bfe9041ab7062b20f
parentb5206fe6ca455684af46bcf05153716749a611a9 (diff)
add a hack to show ads on single-notice pages
-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;
}