diff options
author | Sarven Capadisli <csarven@status.net> | 2010-01-27 15:32:59 +0100 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-27 16:34:18 -0500 |
commit | 1c875a53952506ca95716992511421d110a37d4d (patch) | |
tree | 72cfd072d5f834f9f81707ca10e0bc90b6a52e99 | |
parent | e3bd97bfe46ee7d063a45eec282b28faee1ca83f (diff) |
Moved rectangle ad into aside and leaderboard to the right in header.
Intention for this layout was to reduce whitespace in header area
-rw-r--r-- | lib/uapplugin.php | 15 | ||||
-rw-r--r-- | theme/base/css/uap.css | 9 |
2 files changed, 20 insertions, 4 deletions
diff --git a/lib/uapplugin.php b/lib/uapplugin.php index 4364b1e19..69b68f936 100644 --- a/lib/uapplugin.php +++ b/lib/uapplugin.php @@ -99,7 +99,7 @@ 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 * @@ -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', diff --git a/theme/base/css/uap.css b/theme/base/css/uap.css index b95e9b2ce..d7fa02c7f 100644 --- a/theme/base/css/uap.css +++ b/theme/base/css/uap.css @@ -29,15 +29,18 @@ margin-bottom:18px; width:180px; height:150px; -float:right; -margin-right:18px; +float:none; +clear:both; +margin:0 auto; +margin-bottom:29px; } #ad_leaderboard { width:728px; height:90px; -margin:29px 18px 0 0; +margin:11px 18px 0 0; +float:right; clear:both; } |