From: Zach Copley Date: Wed, 3 Mar 2010 20:18:20 +0000 (-0800) Subject: Add class="admin" to the content div of admin panels for styling X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c7d390e4949b28c28c95375bfe4523de05af7808;p=quix0rs-gnu-social.git Add class="admin" to the content div of admin panels for styling --- diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 536d97cdf5..9ea4fe2066 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -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.