Add class="admin" to the content div of admin panels for styling
This commit is contained in:
parent
09169d6f3c
commit
c7d390e494
@ -171,6 +171,24 @@ class AdminPanelAction extends Action
|
||||
$this->showForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* Show content block. Overrided just to add a special class
|
||||
* to the content div to allow styling.
|
||||
*
|
||||
* @return nothing
|
||||
*/
|
||||
function showContentBlock()
|
||||
{
|
||||
$this->elementStart('div', array('id' => 'content', 'class' => 'admin'));
|
||||
$this->showPageTitle();
|
||||
$this->showPageNoticeBlock();
|
||||
$this->elementStart('div', array('id' => 'content_inner'));
|
||||
// show the actual content (forms, lists, whatever)
|
||||
$this->showContent();
|
||||
$this->elementEnd('div');
|
||||
$this->elementEnd('div');
|
||||
}
|
||||
|
||||
/**
|
||||
* show human-readable instructions for the page, or
|
||||
* a success/failure on save.
|
||||
|
Loading…
Reference in New Issue
Block a user