diff options
author | Zach Copley <zach@status.net> | 2010-03-03 12:18:20 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-03 12:18:20 -0800 |
commit | c7d390e4949b28c28c95375bfe4523de05af7808 (patch) | |
tree | 1afba859c28c5cd999ce76227938e785fad2ba6a /lib | |
parent | 09169d6f3ce60770d0ae115bde38a9274e794640 (diff) |
Add class="admin" to the content div of admin panels for styling
Diffstat (limited to 'lib')
-rw-r--r-- | lib/adminpanelaction.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 536d97cdf..9ea4fe206 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -172,6 +172,24 @@ class AdminPanelAction extends Action } /** + * 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. * |