forked from GNUsocial/gnu-social
Moved rectangle ad into aside and leaderboard to the right in header.
Intention for this layout was to reduce whitespace in header area
This commit is contained in:
parent
e3bd97bfe4
commit
1c875a5395
@ -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',
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user